com.atiproto.repo.item.count

atiproto.com

{
  "id": "com.atiproto.repo.item.count",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "count"
          ],
          "properties": {
            "count": {
              "type": "integer",
              "description": "Number of active (completed) items matching the filter"
            },
            "amount": {
              "type": "integer",
              "description": "Sum of all item amounts in cents. Only returned when the authenticated user is the subject/owner of the target (or when counting their own sent items)."
            },
            "currency": {
              "type": "string",
              "maxLength": 3,
              "description": "Currency of the summed amount. Only returned when the authenticated user is the subject/owner of the target (or when counting their own sent items)."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "endDate": {
            "type": "string",
            "format": "datetime",
            "description": "Only count items completed at or before this timestamp"
          },
          "subject": {
            "type": "string",
            "format": "did",
            "description": "DID of the item recipient. Ignored if recordUri is provided. If omitted (and recordUri is omitted), the query counts items sent by the authenticated user."
          },
          "recordUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the record being tipped. Takes precedence over subject."
          },
          "startDate": {
            "type": "string",
            "format": "datetime",
            "description": "Only count items completed at or after this timestamp"
          }
        }
      },
      "description": "Count active (completed) items. If recordUri is provided, counts items for that record. If subject is provided, counts items received by that DID. If neither is provided, counts items sent by the authenticated user. Optionally filtered by a start/end datetime window. When the authenticated user is the subject/owner of the target, the response also includes the sum of amounts."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against com.atiproto.repo.item.count

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:4x5dcv6u4wlkjcssto7f22nu
CID
bafyreiaw2hx3s573wl6xvj235tvqnwakgt5nhxasyh4b7lfx5ljzcux5ua
Indexed At
2026-04-29 15:05 UTC
AT-URI
at://did:plc:4x5dcv6u4wlkjcssto7f22nu/com.atproto.lexicon.schema/com.atiproto.repo.item.count

Lexicon Garden

@