@wildix/xbees-conversations-client 1.0.30 → 1.0.31
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.
- package/dist-cjs/Conversations.js +36 -4
- package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
- package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
- package/dist-cjs/commands/InviteCommand.js +41 -0
- package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
- package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/MarkReadCommand.js +41 -0
- package/dist-cjs/commands/SendGiphyCommand.js +41 -0
- package/dist-cjs/commands/SendMessageCommand.js +41 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
- package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/index.js +18 -2
- package/dist-cjs/models/models_0.js +71 -52
- package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
- package/dist-es/Conversations.js +36 -4
- package/dist-es/commands/AddChannelMemberCommand.js +37 -0
- package/dist-es/commands/AddChannelMembersCommand.js +37 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
- package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
- package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
- package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
- package/dist-es/commands/ListChannelMembersCommand.js +37 -0
- package/dist-es/commands/MarkReadCommand.js +37 -0
- package/dist-es/commands/SendGiphyCommand.js +37 -0
- package/dist-es/commands/SendMessageCommand.js +37 -0
- package/dist-es/commands/SendMessageReactionCommand.js +37 -0
- package/dist-es/commands/SendSystemMessageCommand.js +37 -0
- package/dist-es/commands/SendTypingStartCommand.js +37 -0
- package/dist-es/commands/SendTypingStopCommand.js +37 -0
- package/dist-es/commands/index.js +18 -2
- package/dist-es/models/models_0.js +67 -50
- package/dist-es/protocols/Aws_restJson1.js +1174 -148
- package/dist-types/Conversations.d.ts +122 -10
- package/dist-types/ConversationsClient.d.ts +20 -4
- package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
- package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
- package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
- package/dist-types/commands/GetChannelCommand.d.ts +2 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
- package/dist-types/commands/GetMessageCommand.d.ts +23 -21
- package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
- package/dist-types/commands/InviteCommand.d.ts +98 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
- package/dist-types/commands/MarkReadCommand.d.ts +76 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
- package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
- package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
- package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
- package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
- package/dist-types/commands/index.d.ts +18 -2
- package/dist-types/models/models_0.d.ts +450 -172
- package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
- package/package.json +1 -1
|
@@ -48,6 +48,8 @@ export interface DeleteChannelCommandOutput extends DeleteChannelOutput, __Metad
|
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link ValidationException} (client fault)
|
|
50
50
|
*
|
|
51
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
52
|
+
*
|
|
51
53
|
* @throws {@link ConversationsServiceException}
|
|
52
54
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
53
55
|
*
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { DeleteChannelMemberInput, DeleteChannelMemberOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteChannelMemberCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteChannelMemberCommandInput extends DeleteChannelMemberInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteChannelMemberCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteChannelMemberCommandOutput extends DeleteChannelMemberOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, DeleteChannelMemberCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, DeleteChannelMemberCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // DeleteChannelMemberInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* memberId: "STRING_VALUE", // required
|
|
35
|
+
* silent: true || false,
|
|
36
|
+
* };
|
|
37
|
+
* const command = new DeleteChannelMemberCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // {};
|
|
40
|
+
*
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param DeleteChannelMemberCommandInput - {@link DeleteChannelMemberCommandInput}
|
|
44
|
+
* @returns {@link DeleteChannelMemberCommandOutput}
|
|
45
|
+
* @see {@link DeleteChannelMemberCommandInput} for command's `input` shape.
|
|
46
|
+
* @see {@link DeleteChannelMemberCommandOutput} for command's `response` shape.
|
|
47
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link MemberNotFoundException} (client fault)
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConversationsServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare class DeleteChannelMemberCommand extends $Command<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput, ConversationsClientResolvedConfig> {
|
|
62
|
+
readonly input: DeleteChannelMemberCommandInput;
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
constructor(input: DeleteChannelMemberCommandInput);
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput>;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
private serialize;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
private deserialize;
|
|
79
|
+
}
|
|
@@ -51,6 +51,8 @@ export interface DeleteMessageCommandOutput extends DeleteMessageOutput, __Metad
|
|
|
51
51
|
*
|
|
52
52
|
* @throws {@link ValidationException} (client fault)
|
|
53
53
|
*
|
|
54
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
55
|
+
*
|
|
54
56
|
* @throws {@link ConversationsServiceException}
|
|
55
57
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
56
58
|
*
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { DeleteMessageReactionInput, DeleteMessageReactionOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link DeleteMessageReactionCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DeleteMessageReactionCommandInput extends DeleteMessageReactionInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link DeleteMessageReactionCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteMessageReactionCommandOutput extends DeleteMessageReactionOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, DeleteMessageReactionCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, DeleteMessageReactionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // DeleteMessageReactionInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* messageId: "STRING_VALUE", // required
|
|
35
|
+
* reactionType: "thumbsup" || "clap" || "slightly_smiling_face" || "smiley" || "heart" || "eyes" || "white_check_mark" || "confused" || "thumbsdown", // required
|
|
36
|
+
* userId: "STRING_VALUE",
|
|
37
|
+
* };
|
|
38
|
+
* const command = new DeleteMessageReactionCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param DeleteMessageReactionCommandInput - {@link DeleteMessageReactionCommandInput}
|
|
45
|
+
* @returns {@link DeleteMessageReactionCommandOutput}
|
|
46
|
+
* @see {@link DeleteMessageReactionCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link DeleteMessageReactionCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link MessageNotFoundException} (client fault)
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ValidationException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConversationsServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export declare class DeleteMessageReactionCommand extends $Command<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput, ConversationsClientResolvedConfig> {
|
|
63
|
+
readonly input: DeleteMessageReactionCommandInput;
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
constructor(input: DeleteMessageReactionCommandInput);
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
private serialize;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
private deserialize;
|
|
80
|
+
}
|
|
@@ -112,6 +112,8 @@ export interface GetChannelCommandOutput extends GetChannelOutput, __MetadataBea
|
|
|
112
112
|
*
|
|
113
113
|
* @throws {@link ValidationException} (client fault)
|
|
114
114
|
*
|
|
115
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
116
|
+
*
|
|
115
117
|
* @throws {@link ConversationsServiceException}
|
|
116
118
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
117
119
|
*
|
|
@@ -41,6 +41,21 @@ export interface GetChannelMemberCommandOutput extends GetChannelMemberOutput, _
|
|
|
41
41
|
* // createdAt: "STRING_VALUE", // required
|
|
42
42
|
* // role: "member" || "supervisor", // required
|
|
43
43
|
* // },
|
|
44
|
+
* // user: { // User
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // name: "STRING_VALUE",
|
|
47
|
+
* // email: "STRING_VALUE",
|
|
48
|
+
* // phone: "STRING_VALUE",
|
|
49
|
+
* // picture: "STRING_VALUE",
|
|
50
|
+
* // company: "STRING_VALUE",
|
|
51
|
+
* // pbxDomain: "STRING_VALUE",
|
|
52
|
+
* // pbxPort: "STRING_VALUE",
|
|
53
|
+
* // pbxExtension: "STRING_VALUE",
|
|
54
|
+
* // pbxSerial: "STRING_VALUE",
|
|
55
|
+
* // pbxUserId: "STRING_VALUE",
|
|
56
|
+
* // createdAt: "STRING_VALUE",
|
|
57
|
+
* // updatedAt: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
44
59
|
* // };
|
|
45
60
|
*
|
|
46
61
|
* ```
|
|
@@ -57,6 +72,8 @@ export interface GetChannelMemberCommandOutput extends GetChannelMemberOutput, _
|
|
|
57
72
|
*
|
|
58
73
|
* @throws {@link ValidationException} (client fault)
|
|
59
74
|
*
|
|
75
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
76
|
+
*
|
|
60
77
|
* @throws {@link ConversationsServiceException}
|
|
61
78
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
62
79
|
*
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { GetDirectChannelIdInput, GetDirectChannelIdOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetDirectChannelIdCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetDirectChannelIdCommandInput extends GetDirectChannelIdInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetDirectChannelIdCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDirectChannelIdCommandOutput extends GetDirectChannelIdOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, GetDirectChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, GetDirectChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // GetDirectChannelIdInput
|
|
33
|
+
* userId: "STRING_VALUE",
|
|
34
|
+
* participantId: "STRING_VALUE", // required
|
|
35
|
+
* participantToInvite: { // UserToInvite
|
|
36
|
+
* email: "STRING_VALUE",
|
|
37
|
+
* phone: "STRING_VALUE",
|
|
38
|
+
* name: "STRING_VALUE",
|
|
39
|
+
* colleague: true || false,
|
|
40
|
+
* },
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetDirectChannelIdCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetDirectChannelIdOutput
|
|
45
|
+
* // channelId: "STRING_VALUE", // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetDirectChannelIdCommandInput - {@link GetDirectChannelIdCommandInput}
|
|
51
|
+
* @returns {@link GetDirectChannelIdCommandOutput}
|
|
52
|
+
* @see {@link GetDirectChannelIdCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetDirectChannelIdCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ValidationException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ConversationsServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare class GetDirectChannelIdCommand extends $Command<GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput, ConversationsClientResolvedConfig> {
|
|
65
|
+
readonly input: GetDirectChannelIdCommandInput;
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
constructor(input: GetDirectChannelIdCommandInput);
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput>;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
private serialize;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
private deserialize;
|
|
82
|
+
}
|
|
@@ -37,10 +37,7 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
37
37
|
* const response = await client.send(command);
|
|
38
38
|
* // { // GetMessageOutput
|
|
39
39
|
* // message: { // Message
|
|
40
|
-
* // type: "regular", // required
|
|
41
40
|
* // text: "STRING_VALUE",
|
|
42
|
-
* // silent: true || false,
|
|
43
|
-
* // event: "STRING_VALUE",
|
|
44
41
|
* // attachments: [ // MessageAttachmentList
|
|
45
42
|
* // { // MessageAttachment
|
|
46
43
|
* // id: "STRING_VALUE", // required
|
|
@@ -53,18 +50,8 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
53
50
|
* // thumbnail: "STRING_VALUE",
|
|
54
51
|
* // },
|
|
55
52
|
* // ],
|
|
56
|
-
* // giphy: { // MessageGiphy
|
|
57
|
-
* // id: "STRING_VALUE",
|
|
58
|
-
* // size: "STRING_VALUE",
|
|
59
|
-
* // url: "STRING_VALUE",
|
|
60
|
-
* // height: "STRING_VALUE",
|
|
61
|
-
* // width: "STRING_VALUE",
|
|
62
|
-
* // },
|
|
63
53
|
* // quote: {
|
|
64
|
-
* // type: "regular", // required
|
|
65
54
|
* // text: "STRING_VALUE",
|
|
66
|
-
* // silent: true || false,
|
|
67
|
-
* // event: "STRING_VALUE",
|
|
68
55
|
* // attachments: [
|
|
69
56
|
* // {
|
|
70
57
|
* // id: "STRING_VALUE", // required
|
|
@@ -77,13 +64,6 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
77
64
|
* // thumbnail: "STRING_VALUE",
|
|
78
65
|
* // },
|
|
79
66
|
* // ],
|
|
80
|
-
* // giphy: {
|
|
81
|
-
* // id: "STRING_VALUE",
|
|
82
|
-
* // size: "STRING_VALUE",
|
|
83
|
-
* // url: "STRING_VALUE",
|
|
84
|
-
* // height: "STRING_VALUE",
|
|
85
|
-
* // width: "STRING_VALUE",
|
|
86
|
-
* // },
|
|
87
67
|
* // quote: "<Message>",
|
|
88
68
|
* // forward: { // MessageForward
|
|
89
69
|
* // forwardCompany: "STRING_VALUE",
|
|
@@ -91,6 +71,16 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
91
71
|
* // forwardEmail: "STRING_VALUE",
|
|
92
72
|
* // forwardName: "STRING_VALUE",
|
|
93
73
|
* // },
|
|
74
|
+
* // type: "regular", // required
|
|
75
|
+
* // giphy: { // MessageGiphy
|
|
76
|
+
* // id: "STRING_VALUE",
|
|
77
|
+
* // size: "STRING_VALUE",
|
|
78
|
+
* // url: "STRING_VALUE",
|
|
79
|
+
* // height: "STRING_VALUE",
|
|
80
|
+
* // width: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // silent: true || false,
|
|
83
|
+
* // event: "STRING_VALUE",
|
|
94
84
|
* // sms: true || false,
|
|
95
85
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
96
86
|
* // messageId: "STRING_VALUE", // required
|
|
@@ -111,7 +101,7 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
111
101
|
* // updatedAt: "STRING_VALUE",
|
|
112
102
|
* // },
|
|
113
103
|
* // edit: true || false,
|
|
114
|
-
* // mentions: [ //
|
|
104
|
+
* // mentions: [ // UsersList
|
|
115
105
|
* // {
|
|
116
106
|
* // id: "STRING_VALUE", // required
|
|
117
107
|
* // name: "STRING_VALUE",
|
|
@@ -148,6 +138,16 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
148
138
|
* // forwardEmail: "STRING_VALUE",
|
|
149
139
|
* // forwardName: "STRING_VALUE",
|
|
150
140
|
* // },
|
|
141
|
+
* // type: "regular", // required
|
|
142
|
+
* // giphy: {
|
|
143
|
+
* // id: "STRING_VALUE",
|
|
144
|
+
* // size: "STRING_VALUE",
|
|
145
|
+
* // url: "STRING_VALUE",
|
|
146
|
+
* // height: "STRING_VALUE",
|
|
147
|
+
* // width: "STRING_VALUE",
|
|
148
|
+
* // },
|
|
149
|
+
* // silent: true || false,
|
|
150
|
+
* // event: "STRING_VALUE",
|
|
151
151
|
* // sms: true || false,
|
|
152
152
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
153
153
|
* // messageId: "STRING_VALUE", // required
|
|
@@ -185,6 +185,8 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
|
|
|
185
185
|
*
|
|
186
186
|
* @throws {@link ValidationException} (client fault)
|
|
187
187
|
*
|
|
188
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
189
|
+
*
|
|
188
190
|
* @throws {@link ConversationsServiceException}
|
|
189
191
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
190
192
|
*
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { GetMessageReactionsInput, GetMessageReactionsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetMessageReactionsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetMessageReactionsCommandInput extends GetMessageReactionsInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetMessageReactionsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetMessageReactionsCommandOutput extends GetMessageReactionsOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, GetMessageReactionsCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, GetMessageReactionsCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // GetMessageReactionsInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* messageId: "STRING_VALUE", // required
|
|
35
|
+
* limit: Number("int"),
|
|
36
|
+
* offset: Number("int"),
|
|
37
|
+
* };
|
|
38
|
+
* const command = new GetMessageReactionsCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // GetMessageReactionsOutput
|
|
41
|
+
* // reactions: [ // ReactionList // required
|
|
42
|
+
* // { // Reaction
|
|
43
|
+
* // type: "STRING_VALUE",
|
|
44
|
+
* // userId: "STRING_VALUE",
|
|
45
|
+
* // messageId: "STRING_VALUE",
|
|
46
|
+
* // user: { // User
|
|
47
|
+
* // id: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE",
|
|
49
|
+
* // email: "STRING_VALUE",
|
|
50
|
+
* // phone: "STRING_VALUE",
|
|
51
|
+
* // picture: "STRING_VALUE",
|
|
52
|
+
* // company: "STRING_VALUE",
|
|
53
|
+
* // pbxDomain: "STRING_VALUE",
|
|
54
|
+
* // pbxPort: "STRING_VALUE",
|
|
55
|
+
* // pbxExtension: "STRING_VALUE",
|
|
56
|
+
* // pbxSerial: "STRING_VALUE",
|
|
57
|
+
* // pbxUserId: "STRING_VALUE",
|
|
58
|
+
* // createdAt: "STRING_VALUE",
|
|
59
|
+
* // updatedAt: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param GetMessageReactionsCommandInput - {@link GetMessageReactionsCommandInput}
|
|
68
|
+
* @returns {@link GetMessageReactionsCommandOutput}
|
|
69
|
+
* @see {@link GetMessageReactionsCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link GetMessageReactionsCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ConversationsServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export declare class GetMessageReactionsCommand extends $Command<GetMessageReactionsCommandInput, GetMessageReactionsCommandOutput, ConversationsClientResolvedConfig> {
|
|
84
|
+
readonly input: GetMessageReactionsCommandInput;
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
constructor(input: GetMessageReactionsCommandInput);
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetMessageReactionsCommandInput, GetMessageReactionsCommandOutput>;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private serialize;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private deserialize;
|
|
101
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { GetOrCreateDirectChannelInput, GetOrCreateDirectChannelOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetOrCreateDirectChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetOrCreateDirectChannelCommandInput extends GetOrCreateDirectChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetOrCreateDirectChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetOrCreateDirectChannelCommandOutput extends GetOrCreateDirectChannelOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, GetOrCreateDirectChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, GetOrCreateDirectChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // GetOrCreateDirectChannelInput
|
|
33
|
+
* userId: "STRING_VALUE",
|
|
34
|
+
* memberId: "STRING_VALUE",
|
|
35
|
+
* memberToInvite: { // UserToInvite
|
|
36
|
+
* email: "STRING_VALUE",
|
|
37
|
+
* phone: "STRING_VALUE",
|
|
38
|
+
* name: "STRING_VALUE",
|
|
39
|
+
* colleague: true || false,
|
|
40
|
+
* },
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetOrCreateDirectChannelCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetOrCreateDirectChannelOutput
|
|
45
|
+
* // channel: { // Channel
|
|
46
|
+
* // subject: "STRING_VALUE",
|
|
47
|
+
* // description: "STRING_VALUE",
|
|
48
|
+
* // picture: "STRING_VALUE",
|
|
49
|
+
* // pictureColor: "STRING_VALUE",
|
|
50
|
+
* // access: "private" || "public",
|
|
51
|
+
* // company: "STRING_VALUE",
|
|
52
|
+
* // context: { // ChannelContext
|
|
53
|
+
* // source: "kite",
|
|
54
|
+
* // target: "STRING_VALUE",
|
|
55
|
+
* // events: [ // ChannelContextEventList
|
|
56
|
+
* // { // ChannelContextEvent
|
|
57
|
+
* // id: "STRING_VALUE",
|
|
58
|
+
* // owner: "STRING_VALUE",
|
|
59
|
+
* // start: "STRING_VALUE",
|
|
60
|
+
* // end: "STRING_VALUE",
|
|
61
|
+
* // summary: "STRING_VALUE",
|
|
62
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
63
|
+
* // { // ChannelContextEventAttendee
|
|
64
|
+
* // email: "STRING_VALUE", // required
|
|
65
|
+
* // name: "STRING_VALUE",
|
|
66
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // kite: true || false,
|
|
73
|
+
* // kiteTarget: "STRING_VALUE",
|
|
74
|
+
* // kiteVariant: "STRING_VALUE",
|
|
75
|
+
* // kiteAssign: "STRING_VALUE",
|
|
76
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
77
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
78
|
+
* // service: "STRING_VALUE",
|
|
79
|
+
* // serviceTitle: "STRING_VALUE",
|
|
80
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
81
|
+
* // assignee: { // User
|
|
82
|
+
* // id: "STRING_VALUE", // required
|
|
83
|
+
* // name: "STRING_VALUE",
|
|
84
|
+
* // email: "STRING_VALUE",
|
|
85
|
+
* // phone: "STRING_VALUE",
|
|
86
|
+
* // picture: "STRING_VALUE",
|
|
87
|
+
* // company: "STRING_VALUE",
|
|
88
|
+
* // pbxDomain: "STRING_VALUE",
|
|
89
|
+
* // pbxPort: "STRING_VALUE",
|
|
90
|
+
* // pbxExtension: "STRING_VALUE",
|
|
91
|
+
* // pbxSerial: "STRING_VALUE",
|
|
92
|
+
* // pbxUserId: "STRING_VALUE",
|
|
93
|
+
* // createdAt: "STRING_VALUE",
|
|
94
|
+
* // updatedAt: "STRING_VALUE",
|
|
95
|
+
* // },
|
|
96
|
+
* // telephony: true || false,
|
|
97
|
+
* // sms: true || false,
|
|
98
|
+
* // mms: true || false,
|
|
99
|
+
* // broadcast: true || false,
|
|
100
|
+
* // external: true || false,
|
|
101
|
+
* // channelId: "STRING_VALUE", // required
|
|
102
|
+
* // channelType: "direct" || "group", // required
|
|
103
|
+
* // memberCount: Number("int"), // required
|
|
104
|
+
* // createdAt: "STRING_VALUE", // required
|
|
105
|
+
* // createdBy: "STRING_VALUE", // required
|
|
106
|
+
* // updatedAt: "STRING_VALUE",
|
|
107
|
+
* // },
|
|
108
|
+
* // };
|
|
109
|
+
*
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @param GetOrCreateDirectChannelCommandInput - {@link GetOrCreateDirectChannelCommandInput}
|
|
113
|
+
* @returns {@link GetOrCreateDirectChannelCommandOutput}
|
|
114
|
+
* @see {@link GetOrCreateDirectChannelCommandInput} for command's `input` shape.
|
|
115
|
+
* @see {@link GetOrCreateDirectChannelCommandOutput} for command's `response` shape.
|
|
116
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ValidationException} (client fault)
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ConversationsServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export declare class GetOrCreateDirectChannelCommand extends $Command<GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput, ConversationsClientResolvedConfig> {
|
|
127
|
+
readonly input: GetOrCreateDirectChannelCommandInput;
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
constructor(input: GetOrCreateDirectChannelCommandInput);
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput>;
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
private serialize;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
private deserialize;
|
|
144
|
+
}
|