@wildix/xbees-conversations-client 1.0.63 → 1.0.65
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 +6 -0
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
- package/dist-cjs/commands/PinMessageCommand.js +21 -0
- package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -2
- package/dist-es/Conversations.js +6 -0
- package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
- package/dist-es/commands/PinMessageCommand.js +17 -0
- package/dist-es/commands/UnpinMessageCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +92 -0
- package/dist-types/Conversations.d.ts +21 -0
- package/dist-types/ConversationsClient.d.ts +5 -2
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +261 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +5 -1
- package/dist-types/commands/PinMessageCommand.d.ts +73 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +110 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/package.json +1 -1
|
@@ -28,11 +28,13 @@ import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutp
|
|
|
28
28
|
import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
|
|
29
29
|
import { ListMessageReactionsCommandInput, ListMessageReactionsCommandOutput } from "./commands/ListMessageReactionsCommand";
|
|
30
30
|
import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
|
|
31
|
+
import { ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput } from "./commands/ListPinnedMessagesCommand";
|
|
31
32
|
import { MarkReadCommandInput, MarkReadCommandOutput } from "./commands/MarkReadCommand";
|
|
32
33
|
import { MarkUnreadCommandInput, MarkUnreadCommandOutput } from "./commands/MarkUnreadCommand";
|
|
33
34
|
import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
|
|
34
35
|
import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
|
|
35
36
|
import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
|
|
37
|
+
import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
|
|
36
38
|
import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
37
39
|
import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
|
|
38
40
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
@@ -44,6 +46,7 @@ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/Sh
|
|
|
44
46
|
import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
|
|
45
47
|
import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
|
|
46
48
|
import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
|
|
49
|
+
import { UnpinMessageCommandInput, UnpinMessageCommandOutput } from "./commands/UnpinMessageCommand";
|
|
47
50
|
import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
|
|
48
51
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
49
52
|
import { UpdateInboxTagCommandInput, UpdateInboxTagCommandOutput } from "./commands/UpdateInboxTagCommand";
|
|
@@ -232,6 +235,12 @@ export interface Conversations {
|
|
|
232
235
|
listMessages(args: ListMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListMessagesCommandOutput>;
|
|
233
236
|
listMessages(args: ListMessagesCommandInput, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
|
|
234
237
|
listMessages(args: ListMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
|
|
238
|
+
/**
|
|
239
|
+
* @see {@link ListPinnedMessagesCommand}
|
|
240
|
+
*/
|
|
241
|
+
listPinnedMessages(args: ListPinnedMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListPinnedMessagesCommandOutput>;
|
|
242
|
+
listPinnedMessages(args: ListPinnedMessagesCommandInput, cb: (err: any, data?: ListPinnedMessagesCommandOutput) => void): void;
|
|
243
|
+
listPinnedMessages(args: ListPinnedMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPinnedMessagesCommandOutput) => void): void;
|
|
235
244
|
/**
|
|
236
245
|
* @see {@link MarkReadCommand}
|
|
237
246
|
*/
|
|
@@ -262,6 +271,12 @@ export interface Conversations {
|
|
|
262
271
|
pinChannel(args: PinChannelCommandInput, options?: __HttpHandlerOptions): Promise<PinChannelCommandOutput>;
|
|
263
272
|
pinChannel(args: PinChannelCommandInput, cb: (err: any, data?: PinChannelCommandOutput) => void): void;
|
|
264
273
|
pinChannel(args: PinChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinChannelCommandOutput) => void): void;
|
|
274
|
+
/**
|
|
275
|
+
* @see {@link PinMessageCommand}
|
|
276
|
+
*/
|
|
277
|
+
pinMessage(args: PinMessageCommandInput, options?: __HttpHandlerOptions): Promise<PinMessageCommandOutput>;
|
|
278
|
+
pinMessage(args: PinMessageCommandInput, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
|
|
279
|
+
pinMessage(args: PinMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinMessageCommandOutput) => void): void;
|
|
265
280
|
/**
|
|
266
281
|
* @see {@link ScheduleExternalFlagAdjustmentJobCommand}
|
|
267
282
|
*/
|
|
@@ -328,6 +343,12 @@ export interface Conversations {
|
|
|
328
343
|
unpinChannel(args: UnpinChannelCommandInput, options?: __HttpHandlerOptions): Promise<UnpinChannelCommandOutput>;
|
|
329
344
|
unpinChannel(args: UnpinChannelCommandInput, cb: (err: any, data?: UnpinChannelCommandOutput) => void): void;
|
|
330
345
|
unpinChannel(args: UnpinChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnpinChannelCommandOutput) => void): void;
|
|
346
|
+
/**
|
|
347
|
+
* @see {@link UnpinMessageCommand}
|
|
348
|
+
*/
|
|
349
|
+
unpinMessage(args: UnpinMessageCommandInput, options?: __HttpHandlerOptions): Promise<UnpinMessageCommandOutput>;
|
|
350
|
+
unpinMessage(args: UnpinMessageCommandInput, cb: (err: any, data?: UnpinMessageCommandOutput) => void): void;
|
|
351
|
+
unpinMessage(args: UnpinMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnpinMessageCommandOutput) => void): void;
|
|
331
352
|
/**
|
|
332
353
|
* @see {@link UntagChannelCommand}
|
|
333
354
|
*/
|
|
@@ -27,11 +27,13 @@ import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutp
|
|
|
27
27
|
import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
|
|
28
28
|
import { ListMessageReactionsCommandInput, ListMessageReactionsCommandOutput } from "./commands/ListMessageReactionsCommand";
|
|
29
29
|
import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
|
|
30
|
+
import { ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput } from "./commands/ListPinnedMessagesCommand";
|
|
30
31
|
import { MarkReadCommandInput, MarkReadCommandOutput } from "./commands/MarkReadCommand";
|
|
31
32
|
import { MarkUnreadCommandInput, MarkUnreadCommandOutput } from "./commands/MarkUnreadCommand";
|
|
32
33
|
import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
|
|
33
34
|
import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
|
|
34
35
|
import { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
|
|
36
|
+
import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
|
|
35
37
|
import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
|
|
36
38
|
import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutput } from "./commands/SendActionTriggerResultCommand";
|
|
37
39
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
@@ -43,6 +45,7 @@ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/Sh
|
|
|
43
45
|
import { TagChannelCommandInput, TagChannelCommandOutput } from "./commands/TagChannelCommand";
|
|
44
46
|
import { TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput } from "./commands/TriggerMessageActionCommand";
|
|
45
47
|
import { UnpinChannelCommandInput, UnpinChannelCommandOutput } from "./commands/UnpinChannelCommand";
|
|
48
|
+
import { UnpinMessageCommandInput, UnpinMessageCommandOutput } from "./commands/UnpinMessageCommand";
|
|
46
49
|
import { UntagChannelCommandInput, UntagChannelCommandOutput } from "./commands/UntagChannelCommand";
|
|
47
50
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
48
51
|
import { UpdateInboxTagCommandInput, UpdateInboxTagCommandOutput } from "./commands/UpdateInboxTagCommand";
|
|
@@ -59,11 +62,11 @@ export { __Client };
|
|
|
59
62
|
/**
|
|
60
63
|
* @public
|
|
61
64
|
*/
|
|
62
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
65
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
63
66
|
/**
|
|
64
67
|
* @public
|
|
65
68
|
*/
|
|
66
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
69
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
67
70
|
/**
|
|
68
71
|
* @public
|
|
69
72
|
*/
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { ListPinnedMessagesInput, ListPinnedMessagesOutput } 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 ListPinnedMessagesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListPinnedMessagesCommandInput extends ListPinnedMessagesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListPinnedMessagesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPinnedMessagesCommandOutput extends ListPinnedMessagesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListPinnedMessagesCommand_base: {
|
|
25
|
+
new (input: ListPinnedMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListPinnedMessagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListPinnedMessagesCommandInput, ListPinnedMessagesCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of pinned messages from a specified channel. Supports pagination through limit and offset parameters.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, ListPinnedMessagesCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, ListPinnedMessagesCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // ListPinnedMessagesInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* limit: Number("int"),
|
|
40
|
+
* offset: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListPinnedMessagesCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListPinnedMessagesOutput
|
|
45
|
+
* // messages: [ // MessagesList // required
|
|
46
|
+
* // { // Message
|
|
47
|
+
* // text: "STRING_VALUE",
|
|
48
|
+
* // elements: [ // ElementsList
|
|
49
|
+
* // { // Element Union: only one key present
|
|
50
|
+
* // text: { // TextElement
|
|
51
|
+
* // value: "STRING_VALUE", // required
|
|
52
|
+
* // style: { // TextStyle
|
|
53
|
+
* // italic: true || false,
|
|
54
|
+
* // bold: true || false,
|
|
55
|
+
* // strike: true || false,
|
|
56
|
+
* // code: true || false,
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // link: { // LinkElement
|
|
60
|
+
* // url: "STRING_VALUE", // required
|
|
61
|
+
* // text: "STRING_VALUE",
|
|
62
|
+
* // style: {
|
|
63
|
+
* // italic: true || false,
|
|
64
|
+
* // bold: true || false,
|
|
65
|
+
* // strike: true || false,
|
|
66
|
+
* // code: true || false,
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // email: { // EmailElement
|
|
70
|
+
* // value: "STRING_VALUE", // required
|
|
71
|
+
* // style: {
|
|
72
|
+
* // italic: true || false,
|
|
73
|
+
* // bold: true || false,
|
|
74
|
+
* // strike: true || false,
|
|
75
|
+
* // code: true || false,
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // phone: { // PhoneElement
|
|
79
|
+
* // value: "STRING_VALUE", // required
|
|
80
|
+
* // style: {
|
|
81
|
+
* // italic: true || false,
|
|
82
|
+
* // bold: true || false,
|
|
83
|
+
* // strike: true || false,
|
|
84
|
+
* // code: true || false,
|
|
85
|
+
* // },
|
|
86
|
+
* // },
|
|
87
|
+
* // mention: { // MentionElement
|
|
88
|
+
* // text: "STRING_VALUE", // required
|
|
89
|
+
* // user: { // User
|
|
90
|
+
* // id: "STRING_VALUE", // required
|
|
91
|
+
* // name: "STRING_VALUE",
|
|
92
|
+
* // email: "STRING_VALUE",
|
|
93
|
+
* // phone: "STRING_VALUE",
|
|
94
|
+
* // picture: "STRING_VALUE",
|
|
95
|
+
* // locale: "STRING_VALUE",
|
|
96
|
+
* // timeZone: "STRING_VALUE",
|
|
97
|
+
* // company: "STRING_VALUE",
|
|
98
|
+
* // bot: true || false,
|
|
99
|
+
* // pbxDomain: "STRING_VALUE",
|
|
100
|
+
* // pbxPort: "STRING_VALUE",
|
|
101
|
+
* // pbxExtension: "STRING_VALUE",
|
|
102
|
+
* // pbxSerial: "STRING_VALUE",
|
|
103
|
+
* // pbxUserId: "STRING_VALUE",
|
|
104
|
+
* // createdAt: "STRING_VALUE",
|
|
105
|
+
* // updatedAt: "STRING_VALUE",
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // actions: [ // ActionsElementsList
|
|
109
|
+
* // { // ActionElement Union: only one key present
|
|
110
|
+
* // button: { // ButtonElement
|
|
111
|
+
* // text: "STRING_VALUE", // required
|
|
112
|
+
* // variant: "contained" || "outlined",
|
|
113
|
+
* // disabled: true || false,
|
|
114
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
115
|
+
* // link: { // ButtonLinkHandler
|
|
116
|
+
* // url: "STRING_VALUE", // required
|
|
117
|
+
* // },
|
|
118
|
+
* // reply: { // ButtonReplyHandler
|
|
119
|
+
* // text: "STRING_VALUE",
|
|
120
|
+
* // },
|
|
121
|
+
* // action: { // ButtonActionHandler
|
|
122
|
+
* // id: "STRING_VALUE", // required
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // },
|
|
126
|
+
* // },
|
|
127
|
+
* // ],
|
|
128
|
+
* // },
|
|
129
|
+
* // ],
|
|
130
|
+
* // attachments: [ // MessageAttachmentList
|
|
131
|
+
* // { // MessageAttachment
|
|
132
|
+
* // id: "STRING_VALUE", // required
|
|
133
|
+
* // fsId: "STRING_VALUE", // required
|
|
134
|
+
* // mime: "STRING_VALUE",
|
|
135
|
+
* // name: "STRING_VALUE", // required
|
|
136
|
+
* // size: Number("int"), // required
|
|
137
|
+
* // width: Number("int"),
|
|
138
|
+
* // height: Number("int"),
|
|
139
|
+
* // thumbnail: "STRING_VALUE",
|
|
140
|
+
* // },
|
|
141
|
+
* // ],
|
|
142
|
+
* // quote: { // MessageQuote
|
|
143
|
+
* // messageId: "STRING_VALUE", // required
|
|
144
|
+
* // channelId: "STRING_VALUE", // required
|
|
145
|
+
* // user: {
|
|
146
|
+
* // id: "STRING_VALUE", // required
|
|
147
|
+
* // name: "STRING_VALUE",
|
|
148
|
+
* // email: "STRING_VALUE",
|
|
149
|
+
* // phone: "STRING_VALUE",
|
|
150
|
+
* // picture: "STRING_VALUE",
|
|
151
|
+
* // locale: "STRING_VALUE",
|
|
152
|
+
* // timeZone: "STRING_VALUE",
|
|
153
|
+
* // company: "STRING_VALUE",
|
|
154
|
+
* // bot: true || false,
|
|
155
|
+
* // pbxDomain: "STRING_VALUE",
|
|
156
|
+
* // pbxPort: "STRING_VALUE",
|
|
157
|
+
* // pbxExtension: "STRING_VALUE",
|
|
158
|
+
* // pbxSerial: "STRING_VALUE",
|
|
159
|
+
* // pbxUserId: "STRING_VALUE",
|
|
160
|
+
* // createdAt: "STRING_VALUE",
|
|
161
|
+
* // updatedAt: "STRING_VALUE",
|
|
162
|
+
* // },
|
|
163
|
+
* // text: "STRING_VALUE",
|
|
164
|
+
* // attachments: [
|
|
165
|
+
* // {
|
|
166
|
+
* // id: "STRING_VALUE", // required
|
|
167
|
+
* // fsId: "STRING_VALUE", // required
|
|
168
|
+
* // mime: "STRING_VALUE",
|
|
169
|
+
* // name: "STRING_VALUE", // required
|
|
170
|
+
* // size: Number("int"), // required
|
|
171
|
+
* // width: Number("int"),
|
|
172
|
+
* // height: Number("int"),
|
|
173
|
+
* // thumbnail: "STRING_VALUE",
|
|
174
|
+
* // },
|
|
175
|
+
* // ],
|
|
176
|
+
* // forward: { // MessageForward
|
|
177
|
+
* // forwardCompany: "STRING_VALUE",
|
|
178
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
179
|
+
* // forwardEmail: "STRING_VALUE",
|
|
180
|
+
* // forwardName: "STRING_VALUE",
|
|
181
|
+
* // },
|
|
182
|
+
* // mentions: [ // UsersList
|
|
183
|
+
* // "<User>",
|
|
184
|
+
* // ],
|
|
185
|
+
* // giphy: { // MessageGiphy
|
|
186
|
+
* // id: "STRING_VALUE", // required
|
|
187
|
+
* // size: "STRING_VALUE", // required
|
|
188
|
+
* // url: "STRING_VALUE", // required
|
|
189
|
+
* // height: "STRING_VALUE", // required
|
|
190
|
+
* // width: "STRING_VALUE", // required
|
|
191
|
+
* // },
|
|
192
|
+
* // createdAt: "STRING_VALUE", // required
|
|
193
|
+
* // updatedAt: "STRING_VALUE",
|
|
194
|
+
* // },
|
|
195
|
+
* // forward: {
|
|
196
|
+
* // forwardCompany: "STRING_VALUE",
|
|
197
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
198
|
+
* // forwardEmail: "STRING_VALUE",
|
|
199
|
+
* // forwardName: "STRING_VALUE",
|
|
200
|
+
* // },
|
|
201
|
+
* // type: "regular" || "system", // required
|
|
202
|
+
* // giphy: {
|
|
203
|
+
* // id: "STRING_VALUE", // required
|
|
204
|
+
* // size: "STRING_VALUE", // required
|
|
205
|
+
* // url: "STRING_VALUE", // required
|
|
206
|
+
* // height: "STRING_VALUE", // required
|
|
207
|
+
* // width: "STRING_VALUE", // required
|
|
208
|
+
* // },
|
|
209
|
+
* // silent: true || false,
|
|
210
|
+
* // event: "STRING_VALUE",
|
|
211
|
+
* // sms: true || false,
|
|
212
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
213
|
+
* // whatsapp: true || false,
|
|
214
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
215
|
+
* // messageId: "STRING_VALUE", // required
|
|
216
|
+
* // channelId: "STRING_VALUE", // required
|
|
217
|
+
* // user: "<User>", // required
|
|
218
|
+
* // edit: true || false,
|
|
219
|
+
* // mentions: [
|
|
220
|
+
* // "<User>",
|
|
221
|
+
* // ],
|
|
222
|
+
* // latestReactions: [ // ReactionList
|
|
223
|
+
* // { // Reaction
|
|
224
|
+
* // type: "STRING_VALUE",
|
|
225
|
+
* // userId: "STRING_VALUE",
|
|
226
|
+
* // messageId: "STRING_VALUE",
|
|
227
|
+
* // user: "<User>",
|
|
228
|
+
* // },
|
|
229
|
+
* // ],
|
|
230
|
+
* // reactionCounts: { // ReactionCounts
|
|
231
|
+
* // "<keys>": Number("int"),
|
|
232
|
+
* // },
|
|
233
|
+
* // createdAt: "STRING_VALUE", // required
|
|
234
|
+
* // updatedAt: "STRING_VALUE",
|
|
235
|
+
* // },
|
|
236
|
+
* // ],
|
|
237
|
+
* // };
|
|
238
|
+
*
|
|
239
|
+
* ```
|
|
240
|
+
*
|
|
241
|
+
* @param ListPinnedMessagesCommandInput - {@link ListPinnedMessagesCommandInput}
|
|
242
|
+
* @returns {@link ListPinnedMessagesCommandOutput}
|
|
243
|
+
* @see {@link ListPinnedMessagesCommandInput} for command's `input` shape.
|
|
244
|
+
* @see {@link ListPinnedMessagesCommandOutput} for command's `response` shape.
|
|
245
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
246
|
+
*
|
|
247
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link ValidationException} (client fault)
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
252
|
+
*
|
|
253
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
254
|
+
*
|
|
255
|
+
* @throws {@link ConversationsServiceException}
|
|
256
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
257
|
+
*
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export declare class ListPinnedMessagesCommand extends ListPinnedMessagesCommand_base {
|
|
261
|
+
}
|
|
@@ -193,10 +193,14 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
193
193
|
* forwardEmail: "STRING_VALUE",
|
|
194
194
|
* forwardName: "STRING_VALUE",
|
|
195
195
|
* },
|
|
196
|
+
* mentions: [ // UsersIdList
|
|
197
|
+
* "STRING_VALUE",
|
|
198
|
+
* ],
|
|
196
199
|
* },
|
|
197
200
|
* unset: [ // MessageUnsetFieldsList
|
|
198
|
-
* "text" || "attachments" || "quote" || "forward",
|
|
201
|
+
* "text" || "mentions" || "elements" || "attachments" || "quote" || "forward",
|
|
199
202
|
* ],
|
|
203
|
+
* silent: true || false,
|
|
200
204
|
* };
|
|
201
205
|
* const command = new PartialUpdateMessageCommand(input);
|
|
202
206
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { PinMessageInput, PinMessageOutput } 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 PinMessageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PinMessageCommandInput extends PinMessageInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PinMessageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PinMessageCommandOutput extends PinMessageOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PinMessageCommand_base: {
|
|
25
|
+
new (input: PinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<PinMessageCommandInput, PinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<PinMessageCommandInput, PinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Pins specified message in the message. This operation is idempotent, meaning that if the message is already pinned, no error will be thrown.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, PinMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, PinMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // PinMessageInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* messageId: "STRING_VALUE", // required
|
|
40
|
+
* userId: "STRING_VALUE",
|
|
41
|
+
* expiresAfter: Number("int"),
|
|
42
|
+
* expiresTill: "STRING_VALUE",
|
|
43
|
+
* silent: true || false,
|
|
44
|
+
* };
|
|
45
|
+
* const command = new PinMessageCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param PinMessageCommandInput - {@link PinMessageCommandInput}
|
|
52
|
+
* @returns {@link PinMessageCommandOutput}
|
|
53
|
+
* @see {@link PinMessageCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link PinMessageCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link MessageNotFoundException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ConversationsServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class PinMessageCommand extends PinMessageCommand_base {
|
|
73
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { UnpinMessageInput, UnpinMessageOutput } 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 UnpinMessageCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UnpinMessageCommandInput extends UnpinMessageInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UnpinMessageCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UnpinMessageCommandOutput extends UnpinMessageOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UnpinMessageCommand_base: {
|
|
25
|
+
new (input: UnpinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UnpinMessageCommandInput): import("@smithy/smithy-client").CommandImpl<UnpinMessageCommandInput, UnpinMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Unpins the message that was previously pinned. This operation is idempotent, meaning that if the message is not pinned, no error will be thrown.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, UnpinMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, UnpinMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // UnpinMessageInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* messageId: "STRING_VALUE", // required
|
|
40
|
+
* userId: "STRING_VALUE",
|
|
41
|
+
* silent: true || false,
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UnpinMessageCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UnpinMessageCommandInput - {@link UnpinMessageCommandInput}
|
|
50
|
+
* @returns {@link UnpinMessageCommandOutput}
|
|
51
|
+
* @see {@link UnpinMessageCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UnpinMessageCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link MessageNotFoundException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ValidationException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConversationsServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class UnpinMessageCommand extends UnpinMessageCommand_base {
|
|
71
|
+
}
|
|
@@ -27,11 +27,13 @@ export * from "./ListInboxTaggedChannelsCommand";
|
|
|
27
27
|
export * from "./ListInboxTagsCommand";
|
|
28
28
|
export * from "./ListMessageReactionsCommand";
|
|
29
29
|
export * from "./ListMessagesCommand";
|
|
30
|
+
export * from "./ListPinnedMessagesCommand";
|
|
30
31
|
export * from "./MarkReadCommand";
|
|
31
32
|
export * from "./MarkUnreadCommand";
|
|
32
33
|
export * from "./PartialUpdateChannelCommand";
|
|
33
34
|
export * from "./PartialUpdateMessageCommand";
|
|
34
35
|
export * from "./PinChannelCommand";
|
|
36
|
+
export * from "./PinMessageCommand";
|
|
35
37
|
export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
36
38
|
export * from "./SendActionTriggerResultCommand";
|
|
37
39
|
export * from "./SendGiphyCommand";
|
|
@@ -43,6 +45,7 @@ export * from "./ShowChannelCommand";
|
|
|
43
45
|
export * from "./TagChannelCommand";
|
|
44
46
|
export * from "./TriggerMessageActionCommand";
|
|
45
47
|
export * from "./UnpinChannelCommand";
|
|
48
|
+
export * from "./UnpinMessageCommand";
|
|
46
49
|
export * from "./UntagChannelCommand";
|
|
47
50
|
export * from "./UpdateChannelCommand";
|
|
48
51
|
export * from "./UpdateInboxTagCommand";
|