LinkAccessRequest link.access-request@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/link/access-request.v1.json
A machine asks another for bounded access.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
from_principal | string | yes |
| |
to_principal | string | yes |
| |
from_owner | string | yes |
| |
to_owner | string | yes |
| |
from_agent | string |
| ||
scopes | array of enum | yes |
| |
reason | string |
| ||
status | enum | yes |
| |
requested_at | string | yes |
| |
expires_at | string | yes |
| |
duration_seconds | integer | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"id": "req_12345678",
"from_principal": "lnk_AAAAAAAAAAAAAAAAAAAAAAAAAA",
"to_principal": "lnk_BBBBBBBBBBBBBBBBBBBBBBBBBB",
"from_owner": "usr_AAAAAAAAAAAAAAAAAAAAAAAAAA",
"to_owner": "usr_BBBBBBBBBBBBBBBBBBBBBBBBBB",
"scopes": [
"agent"
],
"status": "pending",
"requested_at": "2026-11-11T00:00:00Z",
"expires_at": "2026-11-11T01:00:00Z",
"duration_seconds": 3600
}Rejected: example
{}Validate
const contracts = require('openvibe-contracts');
contracts.validate('link.access-request@1', value); // { valid, errors: [{ path, message }] }