MediaFileReadResult media.file-read-result@1

Generated at from openvibe-contracts v0.53.0 and openvibe-sdk v0.11.0.

Version
1.0.0
Owner
media
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/media/file-read-result.v1.json

media.file-read-result@1: answers of media.object.read on OpenVibe.Media. GET /api/v1/:app/files/:key → media.file@1 (the file's metadata; 404 when it is not the tenant's); GET /f/:key → the bytes, with Content-Type and Range (a sandbox file only through its signed URL).

Fields

This schema has no named fields.

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: bytes
"<bytes>"
Valid: meta
{
  "key": "f_9c1b2e7d",
  "app_id": "live",
  "user_id": 17,
  "original_name": "overlay.png",
  "size": 48213,
  "mime": "image/png",
  "sha256": "3f1c0b8e2a9d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b",
  "url": "/f/f_9c1b2e7d",
  "created_at": "2026-09-25 18:00:00"
}
Rejected: partial
{
  "key": "k"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('media.file-read-result@1', value);   // { valid, errors: [{ path, message }] }