@wildix/xbees-users-client 4.1.4 → 4.2.0

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.
@@ -571,8 +571,8 @@ exports.PbxColleague$ = [3, n4, _PC,
571
571
  ];
572
572
  exports.InvitedUser$ = [3, n1, _IU,
573
573
  0,
574
- [_i, _n, _em, _ph, _co, _pUI, _loc],
575
- [0, 0, 0, 0, 0, 0, 0], 1
574
+ [_i, _n, _em, _ph, _pi, _co, _pUI, _loc],
575
+ [0, 0, 0, 0, 0, 0, 0, 0], 1
576
576
  ];
577
577
  exports.SkippedMember$ = [3, n1, _SM,
578
578
  0,
@@ -564,8 +564,8 @@ export var PbxColleague$ = [3, n4, _PC,
564
564
  ];
565
565
  export var InvitedUser$ = [3, n1, _IU,
566
566
  0,
567
- [_i, _n, _em, _ph, _co, _pUI, _loc],
568
- [0, 0, 0, 0, 0, 0, 0], 1
567
+ [_i, _n, _em, _ph, _pi, _co, _pUI, _loc],
568
+ [0, 0, 0, 0, 0, 0, 0, 0], 1
569
569
  ];
570
570
  export var SkippedMember$ = [3, n1, _SM,
571
571
  0,
@@ -58,6 +58,7 @@ declare const InviteCommand_base: {
58
58
  * // name: "STRING_VALUE",
59
59
  * // email: "STRING_VALUE",
60
60
  * // phone: "STRING_VALUE",
61
+ * // picture: "STRING_VALUE",
61
62
  * // company: "STRING_VALUE",
62
63
  * // pbxUserId: "STRING_VALUE",
63
64
  * // locale: "STRING_VALUE",
@@ -105,7 +105,7 @@ export interface UserToInvite {
105
105
  */
106
106
  email?: string | undefined;
107
107
  /**
108
- * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On a customer messaging channel (see MessagingChannel) it is not a phone number at all: the caller passes the channel's own customer id, the Page Scoped ID on Messenger, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left, and the Instagram scoped id has to be checked against the same limit.
108
+ * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On a customer messaging channel (see MessagingChannel) it is not a phone number at all: the caller passes the channel's own customer id, the Page Scoped ID on Messenger, so the identity key stays the one the supplier reports. A phone number allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left, and the Instagram scoped id has to be checked against the same limit. A WhatsApp user who hides the number is invited by the BSUID exactly as Meta spells it (see InviteePhone).
109
109
  * @public
110
110
  */
111
111
  phone?: string | undefined;
@@ -144,8 +144,8 @@ export interface SkippedMember {
144
144
  phone?: string | undefined;
145
145
  }
146
146
  /**
147
- * Reduced user record returned by Invite. Callers receive only the fields they use to correlate the invitee and continue the conversation flow: id, name, email, phone, company, pbxUserId, and locale.
148
- * PBX installation details (domain, port, extension, serial, group), profile metadata (picture, time zone, bot), and timestamps are not included.
147
+ * Reduced user record returned by Invite. Callers receive only the fields they use to correlate the invitee and continue the conversation flow: id, name, email, phone, picture, company, pbxUserId, and locale.
148
+ * PBX installation details (domain, port, extension, serial, group), profile metadata (time zone, bot), and timestamps are not included.
149
149
  *
150
150
  * @public
151
151
  */
@@ -154,6 +154,11 @@ export interface InvitedUser {
154
154
  name?: string | undefined;
155
155
  email?: string | undefined;
156
156
  phone?: string | undefined;
157
+ /**
158
+ * Avatar URL. Notification emails render it as the sender's avatar.
159
+ * @public
160
+ */
161
+ picture?: string | undefined;
157
162
  /**
158
163
  * Tenant id. Callers use it to tell a colleague from an external user.
159
164
  * @public
@@ -1551,7 +1556,7 @@ export interface InviteInput {
1551
1556
  */
1552
1557
  export interface InviteOutput {
1553
1558
  /**
1554
- * A list of users who were successfully invited. Each entry contains only id, name, email, phone, company, pbxUserId, and locale.
1559
+ * A list of users who were successfully invited. Each entry contains only id, name, email, phone, picture, company, pbxUserId, and locale.
1555
1560
  * @public
1556
1561
  */
1557
1562
  users: InvitedUser[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-users-client",
3
3
  "description": "@wildix/xbees-users-client client",
4
- "version": "4.1.4",
4
+ "version": "4.2.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",