ResourceOffer platform.resource-offer@1
Generated at from
openvibe-contracts v0.79.0 and
openvibe-sdk v0.25.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-034
- Schema
https://openvibe.network/contracts/platform/resource-offer.v1.json
What one node or external provider can run right now (roadmap WS-Z9, decision 43): capabilities, multidimensional capacity, measured latencies, health and pricing. First-party only: it carries capacity the public node registry (network.node@1) deliberately leaves out.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
offer_id | string | yes | ||
kind | enum | yes |
| |
node_id | string | network.node@1 id, for kind node | ||
provider | string | provider or hosting company | ||
adapter | string | carrier or provider adapter id, for kind provider (e.g. nats-v1, cf-queue-v1) | ||
region | string | yes | ||
cell | string | |||
trust | enum | yes |
| |
capabilities | array of string | yes | e.g. node:http, worker:browser, worker:ffmpeg, worker:ai-gpu, events:gateway, events:durable, object:r2 |
|
capacity | object |
| ||
capacity.cpu | object |
| ||
capacity.cpu.utilization | number |
| ||
capacity.cpu.available_cores | number |
| ||
capacity.memory | object |
| ||
capacity.memory.utilization | number |
| ||
capacity.memory.available_mb | number |
| ||
capacity.network | object |
| ||
capacity.network.ingress_mbps | number |
| ||
capacity.network.egress_mbps | number |
| ||
capacity.network.available_mbps | number |
| ||
capacity.disk | object |
| ||
capacity.disk.iops_available | number |
| ||
capacity.disk.scratch_gb | number |
| ||
capacity.disk.utilization | number |
| ||
capacity.gpu | object |
| ||
capacity.gpu.type | string | |||
capacity.gpu.vram_free_mb | number |
| ||
capacity.gpu.utilization | number |
| ||
capacity.workers | object | free worker slots by kind (browser, ffmpeg, ai, …) | ||
capacity.queues | object | queue depth and age by name | ||
capacity.event_loop_lag_ms | number |
| ||
latency_ms | object | measured p50/p95 by operation, e.g. publish_p95, ack_p95 | ||
health | object | yes |
| |
health.status | enum | yes |
| |
health.error_rate | number |
| ||
health.checked_at | string |
| ||
pricing | object | yes |
| |
pricing.model | enum | yes |
| |
pricing.marginal_usd_per_unit | number |
| ||
pricing.unit | string | |||
pricing.rate_card | string | platform.rate-card id when the price comes from one | ||
updated_at | string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: owned-node
{
"offer_id": "off_oregon_1",
"kind": "node",
"node_id": "ovh-oregon-1",
"provider": "ovh",
"region": "us-west",
"cell": "wnam-1",
"trust": "first-party",
"capabilities": [
"node:http",
"worker:browser",
"worker:ffmpeg",
"events:durable"
],
"capacity": {
"cpu": {
"utilization": 0.31,
"available_cores": 5.5
},
"memory": {
"available_mb": 18300
},
"workers": {
"browser": 6,
"ffmpeg": 3
},
"queues": {
"media-jobs": {
"depth": 2,
"oldest_ms": 40
}
}
},
"latency_ms": {
"publish_p95": 3.1
},
"health": {
"status": "up"
},
"pricing": {
"model": "prepaid",
"marginal_usd_per_unit": 0,
"unit": "job"
},
"updated_at": "2026-09-28T23:00:00Z"
}Valid: provider
{
"offer_id": "off_cf_queue",
"kind": "provider",
"provider": "cloudflare",
"adapter": "cf-queue-v1",
"region": "global",
"trust": "external",
"capabilities": [
"events:queue",
"events:durable"
],
"health": {
"status": "up",
"error_rate": 0.0001
},
"pricing": {
"model": "per-operation",
"rate_card": "rc_cf_queue_ops"
},
"updated_at": "2026-09-28T23:00:00Z"
}Rejected: bad-capability
{
"offer_id": "x",
"kind": "node",
"region": "us-west",
"trust": "first-party",
"capabilities": [
"Browser"
],
"health": {
"status": "up"
},
"pricing": {
"model": "prepaid"
},
"updated_at": "2026-09-28T23:00:00Z"
}Rejected: missing-health
{
"offer_id": "x",
"kind": "node",
"region": "us-west",
"trust": "first-party",
"capabilities": [
"node:http"
],
"pricing": {
"model": "prepaid"
},
"updated_at": "2026-09-28T23:00:00Z"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('platform.resource-offer@1', value); // { valid, errors: [{ path, message }] }