ShareAccessRequestView share.access-request-view@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
network
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/share/access-request-view.v1.json

share.access-request-view@1: a pending access request in the GET body, with the person who asked. Pending only; dismissed and granted requests are not shown.

Fields

FieldTypeRequiredDescriptionConstraints
idstringyes
  • format uuid
subjectidentity.subject-refyes
usernamestring | nullyes
display_namestring | nullyes
avatar_urlstring | nullyes
requested_atstringyes
  • format date-time

Examples

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

Valid: example
{
  "id": "00000000-0000-4000-8000-000000000001",
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS"
  },
  "username": "xenia",
  "display_name": "Xenia",
  "avatar_url": null,
  "requested_at": "2026-11-06T00:05:00Z"
}
Rejected: missing-username
{
  "id": "00000000-0000-4000-8000-000000000001",
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS"
  },
  "display_name": "Xenia",
  "avatar_url": null,
  "requested_at": "2026-11-06T00:05:00Z"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('share.access-request-view@1', value);   // { valid, errors: [{ path, message }] }