Podręcznik VNLE
Opis pól JSON
Wykonanie i treść
format i containerVersion określają format kontenera. execution zawiera punkty wejścia i węzły; content — teksty, tłumaczenia i katalogi. UUID łączą tabele. Nie wyszukuj odwołań według wyświetlanych nazw. JSON nie dopuszcza komentarzy: objaśnienia są osobno, aby przykład pozostał poprawnym JSON.
// 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
Przełączanie języka i brakujące tłumaczenia
Przechowuj język oddzielnie od bieżącego węzła. Po zmianie ponownie odczytaj ten sam textRef: użyj tłumaczenia dla locale, jeśli istnieje, lub sourceMessage. Brak tabeli języka oznacza brak tłumaczeń. allowEmpty obsługuje celowo pusty tekst. Formatuj podstawiane wartości zgodnie z ich typami; nie wyświetlaj surowego JSON jako tekstu. Odciski źródła pozwalają wykrywać nieaktualne tłumaczenia; sam workflowStatus nie potwierdza aktualności.
Poniżej opisano wszystkie definicje dostępne w aktualnym schemacie eksportu historii: właściwości, warianty i ograniczenia. „Schema” pokazuje także reguły zagnieżdżone. Dodatkowe pola są odrzucane tam, gdzie additionalProperties ma wartość false.
JSON Schema · Draft 2020-12
Capability
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · Capability
{
"type": "string",
"pattern": "^[a-z][a-z0-9.-]*$",
"title": "Capability"
}
ContentAsset
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
mediaType | string · wymagane | Typ MIME treści medialnej. |
relativePath | RelativePath · wymagane | Sprawdzona względna ścieżka zasobu; przed użyciem jako ścieżki systemu plików wymaga kontroli. |
contentHash | Hash · wymagane | SHA-256 bajtów wskazanego pliku multimedialnego. |
displayName | string · wymagane | Czytelna nazwa zasobu. |
licenseNote | string | Informacja o licencji zasobu; nie jest automatycznie weryfikowana prawnie. |
width | integer | Strukturę i dozwolone wartości określają typ i schemat.
{"minimum":0,"maximum":2147483647} |
height | integer | Strukturę i dozwolone wartości określają typ i schemat.
{"minimum":0,"maximum":2147483647} |
byteSize | integer | Strukturę i dozwolone wartości określają typ i schemat.
{"minimum":0,"maximum":2147483647} |
originalName | string | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
nameTextRef | Id · wymagane | Identyfikator tekstu dla nazwy lokalizowanej. |
color | string · wymagane | Kolor wyświetlania postaci, nie wartość używana przez logikę.
{"pattern":"^#[0-9a-fA-F]{6}$"} |
defaultPortraitRef | Id | Domyślny zasób portretu postaci; pomijany w eksporcie ogólnym. |
emotions | object · wymagane | ID emocji → definicja emocji.
{"additionalProperties":{"$ref":"#/$defs/Emotion"}} |
emotions[key] | Emotion | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
category | string · wymagane | Kategoria katalogowa stosowana do organizacji definicji. |
inputs | Array<ParameterDefinition> · wymagane | Nazwane parametry wejściowe sygnatury, z określonymi typami. |
outcomes | Array<OutcomeDefinition> · wymagane | Nazwane możliwe wyniki polecenia oraz ich kontrakty i powiązania.
{"minItems":1} |
description | string | Opis autora; nie jest wykonywalną instrukcją. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
nameTextRef | Id · wymagane | Identyfikator tekstu dla nazwy lokalizowanej. |
descriptionTextRef | Id | ID tekstu przetłumaczonego opisu. |
iconAssetRef | Id | ID zasobu ikony katalogu. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
nameTextRef | Id · wymagane | Identyfikator tekstu dla nazwy lokalizowanej. |
descriptionTextRef | Id | ID tekstu przetłumaczonego opisu. |
previewAssetRef | Id | Identyfikator zasobu podglądu. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
nameTextRef | Id | Identyfikator tekstu dla nazwy lokalizowanej. |
commandRef | Id · wymagane | Identyfikator polecenia gry do wykonania. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
titleTextRef | Id · wymagane | ID tekstu przetłumaczonego tytułu. |
descriptionTextRef | Id | ID tekstu przetłumaczonego opisu. |
objectiveDefinitions | Array<QuestObjective> · wymagane | ID celu zadania → definicja celu. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
key | Key | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
category | string · wymagane | Kategoria katalogowa stosowana do organizacji definicji. |
sourceMessage | Wiadomość · wymagane | Tekst źródłowy złożony z segmentów tekstu i znaczników podstawianych wartości. |
placeholders | object · wymagane | Klucz znacznika podstawianej wartości → definicja typu i formatu.
{"additionalProperties":{"$ref":"#/$defs/PlaceholderDefinition"}} |
placeholders[key] | PlaceholderDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
externalUse | boolean · wymagane | Oznacza tekst używany poza grafem węzłów. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
key | Key · wymagane | Stały, czytelny klucz; odwołania techniczne nadal korzystają z ID. |
valueType | ScalarType · wymagane | Kontrakt oczekiwanej wartości, obejmujący możliwe typy obiektów. |
defaultValue | ScalarValue · wymagane | Wartość początkowa lub domyślna z określonym typem. |
description | string | Opis autora; nie jest wykonywalną instrukcją. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
portraitRef | Id | Zasób portretu dla emocji; pomijany w eksporcie ogólnym. |
Schema · Emotion
{
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string"
},
"portraitRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false,
"title": "Emotion"
}
EntityType
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · EntityType
{
"type": "string",
"enum": [
"item",
"quest",
"location",
"minigame",
"asset"
],
"title": "EntityType"
}
EntryRef
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
entryRef | Id · wymagane | ID punktu wejścia w określonym przebiegu. |
Schema · EntryRef
{
"type": "object",
"properties": {
"flowRef": {
"$ref": "#/$defs/Id"
},
"entryRef": {
"$ref": "#/$defs/Id"
}
},
"required": [
"flowRef",
"entryRef"
],
"additionalProperties": false,
"title": "EntryRef"
}
ExecutableChoiceOption
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
text | ExecutableTextUse · wymagane | Dla segmentów tekstowych: dosłowna treść. Dla użyć tekstu: textRef i powiązania. |
condition | ExecutableCondition | Warunek sprawdzany przed rozgałęzieniem lub udostępnieniem opcji. |
effects | Array<ExecutableEffect> · wymagane | Uporządkowane zmiany stanu wykonywane przez węzeł akcji. |
continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].kind | "compare" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].left | ExecutableOperand · wymagane | Lewy operand porównania z określonym typem. |
[oneOf 1].operator | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" · wymagane | Operator porównania lub operator logiczny; dozwolone wartości podano w wariantach. |
[oneOf 1].right | ExecutableOperand · wymagane | Prawy operand porównania z określonym typem. |
[oneOf 2].kind | "all" · wymagane | Pole rozróżniające warianty. |
[oneOf 2].children | Array<ExecutableCondition> · wymagane | Warunki podrzędne w wyrażeniu złożonym. |
[oneOf 3].kind | "any" · wymagane | Pole rozróżniające warianty. |
[oneOf 3].children | Array<ExecutableCondition> · wymagane | Warunki podrzędne w wyrażeniu złożonym. |
[oneOf 4].kind | "not" · wymagane | Pole rozróżniające warianty. |
[oneOf 4].child | ExecutableCondition · wymagane | Warunek podrzędny operatora jednoargumentowego. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].kind | "node" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].nodeRef | Id · wymagane | Następny identyfikator węzła wykonywalnego. |
[oneOf 2].kind | "end" · wymagane | Pole rozróżniające warianty. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].kind | "set" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].variableRef | Id · wymagane | Identyfikator zmiennej do odczytu lub zapisu. |
[oneOf 1].value | ExecutableOperand · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
[oneOf 2].kind | "add" · wymagane | Pole rozróżniające warianty. |
[oneOf 2].variableRef | Id · wymagane | Identyfikator zmiennej do odczytu lub zapisu. |
[oneOf 2].value | ExecutableOperand · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
[oneOf 3].kind | "subtract" · wymagane | Pole rozróżniające warianty. |
[oneOf 3].variableRef | Id · wymagane | Identyfikator zmiennej do odczytu lub zapisu. |
[oneOf 3].value | ExecutableOperand · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].kind | "continue" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
[oneOf 2].kind | "fault" · wymagane | Pole rozróżniające warianty. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 1].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 1].kind | "dialogue" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].text | ExecutableTextUse · wymagane | Dla segmentów tekstowych: dosłowna treść. Dla użyć tekstu: textRef i powiązania. |
[oneOf 1].speakerRef | Id | ID mówiącej postaci; brak oznacza, że nie przypisano postaci. |
[oneOf 1].emotionRef | Id | Emocja postaci wybrana dla tego dialogu. |
[oneOf 1].continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
[oneOf 2].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 2].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 2].kind | "choice" · wymagane | Pole rozróżniające warianty. |
[oneOf 2].optionOrder | Array<Id> · wymagane | ID opcji w kolejności wyświetlania. |
[oneOf 2].options | object · wymagane | ID opcji → opcja z tekstem, warunkiem i dalszą ścieżką.
{"additionalProperties":{"$ref":"#/$defs/ExecutableChoiceOption"}} |
[oneOf 2].options[key] | ExecutableChoiceOption | Strukturę i dozwolone wartości określają typ i schemat. |
[oneOf 2].whenEmpty | ExecutableEmptyChoice · wymagane | Zachowanie, gdy nie ma opcji wyboru. |
[oneOf 3].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 3].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 3].kind | "branch" · wymagane | Pole rozróżniające warianty. |
[oneOf 3].condition | ExecutableCondition · wymagane | Warunek sprawdzany przed rozgałęzieniem lub udostępnieniem opcji. |
[oneOf 3].whenTrue | ExecutableContinuation · wymagane | Kontynuacja, gdy warunek jest prawdziwy. |
[oneOf 3].whenFalse | ExecutableContinuation · wymagane | Dalsza ścieżka, gdy warunek jest fałszywy. |
[oneOf 4].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 4].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 4].kind | "action" · wymagane | Pole rozróżniające warianty. |
[oneOf 4].effects | Array<ExecutableEffect> · wymagane | Uporządkowane zmiany stanu wykonywane przez węzeł akcji. |
[oneOf 4].continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
[oneOf 5].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 5].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 5].kind | "command" · wymagane | Pole rozróżniające warianty. |
[oneOf 5].commandRef | Id · wymagane | Identyfikator polecenia gry do wykonania. |
[oneOf 5].arguments | object · wymagane | Nazwane wartości argumentu przekazane do wywołania.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOperand"}} |
[oneOf 5].arguments[key] | ExecutableOperand | Strukturę i dozwolone wartości określają typ i schemat. |
[oneOf 5].outcomes | object · wymagane | Nazwane możliwe wyniki polecenia oraz ich kontrakty i powiązania.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOutcomeBinding"}} |
[oneOf 5].outcomes[key] | ExecutableOutcomeBinding | Strukturę i dozwolone wartości określają typ i schemat. |
[oneOf 6].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 6].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 6].kind | "jump" · wymagane | Pole rozróżniające warianty. |
[oneOf 6].target | EntryRef · wymagane | Odwołanie do celu o określonym typie, np. zmiennej lub punktu wejścia; dokładną strukturę opisuje wariant. |
[oneOf 7].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 7].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 7].kind | "end" · wymagane | Pole rozróżniające warianty. |
[oneOf 8].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 8].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 8].kind | "call" · wymagane | Pole rozróżniające warianty. |
[oneOf 8].target | EntryRef · wymagane | Odwołanie do celu o określonym typie, np. zmiennej lub punktu wejścia; dokładną strukturę opisuje wariant. |
[oneOf 8].continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
[oneOf 9].id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
[oneOf 9].flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
[oneOf 9].kind | "return" · wymagane | Pole rozróżniające warianty. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].kind | "literal" · wymagane | Pole rozróżniające warianty. |
[oneOf 1].value | TypedValue · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
[oneOf 2].kind | "variable" · wymagane | Pole rozróżniające warianty. |
[oneOf 2].variableRef | Id · wymagane | Identyfikator zmiennej do odczytu lub zapisu. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
resultBindings | object · wymagane | Nazwa wyniku polecenia → zmienna docelowa dla zwróconej wartości.
{"additionalProperties":{"$ref":"#/$defs/Id"}} |
resultBindings[key] | Id | Strukturę i dozwolone wartości określają typ i schemat. |
continuation | ExecutableContinuation · wymagane | Kontynuacja po zakończeniu węzła. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
format | "vnle.story" · wymagane | Dokładny identyfikator formatu dla tego kontenera danych. |
containerVersion | 1 · wymagane | Całkowita wersja kontenera historii; obecnie 1. |
storyBuildId | Hash · wymagane | SHA-256 kanonicznych danych wykonania; zmiany samej treści go nie zmieniają. |
execution | ExecutionContract · wymagane | Kontrakt wykonania z określonymi typami. |
content | object · wymagane | Dane językowe i katalogi oddzielone od wykonania.
{"additionalProperties":false} |
content.sourceLocale | Locale · wymagane | Język źródłowy tekstów, używany także przy braku tłumaczenia. |
content.locales | Array<Locale> · wymagane | Zadeklarowane języki eksportu, w tym język źródłowy.
{"minItems":1} |
content.fallbackPolicy | FallbackPolicy · wymagane | Obecnie source: brakujące tłumaczenia zastępuje tekst źródłowy. |
content.texts | object · wymagane | ID tekstu → tekst źródłowy, znaczniki podstawianych wartości i metadane.
{"additionalProperties":{"$ref":"#/$defs/ContentTextEntry"}} |
content.texts[key] | ContentTextEntry | Strukturę i dozwolone wartości określają typ i schemat. |
content.translations | object · wymagane | Kod języka → ID tekstu → tłumaczenie; brak wpisu oznacza użycie tekstu źródłowego.
{"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 | Strukturę i dozwolone wartości określają typ i schemat. |
content.characters | object · wymagane | ID postaci → postać z tłumaczonymi imionami i emocjami.
{"additionalProperties":{"$ref":"#/$defs/ContentCharacter"}} |
content.characters[key] | ContentCharacter | Strukturę i dozwolone wartości określają typ i schemat. |
content.quests | object · wymagane | ID zadania → definicja zadania wraz z celami.
{"additionalProperties":{"$ref":"#/$defs/ContentQuestDefinition"}} |
content.quests[key] | ContentQuestDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
content.items | object · wymagane | ID przedmiotu → definicja przedmiotu.
{"additionalProperties":{"$ref":"#/$defs/ContentItemDefinition"}} |
content.items[key] | ContentItemDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
content.locations | object · wymagane | ID miejsca → definicja miejsca.
{"additionalProperties":{"$ref":"#/$defs/ContentLocationDefinition"}} |
content.locations[key] | ContentLocationDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
content.minigames | object · wymagane | ID minigry → definicja; rozgrywkę implementuje gra korzystająca z eksportu.
{"additionalProperties":{"$ref":"#/$defs/ContentMinigameDefinition"}} |
content.minigames[key] | ContentMinigameDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
content.assets | object · wymagane | ID zasobu → definicja pliku multimedialnego; eksport ogólny nie dostarcza obecnie zasobów dopasowanych do konkretnego silnika.
{"additionalProperties":{"$ref":"#/$defs/ContentAsset"}} |
content.assets[key] | ContentAsset | Strukturę i dozwolone wartości określają typ i schemat. |
content.variableDefinitions | object · wymagane | Definicje zmiennych utworzone przez autora, z nazwami i odwołaniami do tekstów.
{"additionalProperties":{"$ref":"#/$defs/ContentVariableDefinition"}} |
content.variableDefinitions[key] | ContentVariableDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
content.commandDefinitions | object · wymagane | Definicje poleceń utworzone przez autora, w tym odwołania do tekstów.
{"additionalProperties":{"$ref":"#/$defs/ContentCommandDefinition"}} |
content.commandDefinitions[key] | ContentCommandDefinition | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
textRef | Id · wymagane | Odwołanie do content.texts i kontraktu danego tekstu. |
bindings | object · wymagane | Nazwa znacznika lub parametru → operand z określonym typem.
{"additionalProperties":{"$ref":"#/$defs/ExecutableOperand"}} |
bindings[key] | ExecutableOperand | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
format | "vnle.execution" · wymagane | Dokładny identyfikator formatu dla tego kontenera danych. |
contractVersion | RuntimeVersion · wymagane | Wersja zgodności wykonania: major i minor. |
projectId | Id · wymagane | Stabilny identyfikator projektu źródłowego. |
requiredCapabilities | Array<Capability> · wymagane | Wymagane możliwości, które pełny adapter wykonawczy musi sprawdzić przed uruchomieniem. |
limits | object · wymagane | Limity automatycznego wykonania i rekurencji.
{"additionalProperties":false} |
limits.maxAutomaticTransitions | 1000 · wymagane | Maksymalna liczba automatycznych przejść bez działania użytkownika. |
limits.maxConditionDepth | 32 · wymagane | Maksymalna głębokość zagnieżdżenia warunków. |
limits.maxConditionTerms | 1024 · wymagane | Maksymalna liczba członów warunku. |
limits.maxCallDepth | 32 · wymagane | Maksymalna głębokość zagnieżdżonych wywołań pobocznych sekwencji. |
entries | object · wymagane | ID punktu wejścia → odwołanie do przebiegu i węzła.
{"additionalProperties":{"$ref":"#/$defs/RuntimeEntry"}} |
entries[key] | RuntimeEntry | Strukturę i dozwolone wartości określają typ i schemat. |
nodes | object · wymagane | ID węzła → wykonywalny węzeł; kind określa jego pola.
{"additionalProperties":{"$ref":"#/$defs/ExecutableNode"}} |
nodes[key] | ExecutableNode | Strukturę i dozwolone wartości określają typ i schemat. |
variables | object · wymagane | ID zmiennej → definicja zmiennej wykonawczej z określonym typem.
{"additionalProperties":{"$ref":"#/$defs/RuntimeVariable"}} |
variables[key] | RuntimeVariable | Strukturę i dozwolone wartości określają typ i schemat. |
commands | object · wymagane | ID polecenia → sygnatura wykonawcza z określonymi typami.
{"additionalProperties":{"$ref":"#/$defs/RuntimeSignature"}} |
commands[key] | RuntimeSignature | Strukturę i dozwolone wartości określają typ i schemat. |
textContracts | object · wymagane | ID tekstu → kontrakty podstawianych wartości wymagane przy wykonaniu.
{"additionalProperties":{"$ref":"#/$defs/PlaceholderContract"}} |
textContracts[key] | PlaceholderContract | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · FallbackPolicy
{
"type": "string",
"enum": [
"block",
"source"
],
"title": "FallbackPolicy"
}
Hash
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · Hash
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$",
"title": "Hash"
}
Id
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · Key
{
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,127}$",
"title": "Key"
}
Locale
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · Locale
{
"type": "string",
"pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
"title": "Locale"
}
Wiadomość
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
kind | "segments" · wymagane | Pole rozróżniające warianty. |
segments | Array<object | object> · wymagane | Uporządkowane segmenty tekstu i znaczników podstawianych wartości. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
results | Array<ResultDefinition> · wymagane | Nazwane wartości zwracane przez dany wynik, z określonymi typami. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
valueType | ValueType · wymagane | Kontrakt oczekiwanej wartości, obejmujący możliwe typy obiektów. |
defaultValue | TypedValue | Wartość początkowa lub domyślna z określonym typem. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
map[key] | ScalarType | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
displayName | string · wymagane | Czytelna nazwa zasobu. |
valueType | ScalarType · wymagane | Kontrakt oczekiwanej wartości, obejmujący możliwe typy obiektów. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
labelTextRef | Id · wymagane | ID tekstu przetłumaczonej etykiety. |
descriptionTextRef | Id | ID tekstu przetłumaczonego opisu. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · RelativePath
{
"type": "string",
"minLength": 1,
"maxLength": 1024,
"title": "RelativePath"
}
ResultDefinition
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
name | string · wymagane | Nazwa nadana przez autora; nie używaj jej jako klucza odwołania. |
valueType | ValueType · wymagane | Kontrakt oczekiwanej wartości, obejmujący możliwe typy obiektów. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
flowRef | Id · wymagane | ID sceny lub pobocznej sekwencji. |
nodeRef | Id · wymagane | Następny identyfikator węzła wykonywalnego. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
inputs | Array<object> · wymagane | Nazwane parametry wejściowe sygnatury, z określonymi typami. |
outcomes | Array<object> · wymagane | Nazwane możliwe wyniki polecenia oraz ich kontrakty i powiązania.
{"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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
id | Id · wymagane | Stały identyfikator; wyświetlane nazwy nie są kluczami. |
valueType | ScalarType · wymagane | Kontrakt oczekiwanej wartości, obejmujący możliwe typy obiektów. |
defaultValue | ScalarValue · wymagane | Wartość początkowa lub domyślna z określonym typem. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
major | 1 · wymagane | Niezgodna wersja główna; nieobsługiwane wersje należy odrzucić. |
minor | 1 · wymagane | Wersja rozszerzeń w obrębie wersji głównej. |
Schema · RuntimeVersion
{
"type": "object",
"properties": {
"major": {
"const": 1
},
"minor": {
"const": 1
}
},
"required": [
"major",
"minor"
],
"additionalProperties": false,
"title": "RuntimeVersion"
}
ScalarType
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
Schema · ScalarType
{
"type": "string",
"enum": [
"boolean",
"integer",
"string"
],
"title": "ScalarType"
}
ScalarValue
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 1].type | "boolean" · wymagane | Pole rozróżniające typy; dozwolone wartości zależą od otaczającego schematu. |
[oneOf 1].value | boolean · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
[oneOf 2].type | "integer" · wymagane | Pole rozróżniające typy; dozwolone wartości zależą od otaczającego schematu. |
[oneOf 2].value | integer · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi.
{"minimum":-2147483648,"maximum":2147483647} |
[oneOf 3].type | "string" · wymagane | Pole rozróżniające typy; dozwolone wartości zależą od otaczającego schematu. |
[oneOf 3].value | string · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
textRef | Id · wymagane | Odwołanie do content.texts i kontraktu danego tekstu. |
locale | Locale · wymagane | Kod języka tego wpisu tłumaczenia. |
message | Wiadomość · wymagane | Przetłumaczony tekst zgodny z kontraktem podstawianych wartości. |
allowEmpty | boolean · wymagane | Zezwala na celowo puste tłumaczenie. |
workflowStatus | "draft" | "translated" | "reviewed" · wymagane | Status pracy nad tłumaczeniem, nie rozgałęzienie wykonania. |
basedOnSourceFingerprint | Hash · wymagane | Podstawa źródłowa tłumaczenia; niezgodność oznacza, że tłumaczenie jest nieaktualne. |
reviewedContextFingerprint | Hash | Odcisk kontekstu dla stanu sprawdzonego tłumaczenia. |
origin | "ai" | Strukturę i dozwolone wartości określają typ i schemat. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 2].type | "reference" · wymagane | Pole rozróżniające typy; dozwolone wartości zależą od otaczającego schematu. |
[oneOf 2].entityType | EntityType · wymagane | Typ katalogu dla odwołania do obiektu. |
[oneOf 2].value | Id · wymagane | Wartość stała; musi odpowiadać zadeklarowanemu typowi. |
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
| Pole | Typ / wymagane | Znaczenie / reguły |
|---|
[oneOf 2].kind | "reference" · wymagane | Pole rozróżniające warianty. |
[oneOf 2].entityType | EntityType · wymagane | Typ katalogu dla odwołania do obiektu. |
Schema · ValueType
{
"oneOf": [
{
"$ref": "#/$defs/ScalarType"
},
{
"type": "object",
"properties": {
"kind": {
"const": "reference"
},
"entityType": {
"$ref": "#/$defs/EntityType"
}
},
"required": [
"kind",
"entityType"
],
"additionalProperties": false
}
],
"title": "ValueType"
}