Skip to content

Commit 777cd43

Browse files
committed
final regeneration for v5 (watson-developer-cloud#978)
* refactor: update authorization, stt, and tts to handle promises from the core * refactor: all service methods now return a Promise by default - callbacks are still supported * chore: support array parameters in visual recognition * build: bump core version to 1.0.0 * docs: update the migration guide with final service updates * chore: make `prefix` required in method `getAutocomplete` * update the tests to match the style guide
1 parent b8cc7d9 commit 777cd43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+34437
-29344
lines changed

MIGRATION-V5.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,34 @@ The order of priority has changed to give a file in the current working director
6060
- Parameter `include_count` removed from method `listValues`
6161
- Parameter `include_count` removed from method `listSynonyms`
6262
- Parameter `include_count` removed from method `listDialogNodes`
63+
- Parameter `include_count` removed from method `listWorkspaces`
64+
- Parameter `include_count` removed from method `listIntents`
65+
- Parameter `include_count` removed from method `listExamples`
66+
- Parameter `include_count` removed from method `listCounterexamples`
6367
- Parameter `value_type` renamed to `type` in method `createValue`
6468
- Parameter `new_value_type` renamed to `newType` in method `updateValue`
6569
- Parameter `node_type` renamed to `type` in method `createDialogNode`
6670
- Parameter `new_node_type` renamed to `newType`in method `updateDialogNode`
67-
- Interface `DialogRuntimeResponseGeneric` removed
71+
- Interface `DialogRuntimeResponseGeneric` renamed to `RuntimeResponseGeneric`
6872
- Interface `DialogSuggestions` removed
6973
- Additional properties no longer supported for interface `LogMessage`
7074
- Additional properties no longer supported for interface `RuntimeEntity`
7175
- Additional properties no longer supported for interface `RuntimeIntent`
7276
- Property `value_type` renamed to `type` in interface `Value`
77+
- Property `value_type` renamed to `type` in interface `CreateValue`
78+
- Property `node_type` renamed to `type` in interface `DialogNode`
79+
- Property `action_type` renamed to `type` in interface `DialogNodeAction`
80+
- Property `output` changed type from `JsonObject` to `DialogSuggestionOutput` in interface `DialogSuggestion`
7381

7482
#### Assistant v2
7583
- Property `action_type` renamed to `type` in interface `DialogNodeAction`
76-
- Interface `DialogRuntimeResponseGeneric` removed
84+
- Interface `DialogRuntimeResponseGeneric` renamed to `RuntimeResponseGeneric`
7785

7886
#### Compare Comply
7987
- Parameter `filename` removed from method `convertToHtml`
8088

8189
#### Discovery
90+
- Parameter `collectionIds` removed from method `query`
8291
- Parameter `return_fields` renamed to `_return` in method `query`
8392
- Parameter `logging_opt_out` renamed to `xWatsonLoggingOptOut` in method `query`
8493
- Parameter `return_fields` renamed to `_return` in method `federatedQuery`
@@ -87,6 +96,10 @@ The order of priority has changed to give a file in the current working director
8796
- Parameter `return_fields` renamed to `_return` in method `federatedQueryNotices`
8897
- Property `field_name` renamed to `field` in interface `Field`
8998
- Property `field_type` renamed to `type` in interface `Field`
99+
- Property `enrichment_name` renamed to `enrichment` in interface `Enrichment`
100+
- Method `queryEntities()` removed
101+
- Method `queryRelations()` removed
102+
- Method `testConfigurationInEnvironment()` removed
90103

91104
#### Language Translator
92105
- Parameter `default_models` renamed to `_default` in method `listModels`
@@ -95,6 +108,10 @@ The order of priority has changed to give a file in the current working director
95108
#### Natural Language Classifier
96109
- Parameter `metadata` renamed to `trainingMetadata` in method `createClassifier`
97110

111+
##### Speech to Text
112+
* Property `final_results` renamed to `final` in interface `SpeakerLabelsResult`
113+
* Property `final_results` renamed to `final` in interface `SpeechRecognitionResult`
114+
98115
#### Text to Speech
99116
- The following voices are removed:
100117
- `DE_DE_BIRGITV2VOICE`
@@ -106,4 +123,4 @@ The order of priority has changed to give a file in the current working director
106123

107124
#### Visual Recognition
108125
- Property `class_name` renamed to `_class` in interface `ClassResult`
109-
126+
- Method `detectFaces()` removed

0 commit comments

Comments
 (0)