@@ -313,8 +313,9 @@ private void OnListWorkspacesResponse(RESTConnector.Request req, RESTConnector.R
313
313
/// (optional)</param>
314
314
/// <param name="counterexamples">An array of objects defining input examples that have been marked as
315
315
/// irrelevant input. (optional)</param>
316
+ /// <param name="webhooks"> (optional)</param>
316
317
/// <returns><see cref="Workspace" />Workspace</returns>
317
- public bool CreateWorkspace ( Callback < Workspace > callback , string name = null , string description = null , string language = null , Dictionary < string , object > metadata = null , bool ? learningOptOut = null , WorkspaceSystemSettings systemSettings = null , List < CreateIntent > intents = null , List < CreateEntity > entities = null , List < DialogNode > dialogNodes = null , List < Counterexample > counterexamples = null )
318
+ public bool CreateWorkspace ( Callback < Workspace > callback , string name = null , string description = null , string language = null , Dictionary < string , object > metadata = null , bool ? learningOptOut = null , WorkspaceSystemSettings systemSettings = null , List < CreateIntent > intents = null , List < CreateEntity > entities = null , List < DialogNode > dialogNodes = null , List < Counterexample > counterexamples = null , List < Webhook > webhooks = null )
318
319
{
319
320
if ( callback == null )
320
321
throw new ArgumentNullException ( "`callback` is required for `CreateWorkspace`" ) ;
@@ -363,6 +364,8 @@ public bool CreateWorkspace(Callback<Workspace> callback, string name = null, st
363
364
bodyObject [ "dialog_nodes" ] = JToken . FromObject ( dialogNodes ) ;
364
365
if ( counterexamples != null && counterexamples . Count > 0 )
365
366
bodyObject [ "counterexamples" ] = JToken . FromObject ( counterexamples ) ;
367
+ if ( webhooks != null && webhooks . Count > 0 )
368
+ bodyObject [ "webhooks" ] = JToken . FromObject ( webhooks ) ;
366
369
req . Send = Encoding . UTF8 . GetBytes ( JsonConvert . SerializeObject ( bodyObject ) ) ;
367
370
368
371
req . OnResponse = OnCreateWorkspaceResponse ;
@@ -514,6 +517,7 @@ private void OnGetWorkspaceResponse(RESTConnector.Request req, RESTConnector.Res
514
517
/// (optional)</param>
515
518
/// <param name="counterexamples">An array of objects defining input examples that have been marked as
516
519
/// irrelevant input. (optional)</param>
520
+ /// <param name="webhooks"> (optional)</param>
517
521
/// <param name="append">Whether the new data is to be appended to the existing data in the workspace. If
518
522
/// **append**=`false`, elements included in the new data completely replace the corresponding existing
519
523
/// elements, including all subelements. For example, if the new data includes **entities** and
@@ -522,7 +526,7 @@ private void OnGetWorkspaceResponse(RESTConnector.Request req, RESTConnector.Res
522
526
/// If **append**=`true`, existing elements are preserved, and the new elements are added. If any elements in
523
527
/// the new data collide with existing elements, the update request fails. (optional, default to false)</param>
524
528
/// <returns><see cref="Workspace" />Workspace</returns>
525
- public bool UpdateWorkspace ( Callback < Workspace > callback , string workspaceId , string name = null , string description = null , string language = null , Dictionary < string , object > metadata = null , bool ? learningOptOut = null , WorkspaceSystemSettings systemSettings = null , List < CreateIntent > intents = null , List < CreateEntity > entities = null , List < DialogNode > dialogNodes = null , List < Counterexample > counterexamples = null , bool ? append = null )
529
+ public bool UpdateWorkspace ( Callback < Workspace > callback , string workspaceId , string name = null , string description = null , string language = null , Dictionary < string , object > metadata = null , bool ? learningOptOut = null , WorkspaceSystemSettings systemSettings = null , List < CreateIntent > intents = null , List < CreateEntity > entities = null , List < DialogNode > dialogNodes = null , List < Counterexample > counterexamples = null , List < Webhook > webhooks = null , bool ? append = null )
526
530
{
527
531
if ( callback == null )
528
532
throw new ArgumentNullException ( "`callback` is required for `UpdateWorkspace`" ) ;
@@ -577,6 +581,8 @@ public bool UpdateWorkspace(Callback<Workspace> callback, string workspaceId, st
577
581
bodyObject [ "dialog_nodes" ] = JToken . FromObject ( dialogNodes ) ;
578
582
if ( counterexamples != null && counterexamples . Count > 0 )
579
583
bodyObject [ "counterexamples" ] = JToken . FromObject ( counterexamples ) ;
584
+ if ( webhooks != null && webhooks . Count > 0 )
585
+ bodyObject [ "webhooks" ] = JToken . FromObject ( webhooks ) ;
580
586
req . Send = Encoding . UTF8 . GetBytes ( JsonConvert . SerializeObject ( bodyObject ) ) ;
581
587
582
588
req . OnResponse = OnUpdateWorkspaceResponse ;
@@ -3595,8 +3601,10 @@ private void OnListDialogNodesResponse(RESTConnector.Request req, RESTConnector.
3595
3601
/// (optional)</param>
3596
3602
/// <param name="userLabel">A label that can be displayed externally to describe the purpose of the node to
3597
3603
/// users. (optional)</param>
3604
+ /// <param name="disambiguationOptOut">Whether the dialog node should be excluded from disambiguation
3605
+ /// suggestions. (optional, default to false)</param>
3598
3606
/// <returns><see cref="DialogNode" />DialogNode</returns>
3599
- public bool CreateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , string description = null , string conditions = null , string parent = null , string previousSibling = null , DialogNodeOutput output = null , Dictionary < string , object > context = null , Dictionary < string , object > metadata = null , DialogNodeNextStep nextStep = null , string title = null , string type = null , string eventName = null , string variable = null , List < DialogNodeAction > actions = null , string digressIn = null , string digressOut = null , string digressOutSlots = null , string userLabel = null )
3607
+ public bool CreateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , string description = null , string conditions = null , string parent = null , string previousSibling = null , DialogNodeOutput output = null , Dictionary < string , object > context = null , Dictionary < string , object > metadata = null , DialogNodeNextStep nextStep = null , string title = null , string type = null , string eventName = null , string variable = null , List < DialogNodeAction > actions = null , string digressIn = null , string digressOut = null , string digressOutSlots = null , string userLabel = null , bool ? disambiguationOptOut = null )
3600
3608
{
3601
3609
if ( callback == null )
3602
3610
throw new ArgumentNullException ( "`callback` is required for `CreateDialogNode`" ) ;
@@ -3665,6 +3673,8 @@ public bool CreateDialogNode(Callback<DialogNode> callback, string workspaceId,
3665
3673
bodyObject [ "digress_out_slots" ] = digressOutSlots ;
3666
3674
if ( ! string . IsNullOrEmpty ( userLabel ) )
3667
3675
bodyObject [ "user_label" ] = userLabel ;
3676
+ if ( disambiguationOptOut != null )
3677
+ bodyObject [ "disambiguation_opt_out" ] = JToken . FromObject ( disambiguationOptOut ) ;
3668
3678
req . Send = Encoding . UTF8 . GetBytes ( JsonConvert . SerializeObject ( bodyObject ) ) ;
3669
3679
3670
3680
req . OnResponse = OnCreateDialogNodeResponse ;
@@ -3825,8 +3835,10 @@ private void OnGetDialogNodeResponse(RESTConnector.Request req, RESTConnector.Re
3825
3835
/// (optional)</param>
3826
3836
/// <param name="newUserLabel">A label that can be displayed externally to describe the purpose of the node to
3827
3837
/// users. (optional)</param>
3838
+ /// <param name="newDisambiguationOptOut">Whether the dialog node should be excluded from disambiguation
3839
+ /// suggestions. (optional, default to false)</param>
3828
3840
/// <returns><see cref="DialogNode" />DialogNode</returns>
3829
- public bool UpdateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , string newDialogNode = null , string newDescription = null , string newConditions = null , string newParent = null , string newPreviousSibling = null , DialogNodeOutput newOutput = null , Dictionary < string , object > newContext = null , Dictionary < string , object > newMetadata = null , DialogNodeNextStep newNextStep = null , string newTitle = null , string newType = null , string newEventName = null , string newVariable = null , List < DialogNodeAction > newActions = null , string newDigressIn = null , string newDigressOut = null , string newDigressOutSlots = null , string newUserLabel = null )
3841
+ public bool UpdateDialogNode ( Callback < DialogNode > callback , string workspaceId , string dialogNode , string newDialogNode = null , string newDescription = null , string newConditions = null , string newParent = null , string newPreviousSibling = null , DialogNodeOutput newOutput = null , Dictionary < string , object > newContext = null , Dictionary < string , object > newMetadata = null , DialogNodeNextStep newNextStep = null , string newTitle = null , string newType = null , string newEventName = null , string newVariable = null , List < DialogNodeAction > newActions = null , string newDigressIn = null , string newDigressOut = null , string newDigressOutSlots = null , string newUserLabel = null , bool ? newDisambiguationOptOut = null )
3830
3842
{
3831
3843
if ( callback == null )
3832
3844
throw new ArgumentNullException ( "`callback` is required for `UpdateDialogNode`" ) ;
@@ -3895,6 +3907,8 @@ public bool UpdateDialogNode(Callback<DialogNode> callback, string workspaceId,
3895
3907
bodyObject [ "digress_out_slots" ] = newDigressOutSlots ;
3896
3908
if ( ! string . IsNullOrEmpty ( newUserLabel ) )
3897
3909
bodyObject [ "user_label" ] = newUserLabel ;
3910
+ if ( newDisambiguationOptOut != null )
3911
+ bodyObject [ "disambiguation_opt_out" ] = JToken . FromObject ( newDisambiguationOptOut ) ;
3898
3912
req . Send = Encoding . UTF8 . GetBytes ( JsonConvert . SerializeObject ( bodyObject ) ) ;
3899
3913
3900
3914
req . OnResponse = OnUpdateDialogNodeResponse ;
@@ -4107,8 +4121,9 @@ private void OnListLogsResponse(RESTConnector.Request req, RESTConnector.Respons
4107
4121
/// </summary>
4108
4122
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
4109
4123
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
4110
- /// You must specify a filter query that includes a value for `language`, as well as a value for `workspace_id`
4111
- /// or `request.context.metadata.deployment`. For more information, see the
4124
+ /// You must specify a filter query that includes a value for `language`, as well as a value for
4125
+ /// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. For more
4126
+ /// information, see the
4112
4127
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-filter-reference#filter-reference).</param>
4113
4128
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
4114
4129
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>
0 commit comments