Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
/**
* 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<void>;
/**
* 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<void>;
/**
* Get all annotations for a given message (as a paginated result)
*
Expand Down
Loading