@hello.nrfcloud.com/proto
Version:
Documents the communication protocol between the hello.nrfcloud.com backend and the web application
12 lines (9 loc) • 394 B
text/typescript
import { LwM2MObjectInstance } from '@hello.nrfcloud.com/proto-map/api'
import { Type, type Static } from '@sinclair/typebox'
import { Context } from './Context.js'
export const Shadow = Type.Object({
'@context': Type.Literal(Context.shadow.toString()),
reported: Type.Array(LwM2MObjectInstance),
desired: Type.Array(LwM2MObjectInstance),
})
export type ShadowType = Static<typeof Shadow>