Skip to content

Commit 0b77bdd

Browse files
authored
Merge pull request #1034 from watson-developer-cloud/rc-candidate-major-release-4.0.0
Rc candidate major release 4.0.0
2 parents 8a47cc0 + 8c3653d commit 0b77bdd

724 files changed

Lines changed: 8199 additions & 9151 deletions

File tree

Some content is hidden

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

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ message = Release version {new_version} [skip ci]
55

66
[bumpversion:file:README.md]
77

8-
[bumpversion:file:Source/SupportingFiles/Shared.swift]
8+
[bumpversion:file:Sources/SupportingFiles/Shared.swift]
99

1010
[bumpversion:file:IBMWatsonAssistantV1.podspec]
1111

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Custom
2-
Source/SupportingFiles/Credentials.swift
3-
Source/SupportingFiles/WatsonCredentials.swift
2+
Sources/SupportingFiles/Credentials.swift
3+
Sources/SupportingFiles/WatsonCredentials.swift
44
Tests/CompareComplyV1Tests/Resources/cloud-object-storage-credentials*
55

66
# Build generated

.swiftlint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
excluded: # paths to ignore during linting (takes precedence over `included`)
22
- Carthage
3-
- Source/SupportingFiles/Dependencies
4-
- Source/*/Shared.swift
3+
- Sources/SupportingFiles/Dependencies
4+
- Sources/*/Shared.swift
55

66
disabled_rules: # rule identifiers to exclude from running
77
- closure_parameter_position
@@ -10,6 +10,8 @@ disabled_rules: # rule identifiers to exclude from running
1010
- cyclomatic_complexity
1111
- superfluous_disable_command
1212
- function_parameter_count
13+
- identifier_name
14+
- line_length
1315

1416
opt_in_rules:
1517
- force_unwrapping

CHANGELOG.md

Lines changed: 272 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,275 @@
11

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+
2273
## 3.0.0 (Preview) (https://github.com/watson-developer-cloud/swift-sdk/compare/2.3.0...3.0.0) (2019-10-04)
3274

4275
### Breaking Changes
@@ -544,7 +815,7 @@ VisualRecognitionV4 added :tada:
544815

545816

546817
### 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.
548819
- Add missing parameters `baseModelVersion`, `languageCustomizationID`, and `customerID` to the following methods:
549820
- `recognize()` (using an audio file)
550821
- `recognizeUsingWebsocket()`

IBMWatsonAssistantV1.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ natural-language input and uses machine learning to respond to customers in a wa
1616
s.ios.deployment_target = '10.0'
1717
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
1818

19-
s.source_files = 'Source/AssistantV1/**/*.swift',
20-
'Source/SupportingFiles/InsecureConnection.swift',
21-
'Source/SupportingFiles/Shared.swift'
22-
s.exclude_files = 'Source/AssistantV1/Shared.swift'
19+
s.source_files = 'Sources/AssistantV1/**/*.swift',
20+
'Sources/SupportingFiles/InsecureConnection.swift',
21+
'Sources/SupportingFiles/Shared.swift'
22+
s.exclude_files = 'Sources/AssistantV1/Shared.swift'
2323

2424
s.swift_version = ['4.2', '5.0', '5.1']
2525
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'

IBMWatsonAssistantV2.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ natural-language input and uses machine learning to respond to customers in a wa
1616
s.ios.deployment_target = '10.0'
1717
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
1818

19-
s.source_files = 'Source/AssistantV2/**/*.swift',
20-
'Source/SupportingFiles/InsecureConnection.swift',
21-
'Source/SupportingFiles/Shared.swift'
22-
s.exclude_files = 'Source/AssistantV2/Shared.swift'
19+
s.source_files = 'Sources/AssistantV2/**/*.swift',
20+
'Sources/SupportingFiles/InsecureConnection.swift',
21+
'Sources/SupportingFiles/Shared.swift'
22+
s.exclude_files = 'Sources/AssistantV2/Shared.swift'
2323

2424
s.swift_version = ['4.2', '5.0', '5.1']
2525
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'

IBMWatsonCompareComplyV1.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ IBM Watson™ Compare and Comply analyzes governing documents to provide details
1515
s.ios.deployment_target = '10.0'
1616
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
1717

18-
s.source_files = 'Source/CompareComplyV1/**/*.swift',
19-
'Source/SupportingFiles/InsecureConnection.swift',
20-
'Source/SupportingFiles/Shared.swift'
21-
s.exclude_files = 'Source/CompareComplyV1/Shared.swift'
18+
s.source_files = 'Sources/CompareComplyV1/**/*.swift',
19+
'Sources/SupportingFiles/InsecureConnection.swift',
20+
'Sources/SupportingFiles/Shared.swift'
21+
s.exclude_files = 'Sources/CompareComplyV1/Shared.swift'
2222

2323
s.swift_version = ['4.2', '5.0', '5.1']
2424
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'

IBMWatsonDiscoveryV1.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ as well as public and third-party data.
1717
s.ios.deployment_target = '10.0'
1818
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
1919

20-
s.source_files = 'Source/DiscoveryV1/**/*.swift',
21-
'Source/SupportingFiles/InsecureConnection.swift',
22-
'Source/SupportingFiles/Shared.swift'
23-
s.exclude_files = 'Source/DiscoveryV1/Shared.swift'
20+
s.source_files = 'Sources/DiscoveryV1/**/*.swift',
21+
'Sources/SupportingFiles/InsecureConnection.swift',
22+
'Sources/SupportingFiles/Shared.swift'
23+
s.exclude_files = 'Sources/DiscoveryV1/Shared.swift'
2424

2525
s.swift_version = ['4.2', '5.0', '5.1']
2626
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'

IBMWatsonDiscoveryV2.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ as well as public and third-party data. IBM Watson™ Discovery V2 is available
1717
s.ios.deployment_target = '10.0'
1818
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
1919

20-
s.source_files = 'Source/DiscoveryV2/**/*.swift',
21-
'Source/SupportingFiles/InsecureConnection.swift',
22-
'Source/SupportingFiles/Shared.swift'
23-
s.exclude_files = 'Source/DiscoveryV2/Shared.swift'
20+
s.source_files = 'Sources/DiscoveryV2/**/*.swift',
21+
'Sources/SupportingFiles/InsecureConnection.swift',
22+
'Sources/SupportingFiles/Shared.swift'
23+
s.exclude_files = 'Sources/DiscoveryV2/Shared.swift'
2424

2525
s.swift_version = ['4.2', '5.0', '5.1']
2626
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'

0 commit comments

Comments
 (0)