@wildix/stream-client 0.0.7 → 0.0.9
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/models/models_0.js +1 -14
- package/dist-cjs/protocols/Aws_restJson1.js +0 -17
- package/dist-es/models/models_0.js +0 -12
- package/dist-es/protocols/Aws_restJson1.js +1 -18
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +2 -1
- package/dist-types/commands/GetInboxCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +2 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -0
- package/dist-types/commands/ListMentionsCommand.d.ts +2 -1
- package/dist-types/commands/ListMessagesCommand.d.ts +2 -1
- package/dist-types/commands/MarkReadCommand.d.ts +1 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +1 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +1 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +1 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +2 -1
- package/dist-types/commands/PinChannelCommand.d.ts +0 -3
- package/dist-types/commands/PinMessageCommand.d.ts +2 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +1 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +1 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +2 -1
- package/dist-types/commands/SendMessageCommand.d.ts +2 -1
- package/dist-types/commands/SendMessageReactionCommand.d.ts +2 -1
- package/dist-types/commands/SendSystemMessageCommand.d.ts +2 -1
- package/dist-types/commands/UnmuteChannelCommand.d.ts +1 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +2 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +20 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemMessage = exports.
|
|
3
|
+
exports.SystemMessage = exports.MessageUnsetFields = exports.MarkUnreadChannelsLimitReachedException = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.FileCategory = exports.DownloadStrategy = exports.SectionNotFoundException = exports.MessageType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.SectionType = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.StreamServiceException = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ValidationException = exports.UnauthorizedException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
4
4
|
const StreamServiceServiceException_1 = require("./StreamServiceServiceException");
|
|
5
5
|
class ForbiddenException extends StreamServiceServiceException_1.StreamServiceServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -366,19 +366,6 @@ exports.MessageUnsetFields = {
|
|
|
366
366
|
WHATSAPP: "whatsapp",
|
|
367
367
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
368
368
|
};
|
|
369
|
-
class PinnedChannelsLimitReachedException extends StreamServiceServiceException_1.StreamServiceServiceException {
|
|
370
|
-
name = "PinnedChannelsLimitReachedException";
|
|
371
|
-
$fault = "client";
|
|
372
|
-
constructor(opts) {
|
|
373
|
-
super({
|
|
374
|
-
name: "PinnedChannelsLimitReachedException",
|
|
375
|
-
$fault: "client",
|
|
376
|
-
...opts
|
|
377
|
-
});
|
|
378
|
-
Object.setPrototypeOf(this, PinnedChannelsLimitReachedException.prototype);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
exports.PinnedChannelsLimitReachedException = PinnedChannelsLimitReachedException;
|
|
382
369
|
var SystemMessage;
|
|
383
370
|
(function (SystemMessage) {
|
|
384
371
|
SystemMessage.visit = (value, visitor) => {
|
|
@@ -868,7 +868,6 @@ const se_PinChannelCommand = async (input, context) => {
|
|
|
868
868
|
const query = (0, smithy_client_1.map)({
|
|
869
869
|
[_c]: [, input[_cI]],
|
|
870
870
|
[_uI]: [, input[_uI]],
|
|
871
|
-
[_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
|
|
872
871
|
});
|
|
873
872
|
let body;
|
|
874
873
|
b.m("POST")
|
|
@@ -2144,9 +2143,6 @@ const de_CommandError = async (output, context) => {
|
|
|
2144
2143
|
case "MarkUnreadChannelsLimitReachedException":
|
|
2145
2144
|
case "wildix.stream#MarkUnreadChannelsLimitReachedException":
|
|
2146
2145
|
throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "PinnedChannelsLimitReachedException":
|
|
2148
|
-
case "wildix.stream#PinnedChannelsLimitReachedException":
|
|
2149
|
-
throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
2150
2146
|
default:
|
|
2151
2147
|
const parsedBody = parsedOutput.body;
|
|
2152
2148
|
return throwDefaultError({
|
|
@@ -2305,19 +2301,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2305
2301
|
});
|
|
2306
2302
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2307
2303
|
};
|
|
2308
|
-
const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2309
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2310
|
-
const data = parsedOutput.body;
|
|
2311
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2312
|
-
'message': smithy_client_1.expectString,
|
|
2313
|
-
});
|
|
2314
|
-
Object.assign(contents, doc);
|
|
2315
|
-
const exception = new models_0_1.PinnedChannelsLimitReachedException({
|
|
2316
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2317
|
-
...contents
|
|
2318
|
-
});
|
|
2319
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2320
|
-
};
|
|
2321
2304
|
const de_SectionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2322
2305
|
const contents = (0, smithy_client_1.map)({});
|
|
2323
2306
|
const data = parsedOutput.body;
|
|
@@ -348,18 +348,6 @@ export const MessageUnsetFields = {
|
|
|
348
348
|
WHATSAPP: "whatsapp",
|
|
349
349
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
350
350
|
};
|
|
351
|
-
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
352
|
-
name = "PinnedChannelsLimitReachedException";
|
|
353
|
-
$fault = "client";
|
|
354
|
-
constructor(opts) {
|
|
355
|
-
super({
|
|
356
|
-
name: "PinnedChannelsLimitReachedException",
|
|
357
|
-
$fault: "client",
|
|
358
|
-
...opts
|
|
359
|
-
});
|
|
360
|
-
Object.setPrototypeOf(this, PinnedChannelsLimitReachedException.prototype);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
351
|
export var SystemMessage;
|
|
364
352
|
(function (SystemMessage) {
|
|
365
353
|
SystemMessage.visit = (value, visitor) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StreamServiceServiceException as __BaseException } from "../models/StreamServiceServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException,
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, SectionNotFoundException, StreamServiceException, TargetNotEligibleException, TargetNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -823,7 +823,6 @@ export const se_PinChannelCommand = async (input, context) => {
|
|
|
823
823
|
const query = map({
|
|
824
824
|
[_c]: [, input[_cI]],
|
|
825
825
|
[_uI]: [, input[_uI]],
|
|
826
|
-
[_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
|
|
827
826
|
});
|
|
828
827
|
let body;
|
|
829
828
|
b.m("POST")
|
|
@@ -2023,9 +2022,6 @@ const de_CommandError = async (output, context) => {
|
|
|
2023
2022
|
case "MarkUnreadChannelsLimitReachedException":
|
|
2024
2023
|
case "wildix.stream#MarkUnreadChannelsLimitReachedException":
|
|
2025
2024
|
throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "PinnedChannelsLimitReachedException":
|
|
2027
|
-
case "wildix.stream#PinnedChannelsLimitReachedException":
|
|
2028
|
-
throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
|
|
2029
2025
|
default:
|
|
2030
2026
|
const parsedBody = parsedOutput.body;
|
|
2031
2027
|
return throwDefaultError({
|
|
@@ -2184,19 +2180,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2184
2180
|
});
|
|
2185
2181
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2186
2182
|
};
|
|
2187
|
-
const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2188
|
-
const contents = map({});
|
|
2189
|
-
const data = parsedOutput.body;
|
|
2190
|
-
const doc = take(data, {
|
|
2191
|
-
'message': __expectString,
|
|
2192
|
-
});
|
|
2193
|
-
Object.assign(contents, doc);
|
|
2194
|
-
const exception = new PinnedChannelsLimitReachedException({
|
|
2195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2196
|
-
...contents
|
|
2197
|
-
});
|
|
2198
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2199
|
-
};
|
|
2200
2183
|
const de_SectionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2201
2184
|
const contents = map({});
|
|
2202
2185
|
const data = parsedOutput.body;
|
|
@@ -75,7 +75,8 @@ declare const DeleteMessageReactionCommand_base: {
|
|
|
75
75
|
* // channelId: "STRING_VALUE", // required
|
|
76
76
|
* // messageId: "STRING_VALUE", // required
|
|
77
77
|
* // userId: "STRING_VALUE", // required
|
|
78
|
-
* //
|
|
78
|
+
* // companyId: "STRING_VALUE",
|
|
79
|
+
* // createdAt: "STRING_VALUE",
|
|
79
80
|
* // },
|
|
80
81
|
* // reactionCounts: { // ReactionCounts // required
|
|
81
82
|
* // "<keys>": Number("int"),
|
|
@@ -117,6 +117,7 @@ declare const GetInboxCommand_base: {
|
|
|
117
117
|
* // hidden: true || false, // required
|
|
118
118
|
* // muted: true || false, // required
|
|
119
119
|
* // mutedUntil: "STRING_VALUE",
|
|
120
|
+
* // pinned: true || false, // required
|
|
120
121
|
* // unreadMarkAt: Number("long"),
|
|
121
122
|
* // },
|
|
122
123
|
* // },
|
|
@@ -74,7 +74,8 @@ declare const GetMessageCommand_base: {
|
|
|
74
74
|
* // channelId: "STRING_VALUE", // required
|
|
75
75
|
* // messageId: "STRING_VALUE", // required
|
|
76
76
|
* // userId: "STRING_VALUE", // required
|
|
77
|
-
* //
|
|
77
|
+
* // companyId: "STRING_VALUE",
|
|
78
|
+
* // createdAt: "STRING_VALUE",
|
|
78
79
|
* // },
|
|
79
80
|
* // reactionCounts: { // ReactionCounts // required
|
|
80
81
|
* // "<keys>": Number("int"),
|
|
@@ -120,6 +120,7 @@ declare const ListChannelsCommand_base: {
|
|
|
120
120
|
* // hidden: true || false, // required
|
|
121
121
|
* // muted: true || false, // required
|
|
122
122
|
* // mutedUntil: "STRING_VALUE",
|
|
123
|
+
* // pinned: true || false, // required
|
|
123
124
|
* // unreadMarkAt: Number("long"),
|
|
124
125
|
* // },
|
|
125
126
|
* // },
|
|
@@ -83,7 +83,8 @@ declare const ListMentionsCommand_base: {
|
|
|
83
83
|
* // channelId: "STRING_VALUE", // required
|
|
84
84
|
* // messageId: "STRING_VALUE", // required
|
|
85
85
|
* // userId: "STRING_VALUE", // required
|
|
86
|
-
* //
|
|
86
|
+
* // companyId: "STRING_VALUE",
|
|
87
|
+
* // createdAt: "STRING_VALUE",
|
|
87
88
|
* // },
|
|
88
89
|
* // reactionCounts: { // ReactionCounts // required
|
|
89
90
|
* // "<keys>": Number("int"),
|
|
@@ -76,7 +76,8 @@ declare const ListMessagesCommand_base: {
|
|
|
76
76
|
* // channelId: "STRING_VALUE", // required
|
|
77
77
|
* // messageId: "STRING_VALUE", // required
|
|
78
78
|
* // userId: "STRING_VALUE", // required
|
|
79
|
-
* //
|
|
79
|
+
* // companyId: "STRING_VALUE",
|
|
80
|
+
* // createdAt: "STRING_VALUE",
|
|
80
81
|
* // },
|
|
81
82
|
* // reactionCounts: { // ReactionCounts // required
|
|
82
83
|
* // "<keys>": Number("int"),
|
|
@@ -56,6 +56,7 @@ declare const MarkUnreadCommand_base: {
|
|
|
56
56
|
* // hidden: true || false, // required
|
|
57
57
|
* // muted: true || false, // required
|
|
58
58
|
* // mutedUntil: "STRING_VALUE",
|
|
59
|
+
* // pinned: true || false, // required
|
|
59
60
|
* // unreadMarkAt: Number("long"),
|
|
60
61
|
* // },
|
|
61
62
|
* // };
|
|
@@ -54,6 +54,7 @@ declare const MoveChannelToSectionCommand_base: {
|
|
|
54
54
|
* // hidden: true || false, // required
|
|
55
55
|
* // muted: true || false, // required
|
|
56
56
|
* // mutedUntil: "STRING_VALUE",
|
|
57
|
+
* // pinned: true || false, // required
|
|
57
58
|
* // unreadMarkAt: Number("long"),
|
|
58
59
|
* // },
|
|
59
60
|
* // };
|
|
@@ -54,6 +54,7 @@ declare const MuteChannelCommand_base: {
|
|
|
54
54
|
* // hidden: true || false, // required
|
|
55
55
|
* // muted: true || false, // required
|
|
56
56
|
* // mutedUntil: "STRING_VALUE",
|
|
57
|
+
* // pinned: true || false, // required
|
|
57
58
|
* // unreadMarkAt: Number("long"),
|
|
58
59
|
* // },
|
|
59
60
|
* // };
|
|
@@ -143,7 +143,8 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
143
143
|
* // channelId: "STRING_VALUE", // required
|
|
144
144
|
* // messageId: "STRING_VALUE", // required
|
|
145
145
|
* // userId: "STRING_VALUE", // required
|
|
146
|
-
* //
|
|
146
|
+
* // companyId: "STRING_VALUE",
|
|
147
|
+
* // createdAt: "STRING_VALUE",
|
|
147
148
|
* // },
|
|
148
149
|
* // reactionCounts: { // ReactionCounts // required
|
|
149
150
|
* // "<keys>": Number("int"),
|
|
@@ -38,7 +38,6 @@ declare const PinChannelCommand_base: {
|
|
|
38
38
|
* companyId: "STRING_VALUE",
|
|
39
39
|
* userId: "STRING_VALUE",
|
|
40
40
|
* channelId: "STRING_VALUE", // required
|
|
41
|
-
* force: true || false,
|
|
42
41
|
* };
|
|
43
42
|
* const command = new PinChannelCommand(input);
|
|
44
43
|
* const response = await client.send(command);
|
|
@@ -54,8 +53,6 @@ declare const PinChannelCommand_base: {
|
|
|
54
53
|
*
|
|
55
54
|
* @throws {@link ChannelNotFoundException} (client fault)
|
|
56
55
|
*
|
|
57
|
-
* @throws {@link PinnedChannelsLimitReachedException} (client fault)
|
|
58
|
-
*
|
|
59
56
|
* @throws {@link StreamServiceException} (server fault)
|
|
60
57
|
*
|
|
61
58
|
* @throws {@link UnauthorizedException} (client fault)
|
|
@@ -74,7 +74,8 @@ declare const PinMessageCommand_base: {
|
|
|
74
74
|
* // channelId: "STRING_VALUE", // required
|
|
75
75
|
* // messageId: "STRING_VALUE", // required
|
|
76
76
|
* // userId: "STRING_VALUE", // required
|
|
77
|
-
* //
|
|
77
|
+
* // companyId: "STRING_VALUE",
|
|
78
|
+
* // createdAt: "STRING_VALUE",
|
|
78
79
|
* // },
|
|
79
80
|
* // reactionCounts: { // ReactionCounts // required
|
|
80
81
|
* // "<keys>": Number("int"),
|
|
@@ -122,6 +122,7 @@ declare const QueryChannelsCommand_base: {
|
|
|
122
122
|
* // hidden: true || false, // required
|
|
123
123
|
* // muted: true || false, // required
|
|
124
124
|
* // mutedUntil: "STRING_VALUE",
|
|
125
|
+
* // pinned: true || false, // required
|
|
125
126
|
* // unreadMarkAt: Number("long"),
|
|
126
127
|
* // },
|
|
127
128
|
* // },
|
|
@@ -54,6 +54,7 @@ declare const RemoveChannelFromSectionCommand_base: {
|
|
|
54
54
|
* // hidden: true || false, // required
|
|
55
55
|
* // muted: true || false, // required
|
|
56
56
|
* // mutedUntil: "STRING_VALUE",
|
|
57
|
+
* // pinned: true || false, // required
|
|
57
58
|
* // unreadMarkAt: Number("long"),
|
|
58
59
|
* // },
|
|
59
60
|
* // };
|
|
@@ -89,7 +89,8 @@ declare const SendGiphyCommand_base: {
|
|
|
89
89
|
* // channelId: "STRING_VALUE", // required
|
|
90
90
|
* // messageId: "STRING_VALUE", // required
|
|
91
91
|
* // userId: "STRING_VALUE", // required
|
|
92
|
-
* //
|
|
92
|
+
* // companyId: "STRING_VALUE",
|
|
93
|
+
* // createdAt: "STRING_VALUE",
|
|
93
94
|
* // },
|
|
94
95
|
* // reactionCounts: { // ReactionCounts // required
|
|
95
96
|
* // "<keys>": Number("int"),
|
|
@@ -139,7 +139,8 @@ declare const SendMessageCommand_base: {
|
|
|
139
139
|
* // channelId: "STRING_VALUE", // required
|
|
140
140
|
* // messageId: "STRING_VALUE", // required
|
|
141
141
|
* // userId: "STRING_VALUE", // required
|
|
142
|
-
* //
|
|
142
|
+
* // companyId: "STRING_VALUE",
|
|
143
|
+
* // createdAt: "STRING_VALUE",
|
|
143
144
|
* // },
|
|
144
145
|
* // reactionCounts: { // ReactionCounts // required
|
|
145
146
|
* // "<keys>": Number("int"),
|
|
@@ -75,7 +75,8 @@ declare const SendMessageReactionCommand_base: {
|
|
|
75
75
|
* // channelId: "STRING_VALUE", // required
|
|
76
76
|
* // messageId: "STRING_VALUE", // required
|
|
77
77
|
* // userId: "STRING_VALUE", // required
|
|
78
|
-
* //
|
|
78
|
+
* // companyId: "STRING_VALUE",
|
|
79
|
+
* // createdAt: "STRING_VALUE",
|
|
79
80
|
* // },
|
|
80
81
|
* // reactionCounts: { // ReactionCounts // required
|
|
81
82
|
* // "<keys>": Number("int"),
|
|
@@ -83,7 +83,8 @@ declare const SendSystemMessageCommand_base: {
|
|
|
83
83
|
* // channelId: "STRING_VALUE", // required
|
|
84
84
|
* // messageId: "STRING_VALUE", // required
|
|
85
85
|
* // userId: "STRING_VALUE", // required
|
|
86
|
-
* //
|
|
86
|
+
* // companyId: "STRING_VALUE",
|
|
87
|
+
* // createdAt: "STRING_VALUE",
|
|
87
88
|
* // },
|
|
88
89
|
* // reactionCounts: { // ReactionCounts // required
|
|
89
90
|
* // "<keys>": Number("int"),
|
|
@@ -53,6 +53,7 @@ declare const UnmuteChannelCommand_base: {
|
|
|
53
53
|
* // hidden: true || false, // required
|
|
54
54
|
* // muted: true || false, // required
|
|
55
55
|
* // mutedUntil: "STRING_VALUE",
|
|
56
|
+
* // pinned: true || false, // required
|
|
56
57
|
* // unreadMarkAt: Number("long"),
|
|
57
58
|
* // },
|
|
58
59
|
* // };
|
|
@@ -74,7 +74,8 @@ declare const UnpinMessageCommand_base: {
|
|
|
74
74
|
* // channelId: "STRING_VALUE", // required
|
|
75
75
|
* // messageId: "STRING_VALUE", // required
|
|
76
76
|
* // userId: "STRING_VALUE", // required
|
|
77
|
-
* //
|
|
77
|
+
* // companyId: "STRING_VALUE",
|
|
78
|
+
* // createdAt: "STRING_VALUE",
|
|
78
79
|
* // },
|
|
79
80
|
* // reactionCounts: { // ReactionCounts // required
|
|
80
81
|
* // "<keys>": Number("int"),
|
|
@@ -138,7 +138,8 @@ declare const UpdateMessageCommand_base: {
|
|
|
138
138
|
* // channelId: "STRING_VALUE", // required
|
|
139
139
|
* // messageId: "STRING_VALUE", // required
|
|
140
140
|
* // userId: "STRING_VALUE", // required
|
|
141
|
-
* //
|
|
141
|
+
* // companyId: "STRING_VALUE",
|
|
142
|
+
* // createdAt: "STRING_VALUE",
|
|
142
143
|
* // },
|
|
143
144
|
* // reactionCounts: { // ReactionCounts // required
|
|
144
145
|
* // "<keys>": Number("int"),
|
|
@@ -1452,18 +1452,31 @@ export interface MessageAttachment {
|
|
|
1452
1452
|
* @public
|
|
1453
1453
|
*/
|
|
1454
1454
|
export interface MessageForward {
|
|
1455
|
+
/**
|
|
1456
|
+
* Channel of the original message.
|
|
1457
|
+
* @public
|
|
1458
|
+
*/
|
|
1455
1459
|
channelId: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* Message ID of the original message.
|
|
1462
|
+
* @public
|
|
1463
|
+
*/
|
|
1456
1464
|
messageId: string;
|
|
1457
1465
|
/**
|
|
1458
|
-
*
|
|
1466
|
+
* User ID of the original author.
|
|
1459
1467
|
* @public
|
|
1460
1468
|
*/
|
|
1461
1469
|
userId: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* Company ID of the original message channel.
|
|
1472
|
+
* @public
|
|
1473
|
+
*/
|
|
1474
|
+
companyId?: string | undefined;
|
|
1462
1475
|
/**
|
|
1463
1476
|
* Creation timestamp of the original message.
|
|
1464
1477
|
* @public
|
|
1465
1478
|
*/
|
|
1466
|
-
|
|
1479
|
+
createdAt?: string | undefined;
|
|
1467
1480
|
}
|
|
1468
1481
|
/**
|
|
1469
1482
|
* @public
|
|
@@ -1905,6 +1918,11 @@ export interface InboxState {
|
|
|
1905
1918
|
* @public
|
|
1906
1919
|
*/
|
|
1907
1920
|
mutedUntil?: string | undefined;
|
|
1921
|
+
/**
|
|
1922
|
+
* True when the user has pinned this channel.
|
|
1923
|
+
* @public
|
|
1924
|
+
*/
|
|
1925
|
+
pinned: boolean;
|
|
1908
1926
|
/**
|
|
1909
1927
|
* `visibleSeq` from which the user manually marked the channel as unread.
|
|
1910
1928
|
* @public
|
|
@@ -3192,24 +3210,12 @@ export interface PinChannelInput {
|
|
|
3192
3210
|
*/
|
|
3193
3211
|
userId?: string | undefined;
|
|
3194
3212
|
channelId: string;
|
|
3195
|
-
force?: boolean | undefined;
|
|
3196
3213
|
}
|
|
3197
3214
|
/**
|
|
3198
3215
|
* @public
|
|
3199
3216
|
*/
|
|
3200
3217
|
export interface PinChannelOutput {
|
|
3201
3218
|
}
|
|
3202
|
-
/**
|
|
3203
|
-
* @public
|
|
3204
|
-
*/
|
|
3205
|
-
export declare class PinnedChannelsLimitReachedException extends __BaseException {
|
|
3206
|
-
readonly name: "PinnedChannelsLimitReachedException";
|
|
3207
|
-
readonly $fault: "client";
|
|
3208
|
-
/**
|
|
3209
|
-
* @internal
|
|
3210
|
-
*/
|
|
3211
|
-
constructor(opts: __ExceptionOptionType<PinnedChannelsLimitReachedException, __BaseException>);
|
|
3212
|
-
}
|
|
3213
3219
|
/**
|
|
3214
3220
|
* @public
|
|
3215
3221
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/stream-client",
|
|
3
3
|
"description": "@wildix/stream-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
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",
|