Manual de VNLE
Referencia de campos JSON
Ejecución y contenido
format y containerVersion identifican el contenedor. execution contiene entradas y nodos; content contiene textos, traducciones y catálogos. Los UUID conectan las tablas: no uses los nombres visibles como referencias. JSON no admite comentarios; las explicaciones se mantienen aparte para que el ejemplo siga siendo válido.
// Explanation only — not a JSON file
// execution.entries[entryId].nodeRef -> execution.nodes[nodeId]
// node.text.textRef -> content.texts[textId].sourceMessage
// content.translations[locale][textId].message -> translated segments
// dialogue.continuation.nodeRef -> next node
// end -> stop; never keep advancing
story.json
Cambio de idioma y traducciones ausentes
Guarda el idioma separado del nodo actual. Al cambiarlo, resuelve de nuevo el mismo textRef: usa la traducción de locale si existe; de lo contrario, sourceMessage. Si falta la tabla de un idioma, sus traducciones están ausentes. allowEmpty permite texto vacío intencionadamente. Evalúa los marcadores de posición con el formato de su tipo; no conviertas el propio JSON en texto. Las huellas del original detectan traducciones desactualizadas; workflowStatus por sí solo no garantiza que estén al día.
A continuación se incluyen todas las definiciones accesibles desde el esquema actual de exportación, con sus propiedades, variantes y restricciones. Schema también muestra las reglas anidadas. Si additionalProperties es false, se rechazan los campos adicionales.
JSON Schema · Draft 2020-12
Capability
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · Capability
{
"type": "string",
"pattern": "^[a-z][a-z0-9.-]*$",
"title": "Capability"
}
ContentAsset
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
mediaType | string · obligatorio | Tipo MIME del contenido multimedia. |
relativePath | RelativePath · obligatorio | Ruta relativa validada de un recurso; nunca la uses como ruta del sistema de archivos sin comprobarla. |
contentHash | Hash · obligatorio | SHA-256 de los bytes del recurso multimedia referenciado. |
displayName | string · obligatorio | Nombre visible y legible del recurso. |
licenseNote | string | Nota sobre la licencia del recurso; no se verifica legalmente de forma automática. |
width | integer | Ver tipo y esquema para estructura y valores válidos.
{"minimum":0,"maximum":2147483647} |
height | integer | Ver tipo y esquema para estructura y valores válidos.
{"minimum":0,"maximum":2147483647} |
byteSize | integer | Ver tipo y esquema para estructura y valores válidos.
{"minimum":0,"maximum":2147483647} |
originalName | string | Ver tipo y esquema para estructura y valores válidos. |
Schema · ContentAsset
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"mediaType": {
"type": "string"
},
"relativePath": {
"$ref": "#/$defs/RelativePath"
},
"contentHash": {
"$ref": "#/$defs/Hash"
},
"displayName": {
"type": "string"
},
"licenseNote": {
"type": "string"
},
"width": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"height": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"byteSize": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"originalName": {
"type": "string"
}
},
"required": [
"id",
"mediaType",
"relativePath",
"contentHash",
"displayName"
],
"additionalProperties": false,
"title": "ContentAsset"
}
ContentCharacter
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
nameTextRef | Id · obligatorio | ID de texto para el nombre localizado. |
color | string · obligatorio | Color de visualización del personaje; no es un valor de la lógica del juego.
{"pattern":"^#[0-9a-fA-F]{6}$"} |
defaultPortraitRef | Id | Recurso del retrato predeterminado del personaje; no se incluye en la exportación genérica. |
emotions | object · obligatorio | Identificador de emoción → definición de la emoción.
{"additionalProperties":{"$ref":"#/$defs/Emotion"}} |
emotions[key] | Emotion | Ver tipo y esquema para estructura y valores válidos. |
Schema · ContentCharacter
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"nameTextRef": {
"$ref": "#/$defs/Id"
},
"color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"defaultPortraitRef": {
"$ref": "#/$defs/Id"
},
"emotions": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/Emotion"
}
}
},
"required": [
"id",
"name",
"key",
"nameTextRef",
"color",
"emotions"
],
"additionalProperties": false,
"title": "ContentCharacter"
}
ContentCommandDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
category | string · obligatorio | Categoría del catálogo utilizada para organizar la definición. |
inputs | Array<ParameterDefinition> · obligatorio | Entradas de la firma, con nombre y tipo. |
outcomes | Array<OutcomeDefinition> · obligatorio | Posibles resultados del comando, con sus nombres, contratos y asociaciones.
{"minItems":1} |
description | string | Descripción escrita por el autor; no es una instrucción ejecutable. |
Schema · ContentCommandDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"category": {
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/$defs/ParameterDefinition"
}
},
"outcomes": {
"type": "array",
"items": {
"$ref": "#/$defs/OutcomeDefinition"
},
"minItems": 1
},
"description": {
"type": "string"
}
},
"required": [
"id",
"name",
"key",
"category",
"inputs",
"outcomes"
],
"additionalProperties": false,
"title": "ContentCommandDefinition"
}
ContentItemDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
nameTextRef | Id · obligatorio | ID de texto para el nombre localizado. |
descriptionTextRef | Id | ID de texto para la descripción localizada. |
iconAssetRef | Id | Identificador de recurso para un icono del catálogo. |
Schema · ContentItemDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"nameTextRef": {
"$ref": "#/$defs/Id"
},
"descriptionTextRef": {
"$ref": "#/$defs/Id"
},
"iconAssetRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name",
"key",
"nameTextRef"
],
"additionalProperties": false,
"title": "ContentItemDefinition"
}
ContentLocationDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
nameTextRef | Id · obligatorio | ID de texto para el nombre localizado. |
descriptionTextRef | Id | ID de texto para la descripción localizada. |
previewAssetRef | Id | Identificador de recurso para una vista previa. |
Schema · ContentLocationDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"nameTextRef": {
"$ref": "#/$defs/Id"
},
"descriptionTextRef": {
"$ref": "#/$defs/Id"
},
"previewAssetRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name",
"key",
"nameTextRef"
],
"additionalProperties": false,
"title": "ContentLocationDefinition"
}
ContentMinigameDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
nameTextRef | Id | ID de texto para el nombre localizado. |
commandRef | Id · obligatorio | ID del comando del juego para ejecutar. |
Schema · ContentMinigameDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"nameTextRef": {
"$ref": "#/$defs/Id"
},
"commandRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name",
"key",
"commandRef"
],
"additionalProperties": false,
"title": "ContentMinigameDefinition"
}
ContentQuestDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
titleTextRef | Id · obligatorio | ID de texto de un título localizado. |
descriptionTextRef | Id | ID de texto para la descripción localizada. |
objectiveDefinitions | Array<QuestObjective> · obligatorio | Identificador de objetivo de misión → definición del objetivo. |
Schema · ContentQuestDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"titleTextRef": {
"$ref": "#/$defs/Id"
},
"descriptionTextRef": {
"$ref": "#/$defs/Id"
},
"objectiveDefinitions": {
"type": "array",
"items": {
"$ref": "#/$defs/QuestObjective"
}
}
},
"required": [
"id",
"name",
"key",
"titleTextRef",
"objectiveDefinitions"
],
"additionalProperties": false,
"title": "ContentQuestDefinition"
}
ContentTextEntry
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
key | Key | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
category | string · obligatorio | Categoría del catálogo utilizada para organizar la definición. |
sourceMessage | Mensaje · obligatorio | Mensaje original compuesto por segmentos de texto y marcadores de posición. |
placeholders | object · obligatorio | Clave del marcador de posición → definición del tipo y formato.
{"additionalProperties":{"$ref":"#/$defs/PlaceholderDefinition"}} |
placeholders[key] | PlaceholderDefinition | Ver tipo y esquema para estructura y valores válidos. |
externalUse | boolean · obligatorio | Marca un texto utilizado fuera del grafo de nodos. |
Schema · ContentTextEntry
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"key": {
"$ref": "#/$defs/Key"
},
"category": {
"type": "string"
},
"sourceMessage": {
"$ref": "#/$defs/Message"
},
"placeholders": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/PlaceholderDefinition"
}
},
"externalUse": {
"type": "boolean"
}
},
"required": [
"id",
"category",
"sourceMessage",
"placeholders",
"externalUse"
],
"additionalProperties": false,
"title": "ContentTextEntry"
}
ContentVariableDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
key | Key · obligatorio | Clave legible y estable; los identificadores siguen siendo las referencias técnicas. |
valueType | ScalarType · obligatorio | Contrato de valor previsto, incluidos posibles tipos de entidades. |
defaultValue | ScalarValue · obligatorio | Valor inicial o predeterminado con su tipo. |
description | string | Descripción escrita por el autor; no es una instrucción ejecutable. |
Schema · ContentVariableDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"key": {
"$ref": "#/$defs/Key"
},
"valueType": {
"$ref": "#/$defs/ScalarType"
},
"defaultValue": {
"$ref": "#/$defs/ScalarValue"
},
"description": {
"type": "string"
}
},
"required": [
"id",
"name",
"key",
"valueType",
"defaultValue"
],
"additionalProperties": false,
"title": "ContentVariableDefinition"
}
Emotion
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
portraitRef | Id | Recurso de retrato para una emoción; no se incluye en la exportación genérica. |
Schema · Emotion
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"portraitRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false,
"title": "Emotion"
}
EntityType
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · EntityType
{
"type": "string",
"enum": [
"item",
"quest",
"location",
"minigame",
"asset"
],
"title": "EntityType"
}
EntryRef
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
entryRef | Id · obligatorio | ID de entrada dentro del flujo especificado. |
Schema · EntryRef
{
"type": "object",
"properties": {
"flowRef": {
"$ref": "#/$defs/Id"
},
"entryRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"flowRef",
"entryRef"
],
"additionalProperties": false,
"title": "EntryRef"
}
ExecutableChoiceOption
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
text | ExecutableTextUse · obligatorio | Para segmentos de texto: contenido literal. Para usos del texto: textRef y bindings. |
condition | ExecutableCondition | Condición evaluada antes de ramificar o habilitar una opción. |
effects | Array<ExecutableEffect> · obligatorio | Efectos sobre el estado aplicados en orden por el nodo de acción. |
continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
Schema · ExecutableChoiceOption
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"text": {
"$ref": "#/$defs/ExecutableTextUse"
},
"condition": {
"$ref": "#/$defs/ExecutableCondition"
},
"effects": {
"type": "array",
"items": {
"$ref": "#/$defs/ExecutableEffect"
}
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"id",
"text",
"effects",
"continuation"
],
"additionalProperties": false,
"title": "ExecutableChoiceOption"
}
ExecutableCondition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].kind | "compare" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].left | ExecutableOperand · obligatorio | Operando izquierdo tipado de la comparación. |
[oneOf 1].operator | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" · obligatorio | Operador de comparación o lógico; las variantes indican los valores permitidos. |
[oneOf 1].right | ExecutableOperand · obligatorio | Operando derecho tipado de la comparación. |
[oneOf 2].kind | "all" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 2].children | Array<ExecutableCondition> · obligatorio | Condiciones hijas de una expresión compuesta. |
[oneOf 3].kind | "any" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 3].children | Array<ExecutableCondition> · obligatorio | Condiciones hijas de una expresión compuesta. |
[oneOf 4].kind | "not" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 4].child | ExecutableCondition · obligatorio | Condición hija de un operador unario. |
Schema · ExecutableCondition
{
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "compare"
},
"left": {
"$ref": "#/$defs/ExecutableOperand"
},
"operator": {
"type": "string",
"enum": [
"eq",
"ne",
"lt",
"lte",
"gt",
"gte"
]
},
"right": {
"$ref": "#/$defs/ExecutableOperand"
}
},
"required": [
"kind",
"left",
"operator",
"right"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "all"
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/ExecutableCondition"
}
}
},
"required": [
"kind",
"children"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "any"
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/ExecutableCondition"
}
}
},
"required": [
"kind",
"children"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "not"
},
"child": {
"$ref": "#/$defs/ExecutableCondition"
}
},
"required": [
"kind",
"child"
],
"additionalProperties": false
}
],
"title": "ExecutableCondition"
}
ExecutableContinuation
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].kind | "node" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].nodeRef | Id · obligatorio | Identificador del siguiente nodo ejecutable. |
[oneOf 2].kind | "end" · obligatorio | Discriminador que selecciona la variante válida. |
Schema · ExecutableContinuation
{
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "node"
},
"nodeRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"kind",
"nodeRef"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "end"
}
},
"required": [
"kind"
],
"additionalProperties": false
}
],
"title": "ExecutableContinuation"
}
ExecutableEffect
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].kind | "set" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].variableRef | Id · obligatorio | ID de la variable para leer o escribir. |
[oneOf 1].value | ExecutableOperand · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
[oneOf 2].kind | "add" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 2].variableRef | Id · obligatorio | ID de la variable para leer o escribir. |
[oneOf 2].value | ExecutableOperand · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
[oneOf 3].kind | "subtract" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 3].variableRef | Id · obligatorio | ID de la variable para leer o escribir. |
[oneOf 3].value | ExecutableOperand · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
Schema · ExecutableEffect
{
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "set"
},
"variableRef": {
"$ref": "#/$defs/Id"
},
"value": {
"$ref": "#/$defs/ExecutableOperand"
}
},
"required": [
"kind",
"variableRef",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "add"
},
"variableRef": {
"$ref": "#/$defs/Id"
},
"value": {
"$ref": "#/$defs/ExecutableOperand"
}
},
"required": [
"kind",
"variableRef",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "subtract"
},
"variableRef": {
"$ref": "#/$defs/Id"
},
"value": {
"$ref": "#/$defs/ExecutableOperand"
}
},
"required": [
"kind",
"variableRef",
"value"
],
"additionalProperties": false
}
],
"title": "ExecutableEffect"
}
ExecutableEmptyChoice
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].kind | "continue" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
[oneOf 2].kind | "fault" · obligatorio | Discriminador que selecciona la variante válida. |
Schema · ExecutableEmptyChoice
{
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "continue"
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"kind",
"continuation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "fault"
}
},
"required": [
"kind"
],
"additionalProperties": false
}
],
"title": "ExecutableEmptyChoice"
}
ExecutableNode
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 1].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 1].kind | "dialogue" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].text | ExecutableTextUse · obligatorio | Para segmentos de texto: contenido literal. Para usos del texto: textRef y bindings. |
[oneOf 1].speakerRef | Id | Identificador del personaje que habla; su ausencia indica que no hay un personaje asignado. |
[oneOf 1].emotionRef | Id | Emoción del personaje seleccionada para este diálogo. |
[oneOf 1].continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
[oneOf 2].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 2].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 2].kind | "choice" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 2].optionOrder | Array<Id> · obligatorio | Identificadores de las opciones en su orden de presentación. |
[oneOf 2].options | object · obligatorio | Identificador de opción → opción con texto, condición y continuación.
{"additionalProperties":{"$ref":"#/$defs/ExecutableChoiceOption"}} |
[oneOf 2].options[key] | ExecutableChoiceOption | Ver tipo y esquema para estructura y valores válidos. |
[oneOf 2].whenEmpty | ExecutableEmptyChoice · obligatorio | Comportamiento cuando no hay opción de elección disponible. |
[oneOf 3].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 3].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 3].kind | "branch" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 3].condition | ExecutableCondition · obligatorio | Condición evaluada antes de ramificar o habilitar una opción. |
[oneOf 3].whenTrue | ExecutableContinuation · obligatorio | Continuación cuando la condición es verdadera. |
[oneOf 3].whenFalse | ExecutableContinuation · obligatorio | Continuación cuando la condición es falsa. |
[oneOf 4].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 4].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 4].kind | "action" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 4].effects | Array<ExecutableEffect> · obligatorio | Efectos sobre el estado aplicados en orden por el nodo de acción. |
[oneOf 4].continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
[oneOf 5].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 5].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 5].kind | "command" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 5].commandRef | Id · obligatorio | ID del comando del juego para ejecutar. |
[oneOf 5].arguments | object · obligatorio | Valores de los argumentos con nombre que se pasan a la llamada.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOperand"}} |
[oneOf 5].arguments[key] | ExecutableOperand | Ver tipo y esquema para estructura y valores válidos. |
[oneOf 5].outcomes | object · obligatorio | Posibles resultados del comando, con sus nombres, contratos y asociaciones.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOutcomeBinding"}} |
[oneOf 5].outcomes[key] | ExecutableOutcomeBinding | Ver tipo y esquema para estructura y valores válidos. |
[oneOf 6].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 6].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 6].kind | "jump" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 6].target | EntryRef · obligatorio | Referencia de destino tipada, como una variable o una entrada; consulta la variante para conocer su estructura exacta. |
[oneOf 7].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 7].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 7].kind | "end" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 8].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 8].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 8].kind | "call" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 8].target | EntryRef · obligatorio | Referencia de destino tipada, como una variable o una entrada; consulta la variante para conocer su estructura exacta. |
[oneOf 8].continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
[oneOf 9].id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
[oneOf 9].flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
[oneOf 9].kind | "return" · obligatorio | Discriminador que selecciona la variante válida. |
Schema · ExecutableNode
{
"oneOf": [
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "dialogue"
},
"text": {
"$ref": "#/$defs/ExecutableTextUse"
},
"speakerRef": {
"$ref": "#/$defs/Id"
},
"emotionRef": {
"$ref": "#/$defs/Id"
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"id",
"flowRef",
"kind",
"text",
"continuation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "choice"
},
"optionOrder": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"uniqueItems": true
},
"options": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ExecutableChoiceOption"
}
},
"whenEmpty": {
"$ref": "#/$defs/ExecutableEmptyChoice"
}
},
"required": [
"id",
"flowRef",
"kind",
"optionOrder",
"options",
"whenEmpty"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "branch"
},
"condition": {
"$ref": "#/$defs/ExecutableCondition"
},
"whenTrue": {
"$ref": "#/$defs/ExecutableContinuation"
},
"whenFalse": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"id",
"flowRef",
"kind",
"condition",
"whenTrue",
"whenFalse"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "action"
},
"effects": {
"type": "array",
"items": {
"$ref": "#/$defs/ExecutableEffect"
}
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"id",
"flowRef",
"kind",
"effects",
"continuation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "command"
},
"commandRef": {
"$ref": "#/$defs/Id"
},
"arguments": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ExecutableOperand"
}
},
"outcomes": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ExecutableOutcomeBinding"
}
}
},
"required": [
"id",
"flowRef",
"kind",
"commandRef",
"arguments",
"outcomes"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "jump"
},
"target": {
"$ref": "#/$defs/EntryRef"
}
},
"required": [
"id",
"flowRef",
"kind",
"target"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "end"
}
},
"required": [
"id",
"flowRef",
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "call"
},
"target": {
"$ref": "#/$defs/EntryRef"
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"id",
"flowRef",
"kind",
"target",
"continuation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"kind": {
"const": "return"
}
},
"required": [
"id",
"flowRef",
"kind"
],
"additionalProperties": false
}
],
"title": "ExecutableNode"
}
ExecutableOperand
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].kind | "literal" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 1].value | TypedValue · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
[oneOf 2].kind | "variable" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 2].variableRef | Id · obligatorio | ID de la variable para leer o escribir. |
Schema · ExecutableOperand
{
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "literal"
},
"value": {
"$ref": "#/$defs/TypedValue"
}
},
"required": [
"kind",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "variable"
},
"variableRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"kind",
"variableRef"
],
"additionalProperties": false
}
],
"title": "ExecutableOperand"
}
ExecutableOutcomeBinding
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
resultBindings | object · obligatorio | Nombre del resultado del comando → variable de destino para el valor devuelto.
{"additionalProperties":{"$ref":"#/$defs/Id"}} |
resultBindings[key] | Id | Ver tipo y esquema para estructura y valores válidos. |
continuation | ExecutableContinuation · obligatorio | Continuación después de que el nodo termine. |
Schema · ExecutableOutcomeBinding
{
"type": "object",
"properties": {
"resultBindings": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/Id"
}
},
"continuation": {
"$ref": "#/$defs/ExecutableContinuation"
}
},
"required": [
"resultBindings",
"continuation"
],
"additionalProperties": false,
"title": "ExecutableOutcomeBinding"
}
ExecutableStory
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
format | "vnle.story" · obligatorio | Identificador de formato exacto para este contenedor de datos. |
containerVersion | 1 · obligatorio | Versión entera del contenedor de la historia; actualmente 1. |
storyBuildId | Hash · obligatorio | SHA-256 de los datos de ejecución canónicos; cambiar solo el contenido no lo modifica. |
execution | ExecutionContract · obligatorio | Contrato de ejecución tipado. |
content | object · obligatorio | Datos de idioma y catálogo separados de la ejecución.
{"additionalProperties":false} |
content.sourceLocale | Locale · obligatorio | Idioma original de los textos, utilizado también cuando falta una traducción. |
content.locales | Array<Locale> · obligatorio | Idiomas declarados en la exportación, incluido el original.
{"minItems":1} |
content.fallbackPolicy | FallbackPolicy · obligatorio | Actualmente source: las traducciones ausentes utilizan el texto original. |
content.texts | object · obligatorio | ID de texto → mensaje fuente, marcadores de posición y metadatos.
{"additionalProperties":{"$ref":"#/$defs/ContentTextEntry"}} |
content.texts[key] | ContentTextEntry | Ver tipo y esquema para estructura y valores válidos. |
content.translations | object · obligatorio | Idioma → identificador de texto → traducción; si falta una entrada, se usa el texto original.
{"additionalProperties":{"type":"object","propertyNames":{"pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"additionalProperties":{"$ref":"#/$defs/Translation"},"minProperties":1}} |
content.translations[key] | object | Ver tipo y esquema para estructura y valores válidos. |
content.characters | object · obligatorio | Identificador de personaje → personaje con nombres localizados y emociones.
{"additionalProperties":{"$ref":"#/$defs/ContentCharacter"}} |
content.characters[key] | ContentCharacter | Ver tipo y esquema para estructura y valores válidos. |
content.quests | object · obligatorio | Identificador de misión → definición de la misión con sus objetivos.
{"additionalProperties":{"$ref":"#/$defs/ContentQuestDefinition"}} |
content.quests[key] | ContentQuestDefinition | Ver tipo y esquema para estructura y valores válidos. |
content.items | object · obligatorio | Identificador de objeto → definición del objeto.
{"additionalProperties":{"$ref":"#/$defs/ContentItemDefinition"}} |
content.items[key] | ContentItemDefinition | Ver tipo y esquema para estructura y valores válidos. |
content.locations | object · obligatorio | ID de ubicación → definición de ubicación.
{"additionalProperties":{"$ref":"#/$defs/ContentLocationDefinition"}} |
content.locations[key] | ContentLocationDefinition | Ver tipo y esquema para estructura y valores válidos. |
content.minigames | object · obligatorio | Identificador de minijuego → definición; el juego anfitrión implementa su funcionamiento.
{"additionalProperties":{"$ref":"#/$defs/ContentMinigameDefinition"}} |
content.minigames[key] | ContentMinigameDefinition | Ver tipo y esquema para estructura y valores válidos. |
content.assets | object · obligatorio | Identificador de recurso → definición del contenido multimedia; la exportación genérica no proporciona actualmente recursos ya resueltos para un motor.
{"additionalProperties":{"$ref":"#/$defs/ContentAsset"}} |
content.assets[key] | ContentAsset | Ver tipo y esquema para estructura y valores válidos. |
content.variableDefinitions | object · obligatorio | Definiciones de las variables creadas por el autor, con sus nombres y referencias de texto.
{"additionalProperties":{"$ref":"#/$defs/ContentVariableDefinition"}} |
content.variableDefinitions[key] | ContentVariableDefinition | Ver tipo y esquema para estructura y valores válidos. |
content.commandDefinitions | object · obligatorio | Definiciones de los comandos creados por el autor, incluidas sus referencias de texto.
{"additionalProperties":{"$ref":"#/$defs/ContentCommandDefinition"}} |
content.commandDefinitions[key] | ContentCommandDefinition | Ver tipo y esquema para estructura y valores válidos. |
Schema · ExecutableStory
{
"type": "object",
"properties": {
"format": {
"const": "vnle.story"
},
"containerVersion": {
"const": 1
},
"storyBuildId": {
"$ref": "#/$defs/Hash"
},
"execution": {
"$ref": "#/$defs/ExecutionContract"
},
"content": {
"type": "object",
"properties": {
"sourceLocale": {
"$ref": "#/$defs/Locale"
},
"locales": {
"type": "array",
"items": {
"$ref": "#/$defs/Locale"
},
"minItems": 1,
"uniqueItems": true
},
"fallbackPolicy": {
"$ref": "#/$defs/FallbackPolicy"
},
"texts": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentTextEntry"
}
},
"translations": {
"type": "object",
"propertyNames": {
"pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$"
},
"additionalProperties": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/Translation"
},
"minProperties": 1
}
},
"characters": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentCharacter"
}
},
"quests": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentQuestDefinition"
}
},
"items": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentItemDefinition"
}
},
"locations": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentLocationDefinition"
}
},
"minigames": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentMinigameDefinition"
}
},
"assets": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentAsset"
}
},
"variableDefinitions": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentVariableDefinition"
}
},
"commandDefinitions": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ContentCommandDefinition"
}
}
},
"required": [
"sourceLocale",
"locales",
"fallbackPolicy",
"texts",
"translations",
"characters",
"quests",
"items",
"locations",
"minigames",
"assets",
"variableDefinitions",
"commandDefinitions"
],
"additionalProperties": false
}
},
"required": [
"format",
"containerVersion",
"storyBuildId",
"execution",
"content"
],
"additionalProperties": false,
"title": "ExecutableStory"
}
ExecutableTextUse
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
textRef | Id · obligatorio | Referencia a content.texts y a su contrato de texto. |
bindings | object · obligatorio | Nombre del marcador de posición o parámetro → operando tipado.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOperand"}} |
bindings[key] | ExecutableOperand | Ver tipo y esquema para estructura y valores válidos. |
Schema · ExecutableTextUse
{
"type": "object",
"properties": {
"textRef": {
"$ref": "#/$defs/Id"
},
"bindings": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ExecutableOperand"
}
}
},
"required": [
"textRef",
"bindings"
],
"additionalProperties": false,
"title": "ExecutableTextUse"
}
ExecutionContract
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
format | "vnle.execution" · obligatorio | Identificador de formato exacto para este contenedor de datos. |
contractVersion | RuntimeVersion · obligatorio | Versión de compatibilidad de ejecución: mayor y menor. |
projectId | Id · obligatorio | ID estable del proyecto fuente. |
requiredCapabilities | Array<Capability> · obligatorio | Capacidades que un adaptador de ejecución completo debe comprobar antes de empezar. |
limits | object · obligatorio | Límites para la ejecución automática y la recursión.
{"additionalProperties":false} |
limits.maxAutomaticTransitions | 1000 · obligatorio | Número máximo de transiciones automáticas sin intervención del usuario. |
limits.maxConditionDepth | 32 · obligatorio | Profundidad máxima de anidamiento de condiciones. |
limits.maxConditionTerms | 1024 · obligatorio | Número máximo de términos en las condiciones. |
limits.maxCallDepth | 32 · obligatorio | Profundidad máxima de llamadas anidadas a subhistorias. |
entries | object · obligatorio | ID de entrada → flujo y referencia de nodos.
{"additionalProperties":{"$ref":"#/$defs/RuntimeEntry"}} |
entries[key] | RuntimeEntry | Ver tipo y esquema para estructura y valores válidos. |
nodes | object · obligatorio | Identificador de nodo → nodo ejecutable; kind determina sus campos.
{"additionalProperties":{"$ref":"#/$defs/ExecutableNode"}} |
nodes[key] | ExecutableNode | Ver tipo y esquema para estructura y valores válidos. |
variables | object · obligatorio | Identificador de variable → definición tipada de la variable de ejecución.
{"additionalProperties":{"$ref":"#/$defs/RuntimeVariable"}} |
variables[key] | RuntimeVariable | Ver tipo y esquema para estructura y valores válidos. |
commands | object · obligatorio | Identificador de comando → firma de ejecución tipada.
{"additionalProperties":{"$ref":"#/$defs/RuntimeSignature"}} |
commands[key] | RuntimeSignature | Ver tipo y esquema para estructura y valores válidos. |
textContracts | object · obligatorio | Identificador de texto → contratos de marcadores de posición requeridos por la ejecución.
{"additionalProperties":{"$ref":"#/$defs/PlaceholderContract"}} |
textContracts[key] | PlaceholderContract | Ver tipo y esquema para estructura y valores válidos. |
Schema · ExecutionContract
{
"type": "object",
"properties": {
"format": {
"const": "vnle.execution"
},
"contractVersion": {
"$ref": "#/$defs/RuntimeVersion"
},
"projectId": {
"$ref": "#/$defs/Id"
},
"requiredCapabilities": {
"type": "array",
"items": {
"$ref": "#/$defs/Capability"
},
"uniqueItems": true
},
"limits": {
"type": "object",
"properties": {
"maxAutomaticTransitions": {
"const": 1000
},
"maxConditionDepth": {
"const": 32
},
"maxConditionTerms": {
"const": 1024
},
"maxCallDepth": {
"const": 32
}
},
"required": [
"maxAutomaticTransitions",
"maxConditionDepth",
"maxConditionTerms",
"maxCallDepth"
],
"additionalProperties": false
},
"entries": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/RuntimeEntry"
}
},
"nodes": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ExecutableNode"
}
},
"variables": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/RuntimeVariable"
}
},
"commands": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/RuntimeSignature"
}
},
"textContracts": {
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/PlaceholderContract"
}
}
},
"required": [
"format",
"contractVersion",
"projectId",
"requiredCapabilities",
"limits",
"entries",
"nodes",
"variables",
"commands",
"textContracts"
],
"additionalProperties": false,
"title": "ExecutionContract"
}
FallbackPolicy
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · FallbackPolicy
{
"type": "string",
"enum": [
"block",
"source"
],
"title": "FallbackPolicy"
}
Hash
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · Hash
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$",
"title": "Hash"
}
Id
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · Id
{
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"title": "Id"
}
Key
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · Key
{
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,127}$",
"title": "Key"
}
Locale
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · Locale
{
"type": "string",
"pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
"title": "Locale"
}
Mensaje
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
kind | "segments" · obligatorio | Discriminador que selecciona la variante válida. |
segments | Array<object | object> · obligatorio | Segmentos de texto y marcadores de posición del mensaje, en orden. |
Schema · Message
{
"type": "object",
"properties": {
"kind": {
"const": "segments"
},
"segments": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "text"
},
"text": {
"type": "string"
}
},
"required": [
"kind",
"text"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"const": "placeholder"
},
"placeholderRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"kind",
"placeholderRef"
],
"additionalProperties": false
}
]
}
}
},
"required": [
"kind",
"segments"
],
"additionalProperties": false,
"title": "Message"
}
OutcomeDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
results | Array<ResultDefinition> · obligatorio | Valores de resultado con nombre y tipo para una salida. |
Schema · OutcomeDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/ResultDefinition"
}
}
},
"required": [
"id",
"name",
"results"
],
"additionalProperties": false,
"title": "OutcomeDefinition"
}
ParameterDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
valueType | ValueType · obligatorio | Contrato de valor previsto, incluidos posibles tipos de entidades. |
defaultValue | TypedValue | Valor inicial o predeterminado con su tipo. |
Schema · ParameterDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"valueType": {
"$ref": "#/$defs/ValueType"
},
"defaultValue": {
"$ref": "#/$defs/TypedValue"
}
},
"required": [
"id",
"name",
"valueType"
],
"additionalProperties": false,
"title": "ParameterDefinition"
}
PlaceholderContract
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
map[key] | ScalarType | Ver tipo y esquema para estructura y valores válidos. |
Schema · PlaceholderContract
{
"type": "object",
"propertyNames": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"additionalProperties": {
"$ref": "#/$defs/ScalarType"
},
"title": "PlaceholderContract"
}
PlaceholderDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
displayName | string · obligatorio | Nombre visible y legible del recurso. |
valueType | ScalarType · obligatorio | Contrato de valor previsto, incluidos posibles tipos de entidades. |
Schema · PlaceholderDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"displayName": {
"type": "string"
},
"valueType": {
"$ref": "#/$defs/ScalarType"
}
},
"required": [
"id",
"displayName",
"valueType"
],
"additionalProperties": false,
"title": "PlaceholderDefinition"
}
QuestObjective
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
labelTextRef | Id · obligatorio | ID de texto de la etiqueta localizada. |
descriptionTextRef | Id | ID de texto para la descripción localizada. |
Schema · QuestObjective
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"labelTextRef": {
"$ref": "#/$defs/Id"
},
"descriptionTextRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"labelTextRef"
],
"additionalProperties": false,
"title": "QuestObjective"
}
RelativePath
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · RelativePath
{
"type": "string",
"minLength": 1,
"maxLength": 1024,
"title": "RelativePath"
}
ResultDefinition
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
name | string · obligatorio | Nombre definido por el autor; no lo uses como clave de referencia. |
valueType | ValueType · obligatorio | Contrato de valor previsto, incluidos posibles tipos de entidades. |
Schema · ResultDefinition
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"valueType": {
"$ref": "#/$defs/ValueType"
}
},
"required": [
"id",
"name",
"valueType"
],
"additionalProperties": false,
"title": "ResultDefinition"
}
RuntimeEntry
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
flowRef | Id · obligatorio | Identificador de escena o subhistoria. |
nodeRef | Id · obligatorio | Identificador del siguiente nodo ejecutable. |
Schema · RuntimeEntry
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"flowRef": {
"$ref": "#/$defs/Id"
},
"nodeRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"flowRef",
"nodeRef"
],
"additionalProperties": false,
"title": "RuntimeEntry"
}
RuntimeSignature
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
inputs | Array<object> · obligatorio | Entradas de la firma, con nombre y tipo. |
outcomes | Array<object> · obligatorio | Posibles resultados del comando, con sus nombres, contratos y asociaciones.
{"minItems":1} |
Schema · RuntimeSignature
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"inputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"valueType": {
"$ref": "#/$defs/ValueType"
},
"defaultValue": {
"$ref": "#/$defs/TypedValue"
}
},
"required": [
"id",
"valueType"
],
"additionalProperties": false
}
},
"outcomes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"valueType": {
"$ref": "#/$defs/ValueType"
}
},
"required": [
"id",
"valueType"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"results"
],
"additionalProperties": false
},
"minItems": 1
}
},
"required": [
"id",
"inputs",
"outcomes"
],
"additionalProperties": false,
"title": "RuntimeSignature"
}
RuntimeVariable
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
id | Id · obligatorio | Identificador estable; los nombres visibles no son claves. |
valueType | ScalarType · obligatorio | Contrato de valor previsto, incluidos posibles tipos de entidades. |
defaultValue | ScalarValue · obligatorio | Valor inicial o predeterminado con su tipo. |
Schema · RuntimeVariable
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"valueType": {
"$ref": "#/$defs/ScalarType"
},
"defaultValue": {
"$ref": "#/$defs/ScalarValue"
}
},
"required": [
"id",
"valueType",
"defaultValue"
],
"additionalProperties": false,
"title": "RuntimeVariable"
}
RuntimeVersion
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
major | 1 · obligatorio | Versión principal incompatible; rechazar versiones no compatibles. |
minor | 1 · obligatorio | Versión de extensión dentro de la versión principal. |
Schema · RuntimeVersion
{
"type": "object",
"properties": {
"major": {
"const": 1
},
"minor": {
"const": 1
}
},
"required": [
"major",
"minor"
],
"additionalProperties": false,
"title": "RuntimeVersion"
}
ScalarType
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
Schema · ScalarType
{
"type": "string",
"enum": [
"boolean",
"integer",
"string"
],
"title": "ScalarType"
}
ScalarValue
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 1].type | "boolean" · obligatorio | Discriminador de tipo; los valores permitidos dependen del esquema que lo contiene. |
[oneOf 1].value | boolean · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
[oneOf 2].type | "integer" · obligatorio | Discriminador de tipo; los valores permitidos dependen del esquema que lo contiene. |
[oneOf 2].value | integer · obligatorio | Valor literal; debe coincidir con el tipo declarado.
{"minimum":-2147483648,"maximum":2147483647} |
[oneOf 3].type | "string" · obligatorio | Discriminador de tipo; los valores permitidos dependen del esquema que lo contiene. |
[oneOf 3].value | string · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
Schema · ScalarValue
{
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"const": "boolean"
},
"value": {
"type": "boolean"
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "integer"
},
"value": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "string"
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
}
],
"title": "ScalarValue"
}
Translation
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
textRef | Id · obligatorio | Referencia a content.texts y a su contrato de texto. |
locale | Locale · obligatorio | Código de idioma de esta entrada de traducción. |
message | Mensaje · obligatorio | Mensaje traducido que respeta el contrato de los marcadores de posición. |
allowEmpty | boolean · obligatorio | Permitir una traducción intencionalmente vacía. |
workflowStatus | "draft" | "translated" | "reviewed" · obligatorio | Estado de flujo de trabajo de traducción, no una rama de tiempo de ejecución. |
basedOnSourceFingerprint | Hash · obligatorio | Versión del original utilizada por esta traducción; si no coincide, la traducción está desactualizada. |
reviewedContextFingerprint | Hash | Huella del contexto correspondiente al estado revisado de la traducción. |
origin | "ai" | Ver tipo y esquema para estructura y valores válidos. |
Schema · Translation
{
"type": "object",
"properties": {
"textRef": {
"$ref": "#/$defs/Id"
},
"locale": {
"$ref": "#/$defs/Locale"
},
"message": {
"$ref": "#/$defs/Message"
},
"allowEmpty": {
"type": "boolean"
},
"workflowStatus": {
"type": "string",
"enum": [
"draft",
"translated",
"reviewed"
]
},
"basedOnSourceFingerprint": {
"$ref": "#/$defs/Hash"
},
"reviewedContextFingerprint": {
"$ref": "#/$defs/Hash"
},
"origin": {
"const": "ai"
}
},
"required": [
"textRef",
"locale",
"message",
"allowEmpty",
"workflowStatus",
"basedOnSourceFingerprint"
],
"additionalProperties": false,
"title": "Translation"
}
TypedValue
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 2].type | "reference" · obligatorio | Discriminador de tipo; los valores permitidos dependen del esquema que lo contiene. |
[oneOf 2].entityType | EntityType · obligatorio | Tipo de catálogo para una referencia de entidad. |
[oneOf 2].value | Id · obligatorio | Valor literal; debe coincidir con el tipo declarado. |
Schema · TypedValue
{
"oneOf": [
{
"$ref": "#/$defs/ScalarValue"
},
{
"type": "object",
"properties": {
"type": {
"const": "reference"
},
"entityType": {
"$ref": "#/$defs/EntityType"
},
"value": {
"$ref": "#/$defs/Id"
}
},
"required": [
"type",
"entityType",
"value"
],
"additionalProperties": false
}
],
"title": "TypedValue"
}
ValueType
| Campo | Tipo / obligatorio | Significado / reglas |
|---|
[oneOf 2].kind | "reference" · obligatorio | Discriminador que selecciona la variante válida. |
[oneOf 2].entityType | EntityType · obligatorio | Tipo de catálogo para una referencia de entidad. |
Schema · ValueType
{
"oneOf": [
{
"$ref": "#/$defs/ScalarType"
},
{
"type": "object",
"properties": {
"kind": {
"const": "reference"
},
"entityType": {
"$ref": "#/$defs/EntityType"
}
},
"required": [
"kind",
"entityType"
],
"additionalProperties": false
}
],
"title": "ValueType"
}