@wildix/xbees-conversations-client 1.1.16 → 1.1.17

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.
@@ -1009,9 +1009,9 @@ const se_SendTemplateMessageCommand = async (input, context) => {
1009
1009
  'mentions': _ => (0, smithy_client_1._json)(_),
1010
1010
  'messageId': [],
1011
1011
  'quote': _ => (0, smithy_client_1._json)(_),
1012
- 'template': _ => (0, smithy_client_1._json)(_),
1013
1012
  'text': [],
1014
1013
  'userId': [],
1014
+ 'whatsapp': _ => (0, smithy_client_1._json)(_),
1015
1015
  }));
1016
1016
  b.m("POST")
1017
1017
  .h(headers)
@@ -952,9 +952,9 @@ export const se_SendTemplateMessageCommand = async (input, context) => {
952
952
  'mentions': _ => _json(_),
953
953
  'messageId': [],
954
954
  'quote': _ => _json(_),
955
- 'template': _ => _json(_),
956
955
  'text': [],
957
956
  'userId': [],
957
+ 'whatsapp': _ => _json(_),
958
958
  }));
959
959
  b.m("POST")
960
960
  .h(headers)
@@ -194,35 +194,30 @@ export interface Conversations {
194
194
  /**
195
195
  * @see {@link GetOrCreateSmsChannelCommand}
196
196
  */
197
- getOrCreateSmsChannel(): Promise<GetOrCreateSmsChannelCommandOutput>;
198
197
  getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateSmsChannelCommandOutput>;
199
198
  getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
200
199
  getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
201
200
  /**
202
201
  * @see {@link GetOrCreateTelephonyChannelCommand}
203
202
  */
204
- getOrCreateTelephonyChannel(): Promise<GetOrCreateTelephonyChannelCommandOutput>;
205
203
  getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateTelephonyChannelCommandOutput>;
206
204
  getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
207
205
  getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
208
206
  /**
209
207
  * @see {@link GetOrCreateWhatsAppChannelCommand}
210
208
  */
211
- getOrCreateWhatsAppChannel(): Promise<GetOrCreateWhatsAppChannelCommandOutput>;
212
209
  getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateWhatsAppChannelCommandOutput>;
213
210
  getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
214
211
  getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
215
212
  /**
216
213
  * @see {@link GetSmsChannelIdCommand}
217
214
  */
218
- getSmsChannelId(): Promise<GetSmsChannelIdCommandOutput>;
219
215
  getSmsChannelId(args: GetSmsChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetSmsChannelIdCommandOutput>;
220
216
  getSmsChannelId(args: GetSmsChannelIdCommandInput, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
221
217
  getSmsChannelId(args: GetSmsChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
222
218
  /**
223
219
  * @see {@link GetTelephonyChannelIdCommand}
224
220
  */
225
- getTelephonyChannelId(): Promise<GetTelephonyChannelIdCommandOutput>;
226
221
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetTelephonyChannelIdCommandOutput>;
227
222
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
228
223
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
@@ -242,7 +237,6 @@ export interface Conversations {
242
237
  /**
243
238
  * @see {@link GetWhatsAppChannelIdCommand}
244
239
  */
245
- getWhatsAppChannelId(): Promise<GetWhatsAppChannelIdCommandOutput>;
246
240
  getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppChannelIdCommandOutput>;
247
241
  getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
248
242
  getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
@@ -23,11 +23,11 @@ export interface GetOrCreateSmsChannelCommandOutput extends GetOrCreateSmsChanne
23
23
  }
24
24
  declare const GetOrCreateSmsChannelCommand_base: {
25
25
  new (input: GetOrCreateSmsChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetOrCreateSmsChannelCommandInput]): import("@smithy/smithy-client").CommandImpl<GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOrCreateSmsChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets or creates a SMS channel between the specified user and another member.
30
+ * Gets or creates a SMS channel
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetOrCreateSmsChannelCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetOrCreateSmsChannelInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -23,11 +23,11 @@ export interface GetOrCreateTelephonyChannelCommandOutput extends GetOrCreateTel
23
23
  }
24
24
  declare const GetOrCreateTelephonyChannelCommand_base: {
25
25
  new (input: GetOrCreateTelephonyChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetOrCreateTelephonyChannelCommandInput]): import("@smithy/smithy-client").CommandImpl<GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOrCreateTelephonyChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets or creates a telephony channel between the specified user and another member.
30
+ * Gets or creates a telephony channel
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetOrCreateTelephonyChannelCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetOrCreateTelephonyChannelInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -23,11 +23,11 @@ export interface GetOrCreateWhatsAppChannelCommandOutput extends GetOrCreateWhat
23
23
  }
24
24
  declare const GetOrCreateWhatsAppChannelCommand_base: {
25
25
  new (input: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetOrCreateWhatsAppChannelCommandInput]): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets or creates a WhatsApp channel between the specified user and another member.
30
+ * Gets or creates a WhatsApp channel
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetOrCreateWhatsAppChannelCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetOrCreateWhatsAppChannelInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -23,11 +23,11 @@ export interface GetSmsChannelIdCommandOutput extends GetSmsChannelIdOutput, __M
23
23
  }
24
24
  declare const GetSmsChannelIdCommand_base: {
25
25
  new (input: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetSmsChannelIdCommandInput]): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets the channel ID of an existing or non-existing SMS channel between the specified user and another member.
30
+ * Gets the channel ID of an existing or non-existing SMS channel
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetSmsChannelIdCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetSmsChannelIdInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -23,11 +23,11 @@ export interface GetTelephonyChannelIdCommandOutput extends GetTelephonyChannelI
23
23
  }
