@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.
Files changed (173) hide show
  1. package/dist-cjs/StreamService.js +98 -6
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
  4. package/dist-cjs/commands/AssignChannelCommand.js +21 -0
  5. package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
  6. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  7. package/dist-cjs/commands/CreateSectionCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
  9. package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
  10. package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
  12. package/dist-cjs/commands/GetChannelCommand.js +21 -0
  13. package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
  14. package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
  15. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
  17. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  18. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  19. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  20. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  21. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  22. package/dist-cjs/commands/GetTokenCommand.js +21 -0
  23. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
  24. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  25. package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
  26. package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
  27. package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
  28. package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
  29. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  30. package/dist-cjs/commands/MarkReadCommand.js +21 -0
  31. package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
  32. package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
  33. package/dist-cjs/commands/MuteChannelCommand.js +21 -0
  34. package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
  35. package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
  36. package/dist-cjs/commands/PinChannelCommand.js +21 -0
  37. package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
  38. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
  39. package/dist-cjs/commands/RenameSectionCommand.js +21 -0
  40. package/dist-cjs/commands/SendGiphyCommand.js +21 -0
  41. package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
  42. package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
  43. package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
  44. package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
  45. package/dist-cjs/commands/ShowChannelCommand.js +21 -0
  46. package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
  47. package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
  48. package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
  49. package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
  50. package/dist-cjs/commands/UploadFileCommand.js +21 -0
  51. package/dist-cjs/commands/index.js +49 -3
  52. package/dist-cjs/models/models_0.js +293 -26
  53. package/dist-cjs/protocols/Aws_restJson1.js +1955 -131
  54. package/dist-es/StreamService.js +98 -6
  55. package/dist-es/commands/AddChannelMemberCommand.js +17 -0
  56. package/dist-es/commands/AddChannelMembersCommand.js +17 -0
  57. package/dist-es/commands/AssignChannelCommand.js +17 -0
  58. package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
  59. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  60. package/dist-es/commands/CreateSectionCommand.js +17 -0
  61. package/dist-es/commands/DeleteChannelCommand.js +17 -0
  62. package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
  63. package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
  64. package/dist-es/commands/DeleteSectionCommand.js +17 -0
  65. package/dist-es/commands/GetChannelCommand.js +17 -0
  66. package/dist-es/commands/GetChannelMemberCommand.js +17 -0
  67. package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
  68. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
  70. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  71. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  72. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  73. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  74. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  75. package/dist-es/commands/GetTokenCommand.js +17 -0
  76. package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
  77. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  78. package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
  79. package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
  80. package/dist-es/commands/LeaveChannelCommand.js +17 -0
  81. package/dist-es/commands/ListChannelMembersCommand.js +17 -0
  82. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  83. package/dist-es/commands/MarkReadCommand.js +17 -0
  84. package/dist-es/commands/MarkUnreadCommand.js +17 -0
  85. package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
  86. package/dist-es/commands/MuteChannelCommand.js +17 -0
  87. package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
  88. package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
  89. package/dist-es/commands/PinChannelCommand.js +17 -0
  90. package/dist-es/commands/QueryChannelsCommand.js +17 -0
  91. package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
  92. package/dist-es/commands/RenameSectionCommand.js +17 -0
  93. package/dist-es/commands/SendGiphyCommand.js +17 -0
  94. package/dist-es/commands/SendMessageReactionCommand.js +17 -0
  95. package/dist-es/commands/SendSystemMessageCommand.js +17 -0
  96. package/dist-es/commands/SendTypingStartCommand.js +17 -0
  97. package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
  98. package/dist-es/commands/ShowChannelCommand.js +17 -0
  99. package/dist-es/commands/UnmuteChannelCommand.js +17 -0
  100. package/dist-es/commands/UnpinChannelCommand.js +17 -0
  101. package/dist-es/commands/UpdateChannelCommand.js +17 -0
  102. package/dist-es/commands/UpdateMessageCommand.js +17 -0
  103. package/dist-es/commands/UploadFileCommand.js +17 -0
  104. package/dist-es/commands/index.js +49 -3
  105. package/dist-es/models/models_0.js +281 -23
  106. package/dist-es/protocols/Aws_restJson1.js +1843 -113
  107. package/dist-types/StreamService.d.ts +341 -15
  108. package/dist-types/StreamServiceClient.d.ts +51 -5
  109. package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
  110. package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
  111. package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
  112. package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
  113. package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
  114. package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
  115. package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
  116. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
  117. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  118. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +193 -0
  119. package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
  120. package/dist-types/commands/GetChannelCommand.d.ts +150 -0
  121. package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
  122. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
  123. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
  124. package/dist-types/commands/GetInboxCommand.d.ts +53 -6
  125. package/dist-types/commands/GetMessageCommand.d.ts +57 -1
  126. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
  127. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  128. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
  129. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  130. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
  131. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
  132. package/dist-types/commands/GetTokenCommand.d.ts +85 -0
  133. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
  134. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
  135. package/dist-types/commands/HideChannelCommand.d.ts +84 -0
  136. package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
  137. package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
  138. package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
  139. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
  140. package/dist-types/commands/ListChannelsCommand.d.ts +53 -6
  141. package/dist-types/commands/ListMentionsCommand.d.ts +58 -2
  142. package/dist-types/commands/ListMessagesCommand.d.ts +57 -1
  143. package/dist-types/commands/MarkReadCommand.d.ts +99 -0
  144. package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
  145. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
  146. package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
  147. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
  148. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
  149. package/dist-types/commands/PinChannelCommand.d.ts +87 -0
  150. package/dist-types/commands/PinMessageCommand.d.ts +57 -1
  151. package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
  152. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
  153. package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
  154. package/dist-types/commands/SendGiphyCommand.d.ts +207 -0
  155. package/dist-types/commands/SendMessageCommand.d.ts +105 -8
  156. package/dist-types/commands/SendMessageReactionCommand.d.ts +193 -0
  157. package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
  158. package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
  159. package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
  160. package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
  161. package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
  162. package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
  163. package/dist-types/commands/UnpinMessageCommand.d.ts +57 -1
  164. package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
  165. package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
  166. package/dist-types/commands/UploadFileCommand.d.ts +94 -0
  167. package/dist-types/commands/index.d.ts +49 -3
  168. package/dist-types/models/models_0.d.ts +3256 -403
  169. package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
  170. package/package.json +1 -1
  171. package/dist-types/commands/AddReactionCommand.d.ts +0 -137
  172. package/dist-types/commands/EditMessageCommand.d.ts +0 -151
  173. package/dist-types/commands/RemoveReactionCommand.d.ts +0 -137
