@digipair/skill-web-interact 0.28.13 → 0.29.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-web-interact",
3
- "version": "0.28.13",
3
+ "version": "0.29.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.en.json ADDED
@@ -0,0 +1,287 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-web-interact",
5
+ "summary": "Interaction with a web page",
6
+ "description": "This skill allows users to communicate with an HTML page on the client side.",
7
+ "version": "0.1.0",
8
+ "x-icon": "📲"
9
+ },
10
+ "paths": {
11
+ "/dispatchEvent": {
12
+ "post": {
13
+ "tags": ["web", "boost"],
14
+ "summary": "Emit an event",
15
+ "description": "Emits an event on a DOM element",
16
+ "parameters": [
17
+ {
18
+ "name": "name",
19
+ "summary": "Event name",
20
+ "required": true,
21
+ "description": "Name of the event",
22
+ "schema": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ {
27
+ "name": "selector",
28
+ "summary": "CSS selector of the element",
29
+ "required": true,
30
+ "description": "CSS selector of the element that will receive the event",
31
+ "schema": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ {
36
+ "name": "detail",
37
+ "summary": "Event details",
38
+ "required": false,
39
+ "description": "Data passed in the event",
40
+ "schema": {
41
+ "type": "object"
42
+ }
43
+ }
44
+ ],
45
+ "x-events": []
46
+ }
47
+ },
48
+ "/setAttribute": {
49
+ "post": {
50
+ "tags": ["web", "boost"],
51
+ "summary": "Modify an attribute",
52
+ "description": "Allows modifying the value of an attribute of a DOM element",
53
+ "parameters": [
54
+ {
55
+ "name": "selector",
56
+ "summary": "CSS selector of the element",
57
+ "required": true,
58
+ "description": "CSS selector of the element",
59
+ "schema": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ {
64
+ "name": "attribute",
65
+ "summary": "Attribute",
66
+ "required": true,
67
+ "description": "Attribute to modify",
68
+ "schema": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ {
73
+ "name": "value",
74
+ "summary": "Value",
75
+ "required": true,
76
+ "description": "New value of the attribute",
77
+ "schema": {
78
+ "type": "object"
79
+ }
80
+ }
81
+ ],
82
+ "x-events": []
83
+ }
84
+ },
85
+ "/getAttribute": {
86
+ "post": {
87
+ "tags": ["web"],
88
+ "summary": "Read an attribute",
89
+ "description": "Allows reading the value of an attribute of a DOM element",
90
+ "parameters": [
91
+ {
92
+ "name": "selector",
93
+ "summary": "CSS selector of the element",
94
+ "required": true,
95
+ "description": "CSS selector of the element",
96
+ "schema": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ {
101
+ "name": "attribute",
102
+ "summary": "Attribute",
103
+ "required": true,
104
+ "description": "Attribute to read",
105
+ "schema": {
106
+ "type": "string"
107
+ }
108
+ }
109
+ ],
110
+ "x-events": []
111
+ }
112
+ },
113
+ "/execute": {
114
+ "post": {
115
+ "tags": ["web", "boost"],
116
+ "summary": "Execute a method",
117
+ "description": "Executes a method on a DOM element",
118
+ "parameters": [
119
+ {
120
+ "name": "name",
121
+ "summary": "Method name",
122
+ "required": true,
123
+ "description": "Name of the method",
124
+ "schema": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ {
129
+ "name": "selector",
130
+ "summary": "CSS selector of the element",
131
+ "required": true,
132
+ "description": "CSS selector of the element that will execute the method",
133
+ "schema": {
134
+ "type": "string"
135
+ }
136
+ },
137
+ {
138
+ "name": "args",
139
+ "summary": "Arguments",
140
+ "required": false,
141
+ "description": "List of method arguments",
142
+ "schema": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "object"
146
+ }
147
+ }
148
+ }
149
+ ],
150
+ "x-events": []
151
+ }
152
+ },
153
+ "/goTo": {
154
+ "post": {
155
+ "tags": ["web", "boost"],
156
+ "summary": "Go to a web page",
157
+ "description": "Allows opening a web page in the browser",
158
+ "parameters": [
159
+ {
160
+ "name": "url",
161
+ "summary": "Address",
162
+ "required": true,
163
+ "description": "Address of the web page",
164
+ "schema": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ {
169
+ "name": "target",
170
+ "summary": "Target window",
171
+ "required": false,
172
+ "description": "Target window",
173
+ "schema": {
174
+ "type": "string"
175
+ }
176
+ }
177
+ ],
178
+ "x-events": []
179
+ }
180
+ },
181
+ "/reload": {
182
+ "post": {
183
+ "tags": ["web", "boost"],
184
+ "summary": "Reload the current page",
185
+ "description": "Allows reloading the current page",
186
+ "parameters": [],
187
+ "x-events": []
188
+ }
189
+ },
190
+ "/upload": {
191
+ "post": {
192
+ "tags": ["web"],
193
+ "summary": "Upload a binary file",
194
+ "description": "Allows uploading a binary file in base64",
195
+ "parameters": [
196
+ {
197
+ "name": "accept",
198
+ "summary": "File type",
199
+ "required": false,
200
+ "description": "Accepted file type",
201
+ "schema": {
202
+ "type": "string"
203
+ }
204
+ }
205
+ ],
206
+ "x-events": []
207
+ }
208
+ },
209
+ "/uploadText": {
210
+ "post": {
211
+ "tags": ["web"],
212
+ "summary": "Upload a text file",
213
+ "description": "Allows uploading a text file",
214
+ "parameters": [
215
+ {
216
+ "name": "accept",
217
+ "summary": "File type",
218
+ "required": false,
219
+ "description": "Accepted file type",
220
+ "schema": {
221
+ "type": "string"
222
+ }
223
+ }
224
+ ],
225
+ "x-events": []
226
+ }
227
+ },
228
+ "/capture": {
229
+ "post": {
230
+ "tags": ["web"],
231
+ "summary": "Capture an image from the webcam",
232
+ "description": "Allows capturing an image from the webcam",
233
+ "parameters": [
234
+ {
235
+ "name": "deviceId",
236
+ "summary": "Device ID",
237
+ "required": false,
238
+ "description": "ID of the capture device",
239
+ "schema": {
240
+ "type": "string"
241
+ }
242
+ },
243
+ {
244
+ "name": "width",
245
+ "summary": "Image width",
246
+ "required": false,
247
+ "description": "Width of the captured image",
248
+ "schema": {
249
+ "type": "number"
250
+ }
251
+ },
252
+ {
253
+ "name": "height",
254
+ "summary": "Image height",
255
+ "required": false,
256
+ "description": "Height of the captured image",
257
+ "schema": {
258
+ "type": "number"
259
+ }
260
+ },
261
+ {
262
+ "name": "facingMode",
263
+ "summary": "Capture mode",
264
+ "required": false,
265
+ "description": "Mode of image capture",
266
+ "schema": {
267
+ "type": "string"
268
+ }
269
+ }
270
+ ],
271
+ "x-events": []
272
+ }
273
+ },
274
+ "/getMediaDevices": {
275
+ "post": {
276
+ "tags": ["web"],
277
+ "summary": "List of devices",
278
+ "description": "Lists available capture devices",
279
+ "parameters": [],
280
+ "x-events": []
281
+ }
282
+ }
283
+ },
284
+ "components": {
285
+ "schemas": {}
286
+ }
287
+ }
package/schema.fr.json CHANGED
@@ -168,7 +168,7 @@
168
168
  {
169
169
  "name": "target",
170
170
  "summary": "Fenêtre cible",
171
- "required": true,
171
+ "required": false,
172
172
  "description": "Fenêtre cible",
173
173
  "schema": {
174
174
  "type": "string"
package/schema.json CHANGED
@@ -168,7 +168,7 @@
168
168
  {
169
169
  "name": "target",
170
170
  "summary": "Target window",
171
- "required": true,
171
+ "required": false,
172
172
  "description": "Target window",
173
173
  "schema": {
174
174
  "type": "string"