@wildix/xbees-conversations-client 1.1.2 → 1.1.3

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.
@@ -983,8 +983,8 @@ const se_UpdateMessageCommand = async (input, context) => {
983
983
  'content-type': 'application/json',
984
984
  };
985
985
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
986
- b.p('channelId', () => input.channelId, '{channelId}', false);
987
986
  b.p('messageId', () => input.messageId, '{messageId}', false);
987
+ b.p('channelId', () => input.channelId, '{channelId}', false);
988
988
  const query = (0, smithy_client_1.map)({
989
989
  [_u]: [, input[_uI]],
990
990
  });
@@ -926,8 +926,8 @@ export const se_UpdateMessageCommand = async (input, context) => {
926
926
  'content-type': 'application/json',
927
927
  };
928
928
  b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}");
929
- b.p('channelId', () => input.channelId, '{channelId}', false);
930
929
  b.p('messageId', () => input.messageId, '{messageId}', false);
930
+ b.p('channelId', () => input.channelId, '{channelId}', false);
931
931
  const query = map({
932
932
  [_u]: [, input[_uI]],
933
933
  });
@@ -78,25 +78,91 @@ declare const CreateKiteChannelCommand_base: {
78
78
  * thumbnail: "STRING_VALUE",
79
79
  * },
80
80
  * ],
81
- * messageId: "STRING_VALUE", // required
82
- * user: { // User
83
- * id: "STRING_VALUE", // required
84
- * name: "STRING_VALUE",
85
- * email: "STRING_VALUE",
86
- * phone: "STRING_VALUE",
87
- * picture: "STRING_VALUE",
88
- * locale: "STRING_VALUE",
89
- * timeZone: "STRING_VALUE",
90
- * company: "STRING_VALUE",
91
- * bot: true || false,
92
- * pbxDomain: "STRING_VALUE",
93
- * pbxPort: "STRING_VALUE",
94
- * pbxExtension: "STRING_VALUE",
95
- * pbxSerial: "STRING_VALUE",
96
- * pbxUserId: "STRING_VALUE",
97
- * createdAt: "STRING_VALUE",
81
+ * quote: { // MessageQuote
82
+ * messageId: "STRING_VALUE", // required
83
+ * channelId: "STRING_VALUE", // required
84
+ * user: { // User
85
+ * id: "STRING_VALUE", // required
86
+ * name: "STRING_VALUE",
87
+ * email: "STRING_VALUE",
88
+ * phone: "STRING_VALUE",
89
+ * picture: "STRING_VALUE",
90
+ * locale: "STRING_VALUE",
91
+ * timeZone: "STRING_VALUE",
92
+ * company: "STRING_VALUE",
93
+ * bot: true || false,
94
+ * pbxDomain: "STRING_VALUE",
95
+ * pbxPort: "STRING_VALUE",
96
+ * pbxExtension: "STRING_VALUE",
97
+ * pbxSerial: "STRING_VALUE",
98
+ * pbxUserId: "STRING_VALUE",
99
+ * createdAt: "STRING_VALUE",
100
+ * updatedAt: "STRING_VALUE",
101
+ * },
102
+ * text: "STRING_VALUE",
103
+ * attachments: [
104
+ * {
105
+ * id: "STRING_VALUE", // required
106
+ * fsId: "STRING_VALUE", // required
107
+ * mime: "STRING_VALUE",
108
+ * name: "STRING_VALUE", // required
109
+ * size: Number("int"), // required
110
+ * width: Number("int"),
111
+ * height: Number("int"),
112
+ * thumbnail: "STRING_VALUE",
113
+ * },
114
+ * ],
115
+ * forward: { // MessageForward
116
+ * forwardCompany: "STRING_VALUE",
117
+ * forwardDate: "STRING_VALUE", // required
118
+ * forwardEmail: "STRING_VALUE",
119
+ * forwardName: "STRING_VALUE",
120
+ * messageId: "STRING_VALUE", // required
121
+ * channelId: "STRING_VALUE", // required
122
+ * },
123
+ * mentions: [ // UsersList
124
+ * {
125
+ * id: "STRING_VALUE", // required
126
+ * name: "STRING_VALUE",
127
+ * email: "STRING_VALUE",
128
+ * phone: "STRING_VALUE",
129
+ * picture: "STRING_VALUE",
130
+ * locale: "STRING_VALUE",
131
+ * timeZone: "STRING_VALUE",
132
+ * company: "STRING_VALUE",
133
+ * bot: true || false,
134
+ * pbxDomain: "STRING_VALUE",
135
+ * pbxPort: "STRING_VALUE",
136
+ * pbxExtension: "STRING_VALUE",
137
+ * pbxSerial: "STRING_VALUE",
138
+ * pbxUserId: "STRING_VALUE",
139
+ * createdAt: "STRING_VALUE",
140
+ * updatedAt: "STRING_VALUE",
141
+ * },
142
+ * ],
143
+ * giphy: { // MessageGiphy
144
+ * id: "STRING_VALUE", // required
145
+ * size: "STRING_VALUE", // required
146
+ * url: "STRING_VALUE", // required
147
+ * height: "STRING_VALUE", // required
148
+ * width: "STRING_VALUE", // required
149
+ * },
150
+ * createdAt: "STRING_VALUE", // required
98
151
  * updatedAt: "STRING_VALUE",
99
152
  * },
153
+ * forward: {
154
+ * forwardCompany: "STRING_VALUE",
155
+ * forwardDate: "STRING_VALUE", // required
156
+ * forwardEmail: "STRING_VALUE",
157
+ * forwardName: "STRING_VALUE",
158
+ * messageId: "STRING_VALUE", // required
159
+ * channelId: "STRING_VALUE", // required
160
+ * },
161
+ * messageId: "STRING_VALUE", // required
162
+ * mentions: [ // UsersIdList
163
+ * "STRING_VALUE",
164
+ * ],
165
+ * user: "<User>", // required
100
166
  * },
