RunFillOutcome run.fill-outcome@1

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

Version
1.0.0
Owner
run
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/run/fill-outcome.v1.json

Credential-free result of a blind sign-in fill.

Fields

FieldTypeRequiredDescriptionConstraints
request_idstringyes
  • pattern ^fr_[A-Za-z0-9_-]{16,64}$
outcomeenumyes
  • one of "ok", "failed"
reasonenumyes
  • one of "origin_changed", "expired", "reused", "not_owned", "no_fields", "iframe", "decrypt_failed", "navigation", "refused", "timeout", null

Examples

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

Valid: example
{
  "request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
  "outcome": "ok",
  "reason": null
}
Rejected: credential
{
  "request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
  "outcome": "ok",
  "username": "alice",
  "password": "must-not-be-here"
}
Rejected: free-text-reason
{
  "request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
  "outcome": "failed",
  "reason": "password entry failed because the page said: please retry"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('run.fill-outcome@1', value);   // { valid, errors: [{ path, message }] }