social.colibri.notification.registerPush

colibri.social

Schema Diff

+10 -0

From

CID
bafyreiboxlzvo4b...
Indexed At
2026-07-24 14:44 UTC
View this version

To

CID
bafyreifi5c4yrwb...
Indexed At
2026-07-31 21:23 UTC
View this version

Compatibility Analysis

Backward Compatible

No changes detected.

1 1
{
2 2
  "id": "social.colibri.notification.registerPush",
3 3
  "defs": {
4 4
    "main": {
5 5
      "type": "procedure",
6 6
      "input": {
7 7
        "schema": {
8 8
          "type": "object",
9 9
          "required": [
10 10
            "platform",
11 11
            "subscription"
12 12
          ],
13 13
          "properties": {
14 14
            "platform": {
15 15
              "type": "string",
16 16
              "knownValues": [
17 17
                "web",
18 18
                "tauri",
19 19
                "android"
20 20
              ]
21 21
            },
22 22
            "subscription": {
23 23
              "refs": [
24 24
                "lex:social.colibri.notification.registerPush#webPushSubscription",
25 25
                "lex:social.colibri.notification.registerPush#fcmSubscription"
26 26
              ],
27 27
              "type": "union"
28 28
            }
29 29
          }
30 30
        },
31 31
        "encoding": "application/json"
32 32
      },
33 +
      "errors": [
34 +
        {
35 +
          "name": "AuthRequired",
36 +
          "description": "Missing, malformed, or unverifiable service auth."
37 +
        },
38 +
        {
39 +
          "name": "InvalidRequest",
40 +
          "description": "A parameter or body field was missing or malformed."
41 +
        }
42 +
      ],
33 43
      "output": {
34 44
        "schema": {
35 45
          "type": "object",
36 46
          "required": [
37 47
            "registered"
38 48
          ],
39 49
          "properties": {
40 50
            "registered": {
41 51
              "type": "boolean"
42 52
            }
43 53
          }
44 54
        },
45 55
        "encoding": "application/json"
46 56
      },
47 57
      "description": "Registers a push subscription (Web Push or FCM) for the authenticated user."
48 58
    },
49 59
    "pushKeys": {
50 60
      "type": "object",
51 61
      "required": [
52 62
        "p256dh",
53 63
        "auth"
54 64
      ],
55 65
      "properties": {
56 66
        "auth": {
57 67
          "type": "string"
58 68
        },
59 69
        "p256dh": {
60 70
          "type": "string"
61 71
        }
62 72
      },
63 73
      "description": "Web Push subscription keys."
64 74
    },
65 75
    "fcmSubscription": {
66 76
      "type": "object",
67 77
      "required": [
68 78
        "token"
69 79
      ],
70 80
      "properties": {
71 81
        "token": {
72 82
          "type": "string",
73 83
          "description": "FCM registration token from FirebaseMessaging.getInstance().token."
74 84
        }
75 85
      },
76 86
      "description": "A Firebase Cloud Messaging registration token."
77 87
    },
78 88
    "webPushSubscription": {
79 89
      "type": "object",
80 90
      "required": [
81 91
        "endpoint",
82 92
        "keys"
83 93
      ],
84 94
      "properties": {
85 95
        "keys": {
86 96
          "ref": "lex:social.colibri.notification.registerPush#pushKeys",
87 97
          "type": "ref"
88 98
        },
89 99
        "endpoint": {
90 100
          "type": "string",
91 101
          "format": "uri"
92 102
        }
93 103
      },
94 104
      "description": "A browser Web Push subscription."
95 105
    }
96 106
  },
97 107
  "$type": "com.atproto.lexicon.schema",
98 108
  "lexicon": 1
99 109
}

Compare Other Versions

Lexicon Garden

@