@insignia-education/api-sdk-js 0.16.12 → 0.16.13

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": "@insignia-education/api-sdk-js",
3
- "version": "0.16.12",
3
+ "version": "0.16.13",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -150,6 +150,17 @@ export default class Admin {
150
150
  return `${this.#client.baseUrl}/admin/coverage/${repo}/`;
151
151
  }
152
152
 
153
+ /**
154
+ * Recent GitHub Actions workflow runs for 'api' and 'front' (the only repos
155
+ * GithubActionsService covers), newest first, `{ limit }` each (default 20, max 50).
156
+ * Resolves `{ available: false }` (not an error) if the server has no GitHub token
157
+ * configured, per repo — check `repos.api.available` / `repos.front.available`
158
+ * separately rather than assuming both are up together.
159
+ */
160
+ actionsStatus({ limit } = {}) {
161
+ return this.#client.get('/admin/actions/status', { limit });
162
+ }
163
+
153
164
  static #buildUrl(baseUrl, path, params) {
154
165
  const qs = new URLSearchParams(
155
166
  Object.entries(params).filter(([, v]) => v !== undefined && v !== null && v !== '')