|
1 | 1 |
|
| 2 | +# 4.0.0 (Preview) (https://github.com/watson-developer-cloud/swift-sdk/compare/3.6.0...4.0.0) (2020-10-29) |
| 3 | + |
| 4 | +## Breaking Changes |
| 5 | + |
| 6 | +### All Services |
| 7 | +* `init` now accepts a `serviceName` parameter to set the default service name of the instance |
| 8 | + |
| 9 | +### AssistantV1 Service |
| 10 | + |
| 11 | +* Now Accepts `includeCount` Parameter: `listWorkspaces()`, `listIntents()`, `listExamples()`, `listCounterexamples()`, `listEntities()`, `listValues()`, `listSynonyms()`, `listDialogNodes()` |
| 12 | + |
| 13 | +* `createWorkspace()`: function parameter reordering |
| 14 | + |
| 15 | +* `updateWorkspace()`: function parameter reordering |
| 16 | + |
| 17 | +* `createDialogNode()`: parameter `context` type change from `[Sting: JSON]?` to `DialogNodeContext?` |
| 18 | + |
| 19 | +* `updateDialogNode()`: parameter `newContext` type change from `[Sting: JSON]?` to `DialogNodeContext?` |
| 20 | + |
| 21 | +* `bulkClassify()`: function added - Identify intents and entities in multiple user utterances. |
| 22 | + |
| 23 | + |
| 24 | +### AssistantV1 Models |
| 25 | + |
| 26 | +#### Models Added |
| 27 | +`BulkClassifyOutput`, `BulkClassifyResponse`, `BulkClassifyUtterance`, `DialogNodeContext`, `DialogNodeOutputConnectToAgentTransferInfo`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeImage`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeOption`, `DialogNodeOutputGenericDialogNodeOutputResponseTypePause`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeText`, `RuntimeResponseGenericRuntimeResponseTypeConnectToAgent`, `RuntimeResponseGenericRuntimeResponseTypeImage`, `RuntimeResponseGenericRuntimeResponseTypeOption`, `RuntimeResponseGenericRuntimeResponseTypePause`, `RuntimeResponseGenericRuntimeResponseTypeSuggestion`, `RuntimeResponseGenericRuntimeResponseTypeText` |
| 28 | + |
| 29 | +#### Models Removed |
| 30 | +`CreateWorkspace`, `DialogNodeSuggestionOutput`, `DialogSuggestionResponseGeneric`, `SystemResponse`, `UpdateCounterexample`, `UpdateDialogNode`, `UpdateEntity`, `UpdateExample`, `UpdateIntent`, `UpdateSynonym`, `UpdateValue`, `UpdateWorkspace`, `WorkspaceSystemSettings`, `WorkspaceSystemSettingsDisambiguation`, `WorkspaceSystemSettingsOffTopic`, `WorkspaceSystemSettingsSystemEntities`, `WorkspaceSystemSettingsTooling`, `WorkspaceSystemSettings`, |
| 31 | + |
| 32 | +#### Model Properties Changed |
| 33 | +`Context` |
| 34 | +* `system` type changed from `SystemResponse?` to `[String: JSON]?` |
| 35 | + |
| 36 | +`DialogSuggestion` |
| 37 | +* `output` type changed from `DialogSuggestionOutput?` to `[String: JSON]?` |
| 38 | + |
| 39 | +`Counterexample`, `CreateEntity`, `CreateIntent`, `CreateValue`, `Example`, `Synonym` |
| 40 | +* `created` read only |
| 41 | +* `updated` read only |
| 42 | + |
| 43 | +`DialogNodeOutput` |
| 44 | +* `integrations` added |
| 45 | + |
| 46 | +`MessageInput` |
| 47 | + |
| 48 | +* `suggestedText` read only |
| 49 | +* `originalText` read only |
| 50 | + |
| 51 | +`MessageRequest` |
| 52 | + |
| 53 | +* `actions` read only |
| 54 | + |
| 55 | +`Webhook` |
| 56 | + |
| 57 | +* `headers` renamed to `xheaders` |
| 58 | + |
| 59 | +#### Multiple/Unique Changes |
| 60 | +`DialogNode` |
| 61 | +* `context` type changed from `[String: JSON]?` to `DialogNodeContext?` |
| 62 | +* `disabled` parameter removed |
| 63 | +* `created` parameter removed |
| 64 | +* `updated` parameter removed |
| 65 | + |
| 66 | +`DialogNodeOutputGeneric` |
| 67 | +* Changed from struct to enum to discriminate between response types |
| 68 | + |
| 69 | +`RuntimeResponseGeneric` |
| 70 | +* Changed from struct to enum to discriminate between response types |
| 71 | + |
| 72 | + |
| 73 | +### AssistantV2 Service |
| 74 | + |
| 75 | +* `bulkClassify()`: function added - Identify intents and entities in multiple user utterances. |
| 76 | + |
| 77 | +### AssistantV2 Models |
| 78 | + |
| 79 | +#### Models Added |
| 80 | +`BulkClassifyOutput`, `BulkClassifyResponse`, `BulkClassifyUtterance`, `DialogNodeOutputConnectToAgentTransferInfo`, `RuntimeResponseGenericRuntimeResponseTypeConnectToAgent`, `RuntimeResponseGenericRuntimeResponseTypeImage`, `RuntimeResponseGenericRuntimeResponseTypeOption`, `RuntimeResponseGenericRuntimeResponseTypePause`, `RuntimeResponseGenericRuntimeResponseTypeSuggestion`, `RuntimeResponseGenericRuntimeResponseTypeText` |
| 81 | + |
| 82 | +#### Models Removed |
| 83 | +`MessageContextSkills`, `MessageRequestStateless` |
| 84 | + |
| 85 | +#### Model Properties Changed |
| 86 | +`MessageContextGlobal` |
| 87 | +* `system` read only |
| 88 | + |
| 89 | +`MessageContext`, `MessageContextStateless` |
| 90 | +* `skills` type changed from `MessageContextSkills?` to `[String: MessageContextSkill]?` |
| 91 | + |
| 92 | +`MessageInputOptions` |
| 93 | +* model parameters repositioned |
| 94 | + |
| 95 | +#### Multiple/Unique Changes |
| 96 | +`RuntimeResponseGeneric` |
| 97 | +* Changed from struct to enum to discriminate between response types |
| 98 | + |
| 99 | +### CompareComplyV1 Service |
| 100 | + |
| 101 | +* `listFeedback()`: `before` and `after` parameters removed |
| 102 | + |
| 103 | +### CompareComplyV1 Models |
| 104 | + |
| 105 | +#### Models Removed |
| 106 | +`FeedbackInput` |
| 107 | + |
| 108 | +#### Model Properties Changed |
| 109 | +`Category`, `TypeLabel` |
| 110 | +* `modification` added |
| 111 | + |
| 112 | +`OriginalLabelsOut`, `UpdatedLabelsOut` |
| 113 | +* `modification` removed |
| 114 | + |
| 115 | +### DiscoveryV1 Service |
| 116 | + |
| 117 | +* No changes |
| 118 | + |
| 119 | +### DiscoveryV1 Models |
| 120 | + |
| 121 | +#### Models Removed |
| 122 | +`CollQueryLarge`, `CreateCollectionRequest`, `CreateEnvironmentRequest`, `CreateEventObject`, `FedQueryLarge`, `GatewayName`, `GenericQueryAggregation`, `NewTrainingQuery`, `NluEnrichmentCategories`, `QueryLarge`, `TokenDict`, `TrainingExamplePatch`, `UpdateCollectionRequest`, `UpdateEnvironmentRequest` |
| 123 | +#### Model Prroperties Changed |
| 124 | +`Configuration` |
| 125 | +* `created` read only |
| 126 | +* `updated` read only |
| 127 | +* `configurationID` read only |
| 128 | + |
| 129 | +`Credentials` |
| 130 | +* `credentialID` read only |
| 131 | + |
| 132 | +`EventData` |
| 133 | +* `queryID` read only |
| 134 | + |
| 135 | +`NluEnrichmentFeatures` |
| 136 | +* `categories` type changed from `NluEnrichmentCategories?` to `[String: JSON]?` |
| 137 | + |
| 138 | +### DiscoveryV2 Service |
| 139 | + |
| 140 | +* `analyzeDocument()`: function added - Process a document using the specified collection's settings and return it for realtime use. - Currently CP4D only |
| 141 | + |
| 142 | +### DiscoveryV2 Models |
| 143 | + |
| 144 | +#### Models Added |
| 145 | +`AnalyzedDocument`, `AnalyzedResult`, `QueryResponsePassage`, ` |
| 146 | +#### Models Removed |
| 147 | +`GenericQueryAggregation`, `ProjectCreation`, `ProjectName`, `QueryLarge`, `QueryNoticesResult`, `UpdateCollection`, `UpdateEnrichment` |
| 148 | +#### Model Properties Changed |
| 149 | +`CollectionDetails` |
| 150 | +* `collectionID` read only |
| 151 | +* `created` read only |
| 152 | + |
| 153 | +`QueryResponse` |
| 154 | +* `passages` added |
| 155 | + |
| 156 | +`TrainingExample` |
| 157 | +* `created` read only |
| 158 | +* `updated` read only |
| 159 | + |
| 160 | +`TraningQuery` |
| 161 | +* `created` read only |
| 162 | +* `updated` read only |
| 163 | +* `queryID` read only |
| 164 | + |
| 165 | +### LanguageTranslator Service |
| 166 | +* No changes |
| 167 | + |
| 168 | +### LanguageTranslatorV3 Models |
| 169 | + |
| 170 | +#### Models Removed |
| 171 | +`TranslateRequest` |
| 172 | + |
| 173 | +### NaturalLanguageClassifierV1 Service |
| 174 | +* No changes |
| 175 | + |
| 176 | +### NaturalLanguageClassifierV1 Models |
| 177 | + |
| 178 | +#### Models Removed |
| 179 | +`ClassifyCollectionInput` |
| 180 | + |
| 181 | +### NaturalLanguageUnderstanding Service |
| 182 | +* No changes |
| 183 | + |
| 184 | +### NaturalLanguageUnderstandingV1 Models |
| 185 | + |
| 186 | +#### Models Added |
| 187 | +`FeaturesResultsMetadata` |
| 188 | +#### Models Removed |
| 189 | +`AnalysisResultsMetadata`, `MetadataOptions`, `Parameters` |
| 190 | +#### Model Properties Changed |
| 191 | +`AnalysisResults` |
| 192 | +* `metadata` type changed from `AnalysisResultsMetadata?` to `FeaturesResultsMetadata?` |
| 193 | + |
| 194 | +`Features` |
| 195 | +* `metadata` type changed from `MetadataOptions?` to `[String: JSON]?` |
| 196 | + |
| 197 | +### PersonalityInsights Service |
| 198 | +IBM Watson™ Personality Insights is discontinued. For a period of one year from 1 December 2020, you will still be able to use Watson Personality Insights. However, as of 1 December 2021, the offering will no longer be available. |
| 199 | + |
| 200 | +As an alternative, we encourage you to consider migrating to IBM Watson™ Natural Language Understanding, a service on IBM Cloud® that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax to provide insights for your business or industry. For more information, see About Natural Language Understanding. |
| 201 | + |
| 202 | +* `profile()`: csvHeaders parameter added |
| 203 | + |
| 204 | +* `profileAsCSV()`: return type changed from `WatsonResponse<String>?` to `WatsonResponse<Data>?` |
| 205 | + |
| 206 | +### PersonalityInightsV3 Models |
| 207 | +* No changes |
| 208 | + |
| 209 | +### SpeechToTextV1 Service |
| 210 | +* `trainLanguageModel()`: return type changed from `WatsonResponse<Void>?` to `WatsonResponse<TrainingResponse>?` |
| 211 | + |
| 212 | +* `trainAcousticModel()`: return type changed from `WatsonResponse<Void>?` to `WatsonResponse<TrainingResponse>?` |
| 213 | + |
| 214 | +### SpeechToTextV1 Models |
| 215 | +* No changes |
| 216 | + |
| 217 | +#### Models Removed |
| 218 | +`CreateAcousticModel`, `CreateLanguageModel`, `CustomWords` |
| 219 | + |
| 220 | +### TextToSpeechV1 Service |
| 221 | +* `createVoiceModel()`: function changed to `createCustomModel()` now returning `WatsonResponse<CustomModel>?` |
| 222 | + |
| 223 | +* `listVoiceModels()`: function changed to `listCustomModels()` now returning `WatsonResponse<CustomModels>?` |
| 224 | + |
| 225 | +* `updateVoiceModel()`: function changed to `updateCustomModel()` |
| 226 | + |
| 227 | +* `getVoiceModel()`: function changed to `getCustomModel()` now returning `WatsonResponse<CustomModel>?` |
| 228 | + |
| 229 | +* `deleteVoiceModel()`: function changed to `deleteCustomModel()` |
| 230 | + |
| 231 | +### TextToSpeechV1 Models |
| 232 | + |
| 233 | +#### Models Added |
| 234 | +`CustomModel`, `CustomModels` |
| 235 | +#### Models Removed |
| 236 | +`CreateVoiceModel`, `Text`, `UpdateVoiceModel`, `VoiceModel`, `VoiceModels` |
| 237 | +#### Model Properties Changed |
| 238 | +`Voice` |
| 239 | +* customization type changed from `VoiceModel?` to `CustomModel?` |
| 240 | + |
| 241 | +### ToneAnalyzerV3 Models |
| 242 | + |
| 243 | +#### Models Removed |
| 244 | +`ToneChatInput` |
| 245 | + |
| 246 | +### VisualRecognitionV3 Service |
| 247 | +IBM Watson™ Visual Recognition is discontinued. Existing instances are supported until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance that is provisioned on 1 December 2021 will be deleted. |
| 248 | + |
| 249 | +### VisualRecognitionV3 Models |
| 250 | +* No changes |
| 251 | + |
| 252 | +### VisualRecognitionV4 Service |
| 253 | +IBM Watson™ Visual Recognition is discontinued. Existing instances are supported until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance that is provisioned on 1 December 2021 will be deleted. |
| 254 | + |
| 255 | +* `getTrainingUsage()`: `startTime` and `endTime` parameter types changed from `String?` to `Date?` |
| 256 | + |
| 257 | +### VisualRecognitionV4 Models |
| 258 | + |
| 259 | +#### Models Added |
| 260 | +`CollectionTrainingStatus`, `ObjectDetailLocation` |
| 261 | +#### Models Removed |
| 262 | +`BaseCollection`, `BaseTrainingDataObjects` |
| 263 | +#### Model Properties Changed |
| 264 | +`Collection` |
| 265 | +* `trainingStatus` type changed from `TrainingStatus` to `CollectionTrainingStatus` |
| 266 | + |
| 267 | +`ObjectDetail` |
| 268 | +* `location` type changed from `Location` to `ObjectDetailLocation` |
| 269 | + |
| 270 | +`UpdateObjectMetadata` |
| 271 | +* `count` read only |
| 272 | + |
2 | 273 | ## 3.0.0 (Preview) (https://github.com/watson-developer-cloud/swift-sdk/compare/2.3.0...3.0.0) (2019-10-04) |
3 | 274 |
|
4 | 275 | ### Breaking Changes |
@@ -544,7 +815,7 @@ VisualRecognitionV4 added :tada: |
544 | 815 |
|
545 | 816 |
|
546 | 817 | ### SpeechToTextV1 |
547 | | -- The `tokenURL` and `websocketsURL` properties are no longer public. Setting the `serviceURL` will automatically update the other two URLs appropriately. |
| 818 | +- The `websocketsURL` property is no longer public. Setting the `serviceURL` will automatically update the property. |
548 | 819 | - Add missing parameters `baseModelVersion`, `languageCustomizationID`, and `customerID` to the following methods: |
549 | 820 | - `recognize()` (using an audio file) |
550 | 821 | - `recognizeUsingWebsocket()` |
|
0 commit comments