101
167
  * ],
102
168
  * initialMessage: { // InitialMessage
@@ -125,19 +191,39 @@ declare const CreateKiteChannelCommand_base: {
125
191
  * ],
126
192
  * },
127
193
  * ],
128
- * attachments: [
129
- * {
194
+ * attachments: "<MessageAttachmentList>",
195
+ * quote: {
196
+ * messageId: "STRING_VALUE", // required
197
+ * channelId: "STRING_VALUE", // required
198
+ * user: "<User>", // required
199
+ * text: "STRING_VALUE",
200
+ * attachments: "<MessageAttachmentList>",
201
+ * forward: {
202
+ * forwardCompany: "STRING_VALUE",
203
+ * forwardDate: "STRING_VALUE", // required
204
+ * forwardEmail: "STRING_VALUE",
205
+ * forwardName: "STRING_VALUE",
206
+ * messageId: "STRING_VALUE", // required
207
+ * channelId: "STRING_VALUE", // required
208
+ * },
209
+ * mentions: [
210
+ * "<User>",
211
+ * ],
212
+ * giphy: {
130
213
  * id: "STRING_VALUE", // required
131
- * fsId: "STRING_VALUE", // required
132
- * mime: "STRING_VALUE",
133
- * name: "STRING_VALUE", // required
134
- * size: Number("int"), // required
135
- * width: Number("int"),
136
- * height: Number("int"),
137
- * thumbnail: "STRING_VALUE",
214
+ * size: "STRING_VALUE", // required
215
+ * url: "STRING_VALUE", // required
216
+ * height: "STRING_VALUE", // required
217
+ * width: "STRING_VALUE", // required
138
218
  * },
139
- * ],
219
+ * createdAt: "STRING_VALUE", // required
220
+ * updatedAt: "STRING_VALUE",
221
+ * },
222
+ * forward: "<MessageForward>",
140
223
  * messageId: "STRING_VALUE", // required
224
+ * mentions: [
225
+ * "STRING_VALUE",
226
+ * ],
141
227
  * },
