Currently, the only way to generate a device response is by providing a presentation definition structure:
const deviceResponse = await DeviceResponse.from(mdoc)
.usingPresentationDefinition({ id: '...', input_descriptors: [...] })
// ...
But this is used by the OpenID4VP protocol only. For WebAPI, we need to support the "Device Retrieval mDOC Request" structure (defined in sections 8.3.1 and 8.3.2 of the ISO 18013-5).