@@ -88,6 +88,13 @@ declare const ListMentionsCommand_base: {
88
88
  * // reactionCounts: { // ReactionCounts // required
89
89
  * // "<keys>": Number("int"),
90
90
  * // },
91
+ * // latestReactions: [ // ReactionList
92
+ * // { // Reaction
93
+ * // type: "STRING_VALUE", // required
94
+ * // userId: "STRING_VALUE", // required
95
+ * // messageId: "STRING_VALUE", // required
96
+ * // },
97
+ * // ],
91
98
  * // pinned: true || false, // required
92
99
  * // pinnedAt: "STRING_VALUE",
93
100
  * // pinnedBy: "STRING_VALUE",
@@ -99,10 +106,59 @@ declare const ListMentionsCommand_base: {
99
106
  * // createdAt: "STRING_VALUE", // required
100
107
  * // editedAt: "STRING_VALUE",
101
108
  * // deletedAt: "STRING_VALUE",
109
+ * // elements: [ // ElementsList
110
+ * // { // Element Union: only one key present
111
+ * // template: { // MessageTemplateConfig
112
+ * // whatsapp: { // TemplateWithParameters
113
+ * // name: "STRING_VALUE", // required
114
+ * // parameters: [ // ListTemplateParameter
115
+ * // { // TemplateParameter
116
+ * // name: "STRING_VALUE", // required
117
+ * // value: "STRING_VALUE", // required
118
+ * // },
119
+ * // ],
120
+ * // },
121
+ * // },
122
+ * // actions: [ // ActionsElementsList
123
+ * // { // ActionElement Union: only one key present
124
+ * // button: { // ButtonElement
125
+ * // text: "STRING_VALUE", // required
126
+ * // handler: { // ButtonHandler Union: only one key present
127
+ * // link: { // ButtonLinkHandler
128
+ * // url: "STRING_VALUE", // required
129
+ * // },
130
+ * // reply: { // ButtonReplyHandler
131
+ * // text: "STRING_VALUE",
132
+ * // },
133
+ * // action: { // ButtonActionHandler
134
+ * // id: "STRING_VALUE", // required
135
+ * // },
136
+ * // },
137
+ * // variant: "contained" || "outlined",
138
+ * // disabled: true || false,
139
+ * // },
140
+ * // },
141
+ * // ],
142
+ * // },
143
+ * // ],
144
+ * // whatsapp: true || false,
145
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
146
+ * // sms: true || false,
147
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
148
+ * // markdown: true || false,
149
+ * // giphy: { // MessageGiphy
150
+ * // id: "STRING_VALUE", // required
151
+ * // size: "STRING_VALUE", // required
152
+ * // url: "STRING_VALUE", // required
153
+ * // height: "STRING_VALUE", // required
154
+ * // width: "STRING_VALUE", // required
155
+ * // },
156
+ * // silent: true || false,
157
+ * // event: "STRING_VALUE",
102
158
  * // },
103
159
  * // channel: { // MentionChannelPreview
104
160
  * // channelId: "STRING_VALUE", // required
105
- * // channelType: "direct" || "group" || "external", // required
161
+ * // channelType: "direct" || "group", // required
106
162
  * // subject: "STRING_VALUE",
107
163
  * // picture: "STRING_VALUE",
108
164
  * // memberCount: Number("int"), // required
@@ -122,7 +178,7 @@ declare const ListMentionsCommand_base: {
122
178
  * @see {@link ListMentionsCommandOutput} for command's `response` shape.
123
179
  * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
124
180
  *
125
- * @throws {@link InternalServerError} (server fault)
181
+ * @throws {@link StreamServiceException} (server fault)
126
182
  *
127
183
  * @throws {@link UnauthorizedException} (client fault)
128
184
  *
@@ -81,6 +81,13 @@ declare const ListMessagesCommand_base: {
81
81
  * // reactionCounts: { // ReactionCounts // required
82
82
  * // "<keys>": Number("int"),
83
83
  * // },
84
+ * // latestReactions: [ // ReactionList
85
+ * // { // Reaction
86
+ * // type: "STRING_VALUE", // required
87
+ * // userId: "STRING_VALUE", // required
88
+ * // messageId: "STRING_VALUE", // required
89
+ * // },
90
+ * // ],
84
91
  * // pinned: true || false, // required
85
92
  * // pinnedAt: "STRING_VALUE",
86
93
  * // pinnedBy: "STRING_VALUE",
@@ -92,6 +99,55 @@ declare const ListMessagesCommand_base: {
92
99
  * // createdAt: "STRING_VALUE", // required
93
100
  * // editedAt: "STRING_VALUE",
94
101
  * // deletedAt: "STRING_VALUE",
102
+ * // elements: [ // ElementsList
103
+ * // { // Element Union: only one key present
104
+ * // template: { // MessageTemplateConfig
105
+ * // whatsapp: { // TemplateWithParameters
106
+ * // name: "STRING_VALUE", // required
107
+ * // parameters: [ // ListTemplateParameter
108
+ * // { // TemplateParameter
109
+ * // name: "STRING_VALUE", // required
110
+ * // value: "STRING_VALUE", // required
111
+ * // },
112
+ * // ],
113
+ * // },
114
+ * // },
115
+ * // actions: [ // ActionsElementsList
116
+ * // { // ActionElement Union: only one key present
117
+ * // button: { // ButtonElement
118
+ * // text: "STRING_VALUE", // required
119
+ * // handler: { // ButtonHandler Union: only one key present
120
+ * // link: { // ButtonLinkHandler
121
+ * // url: "STRING_VALUE", // required
122
+ * // },
123
+ * // reply: { // ButtonReplyHandler
124
+ * // text: "STRING_VALUE",
125
+ * // },
126
+ * // action: { // ButtonActionHandler
127
+ * // id: "STRING_VALUE", // required
128
+ * // },
129
+ * // },
130
+ * // variant: "contained" || "outlined",
131
+ * // disabled: true || false,
132
+ * // },
133
+ * // },
134
+ * // ],
135
+ * // },
136
+ * // ],
137
+ * // whatsapp: true || false,
138
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
139
+ * // sms: true || false,
140
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
141
+ * // markdown: true || false,
142
+ * // giphy: { // MessageGiphy
143
+ * // id: "STRING_VALUE", // required
144
+ * // size: "STRING_VALUE", // required
145
+ * // url: "STRING_VALUE", // required
146
+ * // height: "STRING_VALUE", // required
147
+ * // width: "STRING_VALUE", // required
148
+ * // },
149
+ * // silent: true || false,
150
+ * // event: "STRING_VALUE",
95
151
  * // },
96
152
  * // ],
97
153
  * // };
@@ -106,7 +162,7 @@ declare const ListMessagesCommand_base: {
106
162
  *
107
163
  * @throws {@link ChannelNotFoundException} (client fault)
108
164
  *
109
- * @throws {@link InternalServerError} (server fault)
165
+ * @throws {@link StreamServiceException} (server fault)
110
166
  *
111
167
  * @throws {@link UnauthorizedException} (client fault)
112
168
  *
@@ -0,0 +1,99 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { MarkReadInput, MarkReadOutput } 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 MarkReadCommand}.
14
+ */
15
+ export interface MarkReadCommandInput extends MarkReadInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link MarkReadCommand}.
21
+ */
22
+ export interface MarkReadCommandOutput extends MarkReadOutput, __MetadataBearer {
23
+ }
24
+ declare const MarkReadCommand_base: {
25
+ new (input: MarkReadCommandInput): import("@smithy/smithy-client").CommandImpl<MarkReadCommandInput, MarkReadCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: MarkReadCommandInput): import("@smithy/smithy-client").CommandImpl<MarkReadCommandInput, MarkReadCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Marks the channel read up to the latest visible message 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, MarkReadCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, MarkReadCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // MarkReadInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * lastReadVisibleSeq: Number("long"),
42
+ * };
43
+ * const command = new MarkReadCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // MarkReadOutput
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 MarkReadCommandInput - {@link MarkReadCommandInput}
64
+ * @returns {@link MarkReadCommandOutput}
65
+ * @see {@link MarkReadCommandInput} for command's `input` shape.
66
+ * @see {@link MarkReadCommandOutput} 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 StreamServiceException} (server fault)
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ *
75
+ * @throws {@link ForbiddenException} (client fault)
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ *
79
+ * @throws {@link RateLimitExceededException} (client fault)
80
+ *
81
+ * @throws {@link StreamServiceServiceException}
82
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class MarkReadCommand extends MarkReadCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: MarkReadInput;
92
+ output: MarkReadOutput;
93
+ };
94
+ sdk: {
95
+ input: MarkReadCommandInput;
96
+ output: MarkReadCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -0,0 +1,103 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { MarkUnreadInput, MarkUnreadOutput } 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 MarkUnreadCommand}.
14
+ */
15
+ export interface MarkUnreadCommandInput extends MarkUnreadInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link MarkUnreadCommand}.
21
+ */
22
+ export interface MarkUnreadCommandOutput extends MarkUnreadOutput, __MetadataBearer {
23
+ }
24
+ declare const MarkUnreadCommand_base: {
25
+ new (input: MarkUnreadCommandInput): import("@smithy/smithy-client").CommandImpl<MarkUnreadCommandInput, MarkUnreadCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: MarkUnreadCommandInput): import("@smithy/smithy-client").CommandImpl<MarkUnreadCommandInput, MarkUnreadCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Marks the channel unread for the current user from the resolved read pointer.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, MarkUnreadCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, MarkUnreadCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // MarkUnreadInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * messageId: "STRING_VALUE",
42
+ * unreadMarkAt: Number("long"),
43
+ * force: true || false,
44
+ * };
45
+ * const command = new MarkUnreadCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // MarkUnreadOutput
48
+ * // inbox: { // InboxState
49
+ * // sectionIds: [ // SectionIdList // required
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // unreadCount: Number("int"), // required
53
+ * // mentionUnreadCount: Number("int"), // required
54
+ * // lastReadVisibleSeq: Number("long"),
55
+ * // lastReadAt: "STRING_VALUE",
56
+ * // hidden: true || false, // required
57
+ * // muted: true || false, // required
58
+ * // mutedUntil: "STRING_VALUE",
59
+ * // unreadMarkAt: Number("long"),
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param MarkUnreadCommandInput - {@link MarkUnreadCommandInput}
66
+ * @returns {@link MarkUnreadCommandOutput}
67
+ * @see {@link MarkUnreadCommandInput} for command's `input` shape.
68
+ * @see {@link MarkUnreadCommandOutput} for command's `response` shape.
69
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
70
+ *
71
+ * @throws {@link ChannelNotFoundException} (client fault)
72
+ *
73
+ * @throws {@link MarkUnreadChannelsLimitReachedException} (client fault)
74
+ *
75
+ * @throws {@link StreamServiceException} (server fault)
76
+ *
77
+ * @throws {@link UnauthorizedException} (client fault)
78
+ *
79
+ * @throws {@link ForbiddenException} (client fault)
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ *
83
+ * @throws {@link RateLimitExceededException} (client fault)
84
+ *
85
+ * @throws {@link StreamServiceServiceException}
86
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class MarkUnreadCommand extends MarkUnreadCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: MarkUnreadInput;
96
+ output: MarkUnreadOutput;
97
+ };
98
+ sdk: {
99
+ input: MarkUnreadCommandInput;
100
+ output: MarkUnreadCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,101 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { MoveChannelToSectionInput, MoveChannelToSectionOutput } 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 MoveChannelToSectionCommand}.
14
+ */
15
+ export interface MoveChannelToSectionCommandInput extends MoveChannelToSectionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link MoveChannelToSectionCommand}.
21
+ */
22
+ export interface MoveChannelToSectionCommandOutput extends MoveChannelToSectionOutput, __MetadataBearer {
23
+ }
24
+ declare const MoveChannelToSectionCommand_base: {
25
+ new (input: MoveChannelToSectionCommandInput): import("@smithy/smithy-client").CommandImpl<MoveChannelToSectionCommandInput, MoveChannelToSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: MoveChannelToSectionCommandInput): import("@smithy/smithy-client").CommandImpl<MoveChannelToSectionCommandInput, MoveChannelToSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Adds a channel to 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, MoveChannelToSectionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, MoveChannelToSectionCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // MoveChannelToSectionInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * sectionId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new MoveChannelToSectionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // MoveChannelToSectionOutput
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 MoveChannelToSectionCommandInput - {@link MoveChannelToSectionCommandInput}
64
+ * @returns {@link MoveChannelToSectionCommandOutput}
65
+ * @see {@link MoveChannelToSectionCommandInput} for command's `input` shape.
66
+ * @see {@link MoveChannelToSectionCommandOutput} 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 MoveChannelToSectionCommand extends MoveChannelToSectionCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: MoveChannelToSectionInput;
94
+ output: MoveChannelToSectionOutput;
95
+ };
96
+ sdk: {
97
+ input: MoveChannelToSectionCommandInput;
98
+ output: MoveChannelToSectionCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -0,0 +1,99 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { MuteChannelInput, MuteChannelOutput } 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 MuteChannelCommand}.
14
+ */
15
+ export interface MuteChannelCommandInput extends MuteChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link MuteChannelCommand}.
21
+ */
22
+ export interface MuteChannelCommandOutput extends MuteChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const MuteChannelCommand_base: {
25
+ new (input: MuteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<MuteChannelCommandInput, MuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: MuteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<MuteChannelCommandInput, MuteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Mutes a channel 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, MuteChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, MuteChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // MuteChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * mutedUntil: "STRING_VALUE",
42
+ * };
43
+ * const command = new MuteChannelCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // MuteChannelOutput
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 MuteChannelCommandInput - {@link MuteChannelCommandInput}
64
+ * @returns {@link MuteChannelCommandOutput}
65
+ * @see {@link MuteChannelCommandInput} for command's `input` shape.
66
+ * @see {@link MuteChannelCommandOutput} 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 StreamServiceException} (server fault)
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ *
75
+ * @throws {@link ForbiddenException} (client fault)
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ *
79
+ * @throws {@link RateLimitExceededException} (client fault)
80
+ *
81
+ * @throws {@link StreamServiceServiceException}
82
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class MuteChannelCommand extends MuteChannelCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: MuteChannelInput;
92
+ output: MuteChannelOutput;
93
+ };
94
+ sdk: {
95
+ input: MuteChannelCommandInput;
96
+ output: MuteChannelCommandOutput;
97
+ };
98
+ };
99
+ }