@wildix/stream-client 0.0.4 → 0.0.6

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 (170) 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 +255 -49
  53. package/dist-cjs/protocols/Aws_restJson1.js +1954 -130
  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 +243 -46
  106. package/dist-es/protocols/Aws_restJson1.js +1842 -112
  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/{RemoveReactionCommand.d.ts → DeleteMessageReactionCommand.d.ts} +27 -28
  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 +35 -35
  125. package/dist-types/commands/GetMessageCommand.d.ts +5 -6
  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 +35 -35
  141. package/dist-types/commands/ListMentionsCommand.d.ts +6 -7
  142. package/dist-types/commands/ListMessagesCommand.d.ts +5 -6
  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 +5 -6
  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/{EditMessageCommand.d.ts → SendGiphyCommand.d.ts} +41 -42
  155. package/dist-types/commands/SendMessageCommand.d.ts +53 -13
  156. package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +28 -29
  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 +5 -6
  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 +3077 -563
  169. package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
  170. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
- import { RemoveReactionInput, RemoveReactionOutput } from "../models/models_0";
2
+ import { DeleteMessageReactionInput, DeleteMessageReactionOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -10,20 +10,20 @@ export { $Command };
10
10
  /**
11
11
  * @public
12
12
  *
13
- * The input for {@link RemoveReactionCommand}.
13
+ * The input for {@link DeleteMessageReactionCommand}.
14
14
  */
15
- export interface RemoveReactionCommandInput extends RemoveReactionInput {
15
+ export interface DeleteMessageReactionCommandInput extends DeleteMessageReactionInput {
16
16
  }
17
17
  /**
18
18
  * @public
19
19
  *
20
- * The output of {@link RemoveReactionCommand}.
20
+ * The output of {@link DeleteMessageReactionCommand}.
21
21
  */
22
- export interface RemoveReactionCommandOutput extends RemoveReactionOutput, __MetadataBearer {
22
+ export interface DeleteMessageReactionCommandOutput extends DeleteMessageReactionOutput, __MetadataBearer {
23
23
  }
24
- declare const RemoveReactionCommand_base: {
25
- new (input: RemoveReactionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveReactionCommandInput, RemoveReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: RemoveReactionCommandInput): import("@smithy/smithy-client").CommandImpl<RemoveReactionCommandInput, RemoveReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
24
+ declare const DeleteMessageReactionCommand_base: {
25
+ new (input: DeleteMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -31,23 +31,23 @@ declare const RemoveReactionCommand_base: {
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
34
- * import { StreamServiceClient, RemoveReactionCommand } from "@wildix/stream-client"; // ES Modules import
35
- * // const { StreamServiceClient, RemoveReactionCommand } = require("@wildix/stream-client"); // CommonJS import
34
+ * import { StreamServiceClient, DeleteMessageReactionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, DeleteMessageReactionCommand } = require("@wildix/stream-client"); // CommonJS import
36
36
  * const client = new StreamServiceClient(config);
37
- * const input = { // RemoveReactionInput
37
+ * const input = { // DeleteMessageReactionInput
38
38
  * companyId: "STRING_VALUE",
39
39
  * userId: "STRING_VALUE",
40
40
  * channelId: "STRING_VALUE", // required
41
41
  * messageId: "STRING_VALUE", // required
42
42
  * type: "STRING_VALUE", // required
43
43
  * };
44
- * const command = new RemoveReactionCommand(input);
44
+ * const command = new DeleteMessageReactionCommand(input);
45
45
  * const response = await client.send(command);
46
- * // { // RemoveReactionOutput
46
+ * // { // DeleteMessageReactionOutput
47
47
  * // message: { // Message
48
48
  * // messageId: "STRING_VALUE", // required
49
49
  * // userId: "STRING_VALUE", // required
50
- * // messageType: "regular" || "system", // required
50
+ * // messageType: "regular" || "system" || "deleted", // required
51
51
  * // text: "STRING_VALUE",
52
52
  * // attachments: [ // MessageAttachmentList // required
53
53
  * // { // MessageAttachment
@@ -82,10 +82,9 @@ declare const RemoveReactionCommand_base: {
82
82
  * // },
83
83
  * // latestReactions: [ // ReactionList
84
84
  * // { // Reaction
85
- * // type: "STRING_VALUE",
86
- * // userId: "STRING_VALUE",
87
- * // messageId: "STRING_VALUE",
88
- * // user: "STRING_VALUE",
85
+ * // type: "STRING_VALUE", // required
86
+ * // userId: "STRING_VALUE", // required
87
+ * // messageId: "STRING_VALUE", // required
89
88
  * // },
90
89
  * // ],
91
90
  * // pinned: true || false, // required
@@ -153,17 +152,17 @@ declare const RemoveReactionCommand_base: {
153
152
  *
154
153
  * ```
155
154
  *
156
- * @param RemoveReactionCommandInput - {@link RemoveReactionCommandInput}
157
- * @returns {@link RemoveReactionCommandOutput}
158
- * @see {@link RemoveReactionCommandInput} for command's `input` shape.
159
- * @see {@link RemoveReactionCommandOutput} for command's `response` shape.
155
+ * @param DeleteMessageReactionCommandInput - {@link DeleteMessageReactionCommandInput}
156
+ * @returns {@link DeleteMessageReactionCommandOutput}
157
+ * @see {@link DeleteMessageReactionCommandInput} for command's `input` shape.
158
+ * @see {@link DeleteMessageReactionCommandOutput} for command's `response` shape.
160
159
  * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
161
160
  *
162
161
  * @throws {@link ChannelNotFoundException} (client fault)
163
162
  *
164
163
  * @throws {@link MessageNotFoundException} (client fault)
165
164
  *
166
- * @throws {@link InternalServerError} (server fault)
165
+ * @throws {@link StreamServiceException} (server fault)
167
166
  *
168
167
  * @throws {@link UnauthorizedException} (client fault)
169
168
  *
@@ -179,16 +178,16 @@ declare const RemoveReactionCommand_base: {
179
178
  *
180
179
  * @public
181
180
  */
182
- export declare class RemoveReactionCommand extends RemoveReactionCommand_base {
181
+ export declare class DeleteMessageReactionCommand extends DeleteMessageReactionCommand_base {
183
182
  /** @internal type navigation helper, not in runtime. */
184
183
  protected static __types: {
185
184
  api: {
186
- input: RemoveReactionInput;
187
- output: RemoveReactionOutput;
185
+ input: DeleteMessageReactionInput;
186
+ output: DeleteMessageReactionOutput;
188
187
  };
189
188
  sdk: {
190
- input: RemoveReactionCommandInput;
191
- output: RemoveReactionCommandOutput;
189
+ input: DeleteMessageReactionCommandInput;
190
+ output: DeleteMessageReactionCommandOutput;
192
191
  };
193
192
  };
194
193
  }
@@ -0,0 +1,84 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { DeleteSectionInput, DeleteSectionOutput } 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 DeleteSectionCommand}.
14
+ */
15
+ export interface DeleteSectionCommandInput extends DeleteSectionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteSectionCommand}.
21
+ */
22
+ export interface DeleteSectionCommandOutput extends DeleteSectionOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteSectionCommand_base: {
25
+ new (input: DeleteSectionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSectionCommandInput, DeleteSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteSectionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSectionCommandInput, DeleteSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Deletes 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, DeleteSectionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, DeleteSectionCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // DeleteSectionInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * sectionId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteSectionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteSectionCommandInput - {@link DeleteSectionCommandInput}
49
+ * @returns {@link DeleteSectionCommandOutput}
50
+ * @see {@link DeleteSectionCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteSectionCommandOutput} for command's `response` shape.
52
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
53
+ *
54
+ * @throws {@link SectionNotFoundException} (client fault)
55
+ *
56
+ * @throws {@link StreamServiceException} (server fault)
57
+ *
58
+ * @throws {@link UnauthorizedException} (client fault)
59
+ *
60
+ * @throws {@link ForbiddenException} (client fault)
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link RateLimitExceededException} (client fault)
65
+ *
66
+ * @throws {@link StreamServiceServiceException}
67
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DeleteSectionCommand extends DeleteSectionCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: DeleteSectionInput;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DeleteSectionCommandInput;
81
+ output: DeleteSectionCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -0,0 +1,150 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { GetChannelInput, GetChannelOutput } 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 GetChannelCommand}.
14
+ */
15
+ export interface GetChannelCommandInput extends GetChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetChannelCommand}.
21
+ */
22
+ export interface GetChannelCommandOutput extends GetChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const GetChannelCommand_base: {
25
+ new (input: GetChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetChannelCommandInput, GetChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetChannelCommandInput, GetChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns one channel with per-user inbox state and last-message preview.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, GetChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, GetChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // GetChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetChannelCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetChannelOutput
45
+ * // channel: { // Channel
46
+ * // channelId: "STRING_VALUE", // required
47
+ * // channelType: "direct" || "group", // required
48
+ * // membersCount: Number("int"), // required
49
+ * // createdAt: "STRING_VALUE", // required
50
+ * // createdBy: "STRING_VALUE", // required
51
+ * // updatedAt: "STRING_VALUE",
52
+ * // channelVersion: Number("long"), // required
53
+ * // lastActivityAt: "STRING_VALUE", // required
54
+ * // lastMessage: { // LastMessagePreview
55
+ * // messageId: "STRING_VALUE", // required
56
+ * // userId: "STRING_VALUE", // required
57
+ * // text: "STRING_VALUE",
58
+ * // createdAt: "STRING_VALUE", // required
59
+ * // },
60
+ * // company: "STRING_VALUE",
61
+ * // kite: true || false,
62
+ * // kiteTarget: "STRING_VALUE",
63
+ * // kiteVariant: "STRING_VALUE",
64
+ * // kiteServiceName: "STRING_VALUE",
65
+ * // kiteDefaultSubject: "STRING_VALUE",
66
+ * // service: "STRING_VALUE",
67
+ * // serviceRecipient: "STRING_VALUE",
68
+ * // telephony: true || false,
69
+ * // external: true || false,
70
+ * // subject: "STRING_VALUE",
71
+ * // description: "STRING_VALUE",
72
+ * // picture: "STRING_VALUE",
73
+ * // pictureColor: "STRING_VALUE",
74
+ * // access: "private" || "public",
75
+ * // broadcast: true || false,
76
+ * // context: { // ChannelContext
77
+ * // source: "kite",
78
+ * // target: "STRING_VALUE",
79
+ * // events: [ // ChannelContextEventList
80
+ * // { // ChannelContextEvent
81
+ * // id: "STRING_VALUE",
82
+ * // owner: "STRING_VALUE",
83
+ * // start: "STRING_VALUE",
84
+ * // end: "STRING_VALUE",
85
+ * // summary: "STRING_VALUE",
86
+ * // attendees: [ // ChannelContextEventAttendeeList
87
+ * // { // ChannelContextEventAttendee
88
+ * // email: "STRING_VALUE", // required
89
+ * // name: "STRING_VALUE",
90
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
91
+ * // },
92
+ * // ],
93
+ * // },
94
+ * // ],
95
+ * // ptt: { // ChannelContextPushToTalk
96
+ * // broadcastId: "STRING_VALUE",
97
+ * // },
98
+ * // },
99
+ * // whatsappStatus: "24h_channel_closed",
100
+ * // sms: true || false,
101
+ * // mms: true || false,
102
+ * // whatsapp: true || false,
103
+ * // kiteAssign: "STRING_VALUE",
104
+ * // serviceTitle: "STRING_VALUE",
105
+ * // assigneeId: "STRING_VALUE",
106
+ * // autoRecord: true || false,
107
+ * // transcriptionLanguage: "STRING_VALUE",
108
+ * // wizyGuestViewOnly: true || false,
109
+ * // },
110
+ * // };
111
+ *
112
+ * ```
113
+ *
114
+ * @param GetChannelCommandInput - {@link GetChannelCommandInput}
115
+ * @returns {@link GetChannelCommandOutput}
116
+ * @see {@link GetChannelCommandInput} for command's `input` shape.
117
+ * @see {@link GetChannelCommandOutput} for command's `response` shape.
118
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
119
+ *
120
+ * @throws {@link ChannelNotFoundException} (client fault)
121
+ *
122
+ * @throws {@link StreamServiceException} (server fault)
123
+ *
124
+ * @throws {@link UnauthorizedException} (client fault)
125
+ *
126
+ * @throws {@link ForbiddenException} (client fault)
127
+ *
128
+ * @throws {@link ValidationException} (client fault)
129
+ *
130
+ * @throws {@link RateLimitExceededException} (client fault)
131
+ *
132
+ * @throws {@link StreamServiceServiceException}
133
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
134
+ *
135
+ *
136
+ * @public
137
+ */
138
+ export declare class GetChannelCommand extends GetChannelCommand_base {
139
+ /** @internal type navigation helper, not in runtime. */
140
+ protected static __types: {
141
+ api: {
142
+ input: GetChannelInput;
143
+ output: GetChannelOutput;
144
+ };
145
+ sdk: {
146
+ input: GetChannelCommandInput;
147
+ output: GetChannelCommandOutput;
148
+ };
149
+ };
150
+ }
@@ -0,0 +1,93 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { GetChannelMemberInput, GetChannelMemberOutput } 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 GetChannelMemberCommand}.
14
+ */
15
+ export interface GetChannelMemberCommandInput extends GetChannelMemberInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetChannelMemberCommand}.
21
+ */
22
+ export interface GetChannelMemberCommandOutput extends GetChannelMemberOutput, __MetadataBearer {
23
+ }
24
+ declare const GetChannelMemberCommand_base: {
25
+ new (input: GetChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<GetChannelMemberCommandInput, GetChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<GetChannelMemberCommandInput, GetChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns one channel member.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, GetChannelMemberCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, GetChannelMemberCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // GetChannelMemberInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * memberId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetChannelMemberCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetChannelMemberOutput
46
+ * // member: { // ChannelMember
47
+ * // userId: "STRING_VALUE", // required
48
+ * // joinedAt: "STRING_VALUE", // required
49
+ * // role: "member" || "supervisor", // required
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetChannelMemberCommandInput - {@link GetChannelMemberCommandInput}
56
+ * @returns {@link GetChannelMemberCommandOutput}
57
+ * @see {@link GetChannelMemberCommandInput} for command's `input` shape.
58
+ * @see {@link GetChannelMemberCommandOutput} for command's `response` shape.
59
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
60
+ *
61
+ * @throws {@link ChannelNotFoundException} (client fault)
62
+ *
63
+ * @throws {@link MemberNotFoundException} (client fault)
64
+ *
65
+ * @throws {@link StreamServiceException} (server fault)
66
+ *
67
+ * @throws {@link UnauthorizedException} (client fault)
68
+ *
69
+ * @throws {@link ForbiddenException} (client fault)
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ *
73
+ * @throws {@link RateLimitExceededException} (client fault)
74
+ *
75
+ * @throws {@link StreamServiceServiceException}
76
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class GetChannelMemberCommand extends GetChannelMemberCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: GetChannelMemberInput;
86
+ output: GetChannelMemberOutput;
87
+ };
88
+ sdk: {
89
+ input: GetChannelMemberCommandInput;
90
+ output: GetChannelMemberCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,90 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { GetDirectChannelIdInput, GetDirectChannelIdOutput } 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 GetDirectChannelIdCommand}.
14
+ */
15
+ export interface GetDirectChannelIdCommandInput extends GetDirectChannelIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDirectChannelIdCommand}.
21
+ */
22
+ export interface GetDirectChannelIdCommandOutput extends GetDirectChannelIdOutput, __MetadataBearer {
23
+ }
24
+ declare const GetDirectChannelIdCommand_base: {
25
+ new (input: GetDirectChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetDirectChannelIdCommandInput]): import("@smithy/smithy-client").CommandImpl<GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Resolves the channel id of a direct channel without creating it.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, GetDirectChannelIdCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, GetDirectChannelIdCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // GetDirectChannelIdInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * memberId: "STRING_VALUE",
41
+ * memberToInvite: { // UserToInvite
42
+ * email: "STRING_VALUE",
43
+ * phone: "STRING_VALUE",
44
+ * name: "STRING_VALUE",
45
+ * colleague: true || false,
46
+ * },
47
+ * };
48
+ * const command = new GetDirectChannelIdCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // GetDirectChannelIdOutput
51
+ * // channelId: "STRING_VALUE", // required
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetDirectChannelIdCommandInput - {@link GetDirectChannelIdCommandInput}
57
+ * @returns {@link GetDirectChannelIdCommandOutput}
58
+ * @see {@link GetDirectChannelIdCommandInput} for command's `input` shape.
59
+ * @see {@link GetDirectChannelIdCommandOutput} for command's `response` shape.
60
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
61
+ *
62
+ * @throws {@link ForbiddenException} (client fault)
63
+ *
64
+ * @throws {@link StreamServiceException} (server fault)
65
+ *
66
+ * @throws {@link UnauthorizedException} (client fault)
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ *
70
+ * @throws {@link RateLimitExceededException} (client fault)
71
+ *
72
+ * @throws {@link StreamServiceServiceException}
73
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class GetDirectChannelIdCommand extends GetDirectChannelIdCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: GetDirectChannelIdInput;
83
+ output: GetDirectChannelIdOutput;
84
+ };
85
+ sdk: {
86
+ input: GetDirectChannelIdCommandInput;
87
+ output: GetDirectChannelIdCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -0,0 +1,94 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { GetFilePresignedDownloadUrlInput, GetFilePresignedDownloadUrlOutput } 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 GetFilePresignedDownloadUrlCommand}.
14
+ */
15
+ export interface GetFilePresignedDownloadUrlCommandInput extends GetFilePresignedDownloadUrlInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetFilePresignedDownloadUrlCommand}.
21
+ */
22
+ export interface GetFilePresignedDownloadUrlCommandOutput extends GetFilePresignedDownloadUrlOutput, __MetadataBearer {
23
+ }
24
+ declare const GetFilePresignedDownloadUrlCommand_base: {
25
+ new (input: GetFilePresignedDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetFilePresignedDownloadUrlCommandInput, GetFilePresignedDownloadUrlCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetFilePresignedDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetFilePresignedDownloadUrlCommandInput, GetFilePresignedDownloadUrlCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns a presigned URL for downloading a file attached to a message.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, GetFilePresignedDownloadUrlCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, GetFilePresignedDownloadUrlCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // GetFilePresignedDownloadUrlInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * messageId: "STRING_VALUE", // required
42
+ * fsId: "STRING_VALUE", // required
43
+ * category: "channels" || "recordings" || "wizyconfRecordings",
44
+ * download: 0 || 1,
45
+ * };
46
+ * const command = new GetFilePresignedDownloadUrlCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // GetFilePresignedDownloadUrlOutput
49
+ * // presignedDownloadUrl: "STRING_VALUE", // required
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param GetFilePresignedDownloadUrlCommandInput - {@link GetFilePresignedDownloadUrlCommandInput}
55
+ * @returns {@link GetFilePresignedDownloadUrlCommandOutput}
56
+ * @see {@link GetFilePresignedDownloadUrlCommandInput} for command's `input` shape.
57
+ * @see {@link GetFilePresignedDownloadUrlCommandOutput} for command's `response` shape.
58
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
59
+ *
60
+ * @throws {@link ChannelNotFoundException} (client fault)
61
+ *
62
+ * @throws {@link MessageNotFoundException} (client fault)
63
+ *
64
+ * @throws {@link FileNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link ForbiddenException} (client fault)
67
+ *
68
+ * @throws {@link StreamServiceException} (server fault)
69
+ *
70
+ * @throws {@link UnauthorizedException} (client fault)
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ *
74
+ * @throws {@link RateLimitExceededException} (client fault)
75
+ *
76
+ * @throws {@link StreamServiceServiceException}
77
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class GetFilePresignedDownloadUrlCommand extends GetFilePresignedDownloadUrlCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: GetFilePresignedDownloadUrlInput;
87
+ output: GetFilePresignedDownloadUrlOutput;
88
+ };
89
+ sdk: {
90
+ input: GetFilePresignedDownloadUrlCommandInput;
91
+ output: GetFilePresignedDownloadUrlCommandOutput;
92
+ };
93
+ };
94
+ }