@hello.nrfcloud.com/proto-map
Version:
Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application
15 lines (14 loc) • 553 B
JavaScript
import { Type } from '@sinclair/typebox';
import { Context } from './Context.js';
import { DeviceId, PublicDeviceId } from './DeviceId.js';
import { Model } from './Devices.js';
import { IsoDateType } from './IsoDateType.js';
export var UserDevices = Type.Object({
'@context': Type.Literal(Context.userDevices.toString()),
devices: Type.Array(Type.Object({
id: PublicDeviceId,
deviceId: DeviceId,
model: Model,
expires: IsoDateType('The date when the device will be removed from the list of devices')
}))
});