@wildix/xbees-conversations-client 1.1.14 → 1.1.16

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.
Files changed (37) hide show
  1. package/dist-cjs/Conversations.js +16 -0
  2. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  4. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  5. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  6. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  8. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  9. package/dist-cjs/commands/SendTemplateMessageCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +292 -3
  12. package/dist-es/Conversations.js +16 -0
  13. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  14. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  15. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  16. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  17. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  18. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  19. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  20. package/dist-es/commands/SendTemplateMessageCommand.js +17 -0
  21. package/dist-es/commands/index.js +8 -0
  22. package/dist-es/protocols/Aws_restJson1.js +273 -0
  23. package/dist-types/Conversations.d.ts +62 -0
  24. package/dist-types/ConversationsClient.d.ts +10 -2
  25. package/dist-types/commands/AssignChannelCommand.d.ts +4 -1
  26. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  27. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +151 -0
  28. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  29. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +81 -0
  30. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +81 -0
  31. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +81 -0
  32. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +103 -0
  33. package/dist-types/commands/SendTemplateMessageCommand.d.ts +363 -0
  34. package/dist-types/commands/index.d.ts +8 -0
  35. package/dist-types/models/models_0.d.ts +267 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  37. package/package.json +5 -5
@@ -0,0 +1,81 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { GetSmsChannelIdInput, GetSmsChannelIdOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetSmsChannelIdCommand}.
14
+ */
15
+ export interface GetSmsChannelIdCommandInput extends GetSmsChannelIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetSmsChannelIdCommand}.
21
+ */
22
+ export interface GetSmsChannelIdCommandOutput extends GetSmsChannelIdOutput, __MetadataBearer {
23
+ }
24
+ declare const GetSmsChannelIdCommand_base: {
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>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets the channel ID of an existing or non-existing SMS channel between the specified user and another member.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, GetSmsChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, GetSmsChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // GetSmsChannelIdInput
38
+ * userId: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE",
40
+ * recipientId: "STRING_VALUE",
41
+ * recipientNumber: "STRING_VALUE",
42
+ * };
43
+ * const command = new GetSmsChannelIdCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetSmsChannelIdOutput
46
+ * // channelId: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetSmsChannelIdCommandInput - {@link GetSmsChannelIdCommandInput}
52
+ * @returns {@link GetSmsChannelIdCommandOutput}
53
+ * @see {@link GetSmsChannelIdCommandInput} for command's `input` shape.
54
+ * @see {@link GetSmsChannelIdCommandOutput} for command's `response` shape.
55
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
56
+ *
57
+ * @throws {@link ForbiddenException} (client fault)
58
+ *
59
+ * @throws {@link ValidationException} (client fault)
60
+ *
61
+ * @throws {@link RateLimitExceededException} (client fault)
62
+ *
63
+ * @throws {@link ConversationsServiceException}
64
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class GetSmsChannelIdCommand extends GetSmsChannelIdCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: GetSmsChannelIdInput;
74
+ output: GetSmsChannelIdOutput;
75
+ };
76
+ sdk: {
77
+ input: GetSmsChannelIdCommandInput;
78
+ output: GetSmsChannelIdCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,81 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { GetTelephonyChannelIdInput, GetTelephonyChannelIdOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetTelephonyChannelIdCommand}.
14
+ */
15
+ export interface GetTelephonyChannelIdCommandInput extends GetTelephonyChannelIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetTelephonyChannelIdCommand}.
21
+ */
22
+ export interface GetTelephonyChannelIdCommandOutput extends GetTelephonyChannelIdOutput, __MetadataBearer {
23
+ }
24
+ declare const GetTelephonyChannelIdCommand_base: {
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>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets the channel ID of an existing or non-existing telephony channel between the specified user and another member.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, GetTelephonyChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, GetTelephonyChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // GetTelephonyChannelIdInput
38
+ * userId: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE",
40
+ * recipientId: "STRING_VALUE",
41
+ * recipientNumber: "STRING_VALUE",
42
+ * };
43
+ * const command = new GetTelephonyChannelIdCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetTelephonyChannelIdOutput
46
+ * // channelId: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetTelephonyChannelIdCommandInput - {@link GetTelephonyChannelIdCommandInput}
52
+ * @returns {@link GetTelephonyChannelIdCommandOutput}
53
+ * @see {@link GetTelephonyChannelIdCommandInput} for command's `input` shape.
54
+ * @see {@link GetTelephonyChannelIdCommandOutput} for command's `response` shape.
55
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
56
+ *
57
+ * @throws {@link ForbiddenException} (client fault)
58
+ *
59
+ * @throws {@link ValidationException} (client fault)
60
+ *
61
+ * @throws {@link RateLimitExceededException} (client fault)
62
+ *
63
+ * @throws {@link ConversationsServiceException}
64
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class GetTelephonyChannelIdCommand extends GetTelephonyChannelIdCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: GetTelephonyChannelIdInput;
74
+ output: GetTelephonyChannelIdOutput;
75
+ };
76
+ sdk: {
77
+ input: GetTelephonyChannelIdCommandInput;
78
+ output: GetTelephonyChannelIdCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,81 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { GetWhatsAppChannelIdInput, GetWhatsAppChannelIdOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetWhatsAppChannelIdCommand}.
14
+ */
15
+ export interface GetWhatsAppChannelIdCommandInput extends GetWhatsAppChannelIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetWhatsAppChannelIdCommand}.
21
+ */
22
+ export interface GetWhatsAppChannelIdCommandOutput extends GetWhatsAppChannelIdOutput, __MetadataBearer {
23
+ }
24
+ declare const GetWhatsAppChannelIdCommand_base: {
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>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets the channel ID of an existing or non-existing WhatsApp channel between the specified user and another member.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, GetWhatsAppChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, GetWhatsAppChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // GetWhatsAppChannelIdInput
38
+ * userId: "STRING_VALUE",
39
+ * serviceUri: "STRING_VALUE",
40
+ * recipientId: "STRING_VALUE",
41
+ * recipientNumber: "STRING_VALUE",
42
+ * };
43
+ * const command = new GetWhatsAppChannelIdCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetWhatsAppChannelIdOutput
46
+ * // channelId: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetWhatsAppChannelIdCommandInput - {@link GetWhatsAppChannelIdCommandInput}
52
+ * @returns {@link GetWhatsAppChannelIdCommandOutput}
53
+ * @see {@link GetWhatsAppChannelIdCommandInput} for command's `input` shape.
54
+ * @see {@link GetWhatsAppChannelIdCommandOutput} for command's `response` shape.
55
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
56
+ *
57
+ * @throws {@link ForbiddenException} (client fault)
58
+ *
59
+ * @throws {@link ValidationException} (client fault)
60
+ *
61
+ * @throws {@link RateLimitExceededException} (client fault)
62
+ *
63
+ * @throws {@link ConversationsServiceException}
64
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
65
+ *
66
+ *
67
+ * @public
68
+ */
69
+ export declare class GetWhatsAppChannelIdCommand extends GetWhatsAppChannelIdCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: GetWhatsAppChannelIdInput;
74
+ output: GetWhatsAppChannelIdOutput;
75
+ };
76
+ sdk: {
77
+ input: GetWhatsAppChannelIdCommandInput;
78
+ output: GetWhatsAppChannelIdCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,103 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { ListChannelMembersReadStatusInput, ListChannelMembersReadStatusOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListChannelMembersReadStatusCommand}.
14
+ */
15
+ export interface ListChannelMembersReadStatusCommandInput extends ListChannelMembersReadStatusInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListChannelMembersReadStatusCommand}.
21
+ */
22
+ export interface ListChannelMembersReadStatusCommandOutput extends ListChannelMembersReadStatusOutput, __MetadataBearer {
23
+ }
24
+ declare const ListChannelMembersReadStatusCommand_base: {
25
+ new (input: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves a list of members read status for a specific channel. Read status does not work for conversations with more than 100 members.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, ListChannelMembersReadStatusCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, ListChannelMembersReadStatusCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // ListChannelMembersReadStatusInput
38
+ * channelId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListChannelMembersReadStatusCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListChannelMembersReadStatusOutput
43
+ * // members: [ // ChannelMembersReadStatusList // required
44
+ * // { // ChannelMemberReadStatus
45
+ * // user: { // User
46
+ * // id: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE",
48
+ * // email: "STRING_VALUE",
49
+ * // phone: "STRING_VALUE",
50
+ * // picture: "STRING_VALUE",
51
+ * // locale: "STRING_VALUE",
52
+ * // timeZone: "STRING_VALUE",
53
+ * // company: "STRING_VALUE",
54
+ * // bot: true || false,
55
+ * // pbxDomain: "STRING_VALUE",
56
+ * // pbxPort: "STRING_VALUE",
57
+ * // pbxExtension: "STRING_VALUE",
58
+ * // pbxSerial: "STRING_VALUE",
59
+ * // pbxUserId: "STRING_VALUE",
60
+ * // createdAt: "STRING_VALUE",
61
+ * // updatedAt: "STRING_VALUE",
62
+ * // },
63
+ * // lastRead: "STRING_VALUE",
64
+ * // lastReadMessageId: "STRING_VALUE",
65
+ * // },
66
+ * // ],
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListChannelMembersReadStatusCommandInput - {@link ListChannelMembersReadStatusCommandInput}
72
+ * @returns {@link ListChannelMembersReadStatusCommandOutput}
73
+ * @see {@link ListChannelMembersReadStatusCommandInput} for command's `input` shape.
74
+ * @see {@link ListChannelMembersReadStatusCommandOutput} for command's `response` shape.
75
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
76
+ *
77
+ * @throws {@link ChannelNotFoundException} (client fault)
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ *
81
+ * @throws {@link ForbiddenException} (client fault)
82
+ *
83
+ * @throws {@link RateLimitExceededException} (client fault)
84
+ *
85
+ * @throws {@link ConversationsServiceException}
86
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListChannelMembersReadStatusCommand extends ListChannelMembersReadStatusCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListChannelMembersReadStatusInput;
96
+ output: ListChannelMembersReadStatusOutput;
97
+ };
98
+ sdk: {
99
+ input: ListChannelMembersReadStatusCommandInput;
100
+ output: ListChannelMembersReadStatusCommandOutput;
101
+ };
102
+ };
103
+ }