@wildix/xbees-conversations-client 1.1.24 → 1.1.26

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.
@@ -342,14 +342,18 @@ class MarkUnreadChannelsLimitReachedException extends ConversationsServiceExcept
342
342
  exports.MarkUnreadChannelsLimitReachedException = MarkUnreadChannelsLimitReachedException;
343
343
  exports.GroupChannelUnsetOptions = {
344
344
  ACCESS: "access",
345
+ ASSIGNEE: "assignee",
345
346
  BROADCAST: "broadcast",
346
347
  CONTEXT: "context",
347
348
  CONTEXT_EVENTS: "contextEvents",
348
349
  CONTEXT_PTT: "contextPtt",
349
350
  DESCRIPTION: "description",
351
+ KITE_ASSIGN: "kiteAssign",
350
352
  MMS: "mms",
351
353
  PICTURE: "picture",
352
354
  PICTURE_COLOR: "pictureColor",
355
+ SERVICE: "service",
356
+ SERVICE_TITLE: "serviceTitle",
353
357
  SMS: "sms",
354
358
  SUBJECT: "subject",
355
359
  WHATSAPP: "whatsapp",
@@ -398,6 +402,8 @@ var SystemMessage;
398
402
  SystemMessage.visit = (value, visitor) => {
399
403
  if (value.whatsAppClosed !== undefined)
400
404
  return visitor.whatsAppClosed(value.whatsAppClosed);
405
+ if (value.multipleMembersJoined !== undefined)
406
+ return visitor.multipleMembersJoined(value.multipleMembersJoined);
401
407
  return visitor._(value.$unknown[0], value.$unknown[1]);
402
408
  };
403
409
  })(SystemMessage || (exports.SystemMessage = SystemMessage = {}));
@@ -48,6 +48,7 @@ const se_AddChannelMembersCommand = async (input, context) => {
48
48
  'members': _ => (0, smithy_client_1._json)(_),
49
49
  'membersToInvite': _ => (0, smithy_client_1._json)(_),
50
50
  'silent': [],
51
+ 'unreadMessageId': [],
51
52
  }));
52
53
  b.m("PUT")
53
54
  .h(headers)
