Skip to content

Commit 533b631

Browse files
committed
docs(migration): add migration guide to 9.x.x
1 parent 7ef1afa commit 533b631

1 file changed

Lines changed: 320 additions & 0 deletions

File tree

MIGRATION-V9.md

Lines changed: 320 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,320 @@
1+
## v9.0.0 Migration guide
2+
This document should serve as a guide to breaking changes for users moving from code using the v8.x.x version of the SDK to v9.x.x.
3+
4+
### Service changes
5+
6+
### All Services
7+
* The `version` of a service can be retrieved with `getVersion()`
8+
* The `version` of a service can be set with `setVersion()`
9+
10+
### Assistant v1 Instance
11+
12+
* Added function `bulkClassify()`: Identify intents and entities in multiple user utterances.
13+
14+
### Assistant v1 Models
15+
16+
#### Models Added
17+
18+
`BulkClassifyOptions`, `BulkClassifyOutput`, `BulkClassifyResponse`, `BulkClassifyUtterance`, `DialogNodeContext`, `DialogNodeOutputConnectToAgentTransferInfo`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeImage`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeOption`, `DialogNodeOutputGenericDialogNodeOutputResponseTypePause`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill`, `DialogNodeOutputGenericDialogNodeOutputResponseTypeText`, `RuntimeResponseGenericRuntimeResponseTypeConnectToAgent`, `RuntimeResponseGenericRuntimeResponseTypeImage`, `RuntimeResponseGenericRuntimeResponseTypeOption`, `RuntimeResponseGenericRuntimeResponseTypePause`, `RuntimeResponseGenericRuntimeResponseTypeSuggestion`, `RuntimeResponseGenericRuntimeResponseTypeText`
19+
20+
#### Models Removed
21+
22+
#### Model Properties Changed
23+
24+
`Context`
25+
* Added Builder
26+
* `System` property type changed from `SystemResponse` to `Map<String, Object>`
27+
28+
`Counterexample`, `CreateEntity`, `CreateIntent`, `CreateValue`, `Example`, `Synonym`, `Value`
29+
* `created`, `updated` properties are read only
30+
31+
`CreateDialogNodeOptions`
32+
* `context` property type changed from `Map<String, Object>` to `DialogNodeContext`
33+
34+
`DialogNode`
35+
* `context` property type changed from `Map<String, Object>` to `DialogNodeContext`
36+
* `disabled`, `created` and `updated` properties are read only
37+
38+
`DialogNodeOutput`
39+
* Added Builder
40+
* Added `integrations` property with getter and setter
41+
42+
`DialogNodeOutputGeneric`,
43+
* Added discriminator
44+
* Removed Builder
45+
* Added read only properties `agentAvailable`, `AgentUnavailable`, and `transferInfo`
46+
47+
`DialogSuggestion`
48+
* `output` property type changed from `DialogSuggestionOutput` to `Map<String, Object>`
49+
50+
`ListCounterExamplesOptions`, `ListDialogNodesOptions`, `ListEntitiesOptions`, `ListExamplesOptions`, `ListIntentsOptions`, `ListSynonymsOptions`, `ListValuesOptions`, `ListWorkspacesOptions`
51+
* `includeCount` property added with setter and getter
52+
53+
`MessageInput`
54+
* Added Builder
55+
* Changed `suggestedText` and `originalText` properties to read only
56+
57+
`MessageRequest`
58+
* Changed `actions` property to read only
59+
60+
`OutputData`
61+
* Added Builder
62+
63+
`RuntimeResponseGeneric`,
64+
* Added discriminator
65+
* Changed `ResponseType` interface use only TEXT
66+
* Removed Builder
67+
* Added read only properties `agentAvailable`, `AgentUnavailable`, and `transferInfo`
68+
69+
`UpdateDialogNodeOptions`
70+
* Changed `newContext` property type from `Map<String, Object>` to `DialogNodeContext`
71+
72+
73+
### Assistant v2 Instance
74+
75+
* Added function `bulkClassify()`: Identify intents and entities in multiple user utterances.
76+
77+
### Assistant v2 Models
78+
79+
#### Models Added
80+
81+
`BulkClassifyOptions`, `BulkClassifyOutput`, `BulkClassifyResponse`, `BulkClassifyUtterance`,
82+
`DialogNodeOutputConnectToAgentTransferInfo`, `RuntimeResponseGenericRuntimeResponseTypeConnectToAgent`, `RuntimeResponseGenericRuntimeResponseTypeImage`, `RuntimeResponseGenericRuntimeResponseTypeOption`, `RuntimeResponseGenericRuntimeResponseTypePause`, `RuntimeResponseGenericRuntimeResponseTypeSearch`, `RuntimeResponseGenericRuntimeResponseTypeSuggestion`, `RuntimeResponseGenericRuntimeResponseTypeText`
83+
84+
#### Models Removed
85+
86+
#### Model Properties Changed
87+
88+
`MessageContext`, `MessageContextStateless`
89+
* Changed `skills` property type from `MessageContextSkills` to `Map<String, MessageContextSkill>`
90+
91+
`MessageContextGlobal`
92+
* Changed `sessionId` property to read only
93+
94+
`MessageContextSkill`
95+
* Changed `system` property type from `Map<String, Object>` to `MessageContextSkillSystem`
96+
97+
`MessageContextSkillSystem`
98+
* Added Builder
99+
100+
`RuntimeResponseGeneric`
101+
* Added discriminator
102+
* Removed Builder
103+
* Added read only properties `agentAvailable`, `AgentUnavailable`, and `transferInfo`
104+
105+
### Compare Comply v1 Instance
106+
107+
* No changes
108+
109+
### Compare Comply v1 Models
110+
111+
#### Models Removed
112+
113+
#### Model Properties Changed
114+
115+
`Category`, `TypeLabel`
116+
* Added `modification` property
117+
118+
`ListBatchesOptions`
119+
* Removed Builder
120+
121+
`ListFeedbackOptions`
122+
* Removed `before` and `after` properties
123+
124+
`OriginalLabelsOut`, `UpdatedLabelsOut`
125+
* Removed `modification` property
126+
127+
128+
### Discovery v1 Instance
129+
130+
* No changes
131+
132+
### Discovery v1 Models
133+
134+
#### Models Removed
135+
136+
#### Model Properties Changed
137+
138+
`Configuration`
139+
* Changed `configurationId`, `created`, and `updated` properties to read only
140+
141+
`Credentials`
142+
* Changed `credentialId` property to read only
143+
144+
`EventData`
145+
* Changed `queryId` property to read only
146+
147+
`NluEnrichmentFeatures`
148+
* Changed `categories` property type from `NluEnrichmentCategories` to `Map<String, Object>`
149+
150+
### Discovery v2 Instance
151+
152+
* Added function `analyzeDocument()`: Process a document using the specified collection's settings and return it for realtime use. - Currently CP4D only
153+
154+
### Discovery v2 Models
155+
156+
#### Models Added
157+
158+
`AnalyzedDocument`, `AnalyzeDocumentOptions`, `AnalyzedResult`
159+
160+
#### Models Removed
161+
162+
#### Model Properties Changed
163+
164+
`CollectionDetails`
165+
* Changed `collectionId` and `created` properties to read only
166+
167+
`TrainingExample`
168+
* Changed `created` and `updated` properties to read only
169+
170+
`TrainingQuery`
171+
* Changed `created`, `queryId` and `updated` properties to read only
172+
173+
### Language Translator v3 Instance
174+
175+
* No changes
176+
177+
### Language Translator v3 Models
178+
179+
#### Models Removed
180+
181+
#### Model Properties Changed
182+
183+
`ListDocumentsOptions`, `ListIdentifiableLanguagesOptions`, `ListLanguagesOptions`
184+
* Removed Builder
185+
186+
### Natural Language Classifier v1 Instance
187+
188+
* No changes
189+
190+
### Natural Language Classifier v1 Models
191+
192+
#### Models Removed
193+
194+
#### Model Properties Changed
195+
196+
`ListClassifiersOptions`
197+
* Removed Builder
198+
199+
### Natural Language Understanding v1 Instance
200+
201+
* No changes
202+
203+
### Natural Language Understanding v1 Models
204+
205+
#### Models Added
206+
207+
`FeaturesResultsMetadata`
208+
209+
#### Models Removed
210+
211+
`MetadataOptions`
212+
213+
#### Model Properties Changed
214+
215+
`AnalysisResults`
216+
* Changed `metadata` property type from `AnalysisResultsMetadata` to `FeaturesResultsMetadata`
217+
218+
`Features`
219+
* Changed `metadata` property type from `MetadataOptions` to `Map<String, Object>`
220+
221+
`ListModelsOptions`
222+
* Remove Builder
223+
224+
### Personality Insights v3 Instance
225+
226+
* No changes
227+
228+
### Personality Insights v3 Models
229+
230+
* No changes
231+
232+
### Speech To Text v1 Instance
233+
234+
* `recognizeUsingWebSocket()`: Changed `recognizeOptions` parameter type from `RecognizeOptions` to `RecognizeWithWebsocketsOptions`
235+
236+
237+
### Speech To Text v1 Models
238+
239+
#### Models Added
240+
241+
`RecognizeWithWebsocketsOptions`
242+
243+
#### Models Removed
244+
245+
#### Model Properties Changed
246+
247+
`CheckJobsOptions`, `ListModelOptions`
248+
* Removed Builder
249+
250+
`RecognizeOptions`
251+
* Removed `interimResults`, `processingMetrics`, `processingMetricsInterval`
252+
properties (Moved to `RecognizeWithWebsocketsOptions`)
253+
254+
### Text to Speech v1 Instance
255+
256+
* No changes
257+
258+
### Text to Speech v1 Models
259+
260+
#### Models Added
261+
262+
`CreateCustomModelOptions`, `CustomModel`, `CustomModels`, `DeleteCustomModelOptions`, `GetCustomModelOptions`, `ListCustomModelsOptions`, `UpdateCustomModelOptions`
263+
264+
#### Models Removed
265+
266+
#### Model Properties Changed
267+
268+
`ListVoicesOptions`
269+
* Remove Builder
270+
271+
`Voice`
272+
* Change return type of `getCustomization()` from `VoiceModel` to `CustomModel`
273+
274+
### Tone Analyzer v3 Instance
275+
276+
* No changes
277+
278+
### Tone Analyzer v3 Models
279+
280+
* No changes
281+
282+
### Visual Recognition v3 Instance
283+
284+
* No changes
285+
286+
### Visual Recognition v3 Models
287+
288+
* No changes
289+
290+
### Visual Recognition v4 Instance
291+
292+
* No changes
293+
294+
### Visual Recognition v4 Models
295+
296+
#### Models Added
297+
298+
`CollectionTrainingStatus`, `ObjectDetail`
299+
300+
#### Models Removed
301+
302+
#### Model Properties Changed
303+
304+
`Collection`
305+
* Changed `trainingStatus` property type from `TrainingStatus` to `CollectionTrainingStatus`
306+
307+
`CreateCollectionOptions`, `UpdateCollectionOptions`
308+
* Added `trainingStatus` property
309+
310+
`GetTrainingUsageOptions`
311+
* Changed `startTime` and `endTime` property type from `String` to `Date`
312+
313+
`ListCollectionsOptions`
314+
* Remove Builder
315+
316+
`ObjectDetail`
317+
* Changed `location` property type from `Location` to `ObjectDetailLocation`
318+
319+
`UpdateObjectMetadata`
320+
* Changed `count` property to read only

0 commit comments

Comments
 (0)