{"version":3,"file":"requestPermissions.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/requestPermissions.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PlatformNotSupportedError } from '@aws-amplify/core/internals/utils';\n/**\n * Requests notification permissions from your user. By default, Amplify requests all supported permissions but you can\n * choose not to request specific permissions. The resulting promise will resolve to true if requested permissions are\n * granted (or have previously been granted) or false otherwise. Not all specific permissions are supported by platforms\n * your React Native app can run on but will be safely ignored even on those platforms. Currently supported permissions:\n *\n *   * `alert`: When set to true, requests the ability to display notifications to the user.\n *\n *   * `sound`: When set to true, requests the ability to play a sound in response to notifications.\n *\n *   * `badge`: When set to true, requests the ability to update the app's badge.\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @throws platform: {@link PlatformNotSupportedError} - Thrown if called against an unsupported platform. Currently,\n * only React Native is supported by this API.\n * @returns A promise that resolves to true if requested permissions are granted or have already previously been\n * granted or false otherwise.\n * @example\n * ```ts\n * // Request all permissions by default\n * const arePermissionsGranted = await requestPermissions();\n *\n * @example\n * ```ts\n * // Prevent requesting specific permissions\n * const arePermissionsGranted = await requestPermissions({\n *   sound: false,\n *   badge: false\n * });\n * ```\n */\nexport const requestPermissions = async () => {\n    throw new PlatformNotSupportedError();\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,kBAAkB,GAAG,YAAY;AAC9C,IAAI,MAAM,IAAI,yBAAyB,EAAE;AACzC;;;;"}