@linagora/ldap-rest-client 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -64,6 +64,10 @@ client.users.delete(username)
64
64
  client.users.checkAvailability({ field, value })
65
65
  client.users.fetch({ by, value, fields })
66
66
  client.users.getUserOrganizations(userId, role?) // Get user's organizations by role
67
+
68
+ // Technical/service accounts
69
+ client.users.create({ ...userData, isTechnical: true }) // Create technical account
70
+ client.users.update(username, { isTechnical: true }) // Mark user as technical
67
71
  ```
68
72
 
69
73
  ### Organizations
@@ -97,6 +101,10 @@ client.organizations.checkUserAvailability(orgId, { field, value })
97
101
 
98
102
  // User role management ('owner', 'admin', 'moderator', 'member')
99
103
  client.organizations.changeUserRole(orgId, userId, { role })
104
+
105
+ // Technical/service accounts in organizations
106
+ const techUser = await client.organizations.createUser(orgId, { ...userData, isTechnical: true })
107
+ await client.organizations.updateUser(orgId, userId, { isTechnical: true })
100
108
  ```
101
109
 
102
110
  ### Groups
package/dist/index.d.mts CHANGED
@@ -413,6 +413,8 @@ interface User {
413
413
  phone?: PhoneNumber[];
414
414
  /** Array of physical addresses */
415
415
  address?: Address[];
416
+ /** Whether this is a technical/service account */
417
+ isTechnical?: boolean;
416
418
  }
417
419
  /**
418
420
  * User password credentials with scrypt encryption parameters
@@ -482,6 +484,7 @@ interface CreateUserRequest extends UserCredentials, UserKeys {
482
484
  company?: string;
483
485
  phone?: PhoneNumber[];
484
486
  address?: Address[];
487
+ isTechnical?: boolean;
485
488
  }
486
489
  /**
487
490
  * Request payload for updating a user's profile
@@ -508,6 +511,7 @@ interface UpdateUserRequest {
508
511
  company?: string;
509
512
  phone?: PhoneNumber[];
510
513
  address?: Address[];
514
+ isTechnical?: boolean;
511
515
  [key: string]: string | number | boolean | null | undefined | UserName | EmailAddress[] | InstantMessaging[] | PhoneNumber[] | Address[];
512
516
  }
513
517
  /**
package/dist/index.d.ts CHANGED
@@ -413,6 +413,8 @@ interface User {
413
413
  phone?: PhoneNumber[];
414
414
  /** Array of physical addresses */
415
415
  address?: Address[];
416
+ /** Whether this is a technical/service account */
417
+ isTechnical?: boolean;
416
418
  }
417
419
  /**
418
420
  * User password credentials with scrypt encryption parameters
@@ -482,6 +484,7 @@ interface CreateUserRequest extends UserCredentials, UserKeys {
482
484
  company?: string;
483
485
  phone?: PhoneNumber[];
484
486
  address?: Address[];
487
+ isTechnical?: boolean;
485
488
  }
486
489
  /**
487
490
  * Request payload for updating a user's profile
@@ -508,6 +511,7 @@ interface UpdateUserRequest {
508
511
  company?: string;
509
512
  phone?: PhoneNumber[];
510
513
  address?: Address[];
514
+ isTechnical?: boolean;
511
515
  [key: string]: string | number | boolean | null | undefined | UserName | EmailAddress[] | InstantMessaging[] | PhoneNumber[] | Address[];
512
516
  }
513
517
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/ldap-rest-client",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "TypeScript API client for LDAP-REST",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",