@digipair/skill-web-push-notification 0.96.0 → 0.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema.fr.json +53 -3
- package/schema.json +53 -3
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/initialize": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"web",
|
|
15
|
+
"spatial"
|
|
16
|
+
],
|
|
14
17
|
"summary": "Enregistre l'utilisateur aux notifications push",
|
|
15
18
|
"description": "Enregistre l'utilisateur pour recevoir des notifications push en temps réel.",
|
|
16
19
|
"parameters": [
|
|
@@ -33,11 +36,58 @@
|
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
],
|
|
36
|
-
"x-events": []
|
|
39
|
+
"x-events": [],
|
|
40
|
+
"responses": {
|
|
41
|
+
"200": {
|
|
42
|
+
"description": "Abonnement aux notifications push initialisé avec succès",
|
|
43
|
+
"content": {
|
|
44
|
+
"application/json": {
|
|
45
|
+
"schema": {
|
|
46
|
+
"oneOf": [
|
|
47
|
+
{
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "Objet d'abonnement push depuis l'API Push du navigateur",
|
|
50
|
+
"properties": {
|
|
51
|
+
"endpoint": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "L'URL du point de terminaison pour le service push"
|
|
54
|
+
},
|
|
55
|
+
"expirationTime": {
|
|
56
|
+
"type": [
|
|
57
|
+
"number",
|
|
58
|
+
"null"
|
|
59
|
+
],
|
|
60
|
+
"description": "Moment où l'abonnement expire"
|
|
61
|
+
},
|
|
62
|
+
"keys": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"p256dh": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Clé publique client pour le chiffrement"
|
|
68
|
+
},
|
|
69
|
+
"auth": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Secret d'authentification client"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "null",
|
|
79
|
+
"description": "L'abonnement a échoué (service worker non pris en charge, permissions refusées, etc.)"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
37
87
|
}
|
|
38
88
|
}
|
|
39
89
|
},
|
|
40
90
|
"components": {
|
|
41
91
|
"schemas": {}
|
|
42
92
|
}
|
|
43
|
-
}
|
|
93
|
+
}
|
package/schema.json
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/initialize": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"web",
|
|
15
|
+
"spatial"
|
|
16
|
+
],
|
|
14
17
|
"summary": "Register the user for push notifications.",
|
|
15
18
|
"description": "Register the user to receive push notifications for real-time updates.",
|
|
16
19
|
"parameters": [
|
|
@@ -33,11 +36,58 @@
|
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
],
|
|
36
|
-
"x-events": []
|
|
39
|
+
"x-events": [],
|
|
40
|
+
"responses": {
|
|
41
|
+
"200": {
|
|
42
|
+
"description": "Push notification subscription successfully initialized",
|
|
43
|
+
"content": {
|
|
44
|
+
"application/json": {
|
|
45
|
+
"schema": {
|
|
46
|
+
"oneOf": [
|
|
47
|
+
{
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "Push subscription object from the browser's Push API",
|
|
50
|
+
"properties": {
|
|
51
|
+
"endpoint": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The endpoint URL for the push service"
|
|
54
|
+
},
|
|
55
|
+
"expirationTime": {
|
|
56
|
+
"type": [
|
|
57
|
+
"number",
|
|
58
|
+
"null"
|
|
59
|
+
],
|
|
60
|
+
"description": "When the subscription expires"
|
|
61
|
+
},
|
|
62
|
+
"keys": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"p256dh": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Client public key for encryption"
|
|
68
|
+
},
|
|
69
|
+
"auth": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Client authentication secret"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "null",
|
|
79
|
+
"description": "Subscription failed (service worker not supported, permissions denied, etc.)"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
37
87
|
}
|
|
38
88
|
}
|
|
39
89
|
},
|
|
40
90
|
"components": {
|
|
41
91
|
"schemas": {}
|
|
42
92
|
}
|
|
43
|
-
}
|
|
93
|
+
}
|