24
24
  declare const GetTelephonyChannelIdCommand_base: {
25
25
  new (input: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetTelephonyChannelIdCommandInput]): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets the channel ID of an existing or non-existing telephony channel between the specified user and another member.
30
+ * Gets the channel ID of an existing or non-existing telephony channel
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetTelephonyChannelIdCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetTelephonyChannelIdInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -23,11 +23,11 @@ export interface GetWhatsAppChannelIdCommandOutput extends GetWhatsAppChannelIdO
23
23
  }
24
24
  declare const GetWhatsAppChannelIdCommand_base: {
25
25
  new (input: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetWhatsAppChannelIdCommandInput]): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Gets the channel ID of an existing or non-existing WhatsApp channel between the specified user and another member.
30
+ * Gets the channel ID of an existing or non-existing WhatsApp
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -36,7 +36,7 @@ declare const GetWhatsAppChannelIdCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // GetWhatsAppChannelIdInput
38
38
  * userId: "STRING_VALUE",
39
- * serviceUri: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE", // required
40
40
  * recipientId: "STRING_VALUE",
41
41
  * recipientNumber: "STRING_VALUE",
42
42
  * };
@@ -158,14 +158,16 @@ declare const SendTemplateMessageCommand_base: {
158
158
  * ],
159
159
  * channelId: "STRING_VALUE", // required
160
160
  * userId: "STRING_VALUE",
161
- * template: { // TemplateWithParameters
162
- * name: "STRING_VALUE", // required
163
- * parameters: [ // ListTemplateParameter // required
164
- * { // TemplateParameter
165
- * name: "STRING_VALUE", // required
166
- * value: "STRING_VALUE", // required
167
- * },
168
- * ],
161
+ * whatsapp: { // WhatsAppTemplateConfig
162
+ * template: { // TemplateWithParameters
163
+ * name: "STRING_VALUE", // required
164
+ * parameters: [ // ListTemplateParameter // required
165
+ * { // TemplateParameter
166
+ * name: "STRING_VALUE", // required
167
+ * value: "STRING_VALUE", // required
168
+ * },
169
+ * ],
170
+ * },
169
171
  * },
170
172
  * };
171
173
  * const command = new SendTemplateMessageCommand(input);
@@ -1732,7 +1732,7 @@ export interface GetOrCreateSmsChannelInput {
1732
1732
  * The unique identifier of the telephony channel.
1733
1733
  * @public
1734
1734
  */
1735
- serviceUri?: string | undefined;
1735
+ serviceUri: string;
1736
1736
  /**
1737
1737
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1738
1738
  * @public
@@ -1763,7 +1763,7 @@ export interface GetOrCreateTelephonyChannelInput {
1763
1763
  * The unique identifier of the telephony channel.
1764
1764
  * @public
1765
1765
  */
1766
- serviceUri?: string | undefined;
1766
+ serviceUri: string;
1767
1767
  /**
1768
1768
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1769
1769
  * @public
@@ -1794,7 +1794,7 @@ export interface GetOrCreateWhatsAppChannelInput {
1794
1794
  * The unique identifier of the telephony channel.
1795
1795
  * @public
1796
1796
  */
1797
- serviceUri?: string | undefined;
1797
+ serviceUri: string;
1798
1798
  /**
1799
1799
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1800
1800
  * @public
@@ -1825,7 +1825,7 @@ export interface GetSmsChannelIdInput {
1825
1825
  * The unique identifier of the telephony channel.
1826
1826
  * @public
1827
1827
  */
1828
- serviceUri?: string | undefined;
1828
+ serviceUri: string;
1829
1829
  /**
1830
1830
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1831
1831
  * @public
@@ -1856,7 +1856,7 @@ export interface GetTelephonyChannelIdInput {
1856
1856
  * The unique identifier of the telephony channel.
1857
1857
  * @public
1858
1858
  */
1859
- serviceUri?: string | undefined;
1859
+ serviceUri: string;
1860
1860
  /**
1861
1861
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1862
1862
  * @public
@@ -1933,7 +1933,7 @@ export interface GetWhatsAppChannelIdInput {
1933
1933
  * The unique identifier of the telephony channel.
1934
1934
  * @public
1935
1935
  */
1936
- serviceUri?: string | undefined;
1936
+ serviceUri: string;
1937
1937
  /**
1938
1938
  * The unique identifier of the recipient. Required if recipientNumber is not provided.
1939
1939
  * @public
@@ -2751,6 +2751,12 @@ export interface SendMessageReactionInput {
2751
2751
  */
2752
2752
  export interface SendMessageReactionOutput {
2753
2753
  }
2754
+ /**
2755
+ * @public
2756
+ */
2757
+ export interface WhatsAppTemplateConfig {
2758
+ template: TemplateWithParameters;
2759
+ }
2754
2760
  /**
2755
2761
  * @public
2756
2762
  */
@@ -2780,7 +2786,7 @@ export interface SendTemplateMessageInput {
2780
2786
  * @public
2781
2787
  */
2782
2788
  userId?: string | undefined;
2783
- template: TemplateWithParameters;
2789
+ whatsapp: WhatsAppTemplateConfig;
2784
2790
  }
2785
2791
  /**
2786
2792
  * @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.16",
4
+ "version": "1.1.17",
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",