diff --git a/ably.d.ts b/ably.d.ts index c80717665..d860804bb 100644 --- a/ably.d.ts +++ b/ably.d.ts @@ -2421,6 +2421,27 @@ export declare interface RestAnnotations { * Assumed to be an annotation.create if no action is specified) */ publish(messageSerial: string, annotation: OutboundAnnotation): Promise; + /** + * Publish an annotation removal request for a message, to remove it from the summary + * summaries. The semantics of the delete (and what fields are required) are different + * for each annotation type; see annotation types documentation for more details. + * + * @param message - The message which has an annotation that you want to delete. + * @param annotation - The annotation deletion request. (Must include at least the + * `type`, other required fields depend on the type). + */ + delete(message: Message, annotation: OutboundAnnotation): Promise; + /** + * Publish an annotation removal request for a message, to remove it from the summary + * summaries. The semantics of the delete (and what fields are required) are different + * for each annotation type; see annotation types documentation for more details. + * + * @param messageSerial - The serial field of the message which has an annotation that + * you want to delete. + * @param annotation - The annotation deletion request. (Must include at least the + * `type`, other required fields depend on the type). + */ + delete(messageSerial: string, annotation: OutboundAnnotation): Promise; /** * Get all annotations for a given message (as a paginated result) *