Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bot config schema changes #131

Open
wants to merge 4 commits into
base: preview/DevPreview
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions MicrosoftTeams.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,111 @@
"$ref": "#/definitions/botId",
"description": "The Microsoft App ID specified for the bot in the Bot Framework portal (https://dev.botframework.com/bots)"
},
"configuration": {
"type": "object",
"additionalProperties": false,
"team": {
"type": "object",
"additionalProperties": false,
"parameters": {
"type": "array",
"maxItems": 5,
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Name of the parameter.",
"maxLength": 64
},
"inputType": {
"type": "string",
"enum": [
"text",
"textarea",
"number",
"date",
"time",
"toggle",
"choiceset"
],
"description": "Type of the parameter",
"default": "text"
},
"title": {
"type": "string",
"description": "Title of the parameter.",
"maxLength": 32
},
"description": {
"type": "string",
"description": "Description of the parameter.",
"maxLength": 128
},
"value": {
"type": "string",
"description": "Initial value for the parameter",
"maxLength": 512
},
"choices": {
"type": "array",
"maxItems": 10,
"description": "The choice options for the parameter",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the choice",
"maxLength": 128
},
"value": {
"type": "string",
"description": "Value of the choice",
"maxLength": 512
}
},
"additionalProperties": false,
"required": [
"title",
"value"
]
}
}
},
"required": [
"name",
"title"
]
}
},
"taskInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Task module title",
"maxLength": 64
},
"width": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Task module width - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"height": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Task module height - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"url": {
"$ref": "#/definitions/httpsUrl",
"description": "Task module URL"
}
}
}
}
},
"needsChannelSelector": {
"type": "boolean",
"description": "This value describes whether or not the bot utilizes a user hint to add the bot to a specific channel.",
Expand Down