DocumentationAPI reference

Rust · 0.1.0

UserNotification

Application protocol schema. Field names and inherited descriptions are kept in their original language.

Where this schema is used

These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.

Referenced by these component schemas:

Shape and fields

object

FieldType / requirementDescription
namestringThe resource name of the notification. Format: users/{user}/notifications/{notification}
senderstringThe sender of the notification. Format: users/{user}
senderUserallOf
User
The sender user details.
statusstring (enum)
STATUS_UNSPECIFIED · UNREAD · ARCHIVED
The status of the notification.
createTimestring (date-time)The creation timestamp.
typestring (enum)
TYPE_UNSPECIFIED · MEMO_COMMENT · MEMO_MENTION · SPACE_INVITATION
The type of the notification.
memoCommentallOf
UserNotification_MemoCommentPayload
memoMentionallOf
UserNotification_MemoMentionPayload
spaceInvitationallOf
UserNotification_SpaceInvitationPayload

Complete schema

Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.

{
  "type": "object",
  "properties": {
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "The resource name of the notification.\n Format: users/{user}/notifications/{notification}"
    },
    "sender": {
      "readOnly": true,
      "type": "string",
      "description": "The sender of the notification.\n Format: users/{user}"
    },
    "senderUser": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/User"
        }
      ],
      "description": "The sender user details."
    },
    "status": {
      "enum": [
        "STATUS_UNSPECIFIED",
        "UNREAD",
        "ARCHIVED"
      ],
      "type": "string",
      "description": "The status of the notification.",
      "format": "enum"
    },
    "createTime": {
      "readOnly": true,
      "type": "string",
      "description": "The creation timestamp.",
      "format": "date-time"
    },
    "type": {
      "readOnly": true,
      "enum": [
        "TYPE_UNSPECIFIED",
        "MEMO_COMMENT",
        "MEMO_MENTION",
        "SPACE_INVITATION"
      ],
      "type": "string",
      "description": "The type of the notification.",
      "format": "enum"
    },
    "memoComment": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/UserNotification_MemoCommentPayload"
        }
      ]
    },
    "memoMention": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/UserNotification_MemoMentionPayload"
        }
      ]
    },
    "spaceInvitation": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/UserNotification_SpaceInvitationPayload"
        }
      ]
    }
  }
}