import CustomGreetingInfo from '../definitions/CustomGreetingInfo'; import CustomGreetingInfoAnsweringRuleInfo from '../definitions/CustomGreetingInfoAnsweringRuleInfo'; import PathSegment from '../PathSegment'; export default class Greeting extends PathSegment { constructor(prv: PathSegment, id?: string, service?: any); /** * Create Custom Greeting */ post(body: PostBody): Promise; /** * Get Custom Greeting by ID */ get(): Promise; } export interface PostBody { /** * Type of a greeting, specifying the case when the greeting is played. See also Greeting Types */ type?: 'Introductory' | 'Announcement' | 'ConnectingMessage' | 'ConnectingAudio' | 'Voicemail' | 'Unavailable'; /** * Information on an answering rule that the greeting is applied to */ answeringRule?: CustomGreetingInfoAnsweringRuleInfo; }