Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #756 from rubenaeg/rmtuckerphx/bixby-fixes
馃憣 Adjust Bixby Examples
- Loading branch information
Showing
72 changed files
with
412 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.28 KB
...ascript/07_samsungbixby/hello-world/platforms/bixbyCapsule/assets/jovo-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
examples/javascript/07_samsungbixby/hello-world/platforms/bixbyCapsule/capsule.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
capsule { | ||
id (playground.jovo_test) | ||
version (0.1.0) | ||
format (3) | ||
targets { | ||
target (bixby-mobile-en-US) | ||
} | ||
runtime-version (3) | ||
permissions { | ||
bixby-user-id-access | ||
} | ||
store-countries { | ||
all | ||
} | ||
store-sections { | ||
section (Utilities) | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ngbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoSessionId.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoSessionId) { | ||
description (Defines a unique session id.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...msungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoSpeech.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoSpeech) { | ||
description (The returned Jovo output.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...amsungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoState.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoState) { | ||
description (The current state of the Jovo handler.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...samsungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoText.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoText) { | ||
description (The returned Jovo output as plain text without SSML.) | ||
} |
6 changes: 6 additions & 0 deletions
6
...msungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoLayout.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
structure (JovoLayout) { | ||
description (Layout structure. Add your fields for usage.) | ||
|
||
// Paste your own layout properties here. | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...ungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoResponse.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
structure (JovoResponse) { | ||
description (Response from Jovo Framework) | ||
|
||
property (_JOVO_SESSION_DATA_) { | ||
type (JovoSessionData) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property(_JOVO_SPEECH_) { | ||
type(JovoSpeech) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property (_JOVO_TEXT_) { | ||
type(JovoText) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property (_JOVO_LAYOUT_) { | ||
type(JovoLayout) | ||
min (Optional) | ||
max (One) | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...bixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoSessionData.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
structure (JovoSessionData) { | ||
description (Session Data) | ||
|
||
property(_JOVO_SESSION_ID_) { | ||
type(JovoSessionId) | ||
max (One) | ||
min (Required) | ||
} | ||
|
||
property(_JOVO_STATE_) { | ||
type(JovoState) | ||
max (One) | ||
min (Optional) | ||
} | ||
|
||
// Paste your own session properties here. | ||
property(name) { | ||
type (NameInput) | ||
max (One) | ||
min (Optional) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../07_samsungbixby/hello-world/platforms/bixbyCapsule/models/actions/LaunchAction.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
action (LaunchAction) { | ||
description (Opens the voice application for the first time.) | ||
type (Search) | ||
output (JovoResponse) | ||
} |
20 changes: 20 additions & 0 deletions
20
...7_samsungbixby/hello-world/platforms/bixbyCapsule/models/actions/MyNameIsAction.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
action (MyNameIsAction) { | ||
description (Collects a name from the user and returns a welcome message.) | ||
type (Search) | ||
|
||
collect { | ||
input (_JOVO_INPUT_name) { | ||
type (NameInput) | ||
min (Required) | ||
max (One) | ||
} | ||
|
||
input (_JOVO_PREV_RESPONSE_) { | ||
type(JovoResponse) | ||
min (Required) | ||
max (One) | ||
} | ||
} | ||
output (JovoResponse) | ||
} | ||
|
3 changes: 3 additions & 0 deletions
3
.../07_samsungbixby/hello-world/platforms/bixbyCapsule/models/primitives/NameInput.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (NameInput) { | ||
description (A name to display in a welcome message.) | ||
} |
1 change: 1 addition & 0 deletions
1
...ript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/base/capsule.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.default.remote.url=YOUR_WEBHOOK_URL_HERE |
15 changes: 15 additions & 0 deletions
15
...avascript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/base/endpoints.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
endpoints { | ||
action-endpoints { | ||
action-endpoint (LaunchAction) { | ||
remote-endpoint ("{remote.url}") { | ||
method (POST) | ||
} | ||
} | ||
|
||
action-endpoint (MyNameIsAction) { | ||
remote-endpoint ("{remote.url}?intent=MyNameIsIntent") { | ||
method (POST) | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...vascript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/capsule-info.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
capsule-info { | ||
display-name (Jovo Test Capsule) | ||
developer-name (Jovo) | ||
icon-asset (jovo-logo.png) | ||
description ("An example capsule, that demonstrates how to integrate a Bixby capsule into a Jovo Application.") | ||
website-url (https://jovo.tech) | ||
terms-url (https://jovo.tech/terms) | ||
search-keywords { | ||
keyword(jovo) | ||
} | ||
dispatch-name (Jovo Test Capsule) | ||
} |
7 changes: 7 additions & 0 deletions
7
...cript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/jovo-test.hints.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
hints { | ||
uncategorized { | ||
hint (start Jovo Test Capsule) | ||
hint (with Jovo Test Capsule) | ||
hint (ask Jovo Test Capsule) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...t/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/layouts/Result.view.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
result-view { | ||
match { | ||
JovoResponse (response) | ||
} | ||
|
||
message { | ||
if (exists(response._JOVO_TEXT_) && exists(response._JOVO_SPEECH_)) { | ||
template("#{value (response._JOVO_TEXT_)}") { | ||
speech ("#{value (response._JOVO_SPEECH_)}") | ||
} | ||
} | ||
} | ||
} |
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-6.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-65qvujlnruo3utlq08b6ckzg0) { | ||
utterance ([g:LaunchAction] start jovo test capsule) | ||
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=) | ||
last-modified (1580654109506) | ||
} |
10 changes: 10 additions & 0 deletions
10
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-7.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
train (t-7g5q9m894osc44x6f6uof2qll) { | ||
utterance ("[g:MyNameIsAction] my name is (paul)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580654090327) | ||
} | ||
train (t-7lljzcz28wvxhiv242avuw4m2) { | ||
utterance ("[g:MyNameIsAction] my name is (ruben)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580819039785) | ||
} |
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-a.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-amdxx0iwfv69q67gafrx0zn0r) { | ||
utterance ("[g:MyNameIsAction] i am (max)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580658422548) | ||
} |
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-h.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-ha0pegtyusxtz6tk9scseeca4) { | ||
utterance ("[g:MyNameIsAction] my name is (tom)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580658421346) | ||
} |
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-i.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-irdukn06pb503lwdbs3vt8wl6) { | ||
utterance ([g:LaunchAction] open jovo test capsule) | ||
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=) | ||
last-modified (1580658764910) | ||
} |
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-j.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-jf9mgbvjzsu1thmwrgql6akwj) { | ||
utterance ([g:LaunchAction] open jovo test capsule) | ||
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=) | ||
last-modified (1580653703413) | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-u.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-ujd5gt050is8xbsiyh1fqsi0k) { | ||
utterance ("[g:MyNameIsAction] i am (paul)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580654105294) | ||
} |
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
...07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/en/training/t-z.training.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
train (t-znvq2370wdynlubi4y97trf09) { | ||
utterance ("[g:MyNameIsAction] my name is (max)[v:NameInput]") | ||
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==) | ||
last-modified (1580654133228) | ||
} |
Binary file added
BIN
+1.28 KB
...escript/07_samsungbixby/hello-world/platforms/bixbyCapsule/assets/jovo-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
examples/typescript/07_samsungbixby/hello-world/platforms/bixbyCapsule/capsule.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
capsule { | ||
id (playground.jovo_test) | ||
version (0.1.0) | ||
format (3) | ||
targets { | ||
target (bixby-mobile-en-US) | ||
} | ||
runtime-version (3) | ||
permissions { | ||
bixby-user-id-access | ||
} | ||
store-countries { | ||
all | ||
} | ||
store-sections { | ||
section (Utilities) | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ngbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoSessionId.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoSessionId) { | ||
description (Defines a unique session id.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...msungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoSpeech.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoSpeech) { | ||
description (The returned Jovo output.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...amsungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoState.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoState) { | ||
description (The current state of the Jovo handler.) | ||
} |
3 changes: 3 additions & 0 deletions
3
...samsungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/primitives/JovoText.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (JovoText) { | ||
description (The returned Jovo output as plain text without SSML.) | ||
} |
6 changes: 6 additions & 0 deletions
6
...msungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoLayout.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
structure (JovoLayout) { | ||
description (Layout structure. Add your fields for usage.) | ||
|
||
// Paste your own layout properties here. | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...ungbixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoResponse.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
structure (JovoResponse) { | ||
description (Response from Jovo Framework) | ||
|
||
property (_JOVO_SESSION_DATA_) { | ||
type (JovoSessionData) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property(_JOVO_SPEECH_) { | ||
type(JovoSpeech) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property (_JOVO_TEXT_) { | ||
type(JovoText) | ||
min (Optional) | ||
max (One) | ||
} | ||
|
||
property (_JOVO_LAYOUT_) { | ||
type(JovoLayout) | ||
min (Optional) | ||
max (One) | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...bixby/hello-world/platforms/bixbyCapsule/models/Jovo/structures/JovoSessionData.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
structure (JovoSessionData) { | ||
description (Session Data) | ||
|
||
property(_JOVO_SESSION_ID_) { | ||
type(JovoSessionId) | ||
max (One) | ||
min (Required) | ||
} | ||
|
||
property(_JOVO_STATE_) { | ||
type(JovoState) | ||
max (One) | ||
min (Optional) | ||
} | ||
|
||
// Paste your own session properties here. | ||
property(name) { | ||
type (NameInput) | ||
max (One) | ||
min (Optional) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../07_samsungbixby/hello-world/platforms/bixbyCapsule/models/actions/LaunchAction.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
action (LaunchAction) { | ||
description (Opens the voice application for the first time.) | ||
type (Search) | ||
output (JovoResponse) | ||
} |
20 changes: 20 additions & 0 deletions
20
...7_samsungbixby/hello-world/platforms/bixbyCapsule/models/actions/MyNameIsAction.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
action (MyNameIsAction) { | ||
description (Collects a name from the user and returns a welcome message.) | ||
type (Search) | ||
|
||
collect { | ||
input (_JOVO_INPUT_name) { | ||
type (NameInput) | ||
min (Required) | ||
max (One) | ||
} | ||
|
||
input (_JOVO_PREV_RESPONSE_) { | ||
type(JovoResponse) | ||
min (Required) | ||
max (One) | ||
} | ||
} | ||
output (JovoResponse) | ||
} | ||
|
3 changes: 3 additions & 0 deletions
3
.../07_samsungbixby/hello-world/platforms/bixbyCapsule/models/primitives/NameInput.model.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
text (NameInput) { | ||
description (A name to display in a welcome message.) | ||
} |
1 change: 1 addition & 0 deletions
1
...ript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/base/capsule.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.default.remote.url=YOUR_WEBHOOK_URL_HERE |
15 changes: 15 additions & 0 deletions
15
...ypescript/07_samsungbixby/hello-world/platforms/bixbyCapsule/resources/base/endpoints.bxb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
endpoints { | ||
action-endpoints { | ||
action-endpoint (LaunchAction) { | ||
remote-endpoint ("{remote.url}") { | ||
method (POST) | ||
} | ||
} | ||
|
||
action-endpoint (MyNameIsAction) { | ||
remote-endpoint ("{remote.url}?intent=MyNameIsIntent") { | ||
method (POST) | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.