Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Builds message and work-item revisions for other integrations to apply.

Prerequisites

  • None.

Setup

messaging module

Members

elements

messaging.elementsmessaging.ElementConstants

Element type constants for use in revision headers.

format

messaging.formatmessaging.FormatConstants

MIME content-type constants for use in revision content.

assignment

messaging.assignment(value, headers?)

Create an assignment revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

attachment

messaging.attachment(value, headers?)

Create an attachment revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

comment

messaging.comment(value, headers?)

Create a comment revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

field

messaging.field(name, value, headers?)

Create a field revision.

Parameters
namestringThe name of the field.
valueanyThe field value. You may specify multiple content representations by providing a dict of content-type to value, e.g., messaging.field(“fieldname”, { “text/html”: “<span>this is html</span>” })
headers?optionaldict[string:any]A dict of header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.
messaging.link(value, headers?)

Create a link revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

mention

messaging.mention(value, headers?)

Create a mention revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

message

messaging.message(value, headers?)

Create a message body revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

metadata

messaging.metadata(name, value, headers?)

Create a metadata revision.

Parameters
namestringThe metadata key.
valueanyThe metadata value. You may specify multiple content representations by providing a dict of content-type to value.
headers?optionaldict[string:any]A dict of header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

revision

messaging.revision(headers?, content?)

Create a messaging revision.

Parameters
headers?optionaldict[string:any]A dict of header values (metadata) for the revision.
content?optionaldict[string:any]A dict of content-type to value body representations.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

status

messaging.status(value, headers?)

Create a status revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.

tags

messaging.tags(value, headers?)

Create a tags revision.

Parameters
valueanyThe element value. A string becomes text/plain; a list of strings becomes text/x-token-list; a dict of content-type to value sets multiple representations.
headers?optionaldict[string:any]A dict of additional header values for the revision.
Returns
revisionmessaging.RevisionA revision describing what part and how the message is changed.