@digipair/skill-common 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.json +265 -73
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-common",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.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": "List the informations",
15
17
  "parameters": [
16
18
  {
@@ -23,90 +25,280 @@
23
25
  }
24
26
  }
25
27
  ],
26
- "x-events": []
27
- }
28
- },
29
- "/metadata": {
30
- "post": {
31
- "tags": ["service"],
32
- "summary": "List the metadata",
33
- "parameters": [
34
- {
35
- "name": "digipair",
36
- "summary": "Digipair",
37
- "description": "Digipair's name",
38
- "required": true,
39
- "schema": {
40
- "type": "string"
28
+ "responses": {
29
+ "200": {
30
+ "description": "Digipair information",
31
+ "content": {
32
+ "application/json": {
33
+ "schema": {
34
+ "type": "object",
35
+ "properties": {
36
+ "name": {
37
+ "type": "string",
38
+ "description": "Name of the digipair"
39
+ },
40
+ "description": {
41
+ "type": "string",
42
+ "description": "Description of the digipair"
43
+ }
44
+ },
45
+ "required": [
46
+ "name",
47
+ "description"
48
+ ]
49
+ }
50
+ "name": "My Digipair",
51
+ "description": "A sample digipair application"
52
+ }
41
53
  }
42
54
  }
43
- ],
44
- "x-events": []
45
- }
46
- },
47
- "/boosts": {
48
- "post": {
49
- "tags": ["service"],
50
- "summary": "List the boosts",
51
- "parameters": [
52
- {
53
- "name": "digipair",
54
- "summary": "Digipair",
55
- "description": "Digipair's name",
56
- "required": true,
57
- "schema": {
58
- "type": "string"
59
- }
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"
60
74
  }
61
- ],
62
- "x-events": []
63
- }
64
- },
65
- "/schema": {
66
- "post": {
67
- "tags": ["service"],
68
- "summary": "Schema",
69
- "parameters": [
70
- {
71
- "name": "digipair",
72
- "summary": "Digipair",
73
- "description": "Digipair's name",
74
- "required": true,
75
- "schema": {
76
- "type": "string"
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"
95
+ }
96
+ }
97
+ },
98
+ "variables": {
99
+ "type": "object",
100
+ "description": "Configuration variables"
101
+ }
102
+ }
103
+ }
104
+ "avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
105
+ "config": {
106
+ "VERSIONS": {}
107
+ },
108
+ "variables": {}
77
109
  }
78
110
  }
79
- ],
80
- "x-events": []
111
+ }
81
112
  }
82
113
  },
83
- "/context": {
84
- "post": {
85
- "tags": ["service"],
86
- "summary": "Context",
87
- "parameters": [
88
- {
89
- "name": "digipair",
90
- "summary": "Digipair",
91
- "description": "Digipair's name",
92
- "required": true,
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": {
93
139
  "schema": {
94
- "type": "string"
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"
167
+ }
168
+ },
169
+ "required": [
170
+ "reasoning",
171
+ "summary",
172
+ "description"
173
+ ]
174
+ }
95
175
  }
96
- },
97
- {
98
- "name": "reasoning",
99
- "summary": "Reasoning",
100
- "description": "Reasoning's name",
101
- "required": true,
102
- "schema": {
103
- "type": "string"
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
104
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"
206
+ }
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"
235
+ },
236
+ "x-icon": {
237
+ "type": "string"
238
+ }
239
+ }
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
+ }
249
+ },
250
+ "required": [
251
+ "openapi",
252
+ "info"
253
+ ]
105
254
  }
106
- ],
107
- "x-events": []
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": "🤖"
262
+ },
263
+ "paths": {},
264
+ "x-scene-blocks": {}
265
+ }
108
266
  }
109
267
  }
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
+ }
110
288
  },
111
- "x-scene-blocks": {}
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
+ }
112
301
  }
302
+ },
303
+ "x-scene-blocks": {}
304
+ }