@wildix/stream-client 0.0.1 → 0.0.5
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/StreamService.js +98 -6
- package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
- package/dist-cjs/commands/CreateSectionCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
- package/dist-cjs/commands/GetChannelCommand.js +21 -0
- package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
- package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
- package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
- package/dist-cjs/commands/GetTokenCommand.js +21 -0
- package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
- package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
- package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/MarkReadCommand.js +21 -0
- package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
- package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
- package/dist-cjs/commands/MuteChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/PinChannelCommand.js +21 -0
- package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
- package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
- package/dist-cjs/commands/RenameSectionCommand.js +21 -0
- package/dist-cjs/commands/SendGiphyCommand.js +21 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
- package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/ShowChannelCommand.js +21 -0
- package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
- package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
- package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
- package/dist-cjs/commands/UploadFileCommand.js +21 -0
- package/dist-cjs/commands/index.js +49 -3
- package/dist-cjs/models/models_0.js +293 -26
- package/dist-cjs/protocols/Aws_restJson1.js +1955 -131
- package/dist-es/StreamService.js +98 -6
- package/dist-es/commands/AddChannelMemberCommand.js +17 -0
- package/dist-es/commands/AddChannelMembersCommand.js +17 -0
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
- package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
- package/dist-es/commands/CreateSectionCommand.js +17 -0
- package/dist-es/commands/DeleteChannelCommand.js +17 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
- package/dist-es/commands/DeleteSectionCommand.js +17 -0
- package/dist-es/commands/GetChannelCommand.js +17 -0
- package/dist-es/commands/GetChannelMemberCommand.js +17 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
- package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
- package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
- package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
- package/dist-es/commands/GetTokenCommand.js +17 -0
- package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
- package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
- package/dist-es/commands/LeaveChannelCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersCommand.js +17 -0
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/MarkReadCommand.js +17 -0
- package/dist-es/commands/MarkUnreadCommand.js +17 -0
- package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
- package/dist-es/commands/MuteChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
- package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
- package/dist-es/commands/PinChannelCommand.js +17 -0
- package/dist-es/commands/QueryChannelsCommand.js +17 -0
- package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
- package/dist-es/commands/RenameSectionCommand.js +17 -0
- package/dist-es/commands/SendGiphyCommand.js +17 -0
- package/dist-es/commands/SendMessageReactionCommand.js +17 -0
- package/dist-es/commands/SendSystemMessageCommand.js +17 -0
- package/dist-es/commands/SendTypingStartCommand.js +17 -0
- package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
- package/dist-es/commands/ShowChannelCommand.js +17 -0
- package/dist-es/commands/UnmuteChannelCommand.js +17 -0
- package/dist-es/commands/UnpinChannelCommand.js +17 -0
- package/dist-es/commands/UpdateChannelCommand.js +17 -0
- package/dist-es/commands/UpdateMessageCommand.js +17 -0
- package/dist-es/commands/UploadFileCommand.js +17 -0
- package/dist-es/commands/index.js +49 -3
- package/dist-es/models/models_0.js +281 -23
- package/dist-es/protocols/Aws_restJson1.js +1843 -113
- package/dist-types/StreamService.d.ts +341 -15
- package/dist-types/StreamServiceClient.d.ts +51 -5
- package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
- package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
- package/dist-types/commands/GetChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
- package/dist-types/commands/GetInboxCommand.d.ts +53 -6
- package/dist-types/commands/GetMessageCommand.d.ts +57 -1
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/GetTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
- package/dist-types/commands/HideChannelCommand.d.ts +84 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +53 -6
- package/dist-types/commands/ListMentionsCommand.d.ts +58 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +57 -1
- package/dist-types/commands/MarkReadCommand.d.ts +99 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
- package/dist-types/commands/PinChannelCommand.d.ts +87 -0
- package/dist-types/commands/PinMessageCommand.d.ts +57 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
- package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +207 -0
- package/dist-types/commands/SendMessageCommand.d.ts +105 -8
- package/dist-types/commands/SendMessageReactionCommand.d.ts +193 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
- package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
- package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +57 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
- package/dist-types/commands/UploadFileCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +49 -3
- package/dist-types/models/models_0.d.ts +3256 -403
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
- package/dist-types/commands/AddReactionCommand.d.ts +0 -137
- package/dist-types/commands/EditMessageCommand.d.ts +0 -151
- package/dist-types/commands/RemoveReactionCommand.d.ts +0 -137
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
-
import { AddReactionInput, AddReactionOutput } 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 AddReactionCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface AddReactionCommandInput extends AddReactionInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link AddReactionCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface AddReactionCommandOutput extends AddReactionOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const AddReactionCommand_base: {
|
|
25
|
-
new (input: AddReactionCommandInput): import("@smithy/smithy-client").CommandImpl<AddReactionCommandInput, AddReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: AddReactionCommandInput): import("@smithy/smithy-client").CommandImpl<AddReactionCommandInput, AddReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Adds the current user's reaction of `<type>` on one message. The denormalized `reactionCounts` map on the message row is enough for rendering counters; the full reactor list per `<type>` is fetched on demand. Duplicate adds are absorbed and only the first apply advances `messageVersion`. Reactions on a deleted message are rejected.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { StreamServiceClient, AddReactionCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
-
* // const { StreamServiceClient, AddReactionCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
-
* const client = new StreamServiceClient(config);
|
|
37
|
-
* const input = { // AddReactionInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* userId: "STRING_VALUE",
|
|
40
|
-
* channelId: "STRING_VALUE", // required
|
|
41
|
-
* messageId: "STRING_VALUE", // required
|
|
42
|
-
* type: "STRING_VALUE", // required
|
|
43
|
-
* };
|
|
44
|
-
* const command = new AddReactionCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* // { // AddReactionOutput
|
|
47
|
-
* // message: { // Message
|
|
48
|
-
* // messageId: "STRING_VALUE", // required
|
|
49
|
-
* // userId: "STRING_VALUE", // required
|
|
50
|
-
* // messageType: "regular" || "system", // required
|
|
51
|
-
* // text: "STRING_VALUE",
|
|
52
|
-
* // attachments: [ // MessageAttachmentList // required
|
|
53
|
-
* // { // MessageAttachment
|
|
54
|
-
* // fsId: "STRING_VALUE", // required
|
|
55
|
-
* // mime: "STRING_VALUE",
|
|
56
|
-
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // size: Number("long"), // required
|
|
58
|
-
* // width: Number("int"),
|
|
59
|
-
* // height: Number("int"),
|
|
60
|
-
* // thumbnail: "STRING_VALUE",
|
|
61
|
-
* // id: "STRING_VALUE", // required
|
|
62
|
-
* // },
|
|
63
|
-
* // ],
|
|
64
|
-
* // mentions: [ // UserIdList // required
|
|
65
|
-
* // "STRING_VALUE",
|
|
66
|
-
* // ],
|
|
67
|
-
* // quote: { // MessageQuote
|
|
68
|
-
* // channelId: "STRING_VALUE", // required
|
|
69
|
-
* // messageId: "STRING_VALUE", // required
|
|
70
|
-
* // userId: "STRING_VALUE", // required
|
|
71
|
-
* // text: "STRING_VALUE",
|
|
72
|
-
* // createdAt: "STRING_VALUE", // required
|
|
73
|
-
* // },
|
|
74
|
-
* // forward: { // MessageForward
|
|
75
|
-
* // channelId: "STRING_VALUE", // required
|
|
76
|
-
* // messageId: "STRING_VALUE", // required
|
|
77
|
-
* // userId: "STRING_VALUE", // required
|
|
78
|
-
* // forwardedAt: "STRING_VALUE", // required
|
|
79
|
-
* // },
|
|
80
|
-
* // reactionCounts: { // ReactionCounts // required
|
|
81
|
-
* // "<keys>": Number("int"),
|
|
82
|
-
* // },
|
|
83
|
-
* // pinned: true || false, // required
|
|
84
|
-
* // pinnedAt: "STRING_VALUE",
|
|
85
|
-
* // pinnedBy: "STRING_VALUE",
|
|
86
|
-
* // system: true || false, // required
|
|
87
|
-
* // timelineSeq: Number("long"), // required
|
|
88
|
-
* // visibleSeq: Number("long"), // required
|
|
89
|
-
* // channelVersion: Number("long"), // required
|
|
90
|
-
* // messageVersion: Number("long"), // required
|
|
91
|
-
* // createdAt: "STRING_VALUE", // required
|
|
92
|
-
* // editedAt: "STRING_VALUE",
|
|
93
|
-
* // deletedAt: "STRING_VALUE",
|
|
94
|
-
* // },
|
|
95
|
-
* // };
|
|
96
|
-
*
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @param AddReactionCommandInput - {@link AddReactionCommandInput}
|
|
100
|
-
* @returns {@link AddReactionCommandOutput}
|
|
101
|
-
* @see {@link AddReactionCommandInput} for command's `input` shape.
|
|
102
|
-
* @see {@link AddReactionCommandOutput} for command's `response` shape.
|
|
103
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
104
|
-
*
|
|
105
|
-
* @throws {@link ChannelNotFoundException} (client fault)
|
|
106
|
-
*
|
|
107
|
-
* @throws {@link MessageNotFoundException} (client fault)
|
|
108
|
-
*
|
|
109
|
-
* @throws {@link InternalServerError} (server fault)
|
|
110
|
-
*
|
|
111
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
112
|
-
*
|
|
113
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
114
|
-
*
|
|
115
|
-
* @throws {@link ValidationException} (client fault)
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link StreamServiceServiceException}
|
|
120
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
export declare class AddReactionCommand extends AddReactionCommand_base {
|
|
126
|
-
/** @internal type navigation helper, not in runtime. */
|
|
127
|
-
protected static __types: {
|
|
128
|
-
api: {
|
|
129
|
-
input: AddReactionInput;
|
|
130
|
-
output: AddReactionOutput;
|
|
131
|
-
};
|
|
132
|
-
sdk: {
|
|
133
|
-
input: AddReactionCommandInput;
|
|
134
|
-
output: AddReactionCommandOutput;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
-
import { EditMessageInput, EditMessageOutput } 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 EditMessageCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface EditMessageCommandInput extends EditMessageInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link EditMessageCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface EditMessageCommandOutput extends EditMessageOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const EditMessageCommand_base: {
|
|
25
|
-
new (input: EditMessageCommandInput): import("@smithy/smithy-client").CommandImpl<EditMessageCommandInput, EditMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: EditMessageCommandInput): import("@smithy/smithy-client").CommandImpl<EditMessageCommandInput, EditMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Rewrites the content of an existing message in place. Edits change `text`, `attachments`, and `mentions[]` only and never move the message in the timeline. The server rejects payloads that would empty both `text` and `attachments`. Returns the rewritten message snapshot with `messageVersion` incremented and `editedAt` set.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { StreamServiceClient, EditMessageCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
-
* // const { StreamServiceClient, EditMessageCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
-
* const client = new StreamServiceClient(config);
|
|
37
|
-
* const input = { // EditMessageInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* userId: "STRING_VALUE",
|
|
40
|
-
* channelId: "STRING_VALUE", // required
|
|
41
|
-
* messageId: "STRING_VALUE", // required
|
|
42
|
-
* text: "STRING_VALUE",
|
|
43
|
-
* attachments: [ // MessageAttachmentRequestList
|
|
44
|
-
* { // MessageAttachmentRequest
|
|
45
|
-
* fsId: "STRING_VALUE", // required
|
|
46
|
-
* mime: "STRING_VALUE",
|
|
47
|
-
* name: "STRING_VALUE", // required
|
|
48
|
-
* size: Number("long"), // required
|
|
49
|
-
* width: Number("int"),
|
|
50
|
-
* height: Number("int"),
|
|
51
|
-
* thumbnail: "STRING_VALUE",
|
|
52
|
-
* },
|
|
53
|
-
* ],
|
|
54
|
-
* mentions: [ // UserIdList
|
|
55
|
-
* "STRING_VALUE",
|
|
56
|
-
* ],
|
|
57
|
-
* };
|
|
58
|
-
* const command = new EditMessageCommand(input);
|
|
59
|
-
* const response = await client.send(command);
|
|
60
|
-
* // { // EditMessageOutput
|
|
61
|
-
* // message: { // Message
|
|
62
|
-
* // messageId: "STRING_VALUE", // required
|
|
63
|
-
* // userId: "STRING_VALUE", // required
|
|
64
|
-
* // messageType: "regular" || "system", // required
|
|
65
|
-
* // text: "STRING_VALUE",
|
|
66
|
-
* // attachments: [ // MessageAttachmentList // required
|
|
67
|
-
* // { // MessageAttachment
|
|
68
|
-
* // fsId: "STRING_VALUE", // required
|
|
69
|
-
* // mime: "STRING_VALUE",
|
|
70
|
-
* // name: "STRING_VALUE", // required
|
|
71
|
-
* // size: Number("long"), // required
|
|
72
|
-
* // width: Number("int"),
|
|
73
|
-
* // height: Number("int"),
|
|
74
|
-
* // thumbnail: "STRING_VALUE",
|
|
75
|
-
* // id: "STRING_VALUE", // required
|
|
76
|
-
* // },
|
|
77
|
-
* // ],
|
|
78
|
-
* // mentions: [ // UserIdList // required
|
|
79
|
-
* // "STRING_VALUE",
|
|
80
|
-
* // ],
|
|
81
|
-
* // quote: { // MessageQuote
|
|
82
|
-
* // channelId: "STRING_VALUE", // required
|
|
83
|
-
* // messageId: "STRING_VALUE", // required
|
|
84
|
-
* // userId: "STRING_VALUE", // required
|
|
85
|
-
* // text: "STRING_VALUE",
|
|
86
|
-
* // createdAt: "STRING_VALUE", // required
|
|
87
|
-
* // },
|
|
88
|
-
* // forward: { // MessageForward
|
|
89
|
-
* // channelId: "STRING_VALUE", // required
|
|
90
|
-
* // messageId: "STRING_VALUE", // required
|
|
91
|
-
* // userId: "STRING_VALUE", // required
|
|
92
|
-
* // forwardedAt: "STRING_VALUE", // required
|
|
93
|
-
* // },
|
|
94
|
-
* // reactionCounts: { // ReactionCounts // required
|
|
95
|
-
* // "<keys>": Number("int"),
|
|
96
|
-
* // },
|
|
97
|
-
* // pinned: true || false, // required
|
|
98
|
-
* // pinnedAt: "STRING_VALUE",
|
|
99
|
-
* // pinnedBy: "STRING_VALUE",
|
|
100
|
-
* // system: true || false, // required
|
|
101
|
-
* // timelineSeq: Number("long"), // required
|
|
102
|
-
* // visibleSeq: Number("long"), // required
|
|
103
|
-
* // channelVersion: Number("long"), // required
|
|
104
|
-
* // messageVersion: Number("long"), // required
|
|
105
|
-
* // createdAt: "STRING_VALUE", // required
|
|
106
|
-
* // editedAt: "STRING_VALUE",
|
|
107
|
-
* // deletedAt: "STRING_VALUE",
|
|
108
|
-
* // },
|
|
109
|
-
* // };
|
|
110
|
-
*
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* @param EditMessageCommandInput - {@link EditMessageCommandInput}
|
|
114
|
-
* @returns {@link EditMessageCommandOutput}
|
|
115
|
-
* @see {@link EditMessageCommandInput} for command's `input` shape.
|
|
116
|
-
* @see {@link EditMessageCommandOutput} for command's `response` shape.
|
|
117
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link ChannelNotFoundException} (client fault)
|
|
120
|
-
*
|
|
121
|
-
* @throws {@link MessageNotFoundException} (client fault)
|
|
122
|
-
*
|
|
123
|
-
* @throws {@link InternalServerError} (server fault)
|
|
124
|
-
*
|
|
125
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
126
|
-
*
|
|
127
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
128
|
-
*
|
|
129
|
-
* @throws {@link ValidationException} (client fault)
|
|
130
|
-
*
|
|
131
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
132
|
-
*
|
|
133
|
-
* @throws {@link StreamServiceServiceException}
|
|
134
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
export declare class EditMessageCommand extends EditMessageCommand_base {
|
|
140
|
-
/** @internal type navigation helper, not in runtime. */
|
|
141
|
-
protected static __types: {
|
|
142
|
-
api: {
|
|
143
|
-
input: EditMessageInput;
|
|
144
|
-
output: EditMessageOutput;
|
|
145
|
-
};
|
|
146
|
-
sdk: {
|
|
147
|
-
input: EditMessageCommandInput;
|
|
148
|
-
output: EditMessageCommandOutput;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
-
import { RemoveReactionInput, RemoveReactionOutput } 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 RemoveReactionCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface RemoveReactionCommandInput extends RemoveReactionInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link RemoveReactionCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface RemoveReactionCommandOutput extends RemoveReactionOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const RemoveReactionCommand_base: {
|
|
25
|
-
new (input: RemoveReactionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveReactionCommandInput, RemoveReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: RemoveReactionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveReactionCommandInput, RemoveReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Removes the current user's reaction of `<type>` on one message. Duplicate removes are absorbed and only the first apply advances `messageVersion`.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { StreamServiceClient, RemoveReactionCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
-
* // const { StreamServiceClient, RemoveReactionCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
-
* const client = new StreamServiceClient(config);
|
|
37
|
-
* const input = { // RemoveReactionInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* userId: "STRING_VALUE",
|
|
40
|
-
* channelId: "STRING_VALUE", // required
|
|
41
|
-
* messageId: "STRING_VALUE", // required
|
|
42
|
-
* type: "STRING_VALUE", // required
|
|
43
|
-
* };
|
|
44
|
-
* const command = new RemoveReactionCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* // { // RemoveReactionOutput
|
|
47
|
-
* // message: { // Message
|
|
48
|
-
* // messageId: "STRING_VALUE", // required
|
|
49
|
-
* // userId: "STRING_VALUE", // required
|
|
50
|
-
* // messageType: "regular" || "system", // required
|
|
51
|
-
* // text: "STRING_VALUE",
|
|
52
|
-
* // attachments: [ // MessageAttachmentList // required
|
|
53
|
-
* // { // MessageAttachment
|
|
54
|
-
* // fsId: "STRING_VALUE", // required
|
|
55
|
-
* // mime: "STRING_VALUE",
|
|
56
|
-
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // size: Number("long"), // required
|
|
58
|
-
* // width: Number("int"),
|
|
59
|
-
* // height: Number("int"),
|
|
60
|
-
* // thumbnail: "STRING_VALUE",
|
|
61
|
-
* // id: "STRING_VALUE", // required
|
|
62
|
-
* // },
|
|
63
|
-
* // ],
|
|
64
|
-
* // mentions: [ // UserIdList // required
|
|
65
|
-
* // "STRING_VALUE",
|
|
66
|
-
* // ],
|
|
67
|
-
* // quote: { // MessageQuote
|
|
68
|
-
* // channelId: "STRING_VALUE", // required
|
|
69
|
-
* // messageId: "STRING_VALUE", // required
|
|
70
|
-
* // userId: "STRING_VALUE", // required
|
|
71
|
-
* // text: "STRING_VALUE",
|
|
72
|
-
* // createdAt: "STRING_VALUE", // required
|
|
73
|
-
* // },
|
|
74
|
-
* // forward: { // MessageForward
|
|
75
|
-
* // channelId: "STRING_VALUE", // required
|
|
76
|
-
* // messageId: "STRING_VALUE", // required
|
|
77
|
-
* // userId: "STRING_VALUE", // required
|
|
78
|
-
* // forwardedAt: "STRING_VALUE", // required
|
|
79
|
-
* // },
|
|
80
|
-
* // reactionCounts: { // ReactionCounts // required
|
|
81
|
-
* // "<keys>": Number("int"),
|
|
82
|
-
* // },
|
|
83
|
-
* // pinned: true || false, // required
|
|
84
|
-
* // pinnedAt: "STRING_VALUE",
|
|
85
|
-
* // pinnedBy: "STRING_VALUE",
|
|
86
|
-
* // system: true || false, // required
|
|
87
|
-
* // timelineSeq: Number("long"), // required
|
|
88
|
-
* // visibleSeq: Number("long"), // required
|
|
89
|
-
* // channelVersion: Number("long"), // required
|
|
90
|
-
* // messageVersion: Number("long"), // required
|
|
91
|
-
* // createdAt: "STRING_VALUE", // required
|
|
92
|
-
* // editedAt: "STRING_VALUE",
|
|
93
|
-
* // deletedAt: "STRING_VALUE",
|
|
94
|
-
* // },
|
|
95
|
-
* // };
|
|
96
|
-
*
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @param RemoveReactionCommandInput - {@link RemoveReactionCommandInput}
|
|
100
|
-
* @returns {@link RemoveReactionCommandOutput}
|
|
101
|
-
* @see {@link RemoveReactionCommandInput} for command's `input` shape.
|
|
102
|
-
* @see {@link RemoveReactionCommandOutput} for command's `response` shape.
|
|
103
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
104
|
-
*
|
|
105
|
-
* @throws {@link ChannelNotFoundException} (client fault)
|
|
106
|
-
*
|
|
107
|
-
* @throws {@link MessageNotFoundException} (client fault)
|
|
108
|
-
*
|
|
109
|
-
* @throws {@link InternalServerError} (server fault)
|
|
110
|
-
*
|
|
111
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
112
|
-
*
|
|
113
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
114
|
-
*
|
|
115
|
-
* @throws {@link ValidationException} (client fault)
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link StreamServiceServiceException}
|
|
120
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
export declare class RemoveReactionCommand extends RemoveReactionCommand_base {
|
|
126
|
-
/** @internal type navigation helper, not in runtime. */
|
|
127
|
-
protected static __types: {
|
|
128
|
-
api: {
|
|
129
|
-
input: RemoveReactionInput;
|
|
130
|
-
output: RemoveReactionOutput;
|
|
131
|
-
};
|
|
132
|
-
sdk: {
|
|
133
|
-
input: RemoveReactionCommandInput;
|
|
134
|
-
output: RemoveReactionCommandOutput;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|