@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
@@ -0,0 +1,86 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { GetWhatsAppChannelIdInput, GetWhatsAppChannelIdOutput } 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 GetWhatsAppChannelIdCommand}.
14
+ */
15
+ export interface GetWhatsAppChannelIdCommandInput extends GetWhatsAppChannelIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetWhatsAppChannelIdCommand}.
21
+ */
22
+ export interface GetWhatsAppChannelIdCommandOutput extends GetWhatsAppChannelIdOutput, __MetadataBearer {
23
+ }
24
+ declare const GetWhatsAppChannelIdCommand_base: {
25
+ new (input: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Resolves the channel id of a WhatsApp 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, GetWhatsAppChannelIdCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, GetWhatsAppChannelIdCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // GetWhatsAppChannelIdInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * serviceUri: "STRING_VALUE", // required
41
+ * recipientId: "STRING_VALUE",
42
+ * recipientNumber: "STRING_VALUE",
43
+ * };
44
+ * const command = new GetWhatsAppChannelIdCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetWhatsAppChannelIdOutput
47
+ * // channelId: "STRING_VALUE", // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param GetWhatsAppChannelIdCommandInput - {@link GetWhatsAppChannelIdCommandInput}
53
+ * @returns {@link GetWhatsAppChannelIdCommandOutput}
54
+ * @see {@link GetWhatsAppChannelIdCommandInput} for command's `input` shape.
55
+ * @see {@link GetWhatsAppChannelIdCommandOutput} for command's `response` shape.
56
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
57
+ *
58
+ * @throws {@link ForbiddenException} (client fault)
59
+ *
60
+ * @throws {@link StreamServiceException} (server fault)
61
+ *
62
+ * @throws {@link UnauthorizedException} (client fault)
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ *
66
+ * @throws {@link RateLimitExceededException} (client fault)
67
+ *
68
+ * @throws {@link StreamServiceServiceException}
69
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
70
+ *
71
+ *
72
+ * @public
73
+ */
74
+ export declare class GetWhatsAppChannelIdCommand extends GetWhatsAppChannelIdCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: GetWhatsAppChannelIdInput;
79
+ output: GetWhatsAppChannelIdOutput;
80
+ };
81
+ sdk: {
82
+ input: GetWhatsAppChannelIdCommandInput;
83
+ output: GetWhatsAppChannelIdCommandOutput;
84
+ };
85
+ };
86
+ }
@@ -0,0 +1,84 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { HideChannelInput, HideChannelOutput } 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 HideChannelCommand}.
14
+ */
15
+ export interface HideChannelCommandInput extends HideChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link HideChannelCommand}.
21
+ */
22
+ export interface HideChannelCommandOutput extends HideChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const HideChannelCommand_base: {
25
+ new (input: HideChannelCommandInput): import("@smithy/smithy-client").CommandImpl<HideChannelCommandInput, HideChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: HideChannelCommandInput): import("@smithy/smithy-client").CommandImpl<HideChannelCommandInput, HideChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Archives a channel for the current user (`inbox.hidden = true`).
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, HideChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, HideChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // HideChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new HideChannelCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param HideChannelCommandInput - {@link HideChannelCommandInput}
49
+ * @returns {@link HideChannelCommandOutput}
50
+ * @see {@link HideChannelCommandInput} for command's `input` shape.
51
+ * @see {@link HideChannelCommandOutput} for command's `response` shape.
52
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
53
+ *
54
+ * @throws {@link ChannelNotFoundException} (client fault)
55
+ *
56
+ * @throws {@link ForbiddenException} (client fault)
57
+ *
58
+ * @throws {@link StreamServiceException} (server fault)
59
+ *
60
+ * @throws {@link UnauthorizedException} (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 HideChannelCommand extends HideChannelCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: HideChannelInput;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: HideChannelCommandInput;
81
+ output: HideChannelCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -0,0 +1,151 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { JoinChannelInput, JoinChannelOutput } 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 JoinChannelCommand}.
14
+ */
15
+ export interface JoinChannelCommandInput extends JoinChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link JoinChannelCommand}.
21
+ */
22
+ export interface JoinChannelCommandOutput extends JoinChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const JoinChannelCommand_base: {
25
+ new (input: JoinChannelCommandInput): import("@smithy/smithy-client").CommandImpl<JoinChannelCommandInput, JoinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: JoinChannelCommandInput): import("@smithy/smithy-client").CommandImpl<JoinChannelCommandInput, JoinChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Joins a public channel.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, JoinChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, JoinChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // JoinChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * silent: true || false,
42
+ * };
43
+ * const command = new JoinChannelCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // JoinChannelOutput
46
+ * // channel: { // Channel
47
+ * // channelId: "STRING_VALUE", // required
48
+ * // channelType: "direct" || "group", // required
49
+ * // membersCount: Number("int"), // required
50
+ * // createdAt: "STRING_VALUE", // required
51
+ * // createdBy: "STRING_VALUE", // required
52
+ * // updatedAt: "STRING_VALUE",
53
+ * // channelVersion: Number("long"), // required
54
+ * // lastActivityAt: "STRING_VALUE", // required
55
+ * // lastMessage: { // LastMessagePreview
56
+ * // messageId: "STRING_VALUE", // required
57
+ * // userId: "STRING_VALUE", // required
58
+ * // text: "STRING_VALUE",
59
+ * // createdAt: "STRING_VALUE", // required
60
+ * // },
61
+ * // company: "STRING_VALUE",
62
+ * // kite: true || false,
63
+ * // kiteTarget: "STRING_VALUE",
64
+ * // kiteVariant: "STRING_VALUE",
65
+ * // kiteServiceName: "STRING_VALUE",
66
+ * // kiteDefaultSubject: "STRING_VALUE",
67
+ * // service: "STRING_VALUE",
68
+ * // serviceRecipient: "STRING_VALUE",
69
+ * // telephony: true || false,
70
+ * // external: true || false,
71
+ * // subject: "STRING_VALUE",
72
+ * // description: "STRING_VALUE",
73
+ * // picture: "STRING_VALUE",
74
+ * // pictureColor: "STRING_VALUE",
75
+ * // access: "private" || "public",
76
+ * // broadcast: true || false,
77
+ * // context: { // ChannelContext
78
+ * // source: "kite",
79
+ * // target: "STRING_VALUE",
80
+ * // events: [ // ChannelContextEventList
81
+ * // { // ChannelContextEvent
82
+ * // id: "STRING_VALUE",
83
+ * // owner: "STRING_VALUE",
84
+ * // start: "STRING_VALUE",
85
+ * // end: "STRING_VALUE",
86
+ * // summary: "STRING_VALUE",
87
+ * // attendees: [ // ChannelContextEventAttendeeList
88
+ * // { // ChannelContextEventAttendee
89
+ * // email: "STRING_VALUE", // required
90
+ * // name: "STRING_VALUE",
91
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
92
+ * // },
93
+ * // ],
94
+ * // },
95
+ * // ],
96
+ * // ptt: { // ChannelContextPushToTalk
97
+ * // broadcastId: "STRING_VALUE",
98
+ * // },
99
+ * // },
100
+ * // whatsappStatus: "24h_channel_closed",
101
+ * // sms: true || false,
102
+ * // mms: true || false,
103
+ * // whatsapp: true || false,
104
+ * // kiteAssign: "STRING_VALUE",
105
+ * // serviceTitle: "STRING_VALUE",
106
+ * // assigneeId: "STRING_VALUE",
107
+ * // autoRecord: true || false,
108
+ * // transcriptionLanguage: "STRING_VALUE",
109
+ * // wizyGuestViewOnly: true || false,
110
+ * // },
111
+ * // };
112
+ *
113
+ * ```
114
+ *
115
+ * @param JoinChannelCommandInput - {@link JoinChannelCommandInput}
116
+ * @returns {@link JoinChannelCommandOutput}
117
+ * @see {@link JoinChannelCommandInput} for command's `input` shape.
118
+ * @see {@link JoinChannelCommandOutput} for command's `response` shape.
119
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
120
+ *
121
+ * @throws {@link ChannelNotFoundException} (client fault)
122
+ *
123
+ * @throws {@link ForbiddenException} (client fault)
124
+ *
125
+ * @throws {@link StreamServiceException} (server fault)
126
+ *
127
+ * @throws {@link UnauthorizedException} (client fault)
128
+ *
129
+ * @throws {@link ValidationException} (client fault)
130
+ *
131
+ * @throws {@link RateLimitExceededException} (client fault)
132
+ *
133
+ * @throws {@link StreamServiceServiceException}
134
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
135
+ *
136
+ *
137
+ * @public
138
+ */
139
+ export declare class JoinChannelCommand extends JoinChannelCommand_base {
140
+ /** @internal type navigation helper, not in runtime. */
141
+ protected static __types: {
142
+ api: {
143
+ input: JoinChannelInput;
144
+ output: JoinChannelOutput;
145
+ };
146
+ sdk: {
147
+ input: JoinChannelCommandInput;
148
+ output: JoinChannelCommandOutput;
149
+ };
150
+ };
151
+ }
@@ -0,0 +1,85 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { LeaveChannelInput, LeaveChannelOutput } 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 LeaveChannelCommand}.
14
+ */
15
+ export interface LeaveChannelCommandInput extends LeaveChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link LeaveChannelCommand}.
21
+ */
22
+ export interface LeaveChannelCommandOutput extends LeaveChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const LeaveChannelCommand_base: {
25
+ new (input: LeaveChannelCommandInput): import("@smithy/smithy-client").CommandImpl<LeaveChannelCommandInput, LeaveChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: LeaveChannelCommandInput): import("@smithy/smithy-client").CommandImpl<LeaveChannelCommandInput, LeaveChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Removes the current user 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, LeaveChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, LeaveChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // LeaveChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * silent: true || false,
42
+ * };
43
+ * const command = new LeaveChannelCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param LeaveChannelCommandInput - {@link LeaveChannelCommandInput}
50
+ * @returns {@link LeaveChannelCommandOutput}
51
+ * @see {@link LeaveChannelCommandInput} for command's `input` shape.
52
+ * @see {@link LeaveChannelCommandOutput} for command's `response` shape.
53
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
54
+ *
55
+ * @throws {@link ChannelNotFoundException} (client fault)
56
+ *
57
+ * @throws {@link ForbiddenException} (client fault)
58
+ *
59
+ * @throws {@link StreamServiceException} (server fault)
60
+ *
61
+ * @throws {@link UnauthorizedException} (client fault)
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
67
+ * @throws {@link StreamServiceServiceException}
68
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class LeaveChannelCommand extends LeaveChannelCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: LeaveChannelInput;
78
+ output: {};
79
+ };
80
+ sdk: {
81
+ input: LeaveChannelCommandInput;
82
+ output: LeaveChannelCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -0,0 +1,94 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { ListChannelMembersInput, ListChannelMembersOutput } 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 ListChannelMembersCommand}.
14
+ */
15
+ export interface ListChannelMembersCommandInput extends ListChannelMembersInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListChannelMembersCommand}.
21
+ */
22
+ export interface ListChannelMembersCommandOutput extends ListChannelMembersOutput, __MetadataBearer {
23
+ }
24
+ declare const ListChannelMembersCommand_base: {
25
+ new (input: ListChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersCommandInput, ListChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersCommandInput, ListChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists channel members.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, ListChannelMembersCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, ListChannelMembersCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // ListChannelMembersInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * limit: Number("int"),
42
+ * offset: Number("int"),
43
+ * };
44
+ * const command = new ListChannelMembersCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListChannelMembersOutput
47
+ * // members: [ // ChannelMemberList // required
48
+ * // { // ChannelMember
49
+ * // userId: "STRING_VALUE", // required
50
+ * // joinedAt: "STRING_VALUE", // required
51
+ * // role: "member" || "supervisor", // required
52
+ * // },
53
+ * // ],
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListChannelMembersCommandInput - {@link ListChannelMembersCommandInput}
59
+ * @returns {@link ListChannelMembersCommandOutput}
60
+ * @see {@link ListChannelMembersCommandInput} for command's `input` shape.
61
+ * @see {@link ListChannelMembersCommandOutput} for command's `response` shape.
62
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
63
+ *
64
+ * @throws {@link ChannelNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link StreamServiceException} (server fault)
67
+ *
68
+ * @throws {@link UnauthorizedException} (client fault)
69
+ *
70
+ * @throws {@link ForbiddenException} (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 ListChannelMembersCommand extends ListChannelMembersCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: ListChannelMembersInput;
87
+ output: ListChannelMembersOutput;
88
+ };
89
+ sdk: {
90
+ input: ListChannelMembersCommandInput;
91
+ output: ListChannelMembersCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -0,0 +1,92 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { ListChannelMembersReadStatusInput, ListChannelMembersReadStatusOutput } 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 ListChannelMembersReadStatusCommand}.
14
+ */
15
+ export interface ListChannelMembersReadStatusCommandInput extends ListChannelMembersReadStatusInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListChannelMembersReadStatusCommand}.
21
+ */
22
+ export interface ListChannelMembersReadStatusCommandOutput extends ListChannelMembersReadStatusOutput, __MetadataBearer {
23
+ }
24
+ declare const ListChannelMembersReadStatusCommand_base: {
25
+ new (input: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists member read pointers for channels with at most 100 members.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, ListChannelMembersReadStatusCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, ListChannelMembersReadStatusCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // ListChannelMembersReadStatusInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ListChannelMembersReadStatusCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListChannelMembersReadStatusOutput
45
+ * // members: [ // ChannelMemberReadStatusList // required
46
+ * // { // ChannelMemberReadStatus
47
+ * // userId: "STRING_VALUE", // required
48
+ * // lastReadAt: "STRING_VALUE",
49
+ * // lastReadVisibleSeq: Number("long"),
50
+ * // },
51
+ * // ],
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ListChannelMembersReadStatusCommandInput - {@link ListChannelMembersReadStatusCommandInput}
57
+ * @returns {@link ListChannelMembersReadStatusCommandOutput}
58
+ * @see {@link ListChannelMembersReadStatusCommandInput} for command's `input` shape.
59
+ * @see {@link ListChannelMembersReadStatusCommandOutput} for command's `response` shape.
60
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
61
+ *
62
+ * @throws {@link ChannelNotFoundException} (client fault)
63
+ *
64
+ * @throws {@link StreamServiceException} (server fault)
65
+ *
66
+ * @throws {@link UnauthorizedException} (client fault)
67
+ *
68
+ * @throws {@link ForbiddenException} (client fault)
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ *
72
+ * @throws {@link RateLimitExceededException} (client fault)
73
+ *
74
+ * @throws {@link StreamServiceServiceException}
75
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class ListChannelMembersReadStatusCommand extends ListChannelMembersReadStatusCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: ListChannelMembersReadStatusInput;
85
+ output: ListChannelMembersReadStatusOutput;
86
+ };
87
+ sdk: {
88
+ input: ListChannelMembersReadStatusCommandInput;
89
+ output: ListChannelMembersReadStatusCommandOutput;
90
+ };
91
+ };
92
+ }
@@ -47,13 +47,11 @@ declare const ListChannelsCommand_base: {
47
47
  * // channels: [ // InboxChannelList // required
48
48
  * // { // InboxChannel
49
49
  * // channelId: "STRING_VALUE", // required
50
- * // channelType: "direct" || "group" || "external", // required
51
- * // subject: "STRING_VALUE",
52
- * // picture: "STRING_VALUE",
53
- * // memberCount: Number("int"), // required
50
+ * // channelType: "direct" || "group", // required
51
+ * // membersCount: Number("int"), // required
54
52
  * // createdAt: "STRING_VALUE", // required
55
53
  * // createdBy: "STRING_VALUE", // required
56
- * // updatedAt: "STRING_VALUE", // required
54
+ * // updatedAt: "STRING_VALUE",
57
55
  * // channelVersion: Number("long"), // required
58
56
  * // lastActivityAt: "STRING_VALUE", // required
59
57
  * // lastMessage: { // LastMessagePreview
@@ -62,6 +60,55 @@ declare const ListChannelsCommand_base: {
62
60
  * // text: "STRING_VALUE",
63
61
  * // createdAt: "STRING_VALUE", // required
64
62
  * // },
63
+ * // company: "STRING_VALUE",
64
+ * // kite: true || false,
65
+ * // kiteTarget: "STRING_VALUE",
66
+ * // kiteVariant: "STRING_VALUE",
67
+ * // kiteServiceName: "STRING_VALUE",
68
+ * // kiteDefaultSubject: "STRING_VALUE",
69
+ * // service: "STRING_VALUE",
70
+ * // serviceRecipient: "STRING_VALUE",
71
+ * // telephony: true || false,
72
+ * // external: true || false,
73
+ * // subject: "STRING_VALUE",
74
+ * // description: "STRING_VALUE",
75
+ * // picture: "STRING_VALUE",
76
+ * // pictureColor: "STRING_VALUE",
77
+ * // access: "private" || "public",
78
+ * // broadcast: true || false,
79
+ * // context: { // ChannelContext
80
+ * // source: "kite",
81
+ * // target: "STRING_VALUE",
82
+ * // events: [ // ChannelContextEventList
83
+ * // { // ChannelContextEvent
84
+ * // id: "STRING_VALUE",
85
+ * // owner: "STRING_VALUE",
86
+ * // start: "STRING_VALUE",
87
+ * // end: "STRING_VALUE",
88
+ * // summary: "STRING_VALUE",
89
+ * // attendees: [ // ChannelContextEventAttendeeList
90
+ * // { // ChannelContextEventAttendee
91
+ * // email: "STRING_VALUE", // required
92
+ * // name: "STRING_VALUE",
93
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
94
+ * // },
95
+ * // ],
96
+ * // },
97
+ * // ],
98
+ * // ptt: { // ChannelContextPushToTalk
99
+ * // broadcastId: "STRING_VALUE",
100
+ * // },
101
+ * // },
102
+ * // whatsappStatus: "24h_channel_closed",
103
+ * // sms: true || false,
104
+ * // mms: true || false,
105
+ * // whatsapp: true || false,
106
+ * // kiteAssign: "STRING_VALUE",
107
+ * // serviceTitle: "STRING_VALUE",
108
+ * // assigneeId: "STRING_VALUE",
109
+ * // autoRecord: true || false,
110
+ * // transcriptionLanguage: "STRING_VALUE",
111
+ * // wizyGuestViewOnly: true || false,
65
112
  * // inbox: { // InboxState
66
113
  * // sectionIds: [ // SectionIdList // required
67
114
  * // "STRING_VALUE",
@@ -88,7 +135,7 @@ declare const ListChannelsCommand_base: {
88
135
  * @see {@link ListChannelsCommandOutput} for command's `response` shape.
89
136
  * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
90
137
  *
91
- * @throws {@link InternalServerError} (server fault)
138
+ * @throws {@link StreamServiceException} (server fault)
92
139
  *
93
140
  * @throws {@link UnauthorizedException} (client fault)
94
141
  *