@@ -92,16 +93,19 @@ const se_CreateGroupChannelCommand = async (input, context) => {
92
93
  let body;
93
94
  body = JSON.stringify((0, smithy_client_1.take)(input, {
94
95
  'access': [],
96
+ 'assignee': _ => (0, smithy_client_1._json)(_),
95
97
  'autoRecord': [],
96
98
  'broadcast': [],
97
99
  'channelId': [],
98
100
  'context': _ => (0, smithy_client_1._json)(_),
99
101
  'description': [],
102
+ 'kiteAssign': [],
100
103
  'members': _ => (0, smithy_client_1._json)(_),
101
104
  'membersToInvite': _ => (0, smithy_client_1._json)(_),
102
105
  'mms': [],
103
106
  'picture': [],
104
107
  'pictureColor': [],
108
+ 'serviceTitle': [],
105
109
  'sms': [],
106
110
  'subject': [],
107
111
  'transcriptionLanguage': [],
@@ -1174,13 +1178,16 @@ const se_UpdateChannelCommand = async (input, context) => {
1174
1178
  let body;
1175
1179
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1176
1180
  'access': [],
1181
+ 'assignee': _ => (0, smithy_client_1._json)(_),
1177
1182
  'autoRecord': [],
1178
1183
  'broadcast': [],
1179
1184
  'context': _ => (0, smithy_client_1._json)(_),
1180
1185
  'description': [],
1186
+ 'kiteAssign': [],
1181
1187
  'mms': [],
1182
1188
  'picture': [],
1183
1189
  'pictureColor': [],
1190
+ 'serviceTitle': [],
1184
1191
  'silent': [],
1185
1192
  'sms': [],
1186
1193
  'subject': [],
@@ -324,14 +324,18 @@ export class MarkUnreadChannelsLimitReachedException extends __BaseException {
324
324
  }
325
325
  export const GroupChannelUnsetOptions = {
326
326
  ACCESS: "access",
327
+ ASSIGNEE: "assignee",
327
328
  BROADCAST: "broadcast",
328
329
  CONTEXT: "context",
329
330
  CONTEXT_EVENTS: "contextEvents",
330
331
  CONTEXT_PTT: "contextPtt",
331
332
  DESCRIPTION: "description",
333
+ KITE_ASSIGN: "kiteAssign",
332
334
  MMS: "mms",
333
335
  PICTURE: "picture",
334
336
  PICTURE_COLOR: "pictureColor",
337
+ SERVICE: "service",
338
+ SERVICE_TITLE: "serviceTitle",
335
339
  SMS: "sms",
336
340
  SUBJECT: "subject",
337
341
  WHATSAPP: "whatsapp",
@@ -378,6 +382,8 @@ export var SystemMessage;
378
382
  SystemMessage.visit = (value, visitor) => {
379
383
  if (value.whatsAppClosed !== undefined)
380
384
  return visitor.whatsAppClosed(value.whatsAppClosed);
385
+ if (value.multipleMembersJoined !== undefined)
386
+ return visitor.multipleMembersJoined(value.multipleMembersJoined);
381
387
  return visitor._(value.$unknown[0], value.$unknown[1]);
382
388
  };
383
389
  })(SystemMessage || (SystemMessage = {}));
@@ -42,6 +42,7 @@ export const se_AddChannelMembersCommand = async (input, context) => {
42
42
  'members': _ => _json(_),
43
43
  'membersToInvite': _ => _json(_),
44
44
  'silent': [],
45
+ 'unreadMessageId': [],
45
46
  }));
46
47
  b.m("PUT")
47
48
  .h(headers)
@@ -84,16 +85,19 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
84
85
  let body;
85
86
  body = JSON.stringify(take(input, {
86
87
  'access': [],
88
+ 'assignee': _ => _json(_),
87
89
  'autoRecord': [],
88
90
  'broadcast': [],
89
91
  'channelId': [],
90
92
  'context': _ => _json(_),
91
93
  'description': [],
94
+ 'kiteAssign': [],
92
95
  'members': _ => _json(_),
93
96
  'membersToInvite': _ => _json(_),
94
97
  'mms': [],
95
98
  'picture': [],
96
99
  'pictureColor': [],
100
+ 'serviceTitle': [],
97
101
  'sms': [],
98
102
  'subject': [],
99
103
  'transcriptionLanguage': [],
@@ -1108,13 +1112,16 @@ export const se_UpdateChannelCommand = async (input, context) => {
1108
1112
  let body;
1109
1113
  body = JSON.stringify(take(input, {
1110
1114
  'access': [],
1115
+ 'assignee': _ => _json(_),
1111
1116
  'autoRecord': [],
1112
1117
  'broadcast': [],
1113
1118
  'context': _ => _json(_),
1114
1119
  'description': [],
1120
+ 'kiteAssign': [],
1115
1121
  'mms': [],
1116
1122
  'picture': [],
1117
1123
  'pictureColor': [],
1124
+ 'serviceTitle': [],
1118
1125
  'silent': [],
1119
1126
  'sms': [],
1120
1127
  'subject': [],
@@ -50,6 +50,7 @@ declare const AddChannelMembersCommand_base: {
50
50
  * },
51
51
  * ],
52
52
  * hideHistory: true || false,
53
+ * unreadMessageId: "STRING_VALUE",
53
54
  * };
54
55
  * const command = new AddChannelMembersCommand(input);
55
56
  * const response = await client.send(command);
@@ -68,6 +68,26 @@ declare const CreateGroupChannelCommand_base: {
68
68
  * sms: true || false,
69
69
  * mms: true || false,
70
70
  * whatsapp: true || false,
71
+ * kiteAssign: "STRING_VALUE",
72
+ * serviceTitle: "STRING_VALUE",
73
+ * assignee: { // User
74
+ * id: "STRING_VALUE", // required
75
+ * name: "STRING_VALUE",
76
+ * email: "STRING_VALUE",
77
+ * phone: "STRING_VALUE",
78
+ * picture: "STRING_VALUE",
79
+ * locale: "STRING_VALUE",
80
+ * timeZone: "STRING_VALUE",
81
+ * company: "STRING_VALUE",
82
+ * bot: true || false,
83
+ * pbxDomain: "STRING_VALUE",
84
+ * pbxPort: "STRING_VALUE",
85
+ * pbxExtension: "STRING_VALUE",
86
+ * pbxSerial: "STRING_VALUE",
87
+ * pbxUserId: "STRING_VALUE",
88
+ * createdAt: "STRING_VALUE",
89
+ * updatedAt: "STRING_VALUE",
90
+ * },
71
91
  * autoRecord: true || false,
72
92
  * transcriptionLanguage: "STRING_VALUE",
73
93
  * userId: "STRING_VALUE",
@@ -72,11 +72,31 @@ declare const PartialUpdateChannelCommand_base: {
72
72
  * sms: true || false,
73
73
  * mms: true || false,
74
74
  * whatsapp: true || false,
75
+ * kiteAssign: "STRING_VALUE",
76
+ * serviceTitle: "STRING_VALUE",
77
+ * assignee: { // User
78
+ * id: "STRING_VALUE", // required
79
+ * name: "STRING_VALUE",
80
+ * email: "STRING_VALUE",
81
+ * phone: "STRING_VALUE",
82
+ * picture: "STRING_VALUE",
83
+ * locale: "STRING_VALUE",
84
+ * timeZone: "STRING_VALUE",
85
+ * company: "STRING_VALUE",
86
+ * bot: true || false,
87
+ * pbxDomain: "STRING_VALUE",
88
+ * pbxPort: "STRING_VALUE",
89
+ * pbxExtension: "STRING_VALUE",
90
+ * pbxSerial: "STRING_VALUE",
91
+ * pbxUserId: "STRING_VALUE",
92
+ * createdAt: "STRING_VALUE",
93
+ * updatedAt: "STRING_VALUE",
94
+ * },
75
95
  * autoRecord: true || false,
76
96
  * transcriptionLanguage: "STRING_VALUE",
77
97
  * },
78
98
  * unset: [ // PartialUpdateChannelUnsetOptions
79
- * "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast" || "context" || "contextPtt" || "contextEvents" || "whatsappStatus" || "sms" || "mms" || "whatsapp",
99
+ * "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast" || "context" || "contextPtt" || "contextEvents" || "whatsappStatus" || "kiteAssign" || "service" || "serviceTitle" || "assignee" || "sms" || "mms" || "whatsapp",
80
100
  * ],
81
101
  * };
82
102
  * const command = new PartialUpdateChannelCommand(input);
@@ -39,6 +39,11 @@ declare const SendSystemMessageCommand_base: {
39
39
  * userId: "STRING_VALUE",
40
40
  * message: { // SystemMessage Union: only one key present
41
41
  * whatsAppClosed: {},
42
+ * multipleMembersJoined: { // MultipleMembersJoinedSystemMessage
43
+ * addedMembers: [ // UsersIdList // required
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * },
42
47
  * },
43
48
  * };
44
49
  * const command = new SendSystemMessageCommand(input);
@@ -68,6 +68,26 @@ declare const UpdateChannelCommand_base: {
68
68
  * sms: true || false,
69
69
  * mms: true || false,
70
70
  * whatsapp: true || false,
71
+ * kiteAssign: "STRING_VALUE",
72
+ * serviceTitle: "STRING_VALUE",
73
+ * assignee: { // User
74
+ * id: "STRING_VALUE", // required
75
+ * name: "STRING_VALUE",
76
+ * email: "STRING_VALUE",
77
+ * phone: "STRING_VALUE",
78
+ * picture: "STRING_VALUE",
79
+ * locale: "STRING_VALUE",
80
+ * timeZone: "STRING_VALUE",
81
+ * company: "STRING_VALUE",
82
+ * bot: true || false,
83
+ * pbxDomain: "STRING_VALUE",
84
+ * pbxPort: "STRING_VALUE",
85
+ * pbxExtension: "STRING_VALUE",
86
+ * pbxSerial: "STRING_VALUE",
87
+ * pbxUserId: "STRING_VALUE",
88
+ * createdAt: "STRING_VALUE",
89
+ * updatedAt: "STRING_VALUE",
90
+ * },
71
91
  * autoRecord: true || false,
72
92
  * transcriptionLanguage: "STRING_VALUE",
73
93
  * channelId: "STRING_VALUE", // required
@@ -388,6 +388,11 @@ export interface AddChannelMembersInput {
388
388
  * @public
389
389
  */
390
390
  hideHistory?: boolean | undefined;
391
+ /**
392
+ * The unique identifier of the message that should be marked as unread for the added member.
393
+ * @public
394
+ */
395
+ unreadMessageId?: string | undefined;
391
396
  }
392
397
  /**
393
398
  * @public
@@ -786,6 +791,17 @@ export interface CreateGroupChannelInput {
786
791
  * @public
787
792
  */
788
793
  whatsapp?: boolean | undefined;
794
+ /**
795
+ * The unique identifier of the assignee.
796
+ * @public
797
+ */
798
+ kiteAssign?: string | undefined;
799
+ serviceTitle?: string | undefined;
800
+ /**
801
+ * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
802
+ * @public
803
+ */
804
+ assignee?: User | undefined;
789
805
  autoRecord?: boolean | undefined;
790
806
  transcriptionLanguage?: string | undefined;
791
807
  /**
@@ -2441,6 +2457,17 @@ export interface PartialUpdateChannelSetOptions {
2441
2457
  * @public
2442
2458
  */
2443
2459
  whatsapp?: boolean | undefined;
2460
+ /**
2461
+ * The unique identifier of the assignee.
2462
+ * @public
2463
+ */
2464
+ kiteAssign?: string | undefined;
2465
+ serviceTitle?: string | undefined;
2466
+ /**
2467
+ * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
2468
+ * @public
2469
+ */
2470
+ assignee?: User | undefined;
2444
2471
  autoRecord?: boolean | undefined;
2445
2472
  transcriptionLanguage?: string | undefined;
2446
2473
  }
@@ -2450,14 +2477,18 @@ export interface PartialUpdateChannelSetOptions {
2450
2477
  */
2451
2478
  export declare const GroupChannelUnsetOptions: {
2452
2479
  readonly ACCESS: "access";
2480
+ readonly ASSIGNEE: "assignee";
2453
2481
  readonly BROADCAST: "broadcast";
2454
2482
  readonly CONTEXT: "context";
2455
2483
  readonly CONTEXT_EVENTS: "contextEvents";
2456
2484
  readonly CONTEXT_PTT: "contextPtt";
2457
2485
  readonly DESCRIPTION: "description";
2486
+ readonly KITE_ASSIGN: "kiteAssign";
2458
2487
  readonly MMS: "mms";
2459
2488
  readonly PICTURE: "picture";
2460
2489
  readonly PICTURE_COLOR: "pictureColor";
2490
+ readonly SERVICE: "service";
2491
+ readonly SERVICE_TITLE: "serviceTitle";
2461
2492
  readonly SMS: "sms";
2462
2493
  readonly SUBJECT: "subject";
2463
2494
  readonly WHATSAPP: "whatsapp";
@@ -2835,6 +2866,12 @@ export interface SendMessageReactionInput {
2835
2866
  */
2836
2867
  export interface SendMessageReactionOutput {
2837
2868
  }
2869
+ /**
2870
+ * @public
2871
+ */
2872
+ export interface MultipleMembersJoinedSystemMessage {
2873
+ addedMembers: (string)[];
2874
+ }
2838
2875
  /**
2839
2876
  * @public
2840
2877
  */
@@ -2843,7 +2880,7 @@ export interface WhatsAppClosedSystemMessage {
2843
2880
  /**
2844
2881
  * @public
2845
2882
  */
2846
- export type SystemMessage = SystemMessage.WhatsAppClosedMember | SystemMessage.$UnknownMember;
2883
+ export type SystemMessage = SystemMessage.MultipleMembersJoinedMember | SystemMessage.WhatsAppClosedMember | SystemMessage.$UnknownMember;
2847
2884
  /**
2848
2885
  * @public
2849
2886
  */
@@ -2854,6 +2891,16 @@ export declare namespace SystemMessage {
2854
2891
  */
2855
2892
  interface WhatsAppClosedMember {
2856
2893
  whatsAppClosed: WhatsAppClosedSystemMessage;
2894
+ multipleMembersJoined?: never;
2895
+ $unknown?: never;
2896
+ }
2897
+ /**
2898
+ * A message indicating that multiple members have joined the channel.
2899
+ * @public
2900
+ */
2901
+ interface MultipleMembersJoinedMember {
2902
+ whatsAppClosed?: never;
2903
+ multipleMembersJoined: MultipleMembersJoinedSystemMessage;
2857
2904
  $unknown?: never;
2858
2905
  }
2859
2906
  /**
@@ -2861,10 +2908,12 @@ export declare namespace SystemMessage {
2861
2908
  */
2862
2909
  interface $UnknownMember {
2863
2910
  whatsAppClosed?: never;
2911
+ multipleMembersJoined?: never;
2864
2912
  $unknown: [string, any];
2865
2913
  }
2866
2914
  interface Visitor<T> {
2867
2915
  whatsAppClosed: (value: WhatsAppClosedSystemMessage) => T;
2916
+ multipleMembersJoined: (value: MultipleMembersJoinedSystemMessage) => T;
2868
2917
  _: (name: string, value: any) => T;
2869
2918
  }
2870
2919
  const visit: <T>(value: SystemMessage, visitor: Visitor<T>) => T;
@@ -3164,6 +3213,17 @@ export interface UpdateChannelInput {
3164
3213
  * @public
3165
3214
  */
3166
3215
  whatsapp?: boolean | undefined;
3216
+ /**
3217
+ * The unique identifier of the assignee.
3218
+ * @public
3219
+ */
3220
+ kiteAssign?: string | undefined;
3221
+ serviceTitle?: string | undefined;
3222
+ /**
3223
+ * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
3224
+ * @public
3225
+ */
3226
+ assignee?: User | undefined;
3167
3227
  autoRecord?: boolean | undefined;
3168
3228
  transcriptionLanguage?: string | undefined;
3169
3229
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.1.24",
4
+ "version": "1.1.26",
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",