@wildix/stream-client 0.0.4 → 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 +254 -49
- package/dist-cjs/protocols/Aws_restJson1.js +1954 -130
- 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 +242 -46
- package/dist-es/protocols/Aws_restJson1.js +1842 -112
- 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/{RemoveReactionCommand.d.ts → DeleteMessageReactionCommand.d.ts} +26 -27
- 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 +35 -35
- package/dist-types/commands/GetMessageCommand.d.ts +4 -5
- 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 +35 -35
- package/dist-types/commands/ListMentionsCommand.d.ts +5 -6
- package/dist-types/commands/ListMessagesCommand.d.ts +4 -5
- 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 +4 -5
- 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/{EditMessageCommand.d.ts → SendGiphyCommand.d.ts} +40 -41
- package/dist-types/commands/SendMessageCommand.d.ts +52 -12
- package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +27 -28
- 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 +4 -5
- 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 +3076 -563
- package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
- package/package.json +1 -1
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { CreateKiteChannelInput, CreateKiteChannelOutput } 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 CreateKiteChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateKiteChannelCommandInput extends CreateKiteChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateKiteChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateKiteChannelCommandOutput extends CreateKiteChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateKiteChannelCommand_base: {
|
|
25
|
+
new (input: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new Kite channel for a widget target or agent email.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, CreateKiteChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, CreateKiteChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // CreateKiteChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE",
|
|
41
|
+
* targetId: "STRING_VALUE", // required
|
|
42
|
+
* targetRouteId: "STRING_VALUE",
|
|
43
|
+
* welcomeMessages: [ // WelcomeMessageList
|
|
44
|
+
* { // WelcomeMessage
|
|
45
|
+
* text: "STRING_VALUE",
|
|
46
|
+
* elements: [ // ElementsList
|
|
47
|
+
* { // Element Union: only one key present
|
|
48
|
+
* template: { // MessageTemplateConfig
|
|
49
|
+
* whatsapp: { // TemplateWithParameters
|
|
50
|
+
* name: "STRING_VALUE", // required
|
|
51
|
+
* parameters: [ // ListTemplateParameter
|
|
52
|
+
* { // TemplateParameter
|
|
53
|
+
* name: "STRING_VALUE", // required
|
|
54
|
+
* value: "STRING_VALUE", // required
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* actions: [ // ActionsElementsList
|
|
60
|
+
* { // ActionElement Union: only one key present
|
|
61
|
+
* button: { // ButtonElement
|
|
62
|
+
* text: "STRING_VALUE", // required
|
|
63
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
64
|
+
* link: { // ButtonLinkHandler
|
|
65
|
+
* url: "STRING_VALUE", // required
|
|
66
|
+
* },
|
|
67
|
+
* reply: { // ButtonReplyHandler
|
|
68
|
+
* text: "STRING_VALUE",
|
|
69
|
+
* },
|
|
70
|
+
* action: { // ButtonActionHandler
|
|
71
|
+
* id: "STRING_VALUE", // required
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* variant: "contained" || "outlined",
|
|
75
|
+
* disabled: true || false,
|
|
76
|
+
* },
|
|
77
|
+
* },
|
|
78
|
+
* ],
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* attachments: [ // MessageAttachmentRequestList
|
|
82
|
+
* { // MessageAttachmentRequest
|
|
83
|
+
* fsId: "STRING_VALUE", // required
|
|
84
|
+
* mime: "STRING_VALUE",
|
|
85
|
+
* name: "STRING_VALUE", // required
|
|
86
|
+
* size: Number("long"), // required
|
|
87
|
+
* width: Number("int"),
|
|
88
|
+
* height: Number("int"),
|
|
89
|
+
* thumbnail: "STRING_VALUE",
|
|
90
|
+
* },
|
|
91
|
+
* ],
|
|
92
|
+
* quote: { // MessageQuoteRef
|
|
93
|
+
* channelId: "STRING_VALUE", // required
|
|
94
|
+
* messageId: "STRING_VALUE", // required
|
|
95
|
+
* },
|
|
96
|
+
* forward: { // MessageForwardRef
|
|
97
|
+
* channelId: "STRING_VALUE", // required
|
|
98
|
+
* messageId: "STRING_VALUE", // required
|
|
99
|
+
* },
|
|
100
|
+
* markdown: true || false,
|
|
101
|
+
* silent: true || false,
|
|
102
|
+
* whatsapp: true || false,
|
|
103
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
104
|
+
* sms: true || false,
|
|
105
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
106
|
+
* messageId: "STRING_VALUE", // required
|
|
107
|
+
* mentions: [ // UserIdList
|
|
108
|
+
* "STRING_VALUE",
|
|
109
|
+
* ],
|
|
110
|
+
* userId: "STRING_VALUE", // required
|
|
111
|
+
* },
|
|
112
|
+
* ],
|
|
113
|
+
* initialMessage: { // InitialMessage
|
|
114
|
+
* text: "STRING_VALUE",
|
|
115
|
+
* elements: [
|
|
116
|
+
* {// Union: only one key present
|
|
117
|
+
* template: {
|
|
118
|
+
* whatsapp: {
|
|
119
|
+
* name: "STRING_VALUE", // required
|
|
120
|
+
* parameters: [
|
|
121
|
+
* {
|
|
122
|
+
* name: "STRING_VALUE", // required
|
|
123
|
+
* value: "STRING_VALUE", // required
|
|
124
|
+
* },
|
|
125
|
+
* ],
|
|
126
|
+
* },
|
|
127
|
+
* },
|
|
128
|
+
* actions: [
|
|
129
|
+
* {// Union: only one key present
|
|
130
|
+
* button: {
|
|
131
|
+
* text: "STRING_VALUE", // required
|
|
132
|
+
* handler: {// Union: only one key present
|
|
133
|
+
* link: {
|
|
134
|
+
* url: "STRING_VALUE", // required
|
|
135
|
+
* },
|
|
136
|
+
* reply: {
|
|
137
|
+
* text: "STRING_VALUE",
|
|
138
|
+
* },
|
|
139
|
+
* action: {
|
|
140
|
+
* id: "STRING_VALUE", // required
|
|
141
|
+
* },
|
|
142
|
+
* },
|
|
143
|
+
* variant: "contained" || "outlined",
|
|
144
|
+
* disabled: true || false,
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* ],
|
|
148
|
+
* },
|
|
149
|
+
* ],
|
|
150
|
+
* attachments: [
|
|
151
|
+
* {
|
|
152
|
+
* fsId: "STRING_VALUE", // required
|
|
153
|
+
* mime: "STRING_VALUE",
|
|
154
|
+
* name: "STRING_VALUE", // required
|
|
155
|
+
* size: Number("long"), // required
|
|
156
|
+
* width: Number("int"),
|
|
157
|
+
* height: Number("int"),
|
|
158
|
+
* thumbnail: "STRING_VALUE",
|
|
159
|
+
* },
|
|
160
|
+
* ],
|
|
161
|
+
* quote: {
|
|
162
|
+
* channelId: "STRING_VALUE", // required
|
|
163
|
+
* messageId: "STRING_VALUE", // required
|
|
164
|
+
* },
|
|
165
|
+
* forward: {
|
|
166
|
+
* channelId: "STRING_VALUE", // required
|
|
167
|
+
* messageId: "STRING_VALUE", // required
|
|
168
|
+
* },
|
|
169
|
+
* markdown: true || false,
|
|
170
|
+
* silent: true || false,
|
|
171
|
+
* whatsapp: true || false,
|
|
172
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
173
|
+
* sms: true || false,
|
|
174
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
175
|
+
* messageId: "STRING_VALUE", // required
|
|
176
|
+
* mentions: [
|
|
177
|
+
* "STRING_VALUE",
|
|
178
|
+
* ],
|
|
179
|
+
* },
|
|
180
|
+
* };
|
|
181
|
+
* const command = new CreateKiteChannelCommand(input);
|
|
182
|
+
* const response = await client.send(command);
|
|
183
|
+
* // { // CreateKiteChannelOutput
|
|
184
|
+
* // channel: { // Channel
|
|
185
|
+
* // channelId: "STRING_VALUE", // required
|
|
186
|
+
* // channelType: "direct" || "group", // required
|
|
187
|
+
* // membersCount: Number("int"), // required
|
|
188
|
+
* // createdAt: "STRING_VALUE", // required
|
|
189
|
+
* // createdBy: "STRING_VALUE", // required
|
|
190
|
+
* // updatedAt: "STRING_VALUE",
|
|
191
|
+
* // channelVersion: Number("long"), // required
|
|
192
|
+
* // lastActivityAt: "STRING_VALUE", // required
|
|
193
|
+
* // lastMessage: { // LastMessagePreview
|
|
194
|
+
* // messageId: "STRING_VALUE", // required
|
|
195
|
+
* // userId: "STRING_VALUE", // required
|
|
196
|
+
* // text: "STRING_VALUE",
|
|
197
|
+
* // createdAt: "STRING_VALUE", // required
|
|
198
|
+
* // },
|
|
199
|
+
* // company: "STRING_VALUE",
|
|
200
|
+
* // kite: true || false,
|
|
201
|
+
* // kiteTarget: "STRING_VALUE",
|
|
202
|
+
* // kiteVariant: "STRING_VALUE",
|
|
203
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
204
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
205
|
+
* // service: "STRING_VALUE",
|
|
206
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
207
|
+
* // telephony: true || false,
|
|
208
|
+
* // external: true || false,
|
|
209
|
+
* // subject: "STRING_VALUE",
|
|
210
|
+
* // description: "STRING_VALUE",
|
|
211
|
+
* // picture: "STRING_VALUE",
|
|
212
|
+
* // pictureColor: "STRING_VALUE",
|
|
213
|
+
* // access: "private" || "public",
|
|
214
|
+
* // broadcast: true || false,
|
|
215
|
+
* // context: { // ChannelContext
|
|
216
|
+
* // source: "kite",
|
|
217
|
+
* // target: "STRING_VALUE",
|
|
218
|
+
* // events: [ // ChannelContextEventList
|
|
219
|
+
* // { // ChannelContextEvent
|
|
220
|
+
* // id: "STRING_VALUE",
|
|
221
|
+
* // owner: "STRING_VALUE",
|
|
222
|
+
* // start: "STRING_VALUE",
|
|
223
|
+
* // end: "STRING_VALUE",
|
|
224
|
+
* // summary: "STRING_VALUE",
|
|
225
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
226
|
+
* // { // ChannelContextEventAttendee
|
|
227
|
+
* // email: "STRING_VALUE", // required
|
|
228
|
+
* // name: "STRING_VALUE",
|
|
229
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
230
|
+
* // },
|
|
231
|
+
* // ],
|
|
232
|
+
* // },
|
|
233
|
+
* // ],
|
|
234
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
235
|
+
* // broadcastId: "STRING_VALUE",
|
|
236
|
+
* // },
|
|
237
|
+
* // },
|
|
238
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
239
|
+
* // sms: true || false,
|
|
240
|
+
* // mms: true || false,
|
|
241
|
+
* // whatsapp: true || false,
|
|
242
|
+
* // kiteAssign: "STRING_VALUE",
|
|
243
|
+
* // serviceTitle: "STRING_VALUE",
|
|
244
|
+
* // assigneeId: "STRING_VALUE",
|
|
245
|
+
* // autoRecord: true || false,
|
|
246
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
247
|
+
* // wizyGuestViewOnly: true || false,
|
|
248
|
+
* // },
|
|
249
|
+
* // };
|
|
250
|
+
*
|
|
251
|
+
* ```
|
|
252
|
+
*
|
|
253
|
+
* @param CreateKiteChannelCommandInput - {@link CreateKiteChannelCommandInput}
|
|
254
|
+
* @returns {@link CreateKiteChannelCommandOutput}
|
|
255
|
+
* @see {@link CreateKiteChannelCommandInput} for command's `input` shape.
|
|
256
|
+
* @see {@link CreateKiteChannelCommandOutput} for command's `response` shape.
|
|
257
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
258
|
+
*
|
|
259
|
+
* @throws {@link TargetNotFoundException} (client fault)
|
|
260
|
+
*
|
|
261
|
+
* @throws {@link TargetNotEligibleException} (client fault)
|
|
262
|
+
*
|
|
263
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
264
|
+
*
|
|
265
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
266
|
+
*
|
|
267
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
268
|
+
*
|
|
269
|
+
* @throws {@link ValidationException} (client fault)
|
|
270
|
+
*
|
|
271
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
272
|
+
*
|
|
273
|
+
* @throws {@link StreamServiceServiceException}
|
|
274
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
275
|
+
*
|
|
276
|
+
*
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export declare class CreateKiteChannelCommand extends CreateKiteChannelCommand_base {
|
|
280
|
+
/** @internal type navigation helper, not in runtime. */
|
|
281
|
+
protected static __types: {
|
|
282
|
+
api: {
|
|
283
|
+
input: CreateKiteChannelInput;
|
|
284
|
+
output: CreateKiteChannelOutput;
|
|
285
|
+
};
|
|
286
|
+
sdk: {
|
|
287
|
+
input: CreateKiteChannelCommandInput;
|
|
288
|
+
output: CreateKiteChannelCommandOutput;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { CreateSectionInput, CreateSectionOutput } 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 CreateSectionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSectionCommandInput extends CreateSectionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSectionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSectionCommandOutput extends CreateSectionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateSectionCommand_base: {
|
|
25
|
+
new (input: CreateSectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSectionCommandInput, CreateSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateSectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSectionCommandInput, CreateSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates 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, CreateSectionCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, CreateSectionCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // CreateSectionInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* sectionId: "STRING_VALUE", // required
|
|
41
|
+
* name: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateSectionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateSectionOutput
|
|
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 CreateSectionCommandInput - {@link CreateSectionCommandInput}
|
|
63
|
+
* @returns {@link CreateSectionCommandOutput}
|
|
64
|
+
* @see {@link CreateSectionCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link CreateSectionCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ValidationException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link StreamServiceServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class CreateSectionCommand extends CreateSectionCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: CreateSectionInput;
|
|
89
|
+
output: CreateSectionOutput;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: CreateSectionCommandInput;
|
|
93
|
+
output: CreateSectionCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { DeleteChannelInput, DeleteChannelOutput } 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 DeleteChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteChannelCommandInput extends DeleteChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteChannelCommandOutput extends DeleteChannelOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteChannelCommand_base: {
|
|
25
|
+
new (input: DeleteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelCommandInput, DeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelCommandInput, DeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Deletes a channel. Idempotent when the channel is already gone.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, DeleteChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, DeleteChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // DeleteChannelInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteChannelCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteChannelCommandInput - {@link DeleteChannelCommandInput}
|
|
49
|
+
* @returns {@link DeleteChannelCommandOutput}
|
|
50
|
+
* @see {@link DeleteChannelCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteChannelCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link StreamServiceServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class DeleteChannelCommand extends DeleteChannelCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: DeleteChannelInput;
|
|
75
|
+
output: {};
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: DeleteChannelCommandInput;
|
|
79
|
+
output: DeleteChannelCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
2
|
+
import { DeleteChannelMemberInput, DeleteChannelMemberOutput } 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 DeleteChannelMemberCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteChannelMemberCommandInput extends DeleteChannelMemberInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteChannelMemberCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteChannelMemberCommandOutput extends DeleteChannelMemberOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteChannelMemberCommand_base: {
|
|
25
|
+
new (input: DeleteChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Removes one member from a channel.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, DeleteChannelMemberCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, DeleteChannelMemberCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* const client = new StreamServiceClient(config);
|
|
37
|
+
* const input = { // DeleteChannelMemberInput
|
|
38
|
+
* companyId: "STRING_VALUE",
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* channelId: "STRING_VALUE", // required
|
|
41
|
+
* memberId: "STRING_VALUE", // required
|
|
42
|
+
* silent: true || false,
|
|
43
|
+
* };
|
|
44
|
+
* const command = new DeleteChannelMemberCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeleteChannelMemberCommandInput - {@link DeleteChannelMemberCommandInput}
|
|
51
|
+
* @returns {@link DeleteChannelMemberCommandOutput}
|
|
52
|
+
* @see {@link DeleteChannelMemberCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeleteChannelMemberCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link MemberNotFoundException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link StreamServiceServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class DeleteChannelMemberCommand extends DeleteChannelMemberCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: DeleteChannelMemberInput;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: DeleteChannelMemberCommandInput;
|
|
85
|
+
output: DeleteChannelMemberCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -56,7 +56,7 @@ declare const DeleteMessageCommand_base: {
|
|
|
56
56
|
*
|
|
57
57
|
* @throws {@link MessageNotFoundException} (client fault)
|
|
58
58
|
*
|
|
59
|
-
* @throws {@link
|
|
59
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link UnauthorizedException} (client fault)
|
|
62
62
|
*
|