QuestAppQuest quest.app-quest@1
Generated at from
openvibe-contracts v0.193.1 and
openvibe-sdk v0.48.0.
- Version
- 1.0.0
- Owner
- quest
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/quest/app-quest.v1.json
quest.app-quest@1: one app quest as OpenVibe.Quest keeps it (the answer to PUT and GET /api/v1/app-quests[/:slug]). id is app.<project_key>.<slug>; badge.id is the same id; completions counts the people who finished it.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes |
| |
slug | string | yes |
| |
project_id | string | yes |
| |
app | string | yes | The app that last defined it. |
|
env | enum | yes |
| |
title | string | yes |
| |
why | string | null |
| ||
steps | array of object | yes |
| |
steps[].event_type | string | yes | One of the app's own event types (app.<project_key>.<name>), as it publishes them at OpenVibe.Events. |
|
steps[].count | integer | yes |
| |
steps[].label | string | yes |
| |
badge | object | yes |
| |
badge.id | string | yes | ||
badge.name | string | yes |
| |
url | string | null |
| ||
status | enum | yes |
| |
created_at | string | yes |
| |
updated_at | string | yes |
| |
completions | integer | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: one
{
"id": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.collector",
"slug": "collector",
"project_id": "prj_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"app": "app:app_01JAB2C3D4E5F6G7H8J9K0MNPR",
"env": "production",
"title": "Collector",
"why": null,
"steps": [
{
"event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.gem.found",
"count": 5,
"label": "Find a gem"
}
],
"badge": {
"id": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.collector",
"name": "Gem Collector"
},
"url": null,
"status": "active",
"created_at": "2026-10-15T22:00:00.000Z",
"updated_at": "2026-10-15T22:00:00.000Z",
"completions": 0
}Rejected: bad-id
{
"id": "live.collector",
"slug": "collector",
"project_id": "prj_01JAB2C3D4E5F6G7H8J9K0MNPQ",
"app": "app:app_01JAB2C3D4E5F6G7H8J9K0MNPR",
"env": "production",
"title": "Collector",
"why": null,
"steps": [
{
"event_type": "app.p01jab2c3d4e5f6g7h8j9k0mnpq.gem.found",
"count": 5,
"label": "Find a gem"
}
],
"badge": {
"id": "x",
"name": "x"
},
"url": null,
"status": "active",
"created_at": "2026-10-15T22:00:00.000Z",
"updated_at": "2026-10-15T22:00:00.000Z",
"completions": 0
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('quest.app-quest@1', value); // { valid, errors: [{ path, message }] }