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 { CreatePushNotificationRegistrationRequest, CreatePushNotificationRegistrationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreatePushNotificationRegistrationCommand}. */ export interface CreatePushNotificationRegistrationCommandInput extends CreatePushNotificationRegistrationRequest { } /** * @public * * The output of {@link CreatePushNotificationRegistrationCommand}. */ export interface CreatePushNotificationRegistrationCommandOutput extends CreatePushNotificationRegistrationResponse, __MetadataBearer { } declare const CreatePushNotificationRegistrationCommand_base: { new (input: CreatePushNotificationRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreatePushNotificationRegistrationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates registration for a device token and a chat contact to receive real-time push notifications. For more * information about push notifications, see Set up push notifications in Amazon Connect for mobile chat in the Amazon Connect Administrator Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, CreatePushNotificationRegistrationCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, CreatePushNotificationRegistrationCommand } = 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 = { // CreatePushNotificationRegistrationRequest * InstanceId: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * PinpointAppArn: "STRING_VALUE", // required * DeviceToken: "STRING_VALUE", // required * DeviceType: "GCM" || "APNS" || "APNS_SANDBOX", // required * ContactConfiguration: { // ContactConfiguration * ContactId: "STRING_VALUE", // required * ParticipantRole: "AGENT" || "CUSTOMER" || "SYSTEM" || "CUSTOM_BOT" || "SUPERVISOR", * IncludeRawMessage: true || false, * }, * }; * const command = new CreatePushNotificationRegistrationCommand(input); * const response = await client.send(command); * // { // CreatePushNotificationRegistrationResponse * // RegistrationId: "STRING_VALUE", // required * // }; * * ``` * * @param CreatePushNotificationRegistrationCommandInput - {@link CreatePushNotificationRegistrationCommandInput} * @returns {@link CreatePushNotificationRegistrationCommandOutput} * @see {@link CreatePushNotificationRegistrationCommandInput} for command's `input` shape. * @see {@link CreatePushNotificationRegistrationCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

* * @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 ResourceNotFoundException} (client fault) *

The specified resource was not found.

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

The service quota has been exceeded.

* * @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 CreatePushNotificationRegistrationCommand extends CreatePushNotificationRegistrationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePushNotificationRegistrationRequest; output: CreatePushNotificationRegistrationResponse; }; sdk: { input: CreatePushNotificationRegistrationCommandInput; output: CreatePushNotificationRegistrationCommandOutput; }; }; }