app.bivri.notif.registerPush
Authenticated member Web Push subscription management. Identity comes only from authentication.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | notif.bivri.app |
| Indexed |
Checks
Validmissing-primary-descriptiondefs.mainThe procedure has no description.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"errors": [
{
"description": "Web Push is not configured.",
"name": "PushUnavailable"
},
{
"description": "The endpoint belongs to another member.",
"name": "SubscriptionConflict"
},
{
"description": "The authenticated member must accept Terms and Privacy Policy and confirm age.",
"name": "ConsentRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"endpoint": {
"description": "HTTPS endpoint on a supported browser push service.",
"format": "uri",
"maxLength": 2048,
"type": "string"
},
"keys": {
"ref": "#subscriptionKeys",
"type": "ref"
},
"userAgent": {
"maxLength": 512,
"type": "string"
}
},
"required": [
"endpoint",
"keys"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"registered": {
"const": true,
"type": "boolean"
}
},
"required": [
"registered"
],
"type": "object"
}
},
"type": "procedure"
},
"subscriptionKeys": {
"properties": {
"auth": {
"description": "Base64url authentication secret (16 bytes).",
"maxLength": 22,
"minLength": 22,
"type": "string"
},
"p256dh": {
"description": "Base64url uncompressed P-256 public key (65 bytes).",
"maxLength": 87,
"minLength": 87,
"type": "string"
}
},
"required": [
"p256dh",
"auth"
],
"type": "object"
}
},
"description": "Authenticated member Web Push subscription management. Identity comes only from authentication.",
"id": "app.bivri.notif.registerPush",
"lexicon": 1
}