142
228
  * };
143
229
  * const command = new CreateKiteChannelCommand(input);
@@ -152,12 +152,12 @@ declare const SendMessageCommand_base: {
152
152
  * messageId: "STRING_VALUE", // required
153
153
  * channelId: "STRING_VALUE", // required
154
154
  * },
155
- * channelId: "STRING_VALUE", // required
156
- * userId: "STRING_VALUE",
157
155
  * messageId: "STRING_VALUE",
158
156
  * mentions: [ // UsersIdList
159
157
  * "STRING_VALUE",
160
158
  * ],
159
+ * channelId: "STRING_VALUE", // required
160
+ * userId: "STRING_VALUE",
161
161
  * };
162
162
  * const command = new SendMessageCommand(input);
163
163
  * const response = await client.send(command);
@@ -152,12 +152,12 @@ declare const UpdateMessageCommand_base: {
152
152
  * messageId: "STRING_VALUE", // required
153
153
  * channelId: "STRING_VALUE", // required
154
154
  * },
155
- * channelId: "STRING_VALUE", // required
156
155
  * messageId: "STRING_VALUE", // required
157
- * userId: "STRING_VALUE",
158
156
  * mentions: [ // UsersIdList
159
157
  * "STRING_VALUE",
160
158
  * ],
159
+ * channelId: "STRING_VALUE", // required
160
+ * userId: "STRING_VALUE",
161
161
  * silent: true || false,
162
162
  * };
163
163
  * const command = new UpdateMessageCommand(input);
@@ -655,6 +655,42 @@ export declare namespace Element {
655
655
  }
656
656
  const visit: <T>(value: Element, visitor: Visitor<T>) => T;
657
657
  }
658
+ /**
659
+ * @public
660
+ */
661
+ export interface MessageForward {
662
+ forwardCompany?: string;
663
+ forwardDate: string;
664
+ forwardEmail?: string;
665
+ forwardName?: string;
666
+ messageId: string;
667
+ channelId: string;
668
+ }
669
+ /**
670
+ * @public
671
+ */
672
+ export interface MessageGiphy {
673
+ id: string;
674
+ size: string;
675
+ url: string;
676
+ height: string;
677
+ width: string;
678
+ }
679
+ /**
680
+ * @public
681
+ */
682
+ export interface MessageQuote {
683
+ messageId: string;
684
+ channelId: string;
685
+ user: User;
686
+ text?: string;
687
+ attachments?: (MessageAttachment)[];
688
+ forward?: MessageForward;
689
+ mentions?: (User)[];
690
+ giphy?: MessageGiphy;
691
+ createdAt: string;
692
+ updatedAt?: string;
693
+ }
658
694
  /**
659
695
  * @public
660
696
  */
@@ -662,7 +698,18 @@ export interface InitialMessage {
662
698
  text?: string;
663
699
  elements?: (Element)[];
664
700
  attachments?: (MessageAttachment)[];
701
+ quote?: MessageQuote;
702
+ forward?: MessageForward;
703
+ /**
704
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
705
+ * @public
706
+ */
665
707
  messageId: string;
708
+ /**
709
+ * A list of user IDs mentioned in the message.
710
+ * @public
711
+ */
712
+ mentions?: (string)[];
666
713
  }
667
714
  /**
668
715
  * @public
@@ -671,7 +718,18 @@ export interface WelcomeMessage {
671
718
  text?: string;
672
719
  elements?: (Element)[];
673
720
  attachments?: (MessageAttachment)[];
721
+ quote?: MessageQuote;
722
+ forward?: MessageForward;
723
+ /**
724
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
725
+ * @public
726
+ */
674
727
  messageId: string;
728
+ /**
729
+ * A list of user IDs mentioned in the message.
730
+ * @public
731
+ */
732
+ mentions?: (string)[];
675
733
  user: User;
