full diff

social.colibri.notification.registerPush

colibri.social +10 −0
From
bafyreiboxlzvo4b4vcqrqwihp4c5ozksoazcbemavnrgim46lzldj7brae indexed 2026-07-24 14:44 UTC View this version
To
bafyreifi5c4yrwbpwvkoukgfggksxqe6ap3rcatweuw3nzf4cljmghyj54 indexed 2026-07-31 21:23 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "fcmSubscription": {
55 "description": "A Firebase Cloud Messaging registration token.",
66 "properties": {
77 "token": {
88 "description": "FCM registration token from FirebaseMessaging.getInstance().token.",
99 "type": "string"
1010 }
1111 },
1212 "required": [
1313 "token"
1414 ],
1515 "type": "object"
1616 },
1717 "main": {
1818 "description": "Registers a push subscription (Web Push or FCM) for the authenticated user.",
19 "errors": [
20 {
21 "description": "Missing, malformed, or unverifiable service auth.",
22 "name": "AuthRequired"
23 },
24 {
25 "description": "A parameter or body field was missing or malformed.",
26 "name": "InvalidRequest"
27 }
28 ],
1929 "input": {
2030 "encoding": "application/json",
2131 "schema": {
2232 "properties": {
2333 "platform": {
2434 "knownValues": [
2535 "web",
2636 "tauri",
2737 "android"
2838 ],
2939 "type": "string"
3040 },
3141 "subscription": {
3242 "refs": [
3343 "lex:social.colibri.notification.registerPush#webPushSubscription",
3444 "lex:social.colibri.notification.registerPush#fcmSubscription"
3545 ],
3646 "type": "union"
3747 }
3848 },
3949 "required": [
4050 "platform",
4151 "subscription"
4252 ],
4353 "type": "object"
4454 }
4555 },
4656 "output": {
4757 "encoding": "application/json",
4858 "schema": {
4959 "properties": {
5060 "registered": {
5161 "type": "boolean"
5262 }
5363 },
5464 "required": [
5565 "registered"
5666 ],
5767 "type": "object"
5868 }
5969 },
6070 "type": "procedure"
6171 },
6272 "pushKeys": {
6373 "description": "Web Push subscription keys.",
6474 "properties": {
6575 "auth": {
6676 "type": "string"
6777 },
6878 "p256dh": {
6979 "type": "string"
7080 }
7181 },
7282 "required": [
7383 "p256dh",
7484 "auth"
7585 ],
7686 "type": "object"
7787 },
7888 "webPushSubscription": {
7989 "description": "A browser Web Push subscription.",
8090 "properties": {
8191 "endpoint": {
8292 "format": "uri",
8393 "type": "string"
8494 },
8595 "keys": {
8696 "ref": "lex:social.colibri.notification.registerPush#pushKeys",
8797 "type": "ref"
8898 }
8999 },
90100 "required": [
91101 "endpoint",
92102 "keys"
93103 ],
94104 "type": "object"
95105 }
96106 },
97107 "id": "social.colibri.notification.registerPush",
98108 "lexicon": 1
99109}

Compare other versions