us.off-the-clock.push.registerPushSubscription
Registers this browser's push subscription to the viewer. An endpoint registered by someone else moves to the viewer: one browser has one recipient.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | push.off-the-clock.us |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.keys.properties.authNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.keys.properties.p256dhNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Registers this browser's push subscription to the viewer. An endpoint registered by someone else moves to the viewer: one browser has one recipient.",
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "NotSpaceMember"
},
{
"description": "This AppView has no VAPID key.",
"name": "PushDisabled"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"endpoint": {
"description": "An https URL on a public host.",
"format": "uri",
"maxLength": 1024,
"type": "string"
},
"keys": {
"properties": {
"auth": {
"description": "The 16-byte authentication secret, base64url.",
"type": "string"
},
"p256dh": {
"description": "The browser's P-256 public key, uncompressed (65 bytes), base64url.",
"type": "string"
}
},
"required": [
"p256dh",
"auth"
],
"type": "object"
},
"label": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"endpoint",
"keys"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}
},
"id": "us.off-the-clock.push.registerPushSubscription",
"lexicon": 1
}