NetworkSetupGrantSave network.setup-grant-save@1

Generated at from openvibe-contracts v0.443.0 and openvibe-sdk v0.177.0.

Version
1.0.0
Owner
network
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/network/setup-grant-save.v1.json

network.setup-grant-save@1 (capability network.setup.grant.save): the value(s) a person's own agent read from a provider's page, saved into exactly the one Setup row a one-time grant names (plan §AB.44). POST /internal/setup/grants/:id/save on OpenVibe.Network, with the agent's service token and the live grant: each key must be one of the grant's own; the grant is burnt by the first save; nothing is ever read back.

Fields

FieldTypeRequiredDescriptionConstraints
valuesobjectyes
  • no other fields
runstringThe agent run that read the value(s), for the audit line.
  • pattern ^[A-Za-z0-9_-]{1,80}$

Examples

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

Valid: one-key
{
  "values": {
    "deepseek.api_key": "pasted-from-the-provider-page"
  },
  "run": "run_setup_deepseek"
}
Rejected: no-values
{
  "values": {}
}
Rejected: too-many-keys
{
  "values": {
    "a": "one",
    "b": "two",
    "c": "three",
    "d": "four",
    "e": "five"
  }
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('network.setup-grant-save@1', value);   // { valid, errors: [{ path, message }] }