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