import * as Flex from '@twilio/flex-ui'; export interface CustomWorkerAttributes extends Flex.WorkerAttributes { SID: string; contact_uri: string; image_url: string; roles: ['admin' | 'supervisor' | 'agent']; // used for selecting language language?: string; // used to override name seen on webchat public_identity: string; // caller-id feature selectedCallerId: string; // custom-transfer-directory feature enforcedQueueFilter?: string; // Flex insights references the following elements email: string; full_name: string; location?: string; manager?: string; team_id?: string; team_name?: string; department_id?: string; department_name?: string; // configuration config_overrides?: any; } type FlexUIAttributes = Flex.ServiceConfiguration['ui_attributes']; export interface PluginStoreConfig { name: string; sid: string; config: any; } export interface PluginStoreListConfig extends FlexUIAttributes { pluginStoreConfig: PluginStoreConfig[]; }