Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ChimeSDKMessaging

import { ChimeSDKMessaging } from "https://aws-api.deno.dev/v0.2/services/chimesdkmessaging.ts?docs=full";
class ChimeSDKMessaging {
constructor(apiFactory: client.ApiFactory);
async batchCreateChannelMembership(params: BatchCreateChannelMembershipRequest, opts?: client.RequestOptions): Promise<BatchCreateChannelMembershipResponse>;
async createChannel(params: CreateChannelRequest, opts?: client.RequestOptions): Promise<CreateChannelResponse>;
async createChannelBan(params: CreateChannelBanRequest, opts?: client.RequestOptions): Promise<CreateChannelBanResponse>;
async createChannelMembership(params: CreateChannelMembershipRequest, opts?: client.RequestOptions): Promise<CreateChannelMembershipResponse>;
async createChannelModerator(params: CreateChannelModeratorRequest, opts?: client.RequestOptions): Promise<CreateChannelModeratorResponse>;
async deleteChannel(params: DeleteChannelRequest, opts?: client.RequestOptions): Promise<void>;
async deleteChannelBan(params: DeleteChannelBanRequest, opts?: client.RequestOptions): Promise<void>;
async deleteChannelMembership(params: DeleteChannelMembershipRequest, opts?: client.RequestOptions): Promise<void>;
async deleteChannelMessage(params: DeleteChannelMessageRequest, opts?: client.RequestOptions): Promise<void>;
async deleteChannelModerator(params: DeleteChannelModeratorRequest, opts?: client.RequestOptions): Promise<void>;
async describeChannel(params: DescribeChannelRequest, opts?: client.RequestOptions): Promise<DescribeChannelResponse>;
async describeChannelBan(params: DescribeChannelBanRequest, opts?: client.RequestOptions): Promise<DescribeChannelBanResponse>;
async describeChannelMembership(params: DescribeChannelMembershipRequest, opts?: client.RequestOptions): Promise<DescribeChannelMembershipResponse>;
async describeChannelModerator(params: DescribeChannelModeratorRequest, opts?: client.RequestOptions): Promise<DescribeChannelModeratorResponse>;
async getChannelMessage(params: GetChannelMessageRequest, opts?: client.RequestOptions): Promise<GetChannelMessageResponse>;
async getMessagingSessionEndpoint(opts?: client.RequestOptions): Promise<GetMessagingSessionEndpointResponse>;
async listChannelBans(params: ListChannelBansRequest, opts?: client.RequestOptions): Promise<ListChannelBansResponse>;
async listChannelMemberships(params: ListChannelMembershipsRequest, opts?: client.RequestOptions): Promise<ListChannelMembershipsResponse>;
async listChannelMessages(params: ListChannelMessagesRequest, opts?: client.RequestOptions): Promise<ListChannelMessagesResponse>;
async listChannelModerators(params: ListChannelModeratorsRequest, opts?: client.RequestOptions): Promise<ListChannelModeratorsResponse>;
async listChannels(params: ListChannelsRequest, opts?: client.RequestOptions): Promise<ListChannelsResponse>;
async listChannelsModeratedByAppInstanceUser(params: ListChannelsModeratedByAppInstanceUserRequest, opts?: client.RequestOptions): Promise<ListChannelsModeratedByAppInstanceUserResponse>;
async redactChannelMessage(params: RedactChannelMessageRequest, opts?: client.RequestOptions): Promise<RedactChannelMessageResponse>;
async sendChannelMessage(params: SendChannelMessageRequest, opts?: client.RequestOptions): Promise<SendChannelMessageResponse>;
async updateChannel(params: UpdateChannelRequest, opts?: client.RequestOptions): Promise<UpdateChannelResponse>;
async updateChannelMessage(params: UpdateChannelMessageRequest, opts?: client.RequestOptions): Promise<UpdateChannelMessageResponse>;
async updateChannelReadMarker(params: UpdateChannelReadMarkerRequest, opts?: client.RequestOptions): Promise<UpdateChannelReadMarkerResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new ChimeSDKMessaging(apiFactory: client.ApiFactory)
[src]

§Methods

§

Adds a specified number of users to a channel.

§

Creates a channel to which you can add users and send messages.

Restriction: You can't change a channel's privacy.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Permanently bans a member from a channel. Moderators can't add banned members to a channel. To undo a ban, you first have to DeleteChannelBan, and then CreateChannelMembership. Bans are cleaned up when you delete users or channels.

If you ban a user who is already part of a channel, that user is automatically kicked from the channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel member can:

  • List messages
  • Send messages
  • Receive messages
  • Edit their own messages
  • Leave the channel

Privacy settings impact this action as follows:

  • Public Channels: You do not need to be a member to list messages, but you must be a member to send messages.
  • Private Channels: You must be a member to list or send messages.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Creates a new ChannelModerator. A channel moderator can:

  • Add and remove other members of the channel.
  • Add and remove other moderators of the channel.
  • Add and remove user bans for the channel.
  • Redact messages in the channel.
  • List messages in the channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
deleteChannel(params: DeleteChannelRequest, opts?: client.RequestOptions): Promise<void>
[src]

Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
deleteChannelBan(params: DeleteChannelBanRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes a user from a channel's ban list.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
deleteChannelMembership(params: DeleteChannelMembershipRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes a member from a channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
deleteChannelMessage(params: DeleteChannelMessageRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
deleteChannelModerator(params: DeleteChannelModeratorRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a channel moderator.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the full details of a channel in an Amazon Chime AppInstance.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the full details of a channel ban.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the full details of a user's channel membership.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the details of a channel based on the membership of the specified AppInstanceUser.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the full details of a channel moderated by the specified AppInstanceUser.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Returns the full details of a single ChannelModerator.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Gets the full details of a channel message.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§
getMessagingSessionEndpoint(opts?: client.RequestOptions): Promise<GetMessagingSessionEndpointResponse>
[src]

The details of the endpoint for the messaging session.

§

Lists all the users banned from a particular channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Lists all channel memberships in a channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Lists all channels that a particular AppInstanceUser is a part of. Only an AppInstanceAdmin can call the API with a user ARN that is not their own.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

List all the messages in a channel. Returns a paginated list of ChannelMessages. By default, sorted by creation timestamp in descending order.

Note: Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message. Also, the x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Lists all the moderators for a channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.

Functionality & restrictions

  • Use privacy = PUBLIC to retrieve all public channels in the account.
  • Only an AppInstanceAdmin can set privacy = PRIVATE to list the private channels in an account.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

A list of the channels moderated by an AppInstanceUser.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Sends a message to a particular channel that the member is a part of.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header. Also, STANDARD messages can contain 4KB of data and the 1KB of metadata. CONTROL messages can contain 30 bytes of data and no metadata.

§

Update a channel's attributes.

Restriction: You can't change a channel's privacy.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

Updates the content of a message.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§

The details of the time when a user last read messages in a channel.

Note: The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

§Static Properties