@insignia-education/api-sdk-js 0.15.26 → 0.15.28

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.15.26",
3
+ "version": "0.15.28",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -140,6 +140,9 @@ export default class Users {
140
140
  /** Sales-and-above: mint a one-time login link that logs the browser in as this user. */
141
141
  phantom(userId) { return this.#client.post(`/users/${userId}/phantom`); }
142
142
 
143
+ /** Sales-and-above: re-run the course/individual-session access reconciliation for this user on demand. */
144
+ syncAccess(userId) { return this.#client.post(`/users/${userId}/sync-access`); }
145
+
143
146
  /** Read-only: notifications are created by internal services, not over the API. */
144
147
  notifications(userId) {
145
148
  const base = `/users/${userId}/notifications`;
@@ -24,4 +24,12 @@ export default class Webauthn {
24
24
  // usernameless discoverable-passkey login.
25
25
  loginOptions(data = {}) { return this.#client.post('/auth/webauthn/login/options', data); }
26
26
  loginVerify(credential) { return this.#client.post('/auth/webauthn/login', { credential }); }
27
+
28
+ /**
29
+ * Step-up confirmation for an already-logged-in user (e.g. approving a
30
+ * payment with a security key instead of password + captcha). No verify
31
+ * method here — embed the resulting credential as `webauthn_credential`
32
+ * in the sensitive action's own request.
33
+ */
34
+ confirmOptions() { return this.#client.post('/webauthn/confirm/options'); }
27
35
  }