full diff

social.colibri.beta.notification.registerPush

colibri.social +14 −4
From
bafyreigwwm5dvqu5qnjbqmzpjetysg7b5kdk5yk5des4fdfdcdmzgvchu4 indexed 2026-08-23 12:32 UTC View this version
To
bafyreifdygvxi5lug3mtne6p6nm5af6nryu2r5mtcft2gx6ya2fgmjpmsq indexed 2026-10-15 15:34 UTC View this version

Compatibility

breaking 2 breaking changes, 2 non-breaking changes.

Breaking changes (2)
  • ConstraintTightened ConstraintTightened { vertex_id: "social.colibri.beta.notification.registerPush:input.provider", sort: "knownValues", old_value: "[\"webpush\",\"fcm\"]", new_value: "[\"webpush\",\"fcm\",\"apns\"]" }
  • ConstraintTightened ConstraintTightened { vertex_id: "social.colibri.beta.notification.registerPush:input.platform", sort: "knownValues", old_value: "[\"web\",\"ios\",\"android\"]", new_value: "[\"web\",\"ios\",\"android\",\"macos\"]" }
Non-breaking changes (2)
  • AddedVertex AddedVertex { vertex_id: "social.colibri.beta.notification.registerPush:input.environment" }
  • AddedEdge AddedEdge { src: "social.colibri.beta.notification.registerPush:input", tgt: "social.colibri.beta.notification.registerPush:input.environment", kind: "prop", name: Some("environment") }

Migration guidance

Added

  • AddedVertex { vertex_id: "social.colibri.beta.notification.registerPush:input.environment" }

Constraint changes

  • ConstraintTightened ConstraintTightened { vertex_id: "social.colibri.beta.notification.registerPush:input.provider", sort: "knownValues", old_value: "[\"webpush\",\"fcm\"]", new_value: "[\"webpush\",\"fcm\",\"apns\"]" }
  • ConstraintTightened ConstraintTightened { vertex_id: "social.colibri.beta.notification.registerPush:input.platform", sort: "knownValues", old_value: "[\"web\",\"ios\",\"android\"]", new_value: "[\"web\",\"ios\",\"android\",\"macos\"]" }

Notes

  • Non-breaking: AddedEdge { src: "social.colibri.beta.notification.registerPush:input", tgt: "social.colibri.beta.notification.registerPush:input.environment", kind: "prop", name: Some("environment") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "Registers a push endpoint for the requesting user's device. Web Push requires endpoint, p256dh, and auth. FCM requires token.",
5 "description": "Registers a push endpoint for the requesting user's device. Web Push requires endpoint, p256dh, and auth. FCM requires token. APNs requires token and environment.",
66 "errors": [
77 {
88 "description": "The request has no valid service auth.",
99 "name": "AuthRequired"
1010 },
1111 {
1212 "description": "The fields required for the given provider are missing or malformed.",
1313 "name": "InvalidRequest"
1414 },
1515 {
1616 "description": "This AppView has no keypair for the requested provider.",
1717 "name": "PushNotConfigured"
1818 }
1919 ],
2020 "input": {
2121 "encoding": "application/json",
2222 "schema": {
2323 "properties": {
2424 "auth": {
2525 "description": "The Web Push subscription's auth secret. Required when provider is webpush.",
2626 "type": "string"
2727 },
2828 "endpoint": {
2929 "description": "The Web Push subscription endpoint. Required when provider is webpush.",
3030 "format": "uri",
3131 "type": "string"
3232 },
33 "environment": {
34 "description": "The APNs environment the device token belongs to. Required when provider is apns.",
35 "knownValues": [
36 "sandbox",
37 "production"
38 ],
39 "type": "string"
40 },
3341 "p256dh": {
3442 "description": "The Web Push subscription's p256dh key. Required when provider is webpush.",
3543 "type": "string"
3644 },
3745 "platform": {
3846 "description": "The platform the device runs.",
3947 "knownValues": [
4048 "web",
4149 "ios",
42 "android"
50 "android",
51 "macos"
4352 ],
4453 "type": "string"
4554 },
4655 "provider": {
4756 "description": "The push provider to register with.",
4857 "knownValues": [
4958 "webpush",
50 "fcm"
59 "fcm",
60 "apns"
5161 ],
5262 "type": "string"
5363 },
5464 "token": {
55 "description": "The FCM registration token. Required when provider is fcm.",
65 "description": "The FCM registration token or the hex-encoded APNs device token. Required when provider is fcm or apns.",
5666 "type": "string"
5767 }
5868 },
5969 "required": [
6070 "provider",
6171 "platform"
6272 ],
6373 "type": "object"
6474 }
6575 },
6676 "output": {
6777 "encoding": "application/json",
6878 "schema": {
6979 "properties": {},
7080 "type": "object"
7181 }
7282 },
7383 "type": "procedure"
7484 }
7585 },
7686 "id": "social.colibri.beta.notification.registerPush",
7787 "lexicon": 1
7888}

Compare other versions