[docs]@dataclasses.dataclass(frozen=True)classNodeMentionAttrs(Base):""" Attributes for :class:`NodeMention`. :param id: Required. The Atlassian Account ID or collection name of the mentioned user. :param localId: Optional. A unique identifier for the node. :param text: Optional. The textual representation of the mention, including the leading @ symbol (e.g., "@Bradley Ayers"). :param accessLevel: Optional. The access level of the mentioned user. Values: "NONE", "SITE", "APPLICATION", or "CONTAINER". :param userType: Optional. The type of user being mentioned. Values: "DEFAULT" (regular user), "SPECIAL" (special collection like "all"), or "APP" (application). """id:str=REQlocalId:str=OPTtext:str=OPTaccessLevel:str=OPTuserType:T.Literal["DEFAULT","SPECIAL","APP"]=OPT
[docs]@dataclasses.dataclass(frozen=True)classNodeMention(BaseNode):""" An inline mention node in ADF. The mention node represents a user mention (@mention) in the document. It can reference individual users by their Atlassian Account ID, or special collections like "all" for mentioning everyone. Reference: https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/mention/ """type:str=TypeEnum.mention.valueattrs:NodeMentionAttrs=REQ
[docs]defto_markdown(self,ignore_error:bool=False,)->str:# Return the text representation if available, otherwise format with @idifisinstance(self.attrs.text,str):returnself.attrs.textelse:return"@Unknown"