@insignia-education/api-sdk-js 0.9.32 → 0.9.34

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.9.32",
3
+ "version": "0.9.34",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,4 +12,11 @@ export default class Auth {
12
12
  refresh() { return this.#client.post('/auth/refresh'); }
13
13
  logout() { return this.#client.post('/auth/logout'); }
14
14
  user() { return this.#client.get('/auth/user'); }
15
+ forgotPassword(email) { return this.#client.post('/auth/forgot-password', { email }); }
16
+ resetPassword(data) { return this.#client.post('/auth/reset-password', data); }
17
+ magicLinkSend(email) { return this.#client.post('/auth/magic-link/send', { email }); }
18
+ magicLinkVerify(data) { return this.#client.post('/auth/magic-link/verify', data); }
19
+ facebookLogin(data) { return this.#client.post('/auth/facebook', data); }
20
+ emailVerify(data) { return this.#client.post('/auth/email-verify', data); }
21
+ twoFactor(data) { return this.#client.post('/auth/2fa', data); }
15
22
  }
@@ -104,4 +104,13 @@ export default class Users {
104
104
  delete: (id) => client.del(`${base}/${id}`),
105
105
  };
106
106
  }
107
+
108
+ /** GET /users/{orgId}/organization/courses — slots owned by this org with assignee + course. */
109
+ organizationCourses(orgId) { return this.#client.get(`/users/${orgId}/organization/courses`); }
110
+
111
+ /** PATCH /users/{orgId}/courses/{id}/assign — reassign a slot to a member. */
112
+ assignCourse(orgId, id, data) { return this.#client.patch(`/users/${orgId}/courses/${id}/assign`, data); }
113
+
114
+ /** GET /users/{orgId}/organization/members — members where manager_id = orgId. */
115
+ organizationMembers(orgId) { return this.#client.get(`/users/${orgId}/organization/members`); }
107
116
  }