Implemented UpdateConfiguration intent

Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
This commit is contained in:
Alessio Nossa
2022-02-01 10:16:38 +01:00
parent ceabb4ea34
commit fe3f2d089b
6 changed files with 358 additions and 1 deletions
+210
View File
@@ -150,6 +150,216 @@
<key>INIntentVerb</key>
<string>Do</string>
</dict>
<dict>
<key>INIntentCategory</key>
<string>generic</string>
<key>INIntentConfigurable</key>
<true/>
<key>INIntentDescription</key>
<string>Update peers configuration. Configuration must be provided with the same format as the following example. The fields you can update are: "Endpoint".
The fields and the peers you omit will not be modified.
Example
{ "Peer1 Public Key (Base64)": { "Endpoint": "1.2.3.4:4321" },
"Peer2 Public Key (Base64)": {"Endpoint": "10.11.12.13:6789"} }</string>
<key>INIntentDescriptionID</key>
<string>uTimVO</string>
<key>INIntentIneligibleForSuggestions</key>
<true/>
<key>INIntentInput</key>
<string>configuration</string>
<key>INIntentLastParameterTag</key>
<integer>5</integer>
<key>INIntentManagedParameterCombinations</key>
<dict>
<key>tunnel,configuration,completionUrl</key>
<dict>
<key>INIntentParameterCombinationSupportsBackgroundExecution</key>
<true/>
<key>INIntentParameterCombinationTitle</key>
<string>Update ${tunnel} configuration</string>
<key>INIntentParameterCombinationTitleID</key>
<string>2ASDIM</string>
<key>INIntentParameterCombinationUpdatesLinked</key>
<true/>
</dict>
</dict>
<key>INIntentName</key>
<string>UpdateConfiguration</string>
<key>INIntentParameters</key>
<array>
<dict>
<key>INIntentParameterConfigurable</key>
<true/>
<key>INIntentParameterDisplayName</key>
<string>Tunnel</string>
<key>INIntentParameterDisplayNameID</key>
<string>TjOtzk</string>
<key>INIntentParameterDisplayPriority</key>
<integer>1</integer>
<key>INIntentParameterMetadata</key>
<dict>
<key>INIntentParameterMetadataCapitalization</key>
<string>Sentences</string>
<key>INIntentParameterMetadataDefaultValueID</key>
<string>h56bAD</string>
</dict>
<key>INIntentParameterName</key>
<string>tunnel</string>
<key>INIntentParameterPromptDialogs</key>
<array>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Configuration</string>
</dict>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Primary</string>
</dict>
</array>
<key>INIntentParameterSupportsDynamicEnumeration</key>
<true/>
<key>INIntentParameterTag</key>
<integer>1</integer>
<key>INIntentParameterType</key>
<string>String</string>
</dict>
<dict>
<key>INIntentParameterConfigurable</key>
<true/>
<key>INIntentParameterDisplayName</key>
<string>Configuration</string>
<key>INIntentParameterDisplayNameID</key>
<string>3SLMhb</string>
<key>INIntentParameterDisplayPriority</key>
<integer>2</integer>
<key>INIntentParameterMetadata</key>
<dict>
<key>INIntentParameterMetadataCapitalization</key>
<string>None</string>
<key>INIntentParameterMetadataDefaultValue</key>
<string>{"Peer Public Key": {"Endpoint":"1.2.3.4:5678"} }</string>
<key>INIntentParameterMetadataDefaultValueID</key>
<string>1J2FBa</string>
<key>INIntentParameterMetadataDisableAutocorrect</key>
<true/>
<key>INIntentParameterMetadataDisableSmartDashes</key>
<true/>
<key>INIntentParameterMetadataDisableSmartQuotes</key>
<true/>
<key>INIntentParameterMetadataMultiline</key>
<true/>
</dict>
<key>INIntentParameterName</key>
<string>configuration</string>
<key>INIntentParameterPromptDialogs</key>
<array>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Configuration</string>
</dict>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Primary</string>
</dict>
</array>
<key>INIntentParameterTag</key>
<integer>2</integer>
<key>INIntentParameterType</key>
<string>String</string>
</dict>
<dict>
<key>INIntentParameterConfigurable</key>
<true/>
<key>INIntentParameterDisplayName</key>
<string>Open URL when done</string>
<key>INIntentParameterDisplayNameID</key>
<string>dwpgmC</string>
<key>INIntentParameterDisplayPriority</key>
<integer>3</integer>
<key>INIntentParameterMetadata</key>
<dict>
<key>INIntentParameterMetadataCapitalization</key>
<string>None</string>
<key>INIntentParameterMetadataDefaultValue</key>
<string>shortcuts://</string>
<key>INIntentParameterMetadataDefaultValueID</key>
<string>cyr6LU</string>
<key>INIntentParameterMetadataDisableAutocorrect</key>
<true/>
<key>INIntentParameterMetadataDisableSmartDashes</key>
<true/>
<key>INIntentParameterMetadataDisableSmartQuotes</key>
<true/>
</dict>
<key>INIntentParameterName</key>
<string>completionUrl</string>
<key>INIntentParameterPromptDialogs</key>
<array>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Configuration</string>
</dict>
<dict>
<key>INIntentParameterPromptDialogCustom</key>
<true/>
<key>INIntentParameterPromptDialogType</key>
<string>Primary</string>
</dict>
</array>
<key>INIntentParameterTag</key>
<integer>5</integer>
<key>INIntentParameterType</key>
<string>String</string>
</dict>
</array>
<key>INIntentResponse</key>
<dict>
<key>INIntentResponseCodes</key>
<array>
<dict>
<key>INIntentResponseCodeName</key>
<string>success</string>
<key>INIntentResponseCodeSuccess</key>
<true/>
</dict>
<dict>
<key>INIntentResponseCodeName</key>
<string>failure</string>
</dict>
<dict>
<key>INIntentResponseCodeConciseFormatString</key>
<string>The configuration update provided is not in the right format. Make sure you pass configuration as described in Action description.</string>
<key>INIntentResponseCodeConciseFormatStringID</key>
<string>xB99X4</string>
<key>INIntentResponseCodeFormatString</key>
<string>The configuration update provided is not in the right format. Make sure you pass configuration as described in Action description.</string>
<key>INIntentResponseCodeFormatStringID</key>
<string>UljpyD</string>
<key>INIntentResponseCodeName</key>
<string>wrongConfiguration</string>
</dict>
</array>
</dict>
<key>INIntentTitle</key>
<string>Update Configuration</string>
<key>INIntentTitleID</key>
<string>iYtEWT</string>
<key>INIntentType</key>
<string>Custom</string>
<key>INIntentVerb</key>
<string>Do</string>
</dict>
</array>
<key>INTypes</key>
<array/>