@digipair/skill-nuki 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-nuki",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/unlock": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Ouvre une serrure Nuki",
15
17
  "parameters": [
16
18
  {
@@ -41,12 +43,26 @@
41
43
  }
42
44
  }
43
45
  ],
44
- "x-events": []
46
+ "x-events": [],
47
+ "responses": {
48
+ "200": {
49
+ "description": "Réponse de déverrouillage de la serrure Nuki",
50
+ "content": {
51
+ "application/json": {
52
+ "schema": {
53
+ "$ref": "#/components/schemas/NukiActionResponse"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
45
59
  }
46
60
  },
47
61
  "/lock": {
48
62
  "post": {
49
- "tags": ["service"],
63
+ "tags": [
64
+ "service"
65
+ ],
50
66
  "summary": "Ferme une serrure Nuki",
51
67
  "parameters": [
52
68
  {
@@ -77,12 +93,43 @@
77
93
  }
78
94
  }
79
95
  ],
80
- "x-events": []
96
+ "x-events": [],
97
+ "responses": {
98
+ "200": {
99
+ "description": "Réponse de verrouillage de la serrure Nuki",
100
+ "content": {
101
+ "application/json": {
102
+ "schema": {
103
+ "$ref": "#/components/schemas/NukiActionResponse"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
81
109
  }
82
110
  }
83
111
  },
84
112
  "components": {
85
- "schemas": {}
113
+ "schemas": {
114
+ "NukiActionResponse": {
115
+ "type": "object",
116
+ "description": "Réponse d'une action de serrure Nuki",
117
+ "properties": {
118
+ "success": {
119
+ "type": "boolean",
120
+ "description": "Si l'action a réussi"
121
+ },
122
+ "batteryCharging": {
123
+ "type": "boolean",
124
+ "description": "Statut de charge de la batterie"
125
+ },
126
+ "operationId": {
127
+ "type": "string",
128
+ "description": "Identifiant unique de l'opération"
129
+ }
130
+ }
131
+ }
132
+ }
86
133
  },
87
134
  "x-scene-blocks": {}
88
- }
135
+ }
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/unlock": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Unlocks a Nuki lock",
15
17
  "parameters": [
16
18
  {
@@ -41,12 +43,26 @@
41
43
  }
42
44
  }
43
45
  ],
44
- "x-events": []
46
+ "x-events": [],
47
+ "responses": {
48
+ "200": {
49
+ "description": "Nuki lock unlock response",
50
+ "content": {
51
+ "application/json": {
52
+ "schema": {
53
+ "$ref": "#/components/schemas/NukiActionResponse"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
45
59
  }
46
60
  },
47
61
  "/lock": {
48
62
  "post": {
49
- "tags": ["service"],
63
+ "tags": [
64
+ "service"
65
+ ],
50
66
  "summary": "Locks a Nuki lock",
51
67
  "parameters": [
52
68
  {
@@ -77,12 +93,43 @@
77
93
  }
78
94
  }
79
95
  ],
80
- "x-events": []
96
+ "x-events": [],
97
+ "responses": {
98
+ "200": {
99
+ "description": "Nuki lock lock response",
100
+ "content": {
101
+ "application/json": {
102
+ "schema": {
103
+ "$ref": "#/components/schemas/NukiActionResponse"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
81
109
  }
82
110
  }
83
111
  },
84
112
  "components": {
85
- "schemas": {}
113
+ "schemas": {
114
+ "NukiActionResponse": {
115
+ "type": "object",
116
+ "description": "Response from Nuki lock action",
117
+ "properties": {
118
+ "success": {
119
+ "type": "boolean",
120
+ "description": "Whether the action was successful"
121
+ },
122
+ "batteryCharging": {
123
+ "type": "boolean",
124
+ "description": "Battery charging status"
125
+ },
126
+ "operationId": {
127
+ "type": "string",
128
+ "description": "Unique identifier for the operation"
129
+ }
130
+ }
131
+ }
132
+ }
86
133
  },
87
134
  "x-scene-blocks": {}
88
- }
135
+ }