Skip to content

Commit

Permalink
Merge pull request #1078 from Microsoft/tomlm/Swagger1031
Browse files Browse the repository at this point in the history
update connector lib with latest swagger
  • Loading branch information
cleemullins authored Nov 2, 2018
2 parents 265c190 + 53af4cb commit 198df42
Show file tree
Hide file tree
Showing 2 changed files with 626 additions and 594 deletions.
184 changes: 108 additions & 76 deletions libraries/Swagger/ConnectorAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,69 +278,69 @@
}
},
"/v3/conversations/{conversationId}/activities/history": {
"post": {
"tags": [
"Conversations"
],
"summary": "SendConversationHistory",
"description": "This method allows you to upload the historic activities to the conversation.\r\n\r\nSender must ensure that the historic activities have unique ids and appropriate timestamps. The ids are used by the client to deal with duplicate activities and the timestamps are used by the client to render the activities in the right order.",
"operationId": "Conversations_SendConversationHistory",
"consumes": [
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"description": "Conversation ID",
"required": true,
"type": "string"
},
{
"name": "transcript",
"in": "body",
"description": "Transcript of activities",
"required": true,
"schema": {
"$ref": "#/definitions/Transcript"
}
}
],
"responses": {
"200": {
"description": "An object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"201": {
"description": "A ResourceResponse object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"202": {
"description": "An object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"default": {
"description": "The operation failed and the response is an error object describing the status code and failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
"post": {
"tags": [
"Conversations"
],
"summary": "SendConversationHistory",
"description": "This method allows you to upload the historic activities to the conversation.\r\n\r\nSender must ensure that the historic activities have unique ids and appropriate timestamps. The ids are used by the client to deal with duplicate activities and the timestamps are used by the client to render the activities in the right order.",
"operationId": "Conversations_SendConversationHistory",
"consumes": [
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "conversationId",
"in": "path",
"description": "Conversation ID",
"required": true,
"type": "string"
},
{
"name": "history",
"in": "body",
"description": "Historic activities",
"required": true,
"schema": {
"$ref": "#/definitions/Transcript"
}
}
],
"responses": {
"200": {
"description": "An object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"201": {
"description": "A ResourceResponse object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"202": {
"description": "An object will be returned containing the ID for the resource.",
"schema": {
"$ref": "#/definitions/ResourceResponse"
}
},
"default": {
"description": "The operation failed and the response is an error object describing the status code and failure.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/v3/conversations/{conversationId}/activities/{activityId}": {
"put": {
Expand Down Expand Up @@ -909,6 +909,10 @@
"description": "Display friendly name",
"type": "string"
},
"aadObjectId": {
"description": "This account's object ID within Azure Active Directory (AAD)",
"type": "string"
},
"role": {
"$ref": "#/definitions/RoleTypes",
"description": "Role of the entity behind the account (Example: User, Bot, etc.)"
Expand Down Expand Up @@ -937,6 +941,10 @@
"description": "Contains the date and time that the message was sent, in local time, expressed in ISO-8601 format.\r\nFor example, 2016-09-23T13:07:49.4714686-07:00.",
"type": "string"
},
"localTimezone": {
"description": "Contains the name of the timezone in which the message, in local time, expressed in IANA Time Zone database format.\r\nFor example, America/Los_Angeles.",
"type": "string"
},
"serviceUrl": {
"description": "Contains the URL that specifies the channel's service endpoint. Set by the channel.",
"type": "string"
Expand Down Expand Up @@ -1086,7 +1094,7 @@
},
"deliveryMode": {
"$ref": "#/definitions/DeliveryModes",
"description": "A delivery hint to signal to the recipient alternate delivery paths for the activity.\r\nThe default delivery mode is \"default\"."
"description": "A delivery hint to signal to the recipient alternate delivery paths for the activity.\r\nThe default delivery mode is \"default\"."
},
"listenFor": {
"description": "List of phrases and references that speech and language priming systems should listen for",
Expand Down Expand Up @@ -1128,6 +1136,10 @@
"description": "Display friendly name",
"type": "string"
},
"aadObjectId": {
"description": "This account's object ID within Azure Active Directory (AAD)",
"type": "string"
},
"role": {
"$ref": "#/definitions/RoleTypes",
"description": "Role of the entity behind the account (Example: User, Bot, etc.)"
Expand Down Expand Up @@ -1191,11 +1203,11 @@
}
},
"Entity": {
"description": "Object of schema.org types",
"description": "Metadata object pertaining to an activity",
"type": "object",
"properties": {
"type": {
"description": "Entity Type (typically from schema.org types)",
"description": "Type of this entity (RFC 3987 IRI)",
"type": "string"
}
}
Expand Down Expand Up @@ -1257,7 +1269,7 @@
"description": "Entities associated with this action",
"type": "object",
"additionalProperties": {
"type": "object"
"$ref": "#/definitions/Entity"
}
}
}
Expand Down Expand Up @@ -1289,6 +1301,10 @@
"value": {
"description": "Supplementary parameter for action. Content of this property depends on the ActionType",
"type": "object"
},
"channelData": {
"description": "Channel-specific data associated with this action",
"type": "object"
}
}
},
Expand Down Expand Up @@ -1355,11 +1371,11 @@
}
},
"Transcript": {
"description": "Conversation Transcript",
"description": "Transcript",
"type": "object",
"properties": {
"activities": {
"description": "Array of conversation activities.",
"description": "A collection of Activities that conforms to the Transcript schema.",
"type": "array",
"items": {
"$ref": "#/definitions/Activity"
Expand Down Expand Up @@ -1483,7 +1499,7 @@
"description": "Thumbnail placeholder"
},
"media": {
"description": "Media URLs for this card",
"description": "Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.",
"type": "array",
"items": {
"$ref": "#/definitions/MediaUrl"
Expand All @@ -1509,7 +1525,11 @@
"type": "boolean"
},
"aspect": {
"description": "Aspect ratio of thumbnail/media placeholder, allowed values are \"16:9\" and \"4:3\"",
"description": "Aspect ratio of thumbnail/media placeholder. Allowed values are \"16:9\" and \"4:3\"",
"type": "string"
},
"duration": {
"description": "Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.",
"type": "string"
},
"value": {
Expand Down Expand Up @@ -1567,7 +1587,7 @@
"description": "Thumbnail placeholder"
},
"media": {
"description": "Media URLs for this card",
"description": "Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.",
"type": "array",
"items": {
"$ref": "#/definitions/MediaUrl"
Expand All @@ -1593,7 +1613,11 @@
"type": "boolean"
},
"aspect": {
"description": "Aspect ratio of thumbnail/media placeholder, allowed values are \"16:9\" and \"4:3\"",
"description": "Aspect ratio of thumbnail/media placeholder. Allowed values are \"16:9\" and \"4:3\"",
"type": "string"
},
"duration": {
"description": "Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.",
"type": "string"
},
"value": {
Expand Down Expand Up @@ -1659,7 +1683,7 @@
"description": "Thumbnail placeholder"
},
"media": {
"description": "Media URLs for this card",
"description": "Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.",
"type": "array",
"items": {
"$ref": "#/definitions/MediaUrl"
Expand All @@ -1685,7 +1709,11 @@
"type": "boolean"
},
"aspect": {
"description": "Aspect ratio of thumbnail/media placeholder, allowed values are \"16:9\" and \"4:3\"",
"description": "Aspect ratio of thumbnail/media placeholder. Allowed values are \"16:9\" and \"4:3\"",
"type": "string"
},
"duration": {
"description": "Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.",
"type": "string"
},
"value": {
Expand Down Expand Up @@ -1884,7 +1912,7 @@
"description": "Thumbnail placeholder"
},
"media": {
"description": "Media URLs for this card",
"description": "Media URLs for this card. When this field contains more than one URL, each URL is an alternative format of the same content.",
"type": "array",
"items": {
"$ref": "#/definitions/MediaUrl"
Expand All @@ -1910,7 +1938,11 @@
"type": "boolean"
},
"aspect": {
"description": "Aspect ratio of thumbnail/media placeholder, allowed values are \"16:9\" and \"4:3\"",
"description": "Aspect ratio of thumbnail/media placeholder. Allowed values are \"16:9\" and \"4:3\"",
"type": "string"
},
"duration": {
"description": "Describes the length of the media content without requiring a receiver to open the content. Formatted as an ISO 8601 Duration field.",
"type": "string"
},
"value": {
Expand Down Expand Up @@ -1961,7 +1993,7 @@
"type": "string"
},
"type": {
"description": "Entity Type (typically from schema.org types)",
"description": "Type of this entity (RFC 3987 IRI)",
"type": "string"
}
}
Expand Down
Loading

0 comments on commit 198df42

Please sign in to comment.