social.colibri.notification.registerPush

colibri.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "fcmSubscription": {
      "description": "A Firebase Cloud Messaging registration token.",
      "properties": {
        "token": {
          "description": "FCM registration token from FirebaseMessaging.getInstance().token.",
          "type": "string"
        }
      },
      "required": [
        "token"
      ],
      "type": "object"
    },
    "main": {
      "description": "Registers a push subscription (Web Push or FCM) for the authenticated user.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "platform": {
              "knownValues": [
                "web",
                "tauri",
                "android"
              ],
              "type": "string"
            },
            "subscription": {
              "refs": [
                "lex:social.colibri.notification.registerPush#webPushSubscription",
                "lex:social.colibri.notification.registerPush#fcmSubscription"
              ],
              "type": "union"
            }
          },
          "required": [
            "platform",
            "subscription"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "registered": {
              "type": "boolean"
            }
          },
          "required": [
            "registered"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "pushKeys": {
      "description": "Web Push subscription keys.",
      "properties": {
        "auth": {
          "type": "string"
        },
        "p256dh": {
          "type": "string"
        }
      },
      "required": [
        "p256dh",
        "auth"
      ],
      "type": "object"
    },
    "webPushSubscription": {
      "description": "A browser Web Push subscription.",
      "properties": {
        "endpoint": {
          "format": "uri",
          "type": "string"
        },
        "keys": {
          "ref": "lex:social.colibri.notification.registerPush#pushKeys",
          "type": "ref"
        }
      },
      "required": [
        "endpoint",
        "keys"
      ],
      "type": "object"
    }
  },
  "id": "social.colibri.notification.registerPush",
  "lexicon": 1
}

Validate Record

Validate a record against social.colibri.notification.registerPush

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:mprdjqjluoswa7awzggaggj3
CID
bafyreiboxlzvo4b4vcqrqwihp4c5ozksoazcbemavnrgim46lzldj7brae
Indexed At
2026-07-24 14:44 UTC
AT-URI
at://did:plc:mprdjqjluoswa7awzggaggj3/com.atproto.lexicon.schema/social.colibri.notification.registerPush

Version History (2 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@