import {JSONSchema7} from 'json-schema'; /** * This schema defines the action buttons under the main channel chat input. */ export default { $id: 'https://schemas.coastapp.com/card/v1/persistentMenu.json', $schema: 'http://json-schema.org/draft-07/schema', title: 'Card Chat Persistent Menu Template', type: 'object', additionalProperties: false, properties: { version: {type: 'string', enum: ['v1']}, context: {type: 'string', enum: ['persistent-menu']}, buttons: { type: 'array', items: { type: 'object', title: 'Chat Input Persistent Menu Button', additionalProperties: false, properties: { title: {type: 'string'}, onPressActions: {$ref: 'https://schemas.coastapp.com/card/v1/actions.json'}, }, required: ['title', 'onPressActions'], }, }, }, required: ['version', 'context', 'buttons'], } as JSONSchema7;