@jrpool/kilotest 31.0.0 → 31.1.0

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/openapi.yaml +44 -37
  2. package/package.json +1 -1
package/openapi.yaml CHANGED
@@ -4,9 +4,9 @@ info:
4
4
  description: Kilotest tests web pages for accessibility, usability, and standard conformity using an ensemble of ten independent tools that employ rule-based and machine-learning-based methods. This API enables AI agents to recommend web pages for testing, discover available test reports, and retrieve data from reports. For background on Kilotest and the advantages of ensemble testing, visit https://kilotest.com.
5
5
  version: 1.0.0
6
6
  contact:
7
+ name: Kilotest
7
8
  url: https://kilotest.com
8
9
  email: info@kilotest.com
9
- repository: https://github.com/jrpool/kilotest
10
10
 
11
11
  servers:
12
12
  - url: https://kilotest.com
@@ -15,7 +15,7 @@ servers:
15
15
  paths:
16
16
  /api/testRecForm:
17
17
  post:
18
- operationId: testRecForm
18
+ operationId: submitWebAccessibilityTestRequest
19
19
  summary: Receives a testing recommendation
20
20
  description: Receives a recommendation for Kilotest to test a particular web page.
21
21
  requestBody:
@@ -35,7 +35,7 @@ paths:
35
35
 
36
36
  /api/targets:
37
37
  get:
38
- operationId: targets
38
+ operationId: summarizeAccessibilityOfAllTestedWebPages
39
39
  summary: Summarizes all available reports
40
40
  description: Returns summary data about every non-hidden report available from Kilotest, including the name and URL of the tested web page, when the testing was performed, how many issues were reported, and URLs for retrieving more detailed data from the report.
41
41
  responses:
@@ -48,7 +48,7 @@ paths:
48
48
 
49
49
  /api/reportIssues/{timeStamp}/{jobID}:
50
50
  get:
51
- operationId: getReportIssues
51
+ operationId: listAccessibilityIssuesOnOneWebPage
52
52
  summary: Gets data on issues from a specific report
53
53
  description: Returns data about the issues reported in a specific Kilotest report, grouped by priority. The data on each issue include the tools that reported it, the number of HTML elements exhibiting it, and URLs for retrieving element-level detail. The timeStamp and jobID components identify the report and are available in the targets response.
54
54
  parameters:
@@ -59,14 +59,16 @@ paths:
59
59
  schema:
60
60
  type: string
61
61
  pattern: '^\d{6}T\d{4}$'
62
- example: '260503T0432'
62
+ examples:
63
+ - 260503T0432
63
64
  - name: jobID
64
65
  in: path
65
66
  required: true
66
67
  description: Job identifier component of the report identifier (e.g., xx0).
67
68
  schema:
68
69
  type: string
69
- example: 'xx0'
70
+ examples:
71
+ - xx0
70
72
  responses:
71
73
  '200':
72
74
  description: Data on issues from the specified report
@@ -79,7 +81,7 @@ paths:
79
81
 
80
82
  /api/reportIssue/{issueID}/{timeStamp}/{jobID}:
81
83
  get:
82
- operationId: getReportIssue
84
+ operationId: listHTMLElementsHavingOneAccessibilityIssue
83
85
  summary: Gets details about a specific issue in a specific report (NOT YET IMPLEMENTED)
84
86
  description: Returns details about a single issue within a specific report, including which HTML elements exhibit the issue and, for each such element, URLs for retrieving tool-by-tool diagnoses of the issue on the element. NOT YET IMPLEMENTED.
85
87
  parameters:
@@ -89,7 +91,8 @@ paths:
89
91
  description: Issue identifier (e.g., imageNoText). Available under "issues reported" > priority level > "identifier" in the getReportIssues response.
90
92
  schema:
91
93
  type: string
92
- example: 'imageNoText'
94
+ examples:
95
+ - imageNoText
93
96
  - name: timeStamp
94
97
  in: path
95
98
  required: true
@@ -121,7 +124,8 @@ components:
121
124
  description: Natural-language description of this response and of Kilotest. Provides context for an agent encountering Kilotest for the first time.
122
125
  tool name:
123
126
  type: string
124
- example: Kilotest
127
+ examples:
128
+ - Kilotest
125
129
  request:
