app.didpic.notification.registerPush
Schema Diff
+9 -3
Compatibility Analysis
Backward Compatible
Backward compatible. 2 non-breaking changes.
Non-Breaking Changes (2)
- AddedVertex AddedVertex { vertex_id: "app.didpic.notification.registerPush:input.kind" }
- AddedEdge AddedEdge { src: "app.didpic.notification.registerPush:input", tgt: "app.didpic.notification.registerPush:input.kind", kind: "prop", name: Some("kind") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.didpic.notification.registerPush:input.kind" }
Additional Notes
- Non-breaking: AddedEdge { src: "app.didpic.notification.registerPush:input", tgt: "app.didpic.notification.registerPush:input.kind", kind: "prop", name: Some("kind") }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
-
"description": "Bind a device's push token to the authenticated viewer. Idempotent: re-registering the same (token, did) pair refreshes its registered_at. A single token can be bound to multiple DIDs (multi-account device); a single DID can be bound to multiple tokens (multiple devices for one account).",
5
+
"description": "Bind a device push token to the authenticated viewer.",
6
6
"input": {
7
7
"encoding": "application/json",
8
8
"schema": {
9
9
"properties": {
10
10
"accountsOnDevice": {
11
-
"description": "DIDs the calling device currently has signed in. When provided, the server replaces all (token, *) bindings to match this list: bindings for DIDs absent from it are pruned. Must include the authenticated DID. Lets a multi-account device reconcile after an account is removed without needing the gone account's auth.",
12
11
"items": {
13
12
"format": "did",
14
13
"type": "string"
15
14
},
16
15
"type": "array"
17
16
},
17
+
"kind": {
18
+
"knownValues": [
19
+
"expo",
20
+
"apns",
21
+
"fcm"
22
+
],
23
+
"type": "string"
24
+
},
18
25
"platform": {
19
26
"knownValues": [
20
27
"ios",
21
28
"android"
22
29
],
23
30
"type": "string"
24
31
},
25
32
"token": {
26
-
"description": "Expo push token of the form `ExponentPushToken[...]`.",
27
33
"type": "string"
28
34
}
29
35
},
30
36
"required": [
31
37
"token",
32
38
"platform"
33
39
],
34
40
"type": "object"
35
41
}
36
42
},
37
43
"type": "procedure"
38
44
}
39
45
},
40
46
"id": "app.didpic.notification.registerPush",
41
47
"lexicon": 1
42
48
}