@insignia-education/api-sdk-js 0.15.114 → 0.15.115

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.114",
3
+ "version": "0.15.115",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -264,6 +264,16 @@ export default class Users {
264
264
  };
265
265
  }
266
266
 
267
+ /** Manual email verification for this user (no token/link). Sellers-and-above only. */
268
+ emails(userId) {
269
+ const base = `/users/${userId}/emails`;
270
+ const client = this.#client;
271
+ return {
272
+ /** field: 'email' | 'contact_mail' | 'public_mail' | 'legal_guardian_mail'. */
273
+ verify: (field) => client.post(`${base}/${field}/verify`),
274
+ };
275
+ }
276
+
267
277
  /** Verified Telegram account linking for this user. Owner or staff only. */
268
278
  telegram(userId) {
269
279
  const base = `/users/${userId}/telegram`;