// This is Generated Source. import IIvrPrompts from "../definitions/IvrPrompts"; import PromptInfo from "../definitions/PromptInfo"; import PathSegment from "../PathSegment"; import Content from "./Content"; export default class IvrPrompts extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("ivr-prompts", id, prv, service); } /** * Internal identifier of a message attachment */ content(id?: string) { return new Content(this, id); } /** *

Since 1.0.32 (Release 9.3)

Returns a list of IVR prompts.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Medium

*/ list(): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.32 (Release 9.3)

Returns a list of IVR prompts.

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Medium

* return {ApiResponse} */ listRaw(): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: undefined, }); } /** *

Since 1.0.32 (Release 9.3)

Returns an IVR prompt by ID

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Medium

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.32 (Release 9.3)

Returns an IVR prompt by ID

Required Permissions

PermissionDescription
ReadAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Medium

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** *

Since 1.0.32 (Release 9.3)

Deletes an IVR prompt by ID

Required Permissions

PermissionDescription
EditAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Heavy

*/ delete(): Promise { return this._send({ body: undefined, ignoreId: true, method: "delete", query: undefined, }); } /** *

Since 1.0.32 (Release 9.3)

Deletes an IVR prompt by ID

Required Permissions

PermissionDescription
EditAccountsViewing user account info (including name, business name, address and phone number/account number)

API Group

Heavy

* return {ApiResponse} */ deleteRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "delete", query: undefined, }); } }