UNPKG

@hello.nrfcloud.com/proto-map

Version:

Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application

16 lines (15 loc) 521 B
import { Type } from '@sinclair/typebox'; export var DeviceId = Type.RegExp(/^[a-zA-Z0-9:_-]{1,128}$/, { title: 'Device ID', description: 'Must follow the AWS IoT limitations for Thing names.', examples: [ 'oob-352656166666905' ] }); export var PublicDeviceId = Type.RegExp(/^[a-z]{8}-[a-z]{8}-[a-z]{8}$/, { title: 'Public Device ID', description: 'This is the format of @bifravst/random-words which is used for public IDs.', examples: [ 'pentacid-coxalgia-backheel' ] });