@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
|
@@ -1536,7 +1536,7 @@ export interface GetUploadedFileInfoInput {
|
|
|
1536
1536
|
* @public
|
|
1537
1537
|
*/
|
|
1538
1538
|
export interface GetUploadedFileInfoOutput {
|
|
1539
|
-
file
|
|
1539
|
+
file: MessageAttachment;
|
|
1540
1540
|
}
|
|
1541
1541
|
/**
|
|
1542
1542
|
* @public
|
|
@@ -1807,6 +1807,36 @@ export interface ListMessagesOutput {
|
|
|
1807
1807
|
*/
|
|
1808
1808
|
messages: (Message)[];
|
|
1809
1809
|
}
|
|
1810
|
+
/**
|
|
1811
|
+
* @public
|
|
1812
|
+
*/
|
|
1813
|
+
export interface ListPinnedMessagesInput {
|
|
1814
|
+
/**
|
|
1815
|
+
* The unique identifier of the channel from which to list messages.
|
|
1816
|
+
* @public
|
|
1817
|
+
*/
|
|
1818
|
+
channelId: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* The maximum number of pinned messages to return. The value must be between 1 and 100.
|
|
1821
|
+
* @public
|
|
1822
|
+
*/
|
|
1823
|
+
limit?: number;
|
|
1824
|
+
/**
|
|
1825
|
+
* The offset from which to start listing pinned messages. The value must be between 0 and 1000.
|
|
1826
|
+
* @public
|
|
1827
|
+
*/
|
|
1828
|
+
offset?: number;
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* @public
|
|
1832
|
+
*/
|
|
1833
|
+
export interface ListPinnedMessagesOutput {
|
|
1834
|
+
/**
|
|
1835
|
+
* A list of pinned messages in the channel.
|
|
1836
|
+
* @public
|
|
1837
|
+
*/
|
|
1838
|
+
messages: (Message)[];
|
|
1839
|
+
}
|
|
1810
1840
|
/**
|
|
1811
1841
|
* @public
|
|
1812
1842
|
*/
|
|
@@ -1964,6 +1994,11 @@ export interface PartialUpdateMessageSetInput {
|
|
|
1964
1994
|
attachments?: (MessageAttachment)[];
|
|
1965
1995
|
quote?: MessageQuote;
|
|
1966
1996
|
forward?: MessageForward;
|
|
1997
|
+
/**
|
|
1998
|
+
* A list of user IDs mentioned in the message.
|
|
1999
|
+
* @public
|
|
2000
|
+
*/
|
|
2001
|
+
mentions?: (string)[];
|
|
1967
2002
|
}
|
|
1968
2003
|
/**
|
|
1969
2004
|
* @public
|
|
@@ -1971,7 +2006,9 @@ export interface PartialUpdateMessageSetInput {
|
|
|
1971
2006
|
*/
|
|
1972
2007
|
export declare const MessageUnsetFields: {
|
|
1973
2008
|
readonly ATTACHMENTS: "attachments";
|
|
2009
|
+
readonly ELEMENTS: "elements";
|
|
1974
2010
|
readonly FORWARD: "forward";
|
|
2011
|
+
readonly MENTIONS: "mentions";
|
|
1975
2012
|
readonly QUOTE: "quote";
|
|
1976
2013
|
readonly TEXT: "text";
|
|
1977
2014
|
};
|
|
@@ -2008,6 +2045,11 @@ export interface PartialUpdateMessageInput {
|
|
|
2008
2045
|
* @public
|
|
2009
2046
|
*/
|
|
2010
2047
|
unset?: (MessageUnsetFields)[];
|
|
2048
|
+
/**
|
|
2049
|
+
* Set to true to suppress the updated indicator. Defaults to false.
|
|
2050
|
+
* @public
|
|
2051
|
+
*/
|
|
2052
|
+
silent?: boolean;
|
|
2011
2053
|
}
|
|
2012
2054
|
/**
|
|
2013
2055
|
* @public
|
|
@@ -2051,6 +2093,42 @@ export declare class PinnedChannelsLimitReachedException extends __BaseException
|
|
|
2051
2093
|
*/
|
|
2052
2094
|
constructor(opts: __ExceptionOptionType<PinnedChannelsLimitReachedException, __BaseException>);
|
|
2053
2095
|
}
|
|
2096
|
+
/**
|
|
2097
|
+
* @public
|
|
2098
|
+
*/
|
|
2099
|
+
export interface PinMessageInput {
|
|
2100
|
+
channelId: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* The unique identifier of the message which should be pinned.
|
|
2103
|
+
* @public
|
|
2104
|
+
*/
|
|
2105
|
+
messageId: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* The unique identifier of the user when a service token is used.
|
|
2108
|
+
* @public
|
|
2109
|
+
*/
|
|
2110
|
+
userId?: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* The duration in seconds after which the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresTill` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresTill` will result in a validation error.
|
|
2113
|
+
* @public
|
|
2114
|
+
*/
|
|
2115
|
+
expiresAfter?: number;
|
|
2116
|
+
/**
|
|
2117
|
+
* The specific date and time (in ISO 8601 format) when the pinned message will be automatically unpinned. If neither `expiresAfter` nor `expiresTill` is provided, the message will remain pinned indefinitely. Providing both `expiresAfter` and `expiresTill` will result in a validation error.
|
|
2118
|
+
* @public
|
|
2119
|
+
*/
|
|
2120
|
+
expiresTill?: string;
|
|
2121
|
+
/**
|
|
2122
|
+
* Set to true to suppress system messages generated by this operation. Defaults to false.
|
|
2123
|
+
* @public
|
|
2124
|
+
*/
|
|
2125
|
+
silent?: boolean;
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* @public
|
|
2129
|
+
*/
|
|
2130
|
+
export interface PinMessageOutput {
|
|
2131
|
+
}
|
|
2054
2132
|
/**
|
|
2055
2133
|
* @public
|
|
2056
2134
|
*/
|
|
@@ -2354,6 +2432,32 @@ export interface UnpinChannelInput {
|
|
|
2354
2432
|
*/
|
|
2355
2433
|
export interface UnpinChannelOutput {
|
|
2356
2434
|
}
|
|
2435
|
+
/**
|
|
2436
|
+
* @public
|
|
2437
|
+
*/
|
|
2438
|
+
export interface UnpinMessageInput {
|
|
2439
|
+
channelId: string;
|
|
2440
|
+
/**
|
|
2441
|
+
* The unique identifier of the message which should be unpinned.
|
|
2442
|
+
* @public
|
|
2443
|
+
*/
|
|
2444
|
+
messageId: string;
|
|
2445
|
+
/**
|
|
2446
|
+
* The unique identifier of the user when a service token is used.
|
|
2447
|
+
* @public
|
|
2448
|
+
*/
|
|
2449
|
+
userId?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Set to true to suppress system messages generated by this operation. Defaults to false.
|
|
2452
|
+
* @public
|
|
2453
|
+
*/
|
|
2454
|
+
silent?: boolean;
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* @public
|
|
2458
|
+
*/
|
|
2459
|
+
export interface UnpinMessageOutput {
|
|
2460
|
+
}
|
|
2357
2461
|
/**
|
|
2358
2462
|
* @public
|
|
2359
2463
|
*/
|
|
@@ -2490,6 +2594,11 @@ export interface UpdateMessageInput {
|
|
|
2490
2594
|
* @public
|
|
2491
2595
|
*/
|
|
2492
2596
|
mentions?: (string)[];
|
|
2597
|
+
/**
|
|
2598
|
+
* Set to true to suppress the updated indicator. Defaults to false.
|
|
2599
|
+
* @public
|
|
2600
|
+
*/
|
|
2601
|
+
silent?: boolean;
|
|
2493
2602
|
}
|
|
2494
2603
|
/**
|
|
2495
2604
|
* @public
|
|
@@ -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/S
|
|
|
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";
|
|
@@ -166,6 +169,10 @@ export declare const se_ListMessageReactionsCommand: (input: ListMessageReaction
|
|
|
166
169
|
* serializeAws_restJson1ListMessagesCommand
|
|
167
170
|
*/
|
|
168
171
|
export declare const se_ListMessagesCommand: (input: ListMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
172
|
+
/**
|
|
173
|
+
* serializeAws_restJson1ListPinnedMessagesCommand
|
|
174
|
+
*/
|
|
175
|
+
export declare const se_ListPinnedMessagesCommand: (input: ListPinnedMessagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
169
176
|
/**
|
|
170
177
|
* serializeAws_restJson1MarkReadCommand
|
|
171
178
|
*/
|
|
@@ -186,6 +193,10 @@ export declare const se_PartialUpdateMessageCommand: (input: PartialUpdateMessag
|
|
|
186
193
|
* serializeAws_restJson1PinChannelCommand
|
|
187
194
|
*/
|
|
188
195
|
export declare const se_PinChannelCommand: (input: PinChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
196
|
+
/**
|
|
197
|
+
* serializeAws_restJson1PinMessageCommand
|
|
198
|
+
*/
|
|
199
|
+
export declare const se_PinMessageCommand: (input: PinMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
189
200
|
/**
|
|
190
201
|
* serializeAws_restJson1ScheduleExternalFlagAdjustmentJobCommand
|
|
191
202
|
*/
|
|
@@ -230,6 +241,10 @@ export declare const se_TriggerMessageActionCommand: (input: TriggerMessageActio
|
|
|
230
241
|
* serializeAws_restJson1UnpinChannelCommand
|
|
231
242
|
*/
|
|
232
243
|
export declare const se_UnpinChannelCommand: (input: UnpinChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
244
|
+
/**
|
|
245
|
+
* serializeAws_restJson1UnpinMessageCommand
|
|
246
|
+
*/
|
|
247
|
+
export declare const se_UnpinMessageCommand: (input: UnpinMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
233
248
|
/**
|
|
234
249
|
* serializeAws_restJson1UntagChannelCommand
|
|
235
250
|
*/
|
|
@@ -366,6 +381,10 @@ export declare const de_ListMessageReactionsCommand: (output: __HttpResponse, co
|
|
|
366
381
|
* deserializeAws_restJson1ListMessagesCommand
|
|
367
382
|
*/
|
|
368
383
|
export declare const de_ListMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListMessagesCommandOutput>;
|
|
384
|
+
/**
|
|
385
|
+
* deserializeAws_restJson1ListPinnedMessagesCommand
|
|
386
|
+
*/
|
|
387
|
+
export declare const de_ListPinnedMessagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPinnedMessagesCommandOutput>;
|
|
369
388
|
/**
|
|
370
389
|
* deserializeAws_restJson1MarkReadCommand
|
|
371
390
|
*/
|
|
@@ -386,6 +405,10 @@ export declare const de_PartialUpdateMessageCommand: (output: __HttpResponse, co
|
|
|
386
405
|
* deserializeAws_restJson1PinChannelCommand
|
|
387
406
|
*/
|
|
388
407
|
export declare const de_PinChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PinChannelCommandOutput>;
|
|
408
|
+
/**
|
|
409
|
+
* deserializeAws_restJson1PinMessageCommand
|
|
410
|
+
*/
|
|
411
|
+
export declare const de_PinMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PinMessageCommandOutput>;
|
|
389
412
|
/**
|
|
390
413
|
* deserializeAws_restJson1ScheduleExternalFlagAdjustmentJobCommand
|
|
391
414
|
*/
|
|
@@ -430,6 +453,10 @@ export declare const de_TriggerMessageActionCommand: (output: __HttpResponse, co
|
|
|
430
453
|
* deserializeAws_restJson1UnpinChannelCommand
|
|
431
454
|
*/
|
|
432
455
|
export declare const de_UnpinChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnpinChannelCommandOutput>;
|
|
456
|
+
/**
|
|
457
|
+
* deserializeAws_restJson1UnpinMessageCommand
|
|
458
|
+
*/
|
|
459
|
+
export declare const de_UnpinMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnpinMessageCommandOutput>;
|
|
433
460
|
/**
|
|
434
461
|
* deserializeAws_restJson1UntagChannelCommand
|
|
435
462
|
*/
|
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.0.
|
|
4
|
+
"version": "1.0.65",
|
|
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",
|