676
734
  }
677
735
  /**
@@ -915,27 +973,6 @@ export interface DeleteMessageReactionOutput {
915
973
  */
916
974
  export interface DescribeEventInput {
917
975
  }
918
- /**
919
- * @public
920
- */
921
- export interface MessageForward {
922
- forwardCompany?: string;
923
- forwardDate: string;
924
- forwardEmail?: string;
925
- forwardName?: string;
926
- messageId: string;
927
- channelId: string;
928
- }
929
- /**
930
- * @public
931
- */
932
- export interface MessageGiphy {
933
- id: string;
934
- size: string;
935
- url: string;
936
- height: string;
937
- width: string;
938
- }
939
976
  /**
940
977
  * @public
941
978
  */
@@ -945,21 +982,6 @@ export interface Reaction {
945
982
  messageId?: string;
946
983
  user?: User;
947
984
  }
948
- /**
949
- * @public
950
- */
951
- export interface MessageQuote {
952
- messageId: string;
953
- channelId: string;
954
- user: User;
955
- text?: string;
956
- attachments?: (MessageAttachment)[];
957
- forward?: MessageForward;
958
- mentions?: (User)[];
959
- giphy?: MessageGiphy;
960
- createdAt: string;
961
- updatedAt?: string;
962
- }
963
985
  /**
964
986
  * @public
965
987
  * @enum
@@ -2176,25 +2198,25 @@ export interface SendMessageInput {
2176
2198
  quote?: MessageQuote;
2177
2199
  forward?: MessageForward;
2178
2200
  /**
2179
- * The unique identifier of the channel to which the message is sent.
2201
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
2180
2202
  * @public
2181
2203
  */
2182
- channelId: string;
2204
+ messageId?: string;
2183
2205
  /**
2184
- * The unique identifier of the user when a service token is used.
2206
+ * A list of user IDs mentioned in the message.
2185
2207
  * @public
2186
2208
  */
2187
- userId?: string;
2209
+ mentions?: (string)[];
2188
2210
  /**
2189
- * The unique identifier of the message. If not provided, an ID will be auto-generated.
2211
+ * The unique identifier of the channel to which the message is sent.
2190
2212
  * @public
2191
2213
  */
2192
- messageId?: string;
2214
+ channelId: string;
2193
2215
  /**
2194
- * A list of user IDs mentioned in the message.
2216
+ * The unique identifier of the user when a service token is used.
2195
2217
  * @public
2196
2218
  */
2197
- mentions?: (string)[];
2219
+ userId?: string;
2198
2220
  }
2199
2221
  /**
2200
2222
  * @public
@@ -2538,25 +2560,25 @@ export interface UpdateMessageInput {
2538
2560
  quote?: MessageQuote;
2539
2561
  forward?: MessageForward;
2540
2562
  /**
2541
- * The unique identifier of the channel containing the message.
2563
+ * The unique identifier of the message to update.
2542
2564
  * @public
2543
2565
  */
2544
- channelId: string;
2566
+ messageId: string;
2545
2567
  /**
2546
- * The unique identifier of the message to update.
2568
+ * A list of user IDs mentioned in the message.
2547
2569
  * @public
2548
2570
  */
2549
- messageId: string;
2571
+ mentions?: (string)[];
2550
2572
  /**
2551
- * The unique identifier of the user when a service token is used.
2573
+ * The unique identifier of the channel containing the message.
2552
2574
  * @public
2553
2575
  */
2554
- userId?: string;
2576
+ channelId: string;
2555
2577
  /**
2556
- * A list of user IDs mentioned in the message.
2578
+ * The unique identifier of the user when a service token is used.
2557
2579
  * @public
2558
2580
  */
2559
- mentions?: (string)[];
2581
+ userId?: string;
2560
2582
  /**
2561
2583
  * Set to true to suppress the updated indicator. Defaults to false.
2562
2584
  * @public
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.2",
4
+ "version": "1.1.3",
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",