@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.
- package/README.md +8 -4
- package/development.md +37 -0
- package/docs/README.md +81 -0
- package/docs/agent-message-schema-defs-toclient.md +25 -0
- package/docs/agent-message-schema-defs-tocloud.md +25 -0
- package/docs/agent-message-schema-defs.md +15 -0
- package/docs/agent-message-schema-properties-deviceid.md +15 -0
- package/docs/agent-message-schema-properties-payload-oneof-app_install_status.md +66 -0
- package/docs/agent-message-schema-properties-payload-oneof-app_logs.md +66 -0
- package/docs/agent-message-schema-properties-payload-oneof-app_state.md +66 -0
- package/docs/agent-message-schema-properties-payload-oneof-device_stats.md +66 -0
- package/docs/agent-message-schema-properties-payload-oneof-signed_urls_request.md +85 -0
- package/docs/agent-message-schema-properties-payload.md +27 -0
- package/docs/agent-message-schema-properties-timestamp.md +15 -0
- package/docs/agent-message-schema-properties-topic-oneof-0.md +25 -0
- package/docs/agent-message-schema-properties-topic-oneof-1.md +25 -0
- package/docs/agent-message-schema-properties-topic.md +21 -0
- package/docs/agent-message-schema.md +138 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appinstallpayload-properties-appsignedurl.md +15 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appinstallpayload.md +39 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-appreleasehash.md +25 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-models_install_payload.md +15 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse-properties-projectid.md +25 -0
- package/docs/app-install-cloud-response-schema-properties-appinstallcloudresponse.md +116 -0
- package/docs/app-install-cloud-response-schema-properties-messagetype.md +23 -0
- package/docs/app-install-cloud-response-schema.md +66 -0
- package/docs/app-install-schema-properties-appreleasehash.md +25 -0
- package/docs/app-install-schema-properties-basecommand.md +23 -0
- package/docs/app-install-schema-properties-projectid.md +25 -0
- package/docs/app-install-schema.md +105 -0
- package/docs/app-install-status-schema-properties-appinstallstatus-properties-appreleasehash.md +25 -0
- package/docs/app-install-status-schema-properties-appinstallstatus-properties-message.md +15 -0
- package/docs/app-install-status-schema-properties-appinstallstatus-properties-status.md +26 -0
- package/docs/app-install-status-schema-properties-appinstallstatus.md +98 -0
- package/docs/app-install-status-schema-properties-messagetype.md +23 -0
- package/docs/app-install-status-schema.md +66 -0
- package/docs/app-logs-schema-properties-applogs-properties-logchunk.md +15 -0
- package/docs/app-logs-schema-properties-applogs-properties-projectid.md +25 -0
- package/docs/app-logs-schema-properties-applogs.md +68 -0
- package/docs/app-logs-schema-properties-messagetype.md +23 -0
- package/docs/app-logs-schema.md +66 -0
- package/docs/app-state-control-schema-properties-appstatecontrol-properties-basecommand.md +25 -0
- package/docs/app-state-control-schema-properties-appstatecontrol-properties-projectid.md +25 -0
- package/docs/app-state-control-schema-properties-appstatecontrol.md +78 -0
- package/docs/app-state-control-schema-properties-messagetype.md +23 -0
- package/docs/app-state-control-schema.md +66 -0
- package/docs/app-state-schema-properties-appstate-items-properties-appdetails-properties-projectid.md +25 -0
- package/docs/app-state-schema-properties-appstate-items-properties-appdetails-properties-version.md +25 -0
- package/docs/app-state-schema-properties-appstate-items-properties-appdetails.md +78 -0
- package/docs/app-state-schema-properties-appstate-items-properties-services-items-properties-name.md +15 -0
- package/docs/app-state-schema-properties-appstate-items-properties-services-items-properties-state.md +25 -0
- package/docs/app-state-schema-properties-appstate-items-properties-services-items.md +68 -0
- package/docs/app-state-schema-properties-appstate-items-properties-services.md +15 -0
- package/docs/app-state-schema-properties-appstate-items.md +58 -0
- package/docs/app-state-schema-properties-appstate.md +15 -0
- package/docs/app-state-schema-properties-messagetype.md +23 -0
- package/docs/app-state-schema.md +66 -0
- package/docs/app-uninstall-schema-properties-basecommand.md +23 -0
- package/docs/app-uninstall-schema-properties-projectid.md +25 -0
- package/docs/app-uninstall-schema.md +76 -0
- package/docs/app-version-control-schema-properties-appversioncontrol.md +21 -0
- package/docs/app-version-control-schema-properties-messagetype.md +23 -0
- package/docs/app-version-control-schema.md +72 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appinstallpayload-properties-appsignedurl.md +15 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appinstallpayload.md +39 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-appreleasehash.md +25 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-modelsinstallpayload.md +15 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse-properties-projectid.md +25 -0
- package/docs/app_install_cloud_response_schema-properties-appinstallcloudresponse.md +116 -0
- package/docs/app_install_cloud_response_schema-properties-messagetype.md +23 -0
- package/docs/app_install_cloud_response_schema.md +66 -0
- package/docs/app_install_schema-properties-appreleasehash.md +25 -0
- package/docs/app_install_schema-properties-basecommand.md +23 -0
- package/docs/app_install_schema-properties-projectid.md +25 -0
- package/docs/app_install_schema.md +105 -0
- package/docs/app_state_control_schema-properties-appstatecontrol-properties-basecommand.md +25 -0
- package/docs/app_state_control_schema-properties-appstatecontrol-properties-projectid.md +25 -0
- package/docs/app_state_control_schema-properties-appstatecontrol.md +78 -0
- package/docs/app_state_control_schema-properties-messagetype.md +23 -0
- package/docs/app_state_control_schema.md +66 -0
- package/docs/app_uninstall_schema-properties-basecommand.md +23 -0
- package/docs/app_uninstall_schema-properties-projectid.md +25 -0
- package/docs/app_uninstall_schema.md +76 -0
- package/docs/app_version_control_schema-properties-appversioncontrol.md +21 -0
- package/docs/app_version_control_schema-properties-messagetype.md +23 -0
- package/docs/app_version_control_schema.md +72 -0
- package/docs/client-message-schema-defs-message.md +25 -0
- package/docs/client-message-schema-defs.md +15 -0
- package/docs/client-message-schema-properties-payload-oneof-live_state_updates.md +66 -0
- package/docs/client-message-schema-properties-payload-oneof-models_install_cloud_response.md +66 -0
- package/docs/client-message-schema-properties-payload.md +27 -0
- package/docs/client-message-schema-properties-timestamp.md +15 -0
- package/docs/client-message-schema-properties-topic.md +25 -0
- package/docs/client-message-schema.md +112 -0
- package/docs/client_message_schema-defs-message.md +25 -0
- package/docs/client_message_schema-defs.md +15 -0
- package/docs/client_message_schema-properties-payload-oneof-3.md +66 -0
- package/docs/client_message_schema-properties-payload-oneof-4.md +66 -0
- package/docs/client_message_schema-properties-payload.md +27 -0
- package/docs/client_message_schema-properties-timestamp.md +15 -0
- package/docs/client_message_schema-properties-topic.md +25 -0
- package/docs/client_message_schema.md +112 -0
- package/docs/common-schema-defs-appreleasehash.md +25 -0
- package/docs/common-schema-defs-modelid.md +25 -0
- package/docs/common-schema-defs-projectid.md +25 -0
- package/docs/common-schema-defs.md +15 -0
- package/docs/common-schema.md +50 -0
- package/docs/device-status-schema-properties-devicestats-properties-cpuusage.md +15 -0
- package/docs/device-status-schema-properties-devicestats-properties-diskutil.md +15 -0
- package/docs/device-status-schema-properties-devicestats-properties-usedmemorypercentage.md +15 -0
- package/docs/device-status-schema-properties-devicestats.md +77 -0
- package/docs/device-status-schema-properties-messagetype.md +23 -0
- package/docs/device-status-schema.md +66 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs-properties-projectid.md +25 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs-properties-toggle.md +15 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-applogs.md +68 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-appstate.md +15 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles-properties-devicestats.md +15 -0
- package/docs/live-updates-toggle-schema-properties-liveupdatestoggles.md +77 -0
- package/docs/live-updates-toggle-schema-properties-messagetype.md +23 -0
- package/docs/live-updates-toggle-schema.md +66 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs-properties-projectid.md +25 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs-properties-toggle.md +15 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-applogs.md +68 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-appstate.md +15 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles-properties-devicestats.md +15 -0
- package/docs/live_updates_toggle_schema-properties-liveupdatestoggles.md +77 -0
- package/docs/live_updates_toggle_schema-properties-messagetype.md +23 -0
- package/docs/live_updates_toggle_schema.md +66 -0
- package/docs/models-install-cloud-response-schema-properties-messagetype.md +23 -0
- package/docs/models-install-cloud-response-schema-properties-modelsinstallcloudresponse-properties-projectid.md +25 -0
- package/docs/models-install-cloud-response-schema-properties-modelsinstallcloudresponse.md +68 -0
- package/docs/models-install-cloud-response-schema.md +66 -0
- package/docs/models-install-payload-schema-items-properties-id.md +25 -0
- package/docs/models-install-payload-schema-items-properties-modelsignedurl.md +15 -0
- package/docs/models-install-payload-schema-items-properties-version.md +15 -0
- package/docs/models-install-payload-schema-items.md +87 -0
- package/docs/models-install-payload-schema.md +15 -0
- package/docs/models_install_cloud_response_schema-properties-messagetype.md +23 -0
- package/docs/models_install_cloud_response_schema-properties-modelsinstallcloudresponse-properties-projectid.md +25 -0
- package/docs/models_install_cloud_response_schema-properties-modelsinstallcloudresponse.md +68 -0
- package/docs/models_install_cloud_response_schema.md +66 -0
- package/docs/models_install_payload_schema-items-properties-id.md +25 -0
- package/docs/models_install_payload_schema-items-properties-modelsignedurl.md +15 -0
- package/docs/models_install_payload_schema-items-properties-version.md +15 -0
- package/docs/models_install_payload_schema-items.md +87 -0
- package/docs/models_install_payload_schema.md +15 -0
- package/docs/signed-urls-request-schema-properties-messagetype.md +23 -0
- package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models-patternproperties-a-za-z0-9_.md +15 -0
- package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models-patternproperties.md +15 -0
- package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-models.md +39 -0
- package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest-properties-projectid.md +25 -0
- package/docs/signed-urls-request-schema-properties-modelsonlyurlsrequest.md +68 -0
- package/docs/signed-urls-request-schema-properties-signedurlsrequest-properties-appreleasehash.md +25 -0
- package/docs/signed-urls-request-schema-properties-signedurlsrequest-properties-projectid.md +25 -0
- package/docs/signed-urls-request-schema-properties-signedurlsrequest.md +78 -0
- package/docs/signed-urls-request-schema.md +85 -0
- package/lib/app-action-schema.d.ts +54 -0
- package/lib/app-action-schema.d.ts.map +1 -0
- package/lib/app-action-schema.js +3 -0
- package/lib/app-action-schema.js.map +1 -0
- package/lib/app-logs-schema.d.ts +11 -0
- package/lib/app-logs-schema.d.ts.map +1 -0
- package/lib/app-logs-schema.js +3 -0
- package/lib/app-logs-schema.js.map +1 -0
- package/lib/app-state-schema.d.ts +22 -0
- package/lib/app-state-schema.d.ts.map +1 -0
- package/lib/app-state-schema.js +3 -0
- package/lib/app-state-schema.js.map +1 -0
- package/lib/constants.d.ts +39 -14
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +10 -10
- package/lib/constants.js.map +1 -1
- package/lib/constants.test.d.ts +2 -0
- package/lib/constants.test.d.ts.map +1 -0
- package/lib/constants.test.js +21 -0
- package/lib/constants.test.js.map +1 -0
- package/lib/device-agent-action-schema.d.ts +15 -0
- package/lib/device-agent-action-schema.d.ts.map +1 -0
- package/lib/device-agent-action-schema.js +3 -0
- package/lib/device-agent-action-schema.js.map +1 -0
- package/lib/device-stats-schema.d.ts +12 -0
- package/lib/device-stats-schema.d.ts.map +1 -0
- package/lib/device-stats-schema.js +4 -0
- package/lib/device-stats-schema.js.map +1 -0
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/schemas/app-install-cloud-response-schema.json +41 -0
- package/lib/schemas/app-install-schema.json +20 -0
- package/lib/schemas/app-logs-schema.json +23 -0
- package/lib/schemas/app-state-control-schema.json +24 -0
- package/lib/schemas/app-state-schema.json +49 -0
- package/lib/schemas/app-uninstall-schema.json +17 -0
- package/lib/schemas/app-version-control-schema.json +20 -0
- package/lib/schemas/client-message-schema.json +117 -0
- package/lib/schemas/common-schema.json +27 -0
- package/lib/schemas/device-agent-message-schema.json +106 -0
- package/lib/schemas/device-stats-schema.json +29 -0
- package/lib/schemas/live-updates-toggle-schema.json +35 -0
- package/lib/schemas/models-install-cloud-response-schema.json +23 -0
- package/lib/schemas/models-install-payload-schema.json +22 -0
- package/lib/schemas/signed-urls-request-schema.json +42 -0
- package/lib/schemas/status-response-schema.json +23 -0
- package/lib/signed-urls-request-schema.d.ts +21 -0
- package/lib/signed-urls-request-schema.d.ts.map +1 -0
- package/lib/signed-urls-request-schema.js +3 -0
- package/lib/signed-urls-request-schema.js.map +1 -0
- package/lib/status-response-schema.d.ts +11 -0
- package/lib/status-response-schema.d.ts.map +1 -0
- package/lib/status-response-schema.js +3 -0
- package/lib/status-response-schema.js.map +1 -0
- package/lib/types.d.ts +20 -20
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +37 -91
- package/lib/types.js.map +1 -1
- package/lib/types.test.js +130 -41
- package/lib/types.test.js.map +1 -1
- package/lib/utils.d.ts +1 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +6 -1
- package/lib/utils.js.map +1 -1
- package/package.json +6 -3
- package/src/app-action-schema.ts +71 -0
- package/src/app-logs-schema.ts +13 -0
- package/src/app-state-schema.ts +27 -0
- package/src/constants.test.ts +35 -0
- package/src/constants.ts +33 -12
- package/src/device-agent-action-schema.ts +16 -0
- package/src/device-stats-schema.ts +15 -0
- package/src/index.ts +67 -34
- package/src/schemas/app-install-cloud-response-schema.json +41 -0
- package/src/schemas/app-install-schema.json +20 -0
- package/src/schemas/app-logs-schema.json +23 -0
- package/src/schemas/app-state-control-schema.json +24 -0
- package/src/schemas/app-state-schema.json +49 -0
- package/src/schemas/app-uninstall-schema.json +17 -0
- package/src/schemas/app-version-control-schema.json +20 -0
- package/src/schemas/client-message-schema.json +117 -0
- package/src/schemas/common-schema.json +27 -0
- package/src/schemas/device-agent-message-schema.json +107 -0
- package/src/schemas/device-stats-schema.json +29 -0
- package/src/schemas/live-updates-toggle-schema.json +35 -0
- package/src/schemas/models-install-cloud-response-schema.json +23 -0
- package/src/schemas/models-install-payload-schema.json +22 -0
- package/src/schemas/signed-urls-request-schema.json +42 -0
- package/src/schemas/status-response-schema.json +23 -0
- package/src/signed-urls-request-schema.ts +22 -0
- package/src/status-response-schema.ts +12 -0
- package/src/types.test.ts +130 -43
- package/src/types.ts +109 -143
- package/src/utils.ts +6 -0
- package/lib/schemas/agent/app-install-status-schema.d.ts +0 -38
- package/lib/schemas/agent/app-install-status-schema.d.ts.map +0 -1
- package/lib/schemas/agent/app-install-status-schema.js +0 -32
- package/lib/schemas/agent/app-install-status-schema.js.map +0 -1
- package/lib/schemas/agent/application-logs-schema.d.ts +0 -34
- package/lib/schemas/agent/application-logs-schema.d.ts.map +0 -1
- package/lib/schemas/agent/application-logs-schema.js +0 -29
- package/lib/schemas/agent/application-logs-schema.js.map +0 -1
- package/lib/schemas/agent/application-state-schema.d.ts +0 -68
- package/lib/schemas/agent/application-state-schema.d.ts.map +0 -1
- package/lib/schemas/agent/application-state-schema.js +0 -56
- package/lib/schemas/agent/application-state-schema.js.map +0 -1
- package/lib/schemas/agent/device-status-schema.d.ts +0 -41
- package/lib/schemas/agent/device-status-schema.d.ts.map +0 -1
- package/lib/schemas/agent/device-status-schema.js +0 -35
- package/lib/schemas/agent/device-status-schema.js.map +0 -1
- package/lib/schemas/agent/request-data-from-cloud.d.ts +0 -60
- package/lib/schemas/agent/request-data-from-cloud.d.ts.map +0 -1
- package/lib/schemas/agent/request-data-from-cloud.js +0 -48
- package/lib/schemas/agent/request-data-from-cloud.js.map +0 -1
- package/lib/schemas/client/application-action-schema.d.ts +0 -247
- package/lib/schemas/client/application-action-schema.d.ts.map +0 -1
- package/lib/schemas/client/application-action-schema.js +0 -161
- package/lib/schemas/client/application-action-schema.js.map +0 -1
- package/lib/schemas/client/device-agent-action-schema.d.ts +0 -50
- package/lib/schemas/client/device-agent-action-schema.d.ts.map +0 -1
- package/lib/schemas/client/device-agent-action-schema.js +0 -41
- package/lib/schemas/client/device-agent-action-schema.js.map +0 -1
- package/lib/schemas/common-schema.d.ts +0 -22
- package/lib/schemas/common-schema.d.ts.map +0 -1
- package/lib/schemas/common-schema.js +0 -26
- package/lib/schemas/common-schema.js.map +0 -1
- package/src/schemas/agent/app-install-status-schema.ts +0 -39
- package/src/schemas/agent/application-logs-schema.ts +0 -37
- package/src/schemas/agent/application-state-schema.ts +0 -74
- package/src/schemas/agent/device-status-schema.ts +0 -44
- package/src/schemas/agent/request-data-from-cloud.ts +0 -61
- package/src/schemas/client/application-action-schema.ts +0 -225
- package/src/schemas/client/device-agent-action-schema.ts +0 -52
- 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
|
-
-
|
|
15
|
+
- DeviceStatsPayload,
|
|
12
16
|
- AppState,
|
|
13
17
|
- AppStateValue,
|
|
14
18
|
- ServiceStatus,
|
|
15
19
|
- AppDetails,
|
|
16
|
-
-
|
|
20
|
+
- AppStatePayload,
|
|
17
21
|
- InstallationStatus,
|
|
18
22
|
- InstallationStatusMessage,
|
|
19
23
|
- AppLogs,
|
|
20
|
-
-
|
|
24
|
+
- AppLogsPayload,
|
|
21
25
|
- AppStateControlValue,
|
|
22
26
|
- AppVersionControlValue,
|
|
23
27
|
- AppStateControl,
|
|
24
28
|
- AppVersionControl,
|
|
25
29
|
- AppActionMessage,
|
|
26
30
|
- AgentActionValue,
|
|
27
|
-
-
|
|
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`
|