@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
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { QueryChannelsInput, QueryChannelsOutput } 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 QueryChannelsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface QueryChannelsCommandInput extends QueryChannelsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link QueryChannelsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface QueryChannelsCommandOutput extends QueryChannelsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const QueryChannelsCommand_base: {
|
|
25
|
+
new (input: QueryChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryChannelsCommandInput, QueryChannelsCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: QueryChannelsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryChannelsCommandInput, QueryChannelsCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns channels matching a batch id query for the current user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, QueryChannelsCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, QueryChannelsCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // QueryChannelsInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* query: { // ChannelsQuery
|
|
41
|
+
* ids: [ // ChannelIdList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const command = new QueryChannelsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // QueryChannelsOutput
|
|
49
|
+
* // channels: [ // InboxChannelList // required
|
|
50
|
+
* // { // InboxChannel
|
|
51
|
+
* // channelId: "STRING_VALUE", // required
|
|
52
|
+
* // channelType: "direct" || "group", // required
|
|
53
|
+
* // membersCount: Number("int"), // required
|
|
54
|
+
* // createdAt: "STRING_VALUE", // required
|
|
55
|
+
* // createdBy: "STRING_VALUE", // required
|
|
56
|
+
* // updatedAt: "STRING_VALUE",
|
|
57
|
+
* // channelVersion: Number("long"), // required
|
|
58
|
+
* // lastActivityAt: "STRING_VALUE", // required
|
|
59
|
+
* // lastMessage: { // LastMessagePreview
|
|
60
|
+
* // messageId: "STRING_VALUE", // required
|
|
61
|
+
* // userId: "STRING_VALUE", // required
|
|
62
|
+
* // text: "STRING_VALUE",
|
|
63
|
+
* // createdAt: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // company: "STRING_VALUE",
|
|
66
|
+
* // kite: true || false,
|
|
67
|
+
* // kiteTarget: "STRING_VALUE",
|
|
68
|
+
* // kiteVariant: "STRING_VALUE",
|
|
69
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
70
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
71
|
+
* // service: "STRING_VALUE",
|
|
72
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
73
|
+
* // telephony: true || false,
|
|
74
|
+
* // external: true || false,
|
|
75
|
+
* // subject: "STRING_VALUE",
|
|
76
|
+
* // description: "STRING_VALUE",
|
|
77
|
+
* // picture: "STRING_VALUE",
|
|
78
|
+
* // pictureColor: "STRING_VALUE",
|
|
79
|
+
* // access: "private" || "public",
|
|
80
|
+
* // broadcast: true || false,
|
|
81
|
+
* // context: { // ChannelContext
|
|
82
|
+
* // source: "kite",
|
|
83
|
+
* // target: "STRING_VALUE",
|
|
84
|
+
* // events: [ // ChannelContextEventList
|
|
85
|
+
* // { // ChannelContextEvent
|
|
86
|
+
* // id: "STRING_VALUE",
|
|
87
|
+
* // owner: "STRING_VALUE",
|
|
88
|
+
* // start: "STRING_VALUE",
|
|
89
|
+
* // end: "STRING_VALUE",
|
|
90
|
+
* // summary: "STRING_VALUE",
|
|
91
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
92
|
+
* // { // ChannelContextEventAttendee
|
|
93
|
+
* // email: "STRING_VALUE", // required
|
|
94
|
+
* // name: "STRING_VALUE",
|
|
95
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // },
|
|
99
|
+
* // ],
|
|
100
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
101
|
+
* // broadcastId: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // },
|
|
104
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
105
|
+
* // sms: true || false,
|
|
106
|
+
* // mms: true || false,
|
|
107
|
+
* // whatsapp: true || false,
|
|
108
|
+
* // kiteAssign: "STRING_VALUE",
|
|
109
|
+
* // serviceTitle: "STRING_VALUE",
|
|
110
|
+
* // assigneeId: "STRING_VALUE",
|
|
111
|
+
* // autoRecord: true || false,
|
|
112
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
113
|
+
* // wizyGuestViewOnly: true || false,
|
|
114
|
+
* // inbox: { // InboxState
|
|
115
|
+
* // sectionIds: [ // SectionIdList // required
|
|
116
|
+
* // "STRING_VALUE",
|
|
117
|
+
* // ],
|
|
118
|
+
* // unreadCount: Number("int"), // required
|
|
119
|
+
* // mentionUnreadCount: Number("int"), // required
|
|
120
|
+
* // lastReadVisibleSeq: Number("long"),
|
|
121
|
+
* // lastReadAt: "STRING_VALUE",
|
|
122
|
+
* // hidden: true || false, // required
|
|
123
|
+
* // muted: true || false, // required
|
|
124
|
+
* // mutedUntil: "STRING_VALUE",
|
|
125
|
+
* // unreadMarkAt: Number("long"),
|
|
126
|
+
* // },
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // };
|
|
130
|
+
*
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @param QueryChannelsCommandInput - {@link QueryChannelsCommandInput}
|
|
134
|
+
* @returns {@link QueryChannelsCommandOutput}
|
|
135
|
+
* @see {@link QueryChannelsCommandInput} for command's `input` shape.
|
|
136
|
+
* @see {@link QueryChannelsCommandOutput} for command's `response` shape.
|
|
137
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link ValidationException} (client fault)
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link StreamServiceServiceException}
|
|
150
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class QueryChannelsCommand extends QueryChannelsCommand_base {
|
|
156
|
+
/** @internal type navigation helper, not in runtime. */
|
|
157
|
+
protected static __types: {
|
|
158
|
+
api: {
|
|
159
|
+
input: QueryChannelsInput;
|
|
160
|
+
output: QueryChannelsOutput;
|
|
161
|
+
};
|
|
162
|
+
sdk: {
|
|
163
|
+
input: QueryChannelsCommandInput;
|
|
164
|
+
output: QueryChannelsCommandOutput;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { RemoveChannelFromSectionInput, RemoveChannelFromSectionOutput } 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 RemoveChannelFromSectionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RemoveChannelFromSectionCommandInput extends RemoveChannelFromSectionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RemoveChannelFromSectionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RemoveChannelFromSectionCommandOutput extends RemoveChannelFromSectionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RemoveChannelFromSectionCommand_base: {
|
|
25
|
+
new (input: RemoveChannelFromSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RemoveChannelFromSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Removes a channel from a custom section for the current user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, RemoveChannelFromSectionCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, RemoveChannelFromSectionCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // RemoveChannelFromSectionInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* sectionId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new RemoveChannelFromSectionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // RemoveChannelFromSectionOutput
|
|
46
|
+
* // inbox: { // InboxState
|
|
47
|
+
* // sectionIds: [ // SectionIdList // required
|
|
48
|
+
* // "STRING_VALUE",
|
|
49
|
+
* // ],
|
|
50
|
+
* // unreadCount: Number("int"), // required
|
|
51
|
+
* // mentionUnreadCount: Number("int"), // required
|
|
52
|
+
* // lastReadVisibleSeq: Number("long"),
|
|
53
|
+
* // lastReadAt: "STRING_VALUE",
|
|
54
|
+
* // hidden: true || false, // required
|
|
55
|
+
* // muted: true || false, // required
|
|
56
|
+
* // mutedUntil: "STRING_VALUE",
|
|
57
|
+
* // unreadMarkAt: Number("long"),
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param RemoveChannelFromSectionCommandInput - {@link RemoveChannelFromSectionCommandInput}
|
|
64
|
+
* @returns {@link RemoveChannelFromSectionCommandOutput}
|
|
65
|
+
* @see {@link RemoveChannelFromSectionCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link RemoveChannelFromSectionCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link SectionNotFoundException} (client fault)
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link StreamServiceServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class RemoveChannelFromSectionCommand extends RemoveChannelFromSectionCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: RemoveChannelFromSectionInput;
|
|
94
|
+
output: RemoveChannelFromSectionOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: RemoveChannelFromSectionCommandInput;
|
|
98
|
+
output: RemoveChannelFromSectionCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { RenameSectionInput, RenameSectionOutput } 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 RenameSectionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RenameSectionCommandInput extends RenameSectionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RenameSectionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RenameSectionCommandOutput extends RenameSectionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RenameSectionCommand_base: {
|
|
25
|
+
new (input: RenameSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RenameSectionCommandInput, RenameSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: RenameSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RenameSectionCommandInput, RenameSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Renames a custom inbox section.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, RenameSectionCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, RenameSectionCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // RenameSectionInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* sectionId: "STRING_VALUE", // required
|
|
41
|
+
* name: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new RenameSectionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // RenameSectionOutput
|
|
46
|
+
* // section: { // Section
|
|
47
|
+
* // sectionId: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // type: "system" || "custom", // required
|
|
50
|
+
* // channelCount: Number("int"), // required
|
|
51
|
+
* // unread: { // SectionUnreadCounters
|
|
52
|
+
* // unmutedUnreadChannelCount: Number("int"), // required
|
|
53
|
+
* // unmutedUnreadMessageCount: Number("int"), // required
|
|
54
|
+
* // mutedUnreadMessageCount: Number("int"), // required
|
|
55
|
+
* // unreadMentionCount: Number("int"), // required
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param RenameSectionCommandInput - {@link RenameSectionCommandInput}
|
|
63
|
+
* @returns {@link RenameSectionCommandOutput}
|
|
64
|
+
* @see {@link RenameSectionCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link RenameSectionCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link SectionNotFoundException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link StreamServiceServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class RenameSectionCommand extends RenameSectionCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: RenameSectionInput;
|
|
91
|
+
output: RenameSectionOutput;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: RenameSectionCommandInput;
|
|
95
|
+
output: RenameSectionCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { SendGiphyInput, SendGiphyOutput } 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 SendGiphyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendGiphyCommandInput extends SendGiphyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendGiphyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendGiphyCommandOutput extends SendGiphyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendGiphyCommand_base: {
|
|
25
|
+
new (input: SendGiphyCommandInput): import("@smithy/smithy-client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendGiphyCommandInput): import("@smithy/smithy-client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Persists a Giphy message to a channel. Returns the full message snapshot in the same shape as one `ListMessages` item.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, SendGiphyCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, SendGiphyCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // SendGiphyInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* messageId: "STRING_VALUE",
|
|
42
|
+
* giphy: { // MessageGiphy
|
|
43
|
+
* id: "STRING_VALUE", // required
|
|
44
|
+
* size: "STRING_VALUE", // required
|
|
45
|
+
* url: "STRING_VALUE", // required
|
|
46
|
+
* height: "STRING_VALUE", // required
|
|
47
|
+
* width: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* mentions: [ // UserIdList
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* quote: { // MessageQuoteRef
|
|
53
|
+
* channelId: "STRING_VALUE", // required
|
|
54
|
+
* messageId: "STRING_VALUE", // required
|
|
55
|
+
* },
|
|
56
|
+
* silent: true || false,
|
|
57
|
+
* };
|
|
58
|
+
* const command = new SendGiphyCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // SendGiphyOutput
|
|
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
|
+
* // latestReactions: [ // ReactionList
|
|
98
|
+
* // { // Reaction
|
|
99
|
+
* // type: "STRING_VALUE", // required
|
|
100
|
+
* // userId: "STRING_VALUE", // required
|
|
101
|
+
* // messageId: "STRING_VALUE", // required
|
|
102
|
+
* // },
|
|
103
|
+
* // ],
|
|
104
|
+
* // pinned: true || false, // required
|
|
105
|
+
* // pinnedAt: "STRING_VALUE",
|
|
106
|
+
* // pinnedBy: "STRING_VALUE",
|
|
107
|
+
* // system: true || false, // required
|
|
108
|
+
* // timelineSeq: Number("long"), // required
|
|
109
|
+
* // visibleSeq: Number("long"), // required
|
|
110
|
+
* // channelVersion: Number("long"), // required
|
|
111
|
+
* // messageVersion: Number("long"), // required
|
|
112
|
+
* // createdAt: "STRING_VALUE", // required
|
|
113
|
+
* // editedAt: "STRING_VALUE",
|
|
114
|
+
* // deletedAt: "STRING_VALUE",
|
|
115
|
+
* // elements: [ // ElementsList
|
|
116
|
+
* // { // Element Union: only one key present
|
|
117
|
+
* // template: { // MessageTemplateConfig
|
|
118
|
+
* // whatsapp: { // TemplateWithParameters
|
|
119
|
+
* // name: "STRING_VALUE", // required
|
|
120
|
+
* // parameters: [ // ListTemplateParameter
|
|
121
|
+
* // { // TemplateParameter
|
|
122
|
+
* // name: "STRING_VALUE", // required
|
|
123
|
+
* // value: "STRING_VALUE", // required
|
|
124
|
+
* // },
|
|
125
|
+
* // ],
|
|
126
|
+
* // },
|
|
127
|
+
* // },
|
|
128
|
+
* // actions: [ // ActionsElementsList
|
|
129
|
+
* // { // ActionElement Union: only one key present
|
|
130
|
+
* // button: { // ButtonElement
|
|
131
|
+
* // text: "STRING_VALUE", // required
|
|
132
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
133
|
+
* // link: { // ButtonLinkHandler
|
|
134
|
+
* // url: "STRING_VALUE", // required
|
|
135
|
+
* // },
|
|
136
|
+
* // reply: { // ButtonReplyHandler
|
|
137
|
+
* // text: "STRING_VALUE",
|
|
138
|
+
* // },
|
|
139
|
+
* // action: { // ButtonActionHandler
|
|
140
|
+
* // id: "STRING_VALUE", // required
|
|
141
|
+
* // },
|
|
142
|
+
* // },
|
|
143
|
+
* // variant: "contained" || "outlined",
|
|
144
|
+
* // disabled: true || false,
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // },
|
|
149
|
+
* // ],
|
|
150
|
+
* // whatsapp: true || false,
|
|
151
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
152
|
+
* // sms: true || false,
|
|
153
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
154
|
+
* // markdown: true || false,
|
|
155
|
+
* // giphy: { // MessageGiphy
|
|
156
|
+
* // id: "STRING_VALUE", // required
|
|
157
|
+
* // size: "STRING_VALUE", // required
|
|
158
|
+
* // url: "STRING_VALUE", // required
|
|
159
|
+
* // height: "STRING_VALUE", // required
|
|
160
|
+
* // width: "STRING_VALUE", // required
|
|
161
|
+
* // },
|
|
162
|
+
* // silent: true || false,
|
|
163
|
+
* // event: "STRING_VALUE",
|
|
164
|
+
* // },
|
|
165
|
+
* // };
|
|
166
|
+
*
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @param SendGiphyCommandInput - {@link SendGiphyCommandInput}
|
|
170
|
+
* @returns {@link SendGiphyCommandOutput}
|
|
171
|
+
* @see {@link SendGiphyCommandInput} for command's `input` shape.
|
|
172
|
+
* @see {@link SendGiphyCommandOutput} for command's `response` shape.
|
|
173
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link MessageNotFoundException} (client fault)
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
180
|
+
*
|
|
181
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
184
|
+
*
|
|
185
|
+
* @throws {@link ValidationException} (client fault)
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
188
|
+
*
|
|
189
|
+
* @throws {@link StreamServiceServiceException}
|
|
190
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
191
|
+
*
|
|
192
|
+
*
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
export declare class SendGiphyCommand extends SendGiphyCommand_base {
|
|
196
|
+
/** @internal type navigation helper, not in runtime. */
|
|
197
|
+
protected static __types: {
|
|
198
|
+
api: {
|
|
199
|
+
input: SendGiphyInput;
|
|
200
|
+
output: SendGiphyOutput;
|
|
201
|
+
};
|
|
202
|
+
sdk: {
|
|
203
|
+
input: SendGiphyCommandInput;
|
|
204
|
+
output: SendGiphyCommandOutput;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
}
|