@wildix/xbees-conversations-client 1.1.2 → 1.1.4

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);
@@ -42,7 +42,9 @@ declare const GetActionTriggerResultCommand_base: {
42
42
  * const response = await client.send(command);
43
43
  * // { // GetActionTriggerResultOutput
44
44
  * // status: "completed" || "pending", // required
45
- * // result: {},
45
+ * // result: { // ActionTriggerResult
46
+ * // url: "STRING_VALUE",
47
+ * // },
46
48
  * // };
47
49
  *
48
50
  * ```
@@ -37,7 +37,9 @@ declare const SendActionTriggerResultCommand_base: {
37
37
  * const input = { // SendActionTriggerResultInput
38
38
  * triggerId: "STRING_VALUE", // required
39
39
  * status: "completed" || "pending", // required
40
- * result: {},
40
+ * result: { // ActionTriggerResult
41
+ * url: "STRING_VALUE",
42
+ * },
41
43
  * };
42
44
  * const command = new SendActionTriggerResultCommand(input);
43
45
  * const response = await client.send(command);
@@ -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);
@@ -225,6 +225,7 @@ export declare namespace ActionElement {
225
225
  * @public
226
226
  */
227
227
  export interface ActionTriggerResult {
228
+ url?: string;
228
229
  }
229
230
  /**
230
231
  * @public
@@ -655,6 +656,42 @@ export declare namespace Element {
655
656
  }
656
657
  const visit: <T>(value: Element, visitor: Visitor<T>) => T;
657
658
  }
659
+ /**
660
+ * @public
661
+ */
662
+ export interface MessageForward {
663
+ forwardCompany?: string;
664
+ forwardDate: string;
665
+ forwardEmail?: string;
666
+ forwardName?: string;
667
+ messageId: string;
668
+ channelId: string;
669
+ }
670
+ /**
671
+ * @public
672
+ */
673
+ export interface MessageGiphy {
674
+ id: string;
675
+ size: string;
676
+ url: string;
677
+ height: string;
678
+ width: string;
679
+ }
680
+ /**
681
+ * @public
682
+ */
683
+ export interface MessageQuote {
684
+ messageId: string;
685
+ channelId: string;
686
+ user: User;
687
+ text?: string;
688
+ attachments?: (MessageAttachment)[];
689
+ forward?: MessageForward;
690
+ mentions?: (User)[];
691
+ giphy?: MessageGiphy;
692
+ createdAt: string;
693
+ updatedAt?: string;
694
+ }
658
695
  /**
659
696
  * @public
660
697
  */
@@ -662,7 +699,18 @@ export interface InitialMessage {
662
699
  text?: string;
663
700
  elements?: (Element)[];
664
701
  attachments?: (MessageAttachment)[];
702
+ quote?: MessageQuote;
703
+ forward?: MessageForward;
704
+ /**
705
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
706
+ * @public
707
+ */
665
708
  messageId: string;
709
+ /**
710
+ * A list of user IDs mentioned in the message.
711
+ * @public
712
+ */
713
+ mentions?: (string)[];
666
714
  }
667
715
  /**
668
716
  * @public
@@ -671,7 +719,18 @@ export interface WelcomeMessage {
671
719
  text?: string;
672
720
  elements?: (Element)[];
673
721
  attachments?: (MessageAttachment)[];
722
+ quote?: MessageQuote;
723
+ forward?: MessageForward;
724
+ /**
725
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
726
+ * @public
727
+ */
674
728
  messageId: string;
729
+ /**
730
+ * A list of user IDs mentioned in the message.
731
+ * @public
732
+ */
733
+ mentions?: (string)[];
675
734
  user: User;
676
735
  }
677
736
  /**
@@ -915,27 +974,6 @@ export interface DeleteMessageReactionOutput {
915
974
  */
916
975
  export interface DescribeEventInput {
917
976
  }
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
977
  /**
940
978
  * @public
941
979
  */
@@ -945,21 +983,6 @@ export interface Reaction {
945
983
  messageId?: string;
946
984
  user?: User;
947
985
  }
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
986
  /**
964
987
  * @public
965
988
  * @enum
@@ -2176,25 +2199,25 @@ export interface SendMessageInput {
2176
2199
  quote?: MessageQuote;
2177
2200
  forward?: MessageForward;
2178
2201
  /**
2179
- * The unique identifier of the channel to which the message is sent.
2202
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
2180
2203
  * @public
2181
2204
  */
2182
- channelId: string;
2205
+ messageId?: string;
2183
2206
  /**
2184
- * The unique identifier of the user when a service token is used.
2207
+ * A list of user IDs mentioned in the message.
2185
2208
  * @public
2186
2209
  */
2187
- userId?: string;
2210
+ mentions?: (string)[];
2188
2211
  /**
2189
- * The unique identifier of the message. If not provided, an ID will be auto-generated.
2212
+ * The unique identifier of the channel to which the message is sent.
2190
2213
  * @public
2191
2214
  */
2192
- messageId?: string;
2215
+ channelId: string;
2193
2216
  /**
2194
- * A list of user IDs mentioned in the message.
2217
+ * The unique identifier of the user when a service token is used.
2195
2218
  * @public
2196
2219
  */
2197
- mentions?: (string)[];
2220
+ userId?: string;
2198
2221
  }
2199
2222
  /**
2200
2223
  * @public
@@ -2538,25 +2561,25 @@ export interface UpdateMessageInput {
2538
2561
  quote?: MessageQuote;
2539
2562
  forward?: MessageForward;
2540
2563
  /**
2541
- * The unique identifier of the channel containing the message.
2564
+ * The unique identifier of the message to update.
2542
2565
  * @public
2543
2566
  */
2544
- channelId: string;
2567
+ messageId: string;
2545
2568
  /**
2546
- * The unique identifier of the message to update.
2569
+ * A list of user IDs mentioned in the message.
2547
2570
  * @public
2548
2571
  */
2549
- messageId: string;
2572
+ mentions?: (string)[];
2550
2573
  /**
2551
- * The unique identifier of the user when a service token is used.
2574
+ * The unique identifier of the channel containing the message.
2552
2575
  * @public
2553
2576
  */
2554
- userId?: string;
2577
+ channelId: string;
2555
2578
  /**
2556
- * A list of user IDs mentioned in the message.
2579
+ * The unique identifier of the user when a service token is used.
2557
2580
  * @public
2558
2581
  */
2559
- mentions?: (string)[];
2582
+ userId?: string;
2560
2583
  /**
2561
2584
  * Set to true to suppress the updated indicator. Defaults to false.
2562
2585
  * @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.4",
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",