@digipair/skill-common 0.97.1 → 0.98.2

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/schema.fr.json +169 -6
  3. package/schema.json +199 -228
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-common",
3
- "version": "0.97.1",
3
+ "version": "0.98.2",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/infos": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Lister les informations",
15
17
  "parameters": [
16
18
  {
@@ -23,12 +25,40 @@
23
25
  }
24
26
  }
25
27
  ],
28
+ "responses": {
29
+ "200": {
30
+ "description": "Informations sur le digipair",
31
+ "content": {
32
+ "application/json": {
33
+ "schema": {
34
+ "type": "object",
35
+ "properties": {
36
+ "name": {
37
+ "type": "string",
38
+ "description": "Nom du digipair"
39
+ },
40
+ "description": {
41
+ "type": "string",
42
+ "description": "Description du digipair"
43
+ }
44
+ },
45
+ "required": [
46
+ "name",
47
+ "description"
48
+ ]
49
+ }
50
+ }
51
+ }
52
+ }
53
+ },
26
54
  "x-events": []
27
55
  }
28
56
  },
29
57
  "/metadata": {
30
58
  "post": {
31
- "tags": ["service"],
59
+ "tags": [
60
+ "service"
61
+ ],
32
62
  "summary": "Lister les metadatas",
33
63
  "parameters": [
34
64
  {
@@ -41,12 +71,45 @@
41
71
  }
42
72
  }
43
73
  ],
74
+ "responses": {
75
+ "200": {
76
+ "description": " Metadata du digipair incluant l'avatar et la configuration",
77
+ "content": {
78
+ "application/json": {
79
+ "schema": {
80
+ "type": "object",
81
+ "properties": {
82
+ "avatar": {
83
+ "type": "string",
84
+ "description": "Image d'avatar encodée en Base64"
85
+ },
86
+ "config": {
87
+ "type": "object",
88
+ "properties": {
89
+ "VERSIONS": {
90
+ "type": "object",
91
+ "description": "Versions de la bibliothèque"
92
+ }
93
+ }
94
+ },
95
+ "variables": {
96
+ "type": "object",
97
+ "description": "Variables de configuration"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ },
44
105
  "x-events": []
45
106
  }
46
107
  },
47
108
  "/boosts": {
48
109
  "post": {
49
- "tags": ["service"],
110
+ "tags": [
111
+ "service"
112
+ ],
50
113
  "summary": "Lister les boosts",
51
114
  "parameters": [
52
115
  {
@@ -59,12 +122,60 @@
59
122
  }
60
123
  }
61
124
  ],
125
+ "responses": {
126
+ "200": {
127
+ "description": "Liste des boosts disponibles",
128
+ "content": {
129
+ "application/json": {
130
+ "schema": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "object",
134
+ "properties": {
135
+ "reasoning": {
136
+ "type": "string",
137
+ "description": "Identifiant de raisonnement du boost"
138
+ },
139
+ "summary": {
140
+ "type": "string",
141
+ "description": "Résumé du boost"
142
+ },
143
+ "description": {
144
+ "type": "string",
145
+ "description": "Description du boost"
146
+ },
147
+ "selector": {
148
+ "type": "string",
149
+ "description": "Sélecteur CSS pour l'activation du boost"
150
+ },
151
+ "url": {
152
+ "type": "string",
153
+ "description": "URL pattern pour l'activation du boost"
154
+ },
155
+ "standalone": {
156
+ "type": "boolean",
157
+ "description": "Indique si le boost fonctionne de manière autonome"
158
+ }
159
+ },
160
+ "required": [
161
+ "reasoning",
162
+ "summary",
163
+ "description"
164
+ ]
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ },
62
171
  "x-events": []
63
172
  }
64
173
  },
65
174
  "/schema": {
66
175
  "post": {
67
- "tags": ["service"],
176
+ "tags": [
177
+ "service"
178
+ ],
68
179
  "summary": "Schema",
69
180
  "parameters": [
70
181
  {
@@ -77,12 +188,64 @@
77
188
  }
78
189
  }
79
190
  ],
191
+ "responses": {
192
+ "200": {
193
+ "description": "Schema OpenAPI pour le digipair",
194
+ "content": {
195
+ "application/json": {
196
+ "schema": {
197
+ "type": "object",
198
+ "properties": {
199
+ "openapi": {
200
+ "type": "string",
201
+ "description": "Version OpenAPI"
202
+ },
203
+ "info": {
204
+ "type": "object",
205
+ "properties": {
206
+ "title": {
207
+ "type": "string"
208
+ },
209
+ "summary": {
210
+ "type": "string"
211
+ },
212
+ "description": {
213
+ "type": "string"
214
+ },
215
+ "version": {
216
+ "type": "string"
217
+ },
218
+ "x-icon": {
219
+ "type": "string"
220
+ }
221
+ }
222
+ },
223
+ "paths": {
224
+ "type": "object",
225
+ "description": "Chemins et opérations de l'API"
226
+ },
227
+ "x-scene-blocks": {
228
+ "type": "object",
229
+ "description": "Blocs de scène pour les déclencheurs"
230
+ }
231
+ },
232
+ "required": [
233
+ "openapi",
234
+ "info"
235
+ ]
236
+ }
237
+ }
238
+ }
239
+ }
240
+ },
80
241
  "x-events": []
81
242
  }
82
243
  },
83
244
  "/context": {
84
245
  "post": {
85
- "tags": ["service"],
246
+ "tags": [
247
+ "service"
248
+ ],
86
249
  "summary": "Context",
87
250
  "parameters": [
88
251
  {
@@ -109,4 +272,4 @@
109
272
  }
110
273
  },
111
274
  "x-scene-blocks": {}
112
- }
275
+ }
package/schema.json CHANGED
@@ -47,258 +47,229 @@
47
47
  "description"
48
48
  ]
49
49
  }
50
- "name": "My Digipair",
51
- "description": "A sample digipair application"
52
50
  }
53
51
  }
54
52
  }
55
- }
56
- },
57
- "x-events": []
58
- }
59
- },
60
- "/metadata": {
61
- "post": {
62
- "tags": [
63
- "service"
64
- ],
65
- "summary": "List the metadata",
66
- "parameters": [
67
- {
68
- "name": "digipair",
69
- "summary": "Digipair",
70
- "description": "Digipair's name",
71
- "required": true,
72
- "schema": {
73
- "type": "string"
53
+ },
54
+ "x-events": []
55
+ }
56
+ },
57
+ "/metadata": {
58
+ "post": {
59
+ "tags": [
60
+ "service"
61
+ ],
62
+ "summary": "List the metadata",
63
+ "parameters": [
64
+ {
65
+ "name": "digipair",
66
+ "summary": "Digipair",
67
+ "description": "Digipair's name",
68
+ "required": true,
69
+ "schema": {
70
+ "type": "string"
71
+ }
74
72
  }
75
- }
76
- ],
77
- "responses": {
78
- "200": {
79
- "description": "Digipair metadata including avatar and configuration",
80
- "content": {
81
- "application/json": {
82
- "schema": {
83
- "type": "object",
84
- "properties": {
85
- "avatar": {
86
- "type": "string",
87
- "description": "Base64 encoded avatar image"
88
- },
89
- "config": {
90
- "type": "object",
91
- "properties": {
92
- "VERSIONS": {
93
- "type": "object",
94
- "description": "Library versions"
73
+ ],
74
+ "responses": {
75
+ "200": {
76
+ "description": "Digipair metadata including avatar and configuration",
77
+ "content": {
78
+ "application/json": {
79
+ "schema": {
80
+ "type": "object",
81
+ "properties": {
82
+ "avatar": {
83
+ "type": "string",
84
+ "description": "Base64 encoded avatar image"
85
+ },
86
+ "config": {
87
+ "type": "object",
88
+ "properties": {
89
+ "VERSIONS": {
90
+ "type": "object",
91
+ "description": "Library versions"
92
+ }
95
93
  }
94
+ },
95
+ "variables": {
96
+ "type": "object",
97
+ "description": "Configuration variables"
96
98
  }
97
- },
98
- "variables": {
99
- "type": "object",
100
- "description": "Configuration variables"
101
99
  }
102
100
  }
103
101
  }
104
- "avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
105
- "config": {
106
- "VERSIONS": {}
107
- },
108
- "variables": {}
109
102
  }
110
103
  }
111
- }
104
+ },
105
+ "x-events": []
112
106
  }
113
107
  },
114
- "x-events": []
115
- }
116
- },
117
- "/boosts": {
118
- "post": {
119
- "tags": [
120
- "service"
121
- ],
122
- "summary": "List the boosts",
123
- "parameters": [
124
- {
125
- "name": "digipair",
126
- "summary": "Digipair",
127
- "description": "Digipair's name",
128
- "required": true,
129
- "schema": {
130
- "type": "string"
131
- }
132
- }
133
- ],
134
- "responses": {
135
- "200": {
136
- "description": "List of available boosts",
137
- "content": {
138
- "application/json": {
108
+ "/boosts": {
109
+ "post": {
110
+ "tags": [
111
+ "service"
112
+ ],
113
+ "summary": "List the boosts",
114
+ "parameters": [
115
+ {
116
+ "name": "digipair",
117
+ "summary": "Digipair",
118
+ "description": "Digipair's name",
119
+ "required": true,
139
120
  "schema": {
140
- "type": "array",
141
- "items": {
142
- "type": "object",
143
- "properties": {
144
- "reasoning": {
145
- "type": "string",
146
- "description": "Boost reasoning identifier"
147
- },
148
- "summary": {
149
- "type": "string",
150
- "description": "Boost summary"
151
- },
152
- "description": {
153
- "type": "string",
154
- "description": "Boost description"
155
- },
156
- "selector": {
157
- "type": "string",
158
- "description": "CSS selector for boost activation"
159
- },
160
- "url": {
161
- "type": "string",
162
- "description": "URL pattern for boost activation"
163
- },
164
- "standalone": {
165
- "type": "boolean",
166
- "description": "Whether the boost runs standalone"
121
+ "type": "string"
122
+ }
123
+ }
124
+ ],
125
+ "responses": {
126
+ "200": {
127
+ "description": "List of available boosts",
128
+ "content": {
129
+ "application/json": {
130
+ "schema": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "object",
134
+ "properties": {
135
+ "reasoning": {
136
+ "type": "string",
137
+ "description": "Boost reasoning identifier"
138
+ },
139
+ "summary": {
140
+ "type": "string",
141
+ "description": "Boost summary"
142
+ },
143
+ "description": {
144
+ "type": "string",
145
+ "description": "Boost description"
146
+ },
147
+ "selector": {
148
+ "type": "string",
149
+ "description": "CSS selector for boost activation"
150
+ },
151
+ "url": {
152
+ "type": "string",
153
+ "description": "URL pattern for boost activation"
154
+ },
155
+ "standalone": {
156
+ "type": "boolean",
157
+ "description": "Whether the boost runs standalone"
158
+ }
159
+ },
160
+ "required": [
161
+ "reasoning",
162
+ "summary",
163
+ "description"
164
+ ]
167
165
  }
168
- },
169
- "required": [
170
- "reasoning",
171
- "summary",
172
- "description"
173
- ]
166
+ }
174
167
  }
175
168
  }
176
- {
177
- "reasoning": "boost-example",
178
- "summary": "Example boost",
179
- "description": "An example boost for demonstration",
180
- "selector": ".example-class",
181
- "url": "https://example.com",
182
- "standalone": false
183
- }
184
- ]
185
- }
186
- }
187
- }
188
- },
189
- "x-events": []
190
- }
191
- },
192
- "/schema": {
193
- "post": {
194
- "tags": [
195
- "service"
196
- ],
197
- "summary": "Schema",
198
- "parameters": [
199
- {
200
- "name": "digipair",
201
- "summary": "Digipair",
202
- "description": "Digipair's name",
203
- "required": true,
204
- "schema": {
205
- "type": "string"
169
+ }
170
+ },
171
+ "x-events": []
206
172
  }
207
- }
208
- ],
209
- "responses": {
210
- "200": {
211
- "description": "OpenAPI schema for the digipair",
212
- "content": {
213
- "application/json": {
214
- "schema": {
215
- "type": "object",
216
- "properties": {
217
- "openapi": {
218
- "type": "string",
219
- "description": "OpenAPI version"
220
- },
221
- "info": {
222
- "type": "object",
223
- "properties": {
224
- "title": {
225
- "type": "string"
226
- },
227
- "summary": {
228
- "type": "string"
229
- },
230
- "description": {
231
- "type": "string"
232
- },
233
- "version": {
234
- "type": "string"
173
+ },
174
+ "/schema": {
175
+ "post": {
176
+ "tags": [
177
+ "service"
178
+ ],
179
+ "summary": "Schema",
180
+ "parameters": [
181
+ {
182
+ "name": "digipair",
183
+ "summary": "Digipair",
184
+ "description": "Digipair's name",
185
+ "required": true,
186
+ "schema": {
187
+ "type": "string"
188
+ }
189
+ }
190
+ ],
191
+ "responses": {
192
+ "200": {
193
+ "description": "OpenAPI schema for the digipair",
194
+ "content": {
195
+ "application/json": {
196
+ "schema": {
197
+ "type": "object",
198
+ "properties": {
199
+ "openapi": {
200
+ "type": "string",
201
+ "description": "OpenAPI version"
202
+ },
203
+ "info": {
204
+ "type": "object",
205
+ "properties": {
206
+ "title": {
207
+ "type": "string"
208
+ },
209
+ "summary": {
210
+ "type": "string"
211
+ },
212
+ "description": {
213
+ "type": "string"
214
+ },
215
+ "version": {
216
+ "type": "string"
217
+ },
218
+ "x-icon": {
219
+ "type": "string"
220
+ }
221
+ }
222
+ },
223
+ "paths": {
224
+ "type": "object",
225
+ "description": "API paths and operations"
226
+ },
227
+ "x-scene-blocks": {
228
+ "type": "object",
229
+ "description": "Scene blocks for triggers"
230
+ }
235
231
  },
236
- "x-icon": {
237
- "type": "string"
238
- }
232
+ "required": [
233
+ "openapi",
234
+ "info"
235
+ ]
239
236
  }
240
- },
241
- "paths": {
242
- "type": "object",
243
- "description": "API paths and operations"
244
- },
245
- "x-scene-blocks": {
246
- "type": "object",
247
- "description": "Scene blocks for triggers"
248
237
  }
249
- },
250
- "required": [
251
- "openapi",
252
- "info"
253
- ]
238
+ }
254
239
  }
255
- "openapi": "3.0.0",
256
- "info": {
257
- "title": "digipair:example",
258
- "summary": "Example Digipair",
259
- "description": "An example digipair application",
260
- "version": "1.0.0",
261
- "x-icon": "🤖"
240
+ },
241
+ "x-events": []
242
+ }
243
+ },
244
+ "/context": {
245
+ "post": {
246
+ "tags": [
247
+ "service"
248
+ ],
249
+ "summary": "Context",
250
+ "parameters": [
251
+ {
252
+ "name": "digipair",
253
+ "summary": "Digipair",
254
+ "description": "Digipair's name",
255
+ "required": true,
256
+ "schema": {
257
+ "type": "string"
258
+ }
262
259
  },
263
- "paths": {},
264
- "x-scene-blocks": {}
265
- }
260
+ {
261
+ "name": "reasoning",
262
+ "summary": "Reasoning",
263
+ "description": "Reasoning's name",
264
+ "required": true,
265
+ "schema": {
266
+ "type": "string"
267
+ }
268
+ }
269
+ ],
270
+ "x-events": []
266
271
  }
267
272
  }
268
- }
269
- },
270
- "x-events": []
271
- }
272
- },
273
- "/context": {
274
- "post": {
275
- "tags": [
276
- "service"
277
- ],
278
- "summary": "Context",
279
- "parameters": [
280
- {
281
- "name": "digipair",
282
- "summary": "Digipair",
283
- "description": "Digipair's name",
284
- "required": true,
285
- "schema": {
286
- "type": "string"
287
- }
288
273
  },
289
- {
290
- "name": "reasoning",
291
- "summary": "Reasoning",
292
- "description": "Reasoning's name",
293
- "required": true,
294
- "schema": {
295
- "type": "string"
296
- }
297
- }
298
- ],
299
- "x-events": []
300
- }
301
- }
302
- },
303
- "x-scene-blocks": {}
274
+ "x-scene-blocks": {}
304
275
  }