126
130
  type: object
127
131
  properties:
@@ -148,17 +152,19 @@ components:
148
152
  'equivalent URL for humans':
149
153
  type: string
150
154
  closest ancestor request:
151
- type: [object, 'null']
152
- properties:
153
- description:
154
- type: string
155
- URLs:
156
- type: object
155
+ oneOf:
156
+ - type: 'null'
157
+ - type: object
157
158
  properties:
158
- 'for you':
159
- type: string
160
- 'for humans':
159
+ description:
161
160
  type: string
161
+ URLs:
162
+ type: object
163
+ properties:
164
+ 'for you':
165
+ type: string
166
+ 'for humans':
167
+ type: string
162
168
  response metadata:
163
169
  type: object
164
170
  properties:
@@ -183,15 +189,7 @@ components:
183
189
  description: Reason for testing the page.
184
190
 
185
191
  TestRecFormResponse:
186
- allOf:
187
- - $ref: '#/components/schemas/CommonResponseFields'
188
- - type: object
189
- properties:
190
- available reports:
191
- type: array
192
- description: One entry per available Kilotest report, in alphabetical order by page description and, in case of multiple reports per page, in order of creation date and time. Reports are matched by page description, not page URL, so, if only the URL of a page has changed between reports, the reports are treated as reports about the same page.
193
- items:
194
- $ref: '#/components/schemas/TargetsItem'
192
+ $ref: '#/components/schemas/CommonResponseFields'
195
193
 
196
194
  ToolInfo:
197
195
  type: object
@@ -200,15 +198,18 @@ components:
200
198
  identifier:
201
199
  type: string
202
200
  description: Short programmatic identifier for the tool.
203
- example: alfa
201
+ examples:
202
+ - alfa
204
203
  name:
205
204
  type: string
206
205
  description: Display name of the tool.
207
- example: Alfa
206
+ examples:
207
+ - Alfa
208
208
  sponsor:
209
209
  type: string
210
210
  description: Organization that created, initially sponsored, or now sponsors the tool.
211
- example: Siteimprove
211
+ examples:
212
+ - Siteimprove
212
213
 
213
214
  ToolFailure:
214
215
  type: object
@@ -216,10 +217,12 @@ components:
216
217
  properties:
217
218
  name:
218
219
  type: string
219
- example: WAVE
220
+ examples:
221
+ - WAVE
220
222
  reason for failure:
221
223
  type: string
222
- example: Not enough credits.
224
+ examples:
225
+ - Not enough credits.
223
226
 
224
227
  ToolsSummary:
225
228
  type: object
@@ -245,13 +248,14 @@ components:
245
248
  format: uri
246
249
  description: URL for a human to view the next tier of detail.
247
250
 
248
- targetsItem:
251
+ TargetsItem:
249
252
  type: object
250
253
  description: Summary data about a single available report.
251
254
  properties:
252
255
  identifier:
253
256
  type: string
254
- example: 260504T1659-029
257
+ examples:
258
+ - 260504T1659-029
255
259
  creation date:
256
260
  type: string
257
261
  format: date-time
@@ -301,11 +305,13 @@ components:
301
305
  properties:
302
306
  identifier:
303
307
  type: string
304
- example: imageNoText
308
+ examples:
309
+ - imageNoText
305
310
  summary:
306
311
  type: string
307
312
  description: Brief natural-language label for the issue.
308
- example: image not named
313
+ examples:
314
+ - image not named
309
315
  related WCAG 2.2 standard:
310
316
  type: object
311
317
  description: The WCAG 2.2 success criterion or guideline most closely related to this issue.
@@ -318,7 +324,8 @@ components:
318
324
  'numeric identifier':
319
325
  type: string
320
326
  pattern: '^\d\.\d(\.\d+)?$'
321
- example: '1.1.1'
327
+ examples:
328
+ - 1.1.1
322
329
  impact on a user:
323
330
  type: string
324
331
  description: How this issue is likely to affect users.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpool/kilotest",
3
- "version": "31.0.0",
3
+ "version": "31.1.0",
4
4
  "description": "An ensemble testing service with a focus on accessibility",
5
5
  "main": "index.js",
6
6
  "scripts": {