You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add documentation for Get Conversations, Delete Conversation Member, and Send Conversation History
- add documentation for their related objects in the schema section
- fix miscellaneous errors in the document while leaving major fixes for other commits
Fixes #1179
@@ -121,14 +121,17 @@ Use these operations to create conversations, send messages (activities), and ma
121
121
122
122
| Operation | Description |
123
123
|----|----|
124
-
|[Create Conversation](#create-conversation)| Creates a new conversation. |
125
-
|[Send to Conversation](#send-to-conversation)| Sends an activity (message) to the end of the specified conversation. |
126
-
|[Reply to Activity](#reply-to-activity)| Sends an activity (message) to the specified conversation, as a reply to the specified activity. |
124
+
|[Create Conversation](#create-conversation)| Creates a new conversation. |
125
+
|[Send to Conversation](#send-to-conversation)| Sends an activity (message) to the end of the specified conversation. |
126
+
|[Reply to Activity](#reply-to-activity)| Sends an activity (message) to the specified conversation, as a reply to the specified activity. |
127
+
|[Get Conversations](#get-conversations)| Gets a list of conversations the bot has participated in. |
127
128
|[Get Conversation Members](#get-conversation-members)| Gets the members of the specified conversation. |
128
129
|[Get Conversation Paged Members](#get-conversation-paged-members)| Gets the members of the specified conversation one page at a time. |
129
-
|[Get Activity Members](#get-activity-members)| Gets the members of the specified activity within the specified conversation. |
130
-
|[Update Activity](#update-activity)| Updates an existing activity. |
131
-
|[Delete Activity](#delete-activity)| Deletes an existing activity. |
130
+
|[Get Activity Members](#get-activity-members)| Gets the members of the specified activity within the specified conversation. |
131
+
|[Update Activity](#update-activity)| Updates an existing activity. |
132
+
|[Delete Activity](#delete-activity)| Deletes an existing activity. |
133
+
|[Delete Conversation Member](#delete-conversation-member)| Removes a member from a conversation. |
134
+
|[Send Conversation History](#send-conversation-history)| Uploads a transcript of past activities to the conversation. |
132
135
|[Upload Attachment to Channel](#upload-attachment-to-channel)| Uploads an attachment directly into a channel's blob storage. |
133
136
134
137
### Create Conversation
@@ -140,7 +143,7 @@ POST /v3/conversations
140
143
|||
141
144
|----|----|
142
145
|**Request body**| A [Conversation](#conversation-object) object |
143
-
|**Returns**| A [ResourceResponse](#resourceresponse-object) object |
146
+
|**Returns**| A [ConversationResourceResponse](#conversationresourceresponse-object) object |
144
147
145
148
### Send to Conversation
146
149
Sends an activity (message) to the specified conversation. The activity will be appended to the end of the conversation according to the timestamp or semantics of the channel. To reply to a specific message within the conversation, use [Reply to Activity](#reply-to-activity) instead.
@@ -164,6 +167,17 @@ POST /v3/conversations/{conversationId}/activities/{activityId}
164
167
|**Request body**| An [Activity](#activity-object) object |
165
168
|**Returns**| An [Identification](#identification-object) object |
166
169
170
+
### Get Conversations
171
+
Gets a list of conversations the bot has participated in.
172
+
```http
173
+
GET /v3/conversations?continuationToken={continuationToken}
174
+
```
175
+
176
+
|||
177
+
|----|----|
178
+
|**Request body**| n/a |
179
+
|**Returns**| A [ConversationsResult](#conversationsresult-object) object |
180
+
167
181
### Get Conversation Members
168
182
Gets the members of the specified conversation.
169
183
```http
@@ -178,13 +192,13 @@ GET /v3/conversations/{conversationId}/members
178
192
### Get Conversation Paged Members
179
193
Gets the members of the specified conversation one page at a time.
180
194
```http
181
-
GET /v3/conversations/{conversationId}/pagedmembers
195
+
GET /v3/conversations/{conversationId}/pagedmembers?pageSize={pageSize}&continuationToken={continuationToken}
182
196
```
183
197
184
198
|||
185
199
|----|----|
186
200
|**Request body**| n/a |
187
-
|**Returns**| An array of [ChannelAccount](#channelaccount-object) objects and a continuation token that can be used to get more values|
201
+
|**Returns**| An array of [ChannelAccount](#channelaccount-object) objects and a continuation token that can be used to get more values|
188
202
189
203
### Get Activity Members
190
204
Gets the members of the specified activity within the specified conversation.
|**Returns**| An HTTP Status code that indicates the outcome of the operation. Nothing is specified in the body of the response. |
246
+
247
+
### Send Conversation History
248
+
Uploads a transcript of past activities to the conversation so that the client can render them.
249
+
```http
250
+
POST /v3/conversations/{conversationId}/activities/history
251
+
```
252
+
253
+
|||
254
+
|----|----|
255
+
|**Request body**| A [Transcript](#transcript-object) object. |
256
+
|**Returns**| A [ResourceResponse](#resourceresponse-object) object. |
257
+
222
258
### Upload Attachment to Channel
223
-
Uploads an attachment for the specified conversation directly into a channel's blob storage. This enables you to store data in a compliant store.
259
+
Uploads an attachment for the specified conversation directly into a channel's blob storage. This enables you to store data in a compliant store.
224
260
```http
225
261
POST /v3/conversations/{conversationId}/attachments
226
262
```
@@ -359,7 +395,7 @@ Schema defines the object and its properties that your bot can use to communicat
359
395
|[Activity object](#activity-object)| Defines a message that is exchanged between bot and user. |
360
396
|[AnimationCard object](#animationcard-object)| Defines a card that can play animated GIFs or short videos. |
361
397
|[Attachment object](#attachment-object)| Defines additional information to include in the message. An attachment may be a media file (e.g., audio, video, image, file) or a rich card. |
362
-
|[AttachmentData object](#attachmentdata-object)|Describes an attachment data. |
398
+
|[AttachmentData object](#attachmentdata-object)|Describes an attachment data. |
363
399
|[AttachmentInfo object](#attachmentinfo-object)| Describes an attachment. |
364
400
|[AttachmentView object](#attachmentview-object)| Defines a attachment view. |
365
401
|[AttachmentUpload object](#attachmentupload-object)| Defines an attachment to be uploaded. |
@@ -370,30 +406,33 @@ Schema defines the object and its properties that your bot can use to communicat
370
406
|[ChannelAccount object](#channelaccount-object)| Defines a bot or user account on the channel. |
371
407
|[Conversation object](#conversation-object)| Defines a conversation, including the bot and users that are included within the conversation. |
372
408
|[ConversationAccount object](#conversationaccount-object)| Defines a conversation in a channel. |
409
+
|[ConversationMembers object](#conversationmembers-object)| Defines the members of a conversation. |
373
410
|[ConversationParameters object](#conversationparameters-object)| Define parameters for creating a new conversation |
374
411
|[ConversationReference object](#conversationreference-object)| Defines a particular point in a conversation. |
375
-
|[ConversationResourceResponse object](#conversationresourceresponse-object)| "A response containing a resource |
412
+
|[ConversationResourceResponse object](#conversationresourceresponse-object)| Defines a response to [Create Conversation](#create-conversation). |
413
+
|[ConversationsResult object](#conversationsresult-object)| Defines the result of a call to [Get Conversations](#get-conversations). |
376
414
|[Entity object](#entity-object)| Defines an entity object. |
377
415
|[Error object](#error-object)| Defines an error. |
378
416
|[ErrorResponse object](#errorresponse-object)| Defines an HTTP API response. |
379
417
|[Fact object](#fact-object)| Defines a key-value pair that contains a fact. |
380
-
|[Geocoordinates object](#geocoordinates-object)| Defines a geographical location using World Geodetic System (WSG84) coordinates. |
418
+
|[GeoCoordinates object](#geocoordinates-object)| Defines a geographical location using World Geodetic System (WSG84) coordinates. |
381
419
|[HeroCard object](#herocard-object)| Defines a card with a large image, title, text, and action buttons. |
382
420
|[Identification object](#identification-object)| Identifies a resource. |
383
-
|[MediaEventValue object](#mediaeventvalue-object)|Supplementary parameter for media events.|
421
+
|[MediaEventValue object](#mediaeventvalue-object)|Supplementary parameter for media events.|
384
422
|[MediaUrl object](#mediaurl-object)| Defines the URL to a media file's source. |
385
423
|[Mention object](#mention-object)| Defines a user or bot that was mentioned in the conversation. |
386
424
|[MessageReaction object](#messagereaction-object)| Defines a reaction to a message. |
387
425
|[Place object](#place-object)| Defines a place that was mentioned in the conversation. |
388
426
|[ReceiptCard object](#receiptcard-object)| Defines a card that contains a receipt for a purchase. |
389
427
|[ReceiptItem object](#receiptitem-object)| Defines a line item within a receipt. |
390
428
|[ResourceResponse object](#resourceresponse-object)| Defines a resource. |
429
+
|[SemanticAction object](#semanticaction-object)| Defines a reference to a programmatic action. |
391
430
|[SignInCard object](#signincard-object)| Defines a card that lets a user sign in to a service. |
392
431
|[SuggestedActions object](#suggestedactions-object)| Defines the options from which a user can choose. |
393
432
|[ThumbnailCard object](#thumbnailcard-object)| Defines a card with a thumbnail image, title, text, and action buttons. |
394
433
|[ThumbnailUrl object](#thumbnailurl-object)| Defines the URL to an image's source. |
434
+
|[Transcript object](#transcript-object)| A collection of activities to be uploaded using [Send Conversation History](#send-conversation-history). |
395
435
|[VideoCard object](#videocard-object)| Defines a card that can play videos. |
396
-
|[SemanticAction object](#semanticaction-object)| Defines a reference to a programmatic action. |
397
436
398
437
### Activity object
399
438
Defines a message that is exchanged between bot and user.<br/><br/>
@@ -467,7 +506,7 @@ Defines additional information to include in the message. An attachment may be a
|**type**| string | Content-type of the attachment. |
478
517
518
+
<ahref="#objects">Back to Schema table</a>
519
+
479
520
### AttachmentInfo object
480
521
Describes an attachment.<br/><br/>
481
522
@@ -595,15 +636,25 @@ Defines a conversation in a channel.<br/><br/>
595
636
596
637
| Property | Type | Description |
597
638
|----|----|----|
598
-
|**id**| string | The ID that identifies the conversation. The ID is unique per channel. If the channel starts the conversion, it sets this ID; otherwise, the bot sets this property to the ID that it gets back in the response when it starts the conversation (see Starting a conversation). |
639
+
|**id**| string | The ID that identifies the conversation. The ID is unique per channel. If the channel starts the conversation, it sets this ID; otherwise, the bot sets this property to the ID that it gets back in the response when it starts the conversation (see Starting a conversation). |
599
640
|**isGroup**| boolean | Flag to indicate whether the conversation contains more than two participants at the time the activity was generated. Set to **true** if this is a group conversation; otherwise, **false**. The default is **false**. |
600
641
|**name**| string | A display name that can be used to identify the conversation. |
601
642
|**conversationType**| string | Indicates the type of the conversation in channels that distingish between conversation types (e.g.: group, personal). |
602
643
603
644
<ahref="#objects">Back to Schema table</a>
604
645
646
+
### ConversationMembers object
647
+
Defines the members of a conversation.<br/><br/>
648
+
649
+
| Property | Type | Description |
650
+
|----|----|----|
651
+
|**id**| string | The conversation ID. |
652
+
|**members**| array | An array of [ChannelAccount](#channelaccount-object) objects. |
653
+
654
+
<ahref="#objects">Back to Schema table</a>
655
+
605
656
### ConversationParameters object
606
-
Define parameters for creating a new conversation
657
+
Define parameters for creating a new conversation.<br/><br/>
607
658
608
659
| Property | Type | Description |
609
660
|----|----|----|
@@ -614,6 +665,8 @@ Define parameters for creating a new conversation
614
665
|**activity**|[Activity](#activity-object)| (optional) Use this activity as the initial message to the conversation when creating a new conversation. |
615
666
|**channelData**| object | Channel specific payload for creating the conversation. |
616
667
668
+
<ahref="#objects">Back to Schema table</a>
669
+
617
670
### ConversationReference object
618
671
Defines a particular point in a conversation.<br/><br/>
619
672
@@ -629,16 +682,28 @@ Defines a particular point in a conversation.<br/><br/>
629
682
<ahref="#objects">Back to Schema table</a>
630
683
631
684
### ConversationResourceResponse object
632
-
Defines a response that contains a resource.
685
+
Defines a response to [Create Conversation](#create-conversation).<br/><br/>
633
686
634
687
| Property | Type | Description |
635
688
|----|----|----|
636
689
|**activityId**| string | ID of the activity. |
637
690
|**id**| string | ID of the resource. |
638
691
|**serviceUrl**| string | Service endpoint. |
639
692
693
+
<ahref="#objects">Back to Schema table</a>
694
+
695
+
### ConversationsResult object
696
+
Defines the result of [Get Conversations](#get-conversations).<br/><br/>
697
+
698
+
| Property | Type | Description |
699
+
|----|----|----|
700
+
|**continuationToken**| string | The continuation token that can be used in subsequent calls to [Get Conversations](#get-conversations). |
701
+
|**conversations**| array | An array of [ConversationMembers](#conversationmembers-object) objects |
702
+
703
+
<ahref="#objects">Back to Schema table</a>
704
+
640
705
### Error object
641
-
Defines an error.<br/><br/>
706
+
Defines an error.<br/><br/>
642
707
643
708
| Property | Type | Description |
644
709
|----|----|----|
@@ -648,12 +713,13 @@ Defines an error.<br/><br/>
648
713
<ahref="#objects">Back to Schema table</a>
649
714
650
715
### Entity object
651
-
Defines an entity object.
716
+
Defines an entity object.<br/><br/>
652
717
653
718
| Property | Type | Description |
654
719
|----|----|----|
655
720
|**type**| string | Entity type. Typically contain types from schema.org. |
656
721
722
+
<ahref="#objects">Back to Schema table</a>
657
723
658
724
### ErrorResponse object
659
725
Defines an HTTP API response.<br/><br/>
@@ -674,7 +740,7 @@ Defines a key-value pair that contains a fact.<br/><br/>
674
740
675
741
<ahref="#objects">Back to Schema table</a>
676
742
677
-
### Geocoordinates object
743
+
### GeoCoordinates object
678
744
Defines a geographical location using World Geodetic System (WSG84) coordinates.<br/><br/>
679
745
680
746
| Property | Type | Description |
@@ -712,12 +778,14 @@ Identifies a resource.<br/><br/>
712
778
<ahref="#objects">Back to Schema table</a>
713
779
714
780
### MediaEventValue object
715
-
Supplementary parameter for media events.
781
+
Supplementary parameter for media events.<br/><br/>
716
782
717
783
| Property | Type | Description |
718
784
|----|----|----|
719
785
|**cardValue**| object | Callback parameter specified in the **Value** field of the media card that originated this event. |
720
786
787
+
<ahref="#objects">Back to Schema table</a>
788
+
721
789
### MediaUrl object
722
790
Defines the URL to a media file's source.<br/><br/>
723
791
@@ -742,12 +810,14 @@ Defines a user or bot that was mentioned in the conversation.<br/><br/>
742
810
<ahref="#objects">Back to Schema table</a>
743
811
744
812
### MessageReaction object
745
-
Defines a reaction to a message.
813
+
Defines a reaction to a message.<br/><br/>
746
814
747
815
| Property | Type | Description |
748
816
|----|----|----|
749
817
|**type**| string | Type of reaction. |
750
818
819
+
<ahref="#objects">Back to Schema table</a>
820
+
751
821
### Place object
752
822
Defines a place that was mentioned in the conversation.<br/><br/>
753
823
@@ -795,13 +865,22 @@ Defines a line item within a receipt.<br/><br/>
795
865
### ResourceResponse object
796
866
Defines a response that contains a resource ID.<br/><br/>
0 commit comments