@aws-sdk/client-chime-sdk-messaging 3.297.0 → 3.298.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/ChimeSDKMessaging.js +15 -0
- package/dist-cjs/commands/AssociateChannelFlowCommand.js +2 -3
- package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +1 -1
- package/dist-cjs/commands/ChannelFlowCallbackCommand.js +1 -1
- package/dist-cjs/commands/CreateChannelBanCommand.js +1 -1
- package/dist-cjs/commands/CreateChannelCommand.js +1 -1
- package/dist-cjs/commands/CreateChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/CreateChannelMembershipCommand.js +1 -1
- package/dist-cjs/commands/CreateChannelModeratorCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelBanCommand.js +2 -3
- package/dist-cjs/commands/DeleteChannelCommand.js +2 -3
- package/dist-cjs/commands/DeleteChannelFlowCommand.js +2 -3
- package/dist-cjs/commands/DeleteChannelMembershipCommand.js +2 -3
- package/dist-cjs/commands/DeleteChannelMessageCommand.js +2 -3
- package/dist-cjs/commands/DeleteChannelModeratorCommand.js +2 -3
- package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-cjs/commands/DescribeChannelBanCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelMembershipCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelModeratorCommand.js +1 -1
- package/dist-cjs/commands/DisassociateChannelFlowCommand.js +2 -3
- package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +1 -1
- package/dist-cjs/commands/GetChannelMessageCommand.js +1 -1
- package/dist-cjs/commands/GetChannelMessageStatusCommand.js +2 -3
- package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +2 -3
- package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -1
- package/dist-cjs/commands/PutChannelExpirationSettingsCommand.js +45 -0
- package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-cjs/commands/RedactChannelMessageCommand.js +2 -3
- package/dist-cjs/commands/SendChannelMessageCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +1 -1
- package/dist-cjs/commands/UpdateChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/UpdateChannelMessageCommand.js +1 -1
- package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +2 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +12 -211
- package/dist-cjs/protocols/Aws_restJson1.js +107 -2
- package/dist-es/ChimeSDKMessaging.js +15 -0
- package/dist-es/commands/AssociateChannelFlowCommand.js +2 -3
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +2 -2
- package/dist-es/commands/ChannelFlowCallbackCommand.js +2 -2
- package/dist-es/commands/CreateChannelBanCommand.js +2 -2
- package/dist-es/commands/CreateChannelCommand.js +2 -2
- package/dist-es/commands/CreateChannelFlowCommand.js +2 -2
- package/dist-es/commands/CreateChannelMembershipCommand.js +2 -2
- package/dist-es/commands/CreateChannelModeratorCommand.js +2 -2
- package/dist-es/commands/DeleteChannelBanCommand.js +2 -3
- package/dist-es/commands/DeleteChannelCommand.js +2 -3
- package/dist-es/commands/DeleteChannelFlowCommand.js +2 -3
- package/dist-es/commands/DeleteChannelMembershipCommand.js +2 -3
- package/dist-es/commands/DeleteChannelMessageCommand.js +2 -3
- package/dist-es/commands/DeleteChannelModeratorCommand.js +2 -3
- package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-es/commands/DescribeChannelBanCommand.js +2 -2
- package/dist-es/commands/DescribeChannelCommand.js +2 -2
- package/dist-es/commands/DescribeChannelFlowCommand.js +2 -2
- package/dist-es/commands/DescribeChannelMembershipCommand.js +2 -2
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -2
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -2
- package/dist-es/commands/DescribeChannelModeratorCommand.js +2 -2
- package/dist-es/commands/DisassociateChannelFlowCommand.js +2 -3
- package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +2 -2
- package/dist-es/commands/GetChannelMessageCommand.js +2 -2
- package/dist-es/commands/GetChannelMessageStatusCommand.js +2 -3
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +2 -3
- package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/PutChannelExpirationSettingsCommand.js +41 -0
- package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +2 -3
- package/dist-es/commands/RedactChannelMessageCommand.js +2 -3
- package/dist-es/commands/SendChannelMessageCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateChannelCommand.js +2 -2
- package/dist-es/commands/UpdateChannelFlowCommand.js +2 -2
- package/dist-es/commands/UpdateChannelMessageCommand.js +2 -2
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +2 -3
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +10 -156
- package/dist-es/protocols/Aws_restJson1.js +102 -0
- package/dist-types/ChimeSDKMessaging.d.ts +100 -50
- package/dist-types/ChimeSDKMessagingClient.d.ts +3 -2
- package/dist-types/commands/AssociateChannelFlowCommand.d.ts +4 -2
- package/dist-types/commands/BatchCreateChannelMembershipCommand.d.ts +1 -1
- package/dist-types/commands/CreateChannelBanCommand.d.ts +1 -1
- package/dist-types/commands/CreateChannelCommand.d.ts +1 -1
- package/dist-types/commands/CreateChannelMembershipCommand.d.ts +4 -4
- package/dist-types/commands/CreateChannelModeratorCommand.d.ts +1 -1
- package/dist-types/commands/DeleteChannelBanCommand.d.ts +2 -2
- package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteChannelMessageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteChannelModeratorCommand.d.ts +1 -1
- package/dist-types/commands/DescribeChannelBanCommand.d.ts +1 -1
- package/dist-types/commands/DescribeChannelCommand.d.ts +1 -1
- package/dist-types/commands/DescribeChannelMembershipCommand.d.ts +1 -1
- package/dist-types/commands/DescribeChannelMembershipForAppInstanceUserCommand.d.ts +2 -2
- package/dist-types/commands/DescribeChannelModeratedByAppInstanceUserCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateChannelFlowCommand.d.ts +4 -2
- package/dist-types/commands/GetChannelMembershipPreferencesCommand.d.ts +10 -3
- package/dist-types/commands/GetChannelMessageCommand.d.ts +2 -2
- package/dist-types/commands/GetChannelMessageStatusCommand.d.ts +3 -1
- package/dist-types/commands/ListChannelBansCommand.d.ts +2 -2
- package/dist-types/commands/ListChannelMembershipsCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelMembershipsForAppInstanceUserCommand.d.ts +3 -3
- package/dist-types/commands/ListChannelMessagesCommand.d.ts +2 -2
- package/dist-types/commands/ListChannelModeratorsCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelsModeratedByAppInstanceUserCommand.d.ts +1 -1
- package/dist-types/commands/PutChannelExpirationSettingsCommand.d.ts +99 -0
- package/dist-types/commands/PutChannelMembershipPreferencesCommand.d.ts +10 -3
- package/dist-types/commands/RedactChannelMessageCommand.d.ts +1 -1
- package/dist-types/commands/SearchChannelsCommand.d.ts +6 -1
- package/dist-types/commands/SendChannelMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +1 -1
- package/dist-types/commands/UpdateChannelMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateChannelReadMarkerCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +149 -250
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +17 -0
- package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/PutChannelExpirationSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +25 -155
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -3
|
@@ -20,10 +20,10 @@ export interface DescribeChannelMembershipForAppInstanceUserCommandOutput extend
|
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
* <p> Returns the details of a channel based on the membership of the specified
|
|
23
|
-
* <code>AppInstanceUser</code>.</p>
|
|
23
|
+
* <code>AppInstanceUser</code> or <code>AppInstanceBot</code>.</p>
|
|
24
24
|
* <note>
|
|
25
25
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
26
|
-
*
|
|
26
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
27
27
|
* the header.</p>
|
|
28
28
|
* </note>
|
|
29
29
|
* @example
|
|
@@ -20,10 +20,10 @@ export interface DescribeChannelModeratedByAppInstanceUserCommandOutput extends
|
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Returns the full details of a channel moderated by the specified
|
|
23
|
-
* <code>AppInstanceUser</code>.</p>
|
|
23
|
+
* <code>AppInstanceUser</code> or <code>AppInstanceBot</code>.</p>
|
|
24
24
|
* <note>
|
|
25
25
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
26
|
-
*
|
|
26
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
27
27
|
* the header.</p>
|
|
28
28
|
* </note>
|
|
29
29
|
* @example
|
|
@@ -22,8 +22,10 @@ export interface DisassociateChannelFlowCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
* <p>Disassociates a channel flow from all its channels. Once disassociated, all messages to
|
|
23
23
|
* that channel stop going through the channel flow processor.</p>
|
|
24
24
|
* <note>
|
|
25
|
-
* <p>Only administrators or channel moderators can disassociate a channel flow
|
|
26
|
-
*
|
|
25
|
+
* <p>Only administrators or channel moderators can disassociate a channel flow.</p>
|
|
26
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
27
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
28
|
+
* the header.</p>
|
|
27
29
|
* </note>
|
|
28
30
|
* @example
|
|
29
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -19,9 +19,16 @@ export interface GetChannelMembershipPreferencesCommandOutput extends GetChannel
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Gets the membership preferences of an <code>AppInstanceUser</code>
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* <p>Gets the membership preferences of an <code>AppInstanceUser</code> or <code>AppInstanceBot</code>
|
|
23
|
+
* for the specified channel. A user or a bot must be a member of the channel and own the membership to be able
|
|
24
|
+
* to retrieve membership preferences. Users or bots in the <code>AppInstanceAdmin</code> and channel moderator roles can't
|
|
25
|
+
* retrieve preferences for other users or bots. Banned users or bots can't retrieve membership preferences for the
|
|
26
|
+
* channel from which they are banned.</p>
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
29
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
30
|
+
* the header.</p>
|
|
31
|
+
* </note>
|
|
25
32
|
* @example
|
|
26
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
27
34
|
* ```javascript
|
|
@@ -21,8 +21,8 @@ export interface GetChannelMessageCommandOutput extends GetChannelMessageRespons
|
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Gets the full details of a channel message.</p>
|
|
23
23
|
* <note>
|
|
24
|
-
* <p>The x-amz-chime-bearer request header is mandatory. Use the
|
|
25
|
-
*
|
|
24
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -49,7 +49,9 @@ export interface GetChannelMessageStatusCommandOutput extends GetChannelMessageS
|
|
|
49
49
|
* <p>Only the message sender can invoke this API.</p>
|
|
50
50
|
* </li>
|
|
51
51
|
* <li>
|
|
52
|
-
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
52
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
53
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
54
|
+
* the header.</p>
|
|
53
55
|
* </li>
|
|
54
56
|
* </ul>
|
|
55
57
|
* </note>
|
|
@@ -19,10 +19,10 @@ export interface ListChannelBansCommandOutput extends ListChannelBansResponse, _
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Lists all the users banned from a particular channel.</p>
|
|
22
|
+
* <p>Lists all the users and bots banned from a particular channel.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -22,7 +22,7 @@ export interface ListChannelMembershipsCommandOutput extends ListChannelMembersh
|
|
|
22
22
|
* <p>Lists all channel memberships in a channel.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* <p>If you want to list the channels to which a specific app instance user belongs, see the
|
|
@@ -19,11 +19,11 @@ export interface ListChannelMembershipsForAppInstanceUserCommandOutput extends L
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p> Lists all channels that
|
|
23
|
-
*
|
|
22
|
+
* <p> Lists all channels that anr <code>AppInstanceUser</code> or <code>AppInstanceBot</code> is a part of.
|
|
23
|
+
* Only an <code>AppInstanceAdmin</code> can call the API with a user ARN that is not their own. </p>
|
|
24
24
|
* <note>
|
|
25
25
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
26
|
-
*
|
|
26
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
27
27
|
* the header.</p>
|
|
28
28
|
* </note>
|
|
29
29
|
* @example
|
|
@@ -26,8 +26,8 @@ export interface ListChannelMessagesCommandOutput extends ListChannelMessagesRes
|
|
|
26
26
|
* <p>Redacted messages appear in the results as empty, since they are only redacted, not
|
|
27
27
|
* deleted. Deleted messages do not appear in the results. This action always returns the
|
|
28
28
|
* latest version of an edited message.</p>
|
|
29
|
-
* <p>Also, the x-amz-chime-bearer request header is mandatory. Use the
|
|
30
|
-
*
|
|
29
|
+
* <p>Also, the <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
30
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
31
31
|
* the header.</p>
|
|
32
32
|
* </note>
|
|
33
33
|
* @example
|
|
@@ -22,7 +22,7 @@ export interface ListChannelModeratorsCommandOutput extends ListChannelModerator
|
|
|
22
22
|
* <p>Lists all the moderators for a channel.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -36,7 +36,7 @@ export interface ListChannelsCommandOutput extends ListChannelsResponse, __Metad
|
|
|
36
36
|
* </ul>
|
|
37
37
|
* <note>
|
|
38
38
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
39
|
-
*
|
|
39
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
40
40
|
* the header.</p>
|
|
41
41
|
* </note>
|
|
42
42
|
* @example
|
|
@@ -22,7 +22,7 @@ export interface ListChannelsModeratedByAppInstanceUserCommandOutput extends Lis
|
|
|
22
22
|
* <p>A list of the channels moderated by an <code>AppInstanceUser</code>.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ChimeSDKMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMessagingClient";
|
|
5
|
+
import { PutChannelExpirationSettingsRequest, PutChannelExpirationSettingsResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link PutChannelExpirationSettingsCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface PutChannelExpirationSettingsCommandInput extends PutChannelExpirationSettingsRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link PutChannelExpirationSettingsCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface PutChannelExpirationSettingsCommandOutput extends PutChannelExpirationSettingsResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Sets the number of days before the channel is automatically deleted.</p>
|
|
23
|
+
* <note>
|
|
24
|
+
* <ul>
|
|
25
|
+
* <li>
|
|
26
|
+
* <p>A background process deletes expired channels within 6 hours of expiration.
|
|
27
|
+
* Actual deletion times may vary.</p>
|
|
28
|
+
* </li>
|
|
29
|
+
* <li>
|
|
30
|
+
* <p>Expired channels that have not yet been deleted appear as active, and you can update
|
|
31
|
+
* their expiration settings. The system honors the new settings.</p>
|
|
32
|
+
* </li>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
35
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
36
|
+
* the header.</p>
|
|
37
|
+
* </li>
|
|
38
|
+
* </ul>
|
|
39
|
+
* </note>
|
|
40
|
+
* @example
|
|
41
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
+
* ```javascript
|
|
43
|
+
* import { ChimeSDKMessagingClient, PutChannelExpirationSettingsCommand } from "@aws-sdk/client-chime-sdk-messaging"; // ES Modules import
|
|
44
|
+
* // const { ChimeSDKMessagingClient, PutChannelExpirationSettingsCommand } = require("@aws-sdk/client-chime-sdk-messaging"); // CommonJS import
|
|
45
|
+
* const client = new ChimeSDKMessagingClient(config);
|
|
46
|
+
* const command = new PutChannelExpirationSettingsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param PutChannelExpirationSettingsCommandInput - {@link PutChannelExpirationSettingsCommandInput}
|
|
51
|
+
* @returns {@link PutChannelExpirationSettingsCommandOutput}
|
|
52
|
+
* @see {@link PutChannelExpirationSettingsCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link PutChannelExpirationSettingsCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link ChimeSDKMessagingClientResolvedConfig | config} for ChimeSDKMessagingClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link BadRequestException} (client fault)
|
|
57
|
+
* <p>The input parameters don't match the service's restrictions.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ConflictException} (client fault)
|
|
60
|
+
* <p>The request could not be processed because of conflict in the current state of the
|
|
61
|
+
* resource.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
64
|
+
* <p>The client is permanently forbidden from making the request.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ServiceFailureException} (server fault)
|
|
67
|
+
* <p>The service encountered an unexpected error.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
70
|
+
* <p>The service is currently unavailable.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottledClientException} (client fault)
|
|
73
|
+
* <p>The client exceeded its request rate limit.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link UnauthorizedClientException} (client fault)
|
|
76
|
+
* <p>The client is not currently authorized to make the request.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class PutChannelExpirationSettingsCommand extends $Command<PutChannelExpirationSettingsCommandInput, PutChannelExpirationSettingsCommandOutput, ChimeSDKMessagingClientResolvedConfig> {
|
|
81
|
+
readonly input: PutChannelExpirationSettingsCommandInput;
|
|
82
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
constructor(input: PutChannelExpirationSettingsCommandInput);
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMessagingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutChannelExpirationSettingsCommandInput, PutChannelExpirationSettingsCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private serialize;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
private deserialize;
|
|
99
|
+
}
|
|
@@ -19,9 +19,16 @@ export interface PutChannelMembershipPreferencesCommandOutput extends PutChannel
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Sets the membership preferences of an <code>AppInstanceUser</code>
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* <p>Sets the membership preferences of an <code>AppInstanceUser</code> or <code>AppIntanceBot</code>
|
|
23
|
+
* for the specified channel. The user or bot must be a member of the channel. Only the user or bot who owns the
|
|
24
|
+
* membership can set preferences. Users or bots in the <code>AppInstanceAdmin</code> and channel moderator roles can't set
|
|
25
|
+
* preferences for other users or users. Banned users or bots can't set membership preferences for the channel from
|
|
26
|
+
* which they are banned.</p>
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>The x-amz-chime-bearer request header is mandatory. Use the ARN of an
|
|
29
|
+
* <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in the
|
|
30
|
+
* header.</p>
|
|
31
|
+
* </note>
|
|
25
32
|
* @example
|
|
26
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
27
34
|
* ```javascript
|
|
@@ -23,7 +23,7 @@ export interface RedactChannelMessageCommandOutput extends RedactChannelMessageR
|
|
|
23
23
|
* action returns null content, and the state shows as redacted.</p>
|
|
24
24
|
* <note>
|
|
25
25
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
26
|
-
*
|
|
26
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
27
27
|
* the header.</p>
|
|
28
28
|
* </note>
|
|
29
29
|
* @example
|
|
@@ -19,7 +19,12 @@ export interface SearchChannelsCommandOutput extends SearchChannelsResponse, __M
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Allows <code>ChimeBearer</code> to search channels by channel members.
|
|
22
|
+
* <p>Allows the <code>ChimeBearer</code> to search channels by channel members. Users or bots can search
|
|
23
|
+
* across the channels that they belong to. Users in the <code>AppInstanceAdmin</code> role can search across
|
|
24
|
+
* all channels.</p>
|
|
25
|
+
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
26
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
27
|
+
* the header.</p>
|
|
23
28
|
* @example
|
|
24
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
30
|
* ```javascript
|
|
@@ -22,7 +22,7 @@ export interface SendChannelMessageCommandOutput extends SendChannelMessageRespo
|
|
|
22
22
|
* <p>Sends a message to a particular channel that the member is a part of.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* <p>Also, <code>STANDARD</code> messages can contain 4KB of data and the 1KB of metadata.
|
|
28
28
|
* <code>CONTROL</code> messages can contain 30 bytes of data and no metadata.</p>
|
|
@@ -24,7 +24,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
|
|
|
24
24
|
* <b>Restriction</b>: You can't change a channel's privacy. </p>
|
|
25
25
|
* <note>
|
|
26
26
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
27
|
-
*
|
|
27
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
28
28
|
* the header.</p>
|
|
29
29
|
* </note>
|
|
30
30
|
* @example
|
|
@@ -22,7 +22,7 @@ export interface UpdateChannelMessageCommandOutput extends UpdateChannelMessageR
|
|
|
22
22
|
* <p>Updates the content of a message.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -22,7 +22,7 @@ export interface UpdateChannelReadMarkerCommandOutput extends UpdateChannelReadM
|
|
|
22
22
|
* <p>The details of the time when a user last read messages in a channel.</p>
|
|
23
23
|
* <note>
|
|
24
24
|
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use the
|
|
25
|
-
*
|
|
25
|
+
* ARN of the <code>AppInstanceUser</code> or <code>AppInstanceBot</code> that makes the API call as the value in
|
|
26
26
|
* the header.</p>
|
|
27
27
|
* </note>
|
|
28
28
|
* @example
|
|
@@ -37,6 +37,7 @@ export * from "./ListChannelsCommand";
|
|
|
37
37
|
export * from "./ListChannelsModeratedByAppInstanceUserCommand";
|
|
38
38
|
export * from "./ListSubChannelsCommand";
|
|
39
39
|
export * from "./ListTagsForResourceCommand";
|
|
40
|
+
export * from "./PutChannelExpirationSettingsCommand";
|
|
40
41
|
export * from "./PutChannelMembershipPreferencesCommand";
|
|
41
42
|
export * from "./PutMessagingStreamingConfigurationsCommand";
|
|
42
43
|
export * from "./RedactChannelMessageCommand";
|