import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import type { GetCurrentUserDataRequest, GetCurrentUserDataResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetCurrentUserDataCommand}. */ export interface GetCurrentUserDataCommandInput extends GetCurrentUserDataRequest { } /** * @public * * The output of {@link GetCurrentUserDataCommand}. */ export interface GetCurrentUserDataCommandOutput extends GetCurrentUserDataResponse, __MetadataBearer { } declare const GetCurrentUserDataCommand_base: { new (input: GetCurrentUserDataCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetCurrentUserDataCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets the real-time active user data from the specified Amazon Connect instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, GetCurrentUserDataCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, GetCurrentUserDataCommand } = require("@aws-sdk/client-connect"); // CommonJS import * // import type { ConnectClientConfig } from "@aws-sdk/client-connect"; * const config = {}; // type is ConnectClientConfig * const client = new ConnectClient(config); * const input = { // GetCurrentUserDataRequest * InstanceId: "STRING_VALUE", // required * Filters: { // UserDataFilters * Queues: [ // Queues * "STRING_VALUE", * ], * ContactFilter: { // ContactFilter * ContactStates: [ // ContactStates * "INCOMING" || "PENDING" || "CONNECTING" || "CONNECTED" || "CONNECTED_ONHOLD" || "MISSED" || "ERROR" || "ENDED" || "REJECTED", * ], * }, * RoutingProfiles: [ // RoutingProfiles * "STRING_VALUE", * ], * Agents: [ // AgentsMinOneMaxHundred * "STRING_VALUE", * ], * UserHierarchyGroups: [ // UserDataHierarchyGroups * "STRING_VALUE", * ], * }, * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new GetCurrentUserDataCommand(input); * const response = await client.send(command); * // { // GetCurrentUserDataResponse * // NextToken: "STRING_VALUE", * // UserDataList: [ // UserDataList * // { // UserData * // User: { // UserReference * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // RoutingProfile: { // RoutingProfileReference * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // HierarchyPath: { // HierarchyPathReference * // LevelOne: { // HierarchyGroupSummaryReference * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // LevelTwo: { * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // LevelThree: { * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // LevelFour: { * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // LevelFive: { * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // }, * // Status: { // AgentStatusReference * // StatusStartTimestamp: new Date("TIMESTAMP"), * // StatusArn: "STRING_VALUE", * // StatusName: "STRING_VALUE", * // }, * // AvailableSlotsByChannel: { // ChannelToCountMap * // "": Number("int"), * // }, * // MaxSlotsByChannel: { * // "": Number("int"), * // }, * // ActiveSlotsByChannel: { * // "": Number("int"), * // }, * // Contacts: [ // AgentContactReferenceList * // { // AgentContactReference * // ContactId: "STRING_VALUE", * // Channel: "VOICE" || "CHAT" || "TASK" || "EMAIL", * // InitiationMethod: "INBOUND" || "OUTBOUND" || "TRANSFER" || "QUEUE_TRANSFER" || "CALLBACK" || "API" || "DISCONNECT" || "MONITOR" || "EXTERNAL_OUTBOUND" || "WEBRTC_API" || "AGENT_REPLY" || "FLOW", * // AgentContactState: "INCOMING" || "PENDING" || "CONNECTING" || "CONNECTED" || "CONNECTED_ONHOLD" || "MISSED" || "ERROR" || "ENDED" || "REJECTED", * // StateStartTimestamp: new Date("TIMESTAMP"), * // ConnectedToAgentTimestamp: new Date("TIMESTAMP"), * // Queue: { // QueueReference * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // }, * // }, * // ], * // NextStatus: "STRING_VALUE", * // }, * // ], * // ApproximateTotalCount: Number("long"), * // }; * * ``` * * @param GetCurrentUserDataCommandInput - {@link GetCurrentUserDataCommandInput} * @returns {@link GetCurrentUserDataCommandOutput} * @see {@link GetCurrentUserDataCommandInput} for command's `input` shape. * @see {@link GetCurrentUserDataCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link InternalServiceException} (server fault) *

Request processing failed because of an error or failure with the service.

* * @throws {@link InvalidParameterException} (client fault) *

One or more of the specified parameters are not valid.

* * @throws {@link InvalidRequestException} (client fault) *

The request is not valid.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource was not found.

* * @throws {@link ThrottlingException} (client fault) *

The throttling limit has been exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class GetCurrentUserDataCommand extends GetCurrentUserDataCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetCurrentUserDataRequest; output: GetCurrentUserDataResponse; }; sdk: { input: GetCurrentUserDataCommandInput; output: GetCurrentUserDataCommandOutput; }; }; }