tools.ozone.inbox.claimPushNotifications

Details · procedure
Kindprocedure
Authorityinbox.ozone.tools
Commit rev3n2oxkukedq2y
Indexed
cid bafyreiax26d7i3aq4ielcpkhndhi3ry7jahpjekh45rnj22gyjfhuhl3nq

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "item": {
      "properties": {
        "category": {
          "knownValues": [
            "reports",
            "account",
            "labels"
          ],
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "leaseToken": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "recipientDid": {
          "format": "did",
          "type": "string"
        },
        "target": {
          "refs": [
            "tools.ozone.inbox.defs#reportRef",
            "tools.ozone.inbox.defs#subjectRef",
            "tools.ozone.inbox.defs#standingRef"
          ],
          "type": "union"
        }
      },
      "required": [
        "id",
        "leaseToken",
        "recipientDid",
        "reason",
        "target",
        "createdAt",
        "category"
      ],
      "type": "object"
    },
    "main": {
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "limit": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expired": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            "notifications": {
              "items": {
                "ref": "#item",
                "type": "ref"
              },
              "type": "array"
            },
            "processed": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            "suppressed": {
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "notifications",
            "processed",
            "expired",
            "suppressed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.inbox.claimPushNotifications",
  "lexicon": 1
}