should work now?
This commit is contained in:
183
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema-base.json
generated
vendored
Normal file
183
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema-base.json
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"TimeoutSucceed": {
|
||||
"description": "Forces a behavior to succeed after a given number of milliseconds.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "int",
|
||||
"field": "timeout",
|
||||
"description": "Enter the number of milliseconds until forced success."
|
||||
}
|
||||
]
|
||||
},
|
||||
"TimeoutSucceedJs": {
|
||||
"description": "Uses JavaScript to force a behavior to succeed after a given number of milliseconds.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getTime",
|
||||
"description": "Return the number of milliseconds until forced success.",
|
||||
"defaultValue": "() => {\n return 0;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TimeoutJs": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 300},
|
||||
"description": "Succeeds after a given number of dynamically-calculated milliseconds.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getTime",
|
||||
"description": "Return the number of milliseconds until forced success.",
|
||||
"defaultValue": "() => {\n return 0;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TimeoutFail": {
|
||||
"description": "Forces a behavior to fail after a given number of milliseconds.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "int",
|
||||
"field": "timeout",
|
||||
"description": "Enter the number of milliseconds until forced failure."
|
||||
}
|
||||
]
|
||||
},
|
||||
"FailOnCondition": {
|
||||
"description": "Forces a behavior to fail if specified condition returns false.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "init",
|
||||
"description": "Initialize optional variables for the condition below."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "conditional",
|
||||
"description": "Return true when you want behavior to fail."
|
||||
}
|
||||
]
|
||||
},
|
||||
"Case": {
|
||||
"description": "Use under Switch statements to specify when a behavior should execute and when it should fail.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "conditional",
|
||||
"description": "Return false for conditions under which behavior should fail."
|
||||
}
|
||||
]
|
||||
},
|
||||
"SucceedOnCondition": {
|
||||
"description": "Forces a behavor to succeed if its conditional function returns true.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "init",
|
||||
"description": "Initialize optional variables for the condition below."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "conditional",
|
||||
"description": "Return true when you want behavior to succeed."
|
||||
}
|
||||
]
|
||||
},
|
||||
"StartOnCondition": {
|
||||
"description": "Prevents a behavior from starting until its conditional function returns true.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "init",
|
||||
"description": "Initialize optional variables for the condition below."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "conditional",
|
||||
"description": "Return true when you want component to start."
|
||||
}
|
||||
]
|
||||
},
|
||||
"WhileCondition": {
|
||||
"description": "Repeats a behavior until its conditional function returns false.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "init",
|
||||
"description": "Initialize optional variables for the condition below."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "conditional",
|
||||
"description": "Repeat behavior as long as condition return true.",
|
||||
"defaultValue": "() => {\n return true;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ExecuteScript": {
|
||||
"description": "Synchronously executes arbitrary JavaScript. Use ExecuteScriptAsync for asynchronous calls.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "exec",
|
||||
"description": "Enter function that will execute once and then succeed."
|
||||
}
|
||||
]
|
||||
},
|
||||
"ExecuteScriptAsync": {
|
||||
"description": "Asynchronously executes arbitrary JavaScript. Will not succeed until the callback is called.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "exec",
|
||||
"description": "Behavior will succeed when succeed is called, fail when fail is called.",
|
||||
"defaultValue": "(succeed, fail) => {\n succeed();\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Null": {
|
||||
"description": "This behavior never succeeds or fails. It will remain 'in progress' indefinitely. It must be decorated in order to succeed or fail.",
|
||||
"type": "leaf",
|
||||
"options": []
|
||||
},
|
||||
"Sequence": {
|
||||
"description": "This behavior plays its children in order from top to bottom. If one child fails, this behavior will fail. If all its children succeed ,this behavor will succeed.",
|
||||
"type": "composite",
|
||||
"options": []
|
||||
},
|
||||
"Parallel": {
|
||||
"description": "This behavior starts all of its children at the same time. This behavior will return success by default when all of its children have succeeded, or, if told to succeed on one, will succeed upon success of any child.",
|
||||
"type": "composite",
|
||||
"options": [
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "succeedOnOne",
|
||||
"description": "Set to True to force parallel to succeed as soon as one of its children succeeds.",
|
||||
"defaultValue": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"Switch": {
|
||||
"description": "Attempts to execute its children in order from top to bottom until one child succeeds. This behavior always succeeds regardless of whether any children succeed. Use this behavior with Case decorators for branching.",
|
||||
"type": "composite",
|
||||
"options": []
|
||||
},
|
||||
"Random": {
|
||||
"description": "Chooses one of its children randomly. Succeeds if that child succeeds and fails otherwise.",
|
||||
"type": "composite",
|
||||
"options": []
|
||||
},
|
||||
"meta": {
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
481
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema-flow.json
generated
vendored
Normal file
481
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema-flow.json
generated
vendored
Normal file
@@ -0,0 +1,481 @@
|
||||
{
|
||||
"Flow.Begin": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Limeade",
|
||||
"order": 100
|
||||
},
|
||||
"description": "The first shape to be executed in a Jibo Flow Editor procedure, only one allowed per procedure.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "inputParameters",
|
||||
"description": "Prototype function text that is copied to provide input parms (and defaults) to this procedure when it is called from another procedure as a subflow. This code is just a text template and is not executed here.",
|
||||
"defaultValue": "()=>{\n return {\n// parm1: 'parm1_default_value',\n// parm2: 'parm2_default_value'\n };\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Begin-Parallel": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Grass",
|
||||
"order": 101
|
||||
},
|
||||
"description": "The beginning of an Asynchronous thread, more than one allowed per procedure. Execution commences when the page is invoked, simultaneously with the Flow.Begin on the page.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
]
|
||||
},
|
||||
"Flow.Picture": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "white",
|
||||
"text": "picture",
|
||||
"title": "picture",
|
||||
"order": 102
|
||||
},
|
||||
"description": "An image to display on the diagram as an annotation (not an activity that is executed at runtime).",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"location": "",
|
||||
"type": "string",
|
||||
"field": "title",
|
||||
"description": "The picture title.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"location": "",
|
||||
"type": "image",
|
||||
"field": "url",
|
||||
"description": "The URI/Filename for the picture.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"location": "",
|
||||
"type": "string",
|
||||
"field": "caption",
|
||||
"description": "The picture caption.",
|
||||
"defaultValue": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Comment": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "white",
|
||||
"text": "notes",
|
||||
"order": 103
|
||||
},
|
||||
"description": "A place to keep notes.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"location": "",
|
||||
"type": "string",
|
||||
"field": "text",
|
||||
"description": "The text of the comment.",
|
||||
"defaultValue": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.End": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Firecracker",
|
||||
"order": 104
|
||||
},
|
||||
"description": "Ends execution of a Jibo Flow Editor procedure and returns to the calling procedure, or exits if this is the top-most procedure.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"location": "options",
|
||||
"type": "Function",
|
||||
"field": "getTransition",
|
||||
"description": "Returns the string value that will be used as the Transition from the subflow activity (if undefined, the Flow.End activity name is used).",
|
||||
"defaultValue": "() => { return ; }"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Subflow": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Topaz",
|
||||
"order": 105
|
||||
},
|
||||
"description": "Calls a subflow.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "subflow",
|
||||
"field": "subflowId",
|
||||
"description": "path to subflow's .flow file (without the .flow extension)",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "inputParameters",
|
||||
"description": "Returns the object that appears in the called subflow as 'notepad.params'.",
|
||||
"defaultValue": "() => {return {}; }"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getTransition",
|
||||
"description": "Returns the transition result from the subflow.",
|
||||
"defaultValue": "(subflow_result_object) => {\n return subflow_result_object.transition;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Subtree": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Topaz",
|
||||
"order": 106
|
||||
},
|
||||
"description": "Executes a behavior tree (.bt) as a single behavior and returns the status of the subtree.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Subtree",
|
||||
"field": "behaviorPath",
|
||||
"description": "Select a subtree.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getNotepad",
|
||||
"description": "Returns an object that will be this tree's notepad.",
|
||||
"defaultValue": "() => {\n return {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Returns the transition result from the subtree.",
|
||||
"defaultValue": "(treeResult) => {\n\treturn treeResult.transition;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Throw": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Grass",
|
||||
"order": 107
|
||||
},
|
||||
"description": "Throws an exception (the name of the activity becomes the name of the exception thrown).",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPayload",
|
||||
"description": "Returns an object that will be made available as the 'payload' argument to Flow.Catch.",
|
||||
"defaultValue": "() => {\n return {};\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Interrupt": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Limeade",
|
||||
"order": 108
|
||||
},
|
||||
"description": "For use in Parallel threads; causes the Primary thread to take an exception, no matter where it is (the name of the activity becomes the name of the exception thrown).",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPayload",
|
||||
"description": "Returns an object that will be made available as the 'payload' argument to Flow.Catch.",
|
||||
"defaultValue": "() => {\n return {};\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Catch": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Limeade",
|
||||
"order": 109
|
||||
},
|
||||
"description": "Catches the exception given by the name of the activity.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getTransition",
|
||||
"description": "Called with the actual Exception string and the return value from the Exception or Interrupt's getPayload() functions. Returns the Flow.Catch transition value.",
|
||||
"defaultValue": "(exception, payload) => {\n\treturn '';\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Eval": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Grape",
|
||||
"order": 110
|
||||
},
|
||||
"description": "Evaluates a Javascript function, the return value of the function becomes the activity result.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "Script",
|
||||
"description": "The return value becomes the activity result.",
|
||||
"defaultValue": "() => {\n return '';\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Eval-Async": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Grape",
|
||||
"order": 111
|
||||
},
|
||||
"description": "Evaluates a Javascript function, the value passed to 'done' becomes the activity result.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "exec",
|
||||
"description": "Function to be executed. The value passed to 'done' becomes the activity result.",
|
||||
"defaultValue": "(done) => {\n done('');\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onStop",
|
||||
"description": "Function to be executed when/if the activity receives a stop request.",
|
||||
"defaultValue": "() => { }"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Flow.Wait": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"xxx-disabled-flow"
|
||||
],
|
||||
"color": "Grape",
|
||||
"order": 112
|
||||
},
|
||||
"description": "Pauses for the specified number of milliseconds.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "string",
|
||||
"field": "ms_to_pause",
|
||||
"description": "The number of milliseconds to pause.",
|
||||
"defaultValue": "0"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Mim": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Tangerine",
|
||||
"order": 113
|
||||
},
|
||||
"description": "A Multimodal Interaction Module, for all your speaking needs.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getMimPath",
|
||||
"description": "Return path to mim file (from project root)",
|
||||
"defaultValue": "() => {\n\treturn 'mims/myMim.mim';\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPromptData",
|
||||
"description": "Get Prompt Data - Return variables for Mim prompt conditions and text replacement",
|
||||
"defaultValue": "() => {\n\treturn {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onStatus",
|
||||
"description": "MIM Status - provides incremental listen results.",
|
||||
"defaultValue": "(status) => {\n\tlet mimState = status.state;\n\tlet asrResults = status.asrResults;\n\tlet speakerIds = status.speakerIds;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onSuccess",
|
||||
"description": "MIM Success - provides data on the end result of the MIM - a successful response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n\tlet transition = results.firstGrammarTag;\n\treturn transition;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onFailure",
|
||||
"description": "MIM Failure - provides data on the failure of the MIM - an overall failure due to no input or no matching response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n\tlet exception = results.exception;\n\treturn exception;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Mim.Announcement": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Tennis",
|
||||
"order": 114
|
||||
},
|
||||
"description": "A Multimodal Interaction Module that plays announcements.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "mim",
|
||||
"field": "mimPath",
|
||||
"description": "path to mim file (from project root)",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPromptData",
|
||||
"description": "Get Prompt Data - Return variables for Mim prompt conditions and text replacement",
|
||||
"defaultValue": "() => {\n\treturn {};\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Mim.Optional-Response": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Twilight",
|
||||
"order": 115
|
||||
},
|
||||
"description": "A Multimodal Interaction Module that plays an Announcement and waits briefly for a response.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "mim",
|
||||
"field": "mimPath",
|
||||
"description": "path to mim file (from project root)",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPromptData",
|
||||
"description": "Get Prompt Data - Return variables for Mim prompt conditions and text replacement",
|
||||
"defaultValue": "() => {\n\treturn {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onStatus",
|
||||
"description": "MIM Status - provides incremental listen results.",
|
||||
"defaultValue": "(status) => {\n\tlet mimState = status.state;\n\tlet asrResults = status.asrResults;\n\tlet speakerIds = status.speakerIds;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onSuccess",
|
||||
"description": "MIM Success - provides data on the end result of the MIM - a successful response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n\tlet transition = results.firstGrammarTag;\n\treturn transition;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Mim.Question": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Candy",
|
||||
"order": 116
|
||||
},
|
||||
"description": "A Multimodal Interaction Module that plays an Announcement and waits indefinitely for a response.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "mim",
|
||||
"field": "mimPath",
|
||||
"description": "path to mim file (from project root)",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPromptData",
|
||||
"description": "Get Prompt Data - Return variables for Mim prompt conditions and text replacement",
|
||||
"defaultValue": "() => {\n\treturn {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onStatus",
|
||||
"description": "MIM Status - provides incremental listen results.",
|
||||
"defaultValue": "(status) => {\n\tlet mimState = status.state;\n\tlet asrResults = status.asrResults;\n\tlet speakerIds = status.speakerIds;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onSuccess",
|
||||
"description": "MIM Success - provides data on the end result of the MIM - a successful response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n\tlet transition = results.firstGrammarTag;\n\treturn transition;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onFailure",
|
||||
"description": "MIM Failure - provides data on the failure of the MIM - an overall failure due to no input or no matching response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n\tlet exception = results.exception;\n\treturn exception;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Menu": {
|
||||
"paletteInfo": {
|
||||
"uses": [
|
||||
"flow"
|
||||
],
|
||||
"color": "Candy",
|
||||
"order": 117
|
||||
},
|
||||
"description": "A self contained single stage menu.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getConfig",
|
||||
"description": "Provide the menu config data.",
|
||||
"defaultValue": "(loadCallback) => {\n\tloadCallback({});\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onMenuClosed",
|
||||
"description": "Called when the menu is closed by the user or a timeout.",
|
||||
"defaultValue": "(wasTimeout, menu, overrideMenuTransition, exception) => {\n\t//exception will be ~InteractionError.MenuTimeout or ~InteractionError.MenuClosed\n\treturn exception;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onItemChosen",
|
||||
"description": "Called when a user utterance matches the menu rule, or an item is selected",
|
||||
"defaultValue": "(menuResult, menu, overrideMenuTransition) => {\n\treturn undefined;//return a transition here\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onPositionalSelect",
|
||||
"description": "Called when a user tries to choose an item with positional selection - 'open the second one', etc",
|
||||
"defaultValue": "(commandAsr, intendedIndex, menu) => {\n\t//Return an index to use, NaN to not select anything, or undefined to do the normal behavior (selecting intendedIndex)\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"meta": {
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
492
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema.json
generated
vendored
Normal file
492
node_modules/jibo-sdk/resources/externals/backward-compatibility/schemas/schema.json
generated
vendored
Normal file
@@ -0,0 +1,492 @@
|
||||
{
|
||||
"Subtree": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 200},
|
||||
"description": "Executes a behavior tree (.bt) as a single behavior and returns the status of the subtree.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Subtree",
|
||||
"field": "behaviorPath",
|
||||
"description": "Select a subtree.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getNotepad",
|
||||
"description": "Enter optional information to return an object that will be this tree's notepad.",
|
||||
"defaultValue": "() => {\n return {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter optional code that will be called with the subtree's results with the subtree is done.",
|
||||
"defaultValue": "(treeResult) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SubtreeJs": {
|
||||
"description": "Dynamically executes a behavior tree (.bt) as a single behavior. This behavior returns the status of the subtree.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getFileName",
|
||||
"description": "Specify a subtree.",
|
||||
"defaultValue": "(callback) => {\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getNotepad",
|
||||
"description": "Enter optional information to return an object that will be this tree's notepad.",
|
||||
"defaultValue": "() => {\n return {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter optional code that will be called with the subtree's results with the subtree is done.",
|
||||
"defaultValue": "(treeResult) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"PlayAnimation": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 201},
|
||||
"description": "Plays an animation file (.keys). Succeeds when the animation is finished.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Animation",
|
||||
"field": "animPath",
|
||||
"description": "Select the animation file to play.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "cache",
|
||||
"description": "True for caching the animation. False for single-play and destroy.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "upload",
|
||||
"description": "True for uploading to the GPU immediately.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "config",
|
||||
"description": "Enter optional code to modify the animation's playback.",
|
||||
"defaultValue": "(animation) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"PlayAudio": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 202},
|
||||
"description": "Plays a single audio source. The audio format is any format supported by HTML5 audio. Succeeds when the audio file is finished playing",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Audio",
|
||||
"field": "audioPath",
|
||||
"description": "Enter the audio file path.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "cache",
|
||||
"description": "True for caching the audio. False for single-play and destroy.",
|
||||
"defaultValue": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"LookAt": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 203},
|
||||
"description": "Creates body and eye animations for looking at a point in 3D space",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getTarget",
|
||||
"description": "Return the x, y, and z coordinates Jibo should look at.",
|
||||
"defaultValue": "() => {\n return {x: 0, y: 0, z: 0};\n}"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "isContinuous",
|
||||
"description": "True for continuous mode look at. False for single-shot look at.",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "config",
|
||||
"description": "Enter optional code to modify the lookAt behavior.",
|
||||
"defaultValue": "(lookAt) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Blink": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 204},
|
||||
"description": "Animates Jibo's eye to blink once.",
|
||||
"type": "leaf",
|
||||
"options": []
|
||||
},
|
||||
"TextToSpeech": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 205},
|
||||
"description": "Creates speech output for Jibo.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "SSML",
|
||||
"field": "words",
|
||||
"description": "Enter text for Jibo to say. Takes plain text or SSML markup.",
|
||||
"defaultValue": "Hello"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onWord",
|
||||
"description" : "Enter optional code to execute each time Jibo says a single word.",
|
||||
"defaultValue": "(word) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TextToSpeechJs": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 206},
|
||||
"description": "Dynamically creates speech output for Jibo.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getWords",
|
||||
"description": "Return what you want Jibo to say.",
|
||||
"defaultValue": "(callback) => {\n callback('Hello');\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onWord",
|
||||
"description": "Enter optional code to execute each time Jibo says a single word.",
|
||||
"defaultValue": "(word) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"StartOnAnimEvent": {
|
||||
"description": "Prevents the behavior it's decorating from starting until a specified event is received from an animation.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "string",
|
||||
"field": "eventName",
|
||||
"description": "Specify the event name (set on the animation's Event Layer) on which the animation should start."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onReceived",
|
||||
"description": "Enter optional code to execute after the event is received but before the behavior starts.",
|
||||
"defaultValue": "(animFileName, payload) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"StartOnEvent": {
|
||||
"description": "Prevents behavior it's decorating from starting until specified event is received from the global emitter.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "string",
|
||||
"field": "eventName",
|
||||
"description": "Specify the event name you want to listen for the component to start."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onEvent",
|
||||
"description": "This function is called after the event was received but before the component starts.",
|
||||
"defaultValue": "() => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SucceedOnEvent": {
|
||||
"description": "Forces the behavior it's decorating to succeed when an event is received from the global emitter.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "string",
|
||||
"field": "eventName",
|
||||
"description": "Specify the event name you want to listen for the component to succeed."
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onEvent",
|
||||
"description": "This function is called after the event was received along with any payload.",
|
||||
"defaultValue": "() => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SucceedOnEmbedded": {
|
||||
"description": "Succeeds a behavior upon hearing a built-in listening rule.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": ["enum",
|
||||
{
|
||||
"label": "Hey Jibo",
|
||||
"display": "Hey Jibo",
|
||||
"value": "hey_jibo"
|
||||
}
|
||||
],
|
||||
"field": "rule",
|
||||
"description": "Specify the name of the embedded rule you want to listen for (hey_jibo).",
|
||||
"defaultValue": "hey_jibo"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "(listener), event emitter for hey-jibo (asr, spkr) and error events.",
|
||||
"defaultValue": "(listener) => {\n\tlistener.on('hey-jibo', function(asrResult, speakerIds) {\n\n\t});\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ListenEmbedded": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 207},
|
||||
"description": "Listens only for an embedded rule (hey_jibo)",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": ["enum",
|
||||
{
|
||||
"label": "Hey Jibo",
|
||||
"display": "Hey Jibo",
|
||||
"value": "hey_jibo"
|
||||
}
|
||||
],
|
||||
"field": "rule",
|
||||
"description": "Specify the name of the embedded rule you want to listen for (hey_jibo).",
|
||||
"defaultValue": "hey_jibo"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "(listener), event emitter for hey-jibo (asr, spkr) and error events.",
|
||||
"defaultValue": "(listener) => {\n\tlistener.on('hey-jibo', function(asrResult, speakerIds) {\n\n\t});\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Listen": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 208},
|
||||
"description": "Tells Jibo to listen for auditory input using Natural Language Understanding (NLU).",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getOptions",
|
||||
"description": "Set the dictionary of options that will be returned for the listening task.",
|
||||
"defaultValue": "() => {\n let options = {\n heyJibo: false,\n detectEnd: false,\n incremental: false,\n authenticateSpeaker: ''\n }\n return options;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Rule",
|
||||
"field": "rule",
|
||||
"description": "Specify the file path for the rule to use to parse Listen results.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter code to execute when Jibo has heard input. (listener), event emitter for hey-jibo (asr, spkr) and timeout() events.",
|
||||
"defaultValue": "(listener) => {\n listener.on('cloud', function(asrResult, speakerIds) {\n\n });\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SucceedOnListen": {
|
||||
"description": "Succeeds a behavior upon hearing a custom Natural Language Understand (NLU) rule.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getOptions",
|
||||
"description": "Set the dictionary of options that will be returned for the listening task.",
|
||||
"defaultValue": "() => {\n let options = {\n heyJibo: false,\n detectEnd: false,\n incremental: false,\n authenticateSpeaker: ''\n }\n return options;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Rule",
|
||||
"field": "rule",
|
||||
"description": "Specify the file path for the rule to use to parse Listen results.",
|
||||
"defaultValue": "null"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter code to execute when Jibo has heard input. (listener), event emitter for hey-jibo (asr, spkr) and timeout() events.",
|
||||
"defaultValue": "(listener) => {\n listener.on('cloud', function(asrResult, speakerIds) {\n\n });\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ListenJs": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 209},
|
||||
"description": "Tells Jibo to listen for auditory input using Natural Language Understanding (NLU).",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getOptions",
|
||||
"description": "Set the dictionary of options that will be returned for the listening task.",
|
||||
"defaultValue": "() => {\n let options = {\n heyJibo: false,\n detectEnd: false,\n incremental: false,\n authenticateSpeaker: ''\n }\n return options;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getRule",
|
||||
"description": "Pass a custom listening rule into the callback.",
|
||||
"defaultValue": "(callback) => {\n callback(\"TopRule = $* Hello World $*;\");\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter code to execute when Jibo has heard input. (listener), event emitter for cloud (asr, spkr), hey-jibo (asr, spkr), timeout (), incremental (asr, stop()), and end-of-speech() results.",
|
||||
"defaultValue": "(listener) => {\n listener.on('cloud', function(asrResult, speakerIds) {\n\n });\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SucceedOnListenJs": {
|
||||
"description": "Succeeds a behavior upon hearing a custom Natural Language Understand (NLU) rule.",
|
||||
"type": "decorator",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getOptions",
|
||||
"description": "Set the dictionary of options that will be returned for the listening task.",
|
||||
"defaultValue": "() => {\n let options = {\n heyJibo: false,\n detectEnd: false,\n incremental: false,\n authenticateSpeaker: ''\n }\n return options;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getRule",
|
||||
"description": "Pass a custom listening rule into the callback.",
|
||||
"defaultValue": "() => {\n callback(\"TopRule = $* Hello World $*;\");\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onResult",
|
||||
"description": "Enter code to execute when Jibo has heard input. (listener), event emitter for cloud (asr, spkr), hey-jibo (asr, spkr), timeout (), incremental (asr, stop()), and end-of-speech() results.",
|
||||
"defaultValue": "(listener) => {\n listener.on('cloud', function(asrResult, speakerIds) {\n\n });\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TakePhoto": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 210},
|
||||
"description": "Attempts to take a photo and return the image url in the onPhoto callback",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": ["enum",
|
||||
{
|
||||
"label": "Small (672x380) - coming soon!",
|
||||
"display": "Small (672x380)",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"label": "Medium (1280x720)",
|
||||
"display": "Medium (1280x720)",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"label": "Large (1920x1080) - coming soon!",
|
||||
"display": "Large (1920x1080)",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"label": "X-Large (2688x1520) - coming soon!",
|
||||
"display": "X-Large (2688x1520)",
|
||||
"value": 4
|
||||
}
|
||||
],
|
||||
"field": "resolution",
|
||||
"description": "Specify the resolution of the photo you want to take.",
|
||||
"defaultValue": 2
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onPhoto",
|
||||
"description" : "Set optional code to execute after the photo is taken. If successful, returns imageUrl; otherwise, returns error.",
|
||||
"defaultValue": "(error, imageUrl) => {\n}"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"field": "noDistortion",
|
||||
"description": "True to remove camera distortion from the photo. False to keep camera distortion on the photo.",
|
||||
"defaultValue": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"ReadBarcode": {
|
||||
"paletteInfo": {"uses": ["flow", "bt"], "color": "JiboBlue", "order": 211},
|
||||
"description": "Attempts to read a barcode or QRcode and returns the barcode data",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onBarcode",
|
||||
"description" : "Enter the code that will be called when the barcode is read. If successful, returns barcode/QRcode data; otherwise, returns error.",
|
||||
"defaultValue": "(error, data) => {\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Mim": {
|
||||
"paletteInfo": {"uses": ["bt"], "color": "JiboBlue", "order": 212},
|
||||
"description": "A Multimodal Interaction Module, for all your speaking needs.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "mim",
|
||||
"field": "mimPath",
|
||||
"description": "path to mim file (from project root)",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getPromptData",
|
||||
"description": "Return variables for Mim prompt conditions and text replacement",
|
||||
"defaultValue": "() => {\n\treturn {};\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onStatus",
|
||||
"description": "provides incremental listen results.",
|
||||
"defaultValue": "(status) => {\n\tlet mimState = status.state;\n\tlet asrResults = status.asrResults;\n\tlet speakerIds = status.speakerIds;\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onSuccess",
|
||||
"description": "provides data on the end result of the MIM - a successful response.",
|
||||
"defaultValue": "(results) => {\n\tlet mimState = results.state;\n\tlet asrResults = results.asrResults;\n\tlet speakerIds = results.speakerIds;\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Menu": {
|
||||
"paletteInfo": {"uses": ["bt"], "color": "JiboBlue", "order": 213},
|
||||
"description": "A self contained single stage menu.",
|
||||
"type": "leaf",
|
||||
"options": [
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "getConfig",
|
||||
"description": "Provide the menu config data.",
|
||||
"defaultValue": "(loadCallback) => {\n\tloadCallback({});\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onMenuClosed",
|
||||
"description": "Called when the menu is closed by the user or a timeout.",
|
||||
"defaultValue": "(wasTimeout, menu, overrideMenuTransition) => {\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onItemChosen",
|
||||
"description": "Called when a user utterance matches the menu rule, or an item is selected",
|
||||
"defaultValue": "(menuResult, menu, overrideMenuTransition) => {\n}"
|
||||
},
|
||||
{
|
||||
"type": "Function",
|
||||
"field": "onPositionalSelect",
|
||||
"description": "Called when a user tries to choose an item with positional selection - 'open the second one', etc",
|
||||
"defaultValue": "(commandAsr, intendedIndex, menu) => {\n\t//Return an index to use, NaN to not select anything, or undefined to do the normal behavior (selecting intendedIndex)\n}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"meta": {
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
40332
node_modules/jibo-sdk/resources/externals/go-debug.js
generated
vendored
Normal file
40332
node_modules/jibo-sdk/resources/externals/go-debug.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1983
node_modules/jibo-sdk/resources/externals/go.js
generated
vendored
Normal file
1983
node_modules/jibo-sdk/resources/externals/go.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user