Skip to content

Commit 714b31e

Browse files
committed
feat(All services): Exploded body parameters in service methods
1 parent 41f3039 commit 714b31e

26 files changed

+778
-1422
lines changed

Examples/ExampleAssistantV1.cs

Lines changed: 62 additions & 132 deletions
Large diffs are not rendered by default.

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 667 additions & 349 deletions
Large diffs are not rendered by default.

Scripts/Services/Assistant/V1/Model/CreateDialogNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public class DigressOutSlotsValue
216216
[JsonProperty("parent", NullValueHandling = NullValueHandling.Ignore)]
217217
public string Parent { get; set; }
218218
/// <summary>
219-
/// The ID of the previous dialog node.
219+
/// The ID of the previous sibling dialog node.
220220
/// </summary>
221221
[JsonProperty("previous_sibling", NullValueHandling = NullValueHandling.Ignore)]
222222
public string PreviousSibling { get; set; }

Scripts/Services/Assistant/V1/Model/CreateSynonym.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

Scripts/Services/Assistant/V1/Model/CreateSynonym.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Scripts/Services/Assistant/V1/Model/CreateWorkspace.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

Scripts/Services/Assistant/V1/Model/CreateWorkspace.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Scripts/Services/Assistant/V1/Model/DialogNode.cs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,31 @@ public class DigressOutSlotsValue
193193
[JsonProperty("digress_out_slots", NullValueHandling = NullValueHandling.Ignore)]
194194
public string DigressOutSlots { get; set; }
195195
/// <summary>
196-
/// The dialog node ID.
196+
/// The dialog node ID. This string must conform to the following restrictions:
197+
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
198+
/// - It must be no longer than 1024 characters.
197199
/// </summary>
198200
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
199201
public string DialogNodeId { get; set; }
200202
/// <summary>
201-
/// The description of the dialog node.
203+
/// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters,
204+
/// and it must be no longer than 128 characters.
202205
/// </summary>
203206
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
204207
public string Description { get; set; }
205208
/// <summary>
206-
/// The condition that triggers the dialog node.
209+
/// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
210+
/// characters, and it must be no longer than 2048 characters.
207211
/// </summary>
208212
[JsonProperty("conditions", NullValueHandling = NullValueHandling.Ignore)]
209213
public string Conditions { get; set; }
210214
/// <summary>
211-
/// The ID of the parent dialog node. This property is not returned if the dialog node has no parent.
215+
/// The ID of the parent dialog node.
212216
/// </summary>
213217
[JsonProperty("parent", NullValueHandling = NullValueHandling.Ignore)]
214218
public string Parent { get; set; }
215219
/// <summary>
216-
/// The ID of the previous sibling dialog node. This property is not returned if the dialog node has no previous
217-
/// sibling.
220+
/// The ID of the previous sibling dialog node.
218221
/// </summary>
219222
[JsonProperty("previous_sibling", NullValueHandling = NullValueHandling.Ignore)]
220223
public string PreviousSibling { get; set; }
@@ -225,12 +228,12 @@ public class DigressOutSlotsValue
225228
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
226229
public DialogNodeOutput Output { get; set; }
227230
/// <summary>
228-
/// The context (if defined) for the dialog node.
231+
/// The context for the dialog node.
229232
/// </summary>
230233
[JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
231234
public object Context { get; set; }
232235
/// <summary>
233-
/// Any metadata for the dialog node.
236+
/// The metadata for the dialog node.
234237
/// </summary>
235238
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
236239
public object Metadata { get; set; }
@@ -250,12 +253,14 @@ public class DigressOutSlotsValue
250253
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
251254
public virtual DateTime? Updated { get; private set; }
252255
/// <summary>
253-
/// The actions for the dialog node.
256+
/// An array of objects describing any actions to be invoked by the dialog node.
254257
/// </summary>
255258
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
256259
public List<DialogNodeAction> Actions { get; set; }
257260
/// <summary>
258-
/// The alias used to identify the dialog node.
261+
/// The alias used to identify the dialog node. This string must conform to the following restrictions:
262+
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
263+
/// - It must be no longer than 64 characters.
259264
/// </summary>
260265
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
261266
public string Title { get; set; }

Scripts/Services/Assistant/V1/Model/UpdateCounterexample.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

Scripts/Services/Assistant/V1/Model/UpdateCounterexample.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)