import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Tenant, InstallAppOptions, InstallAppResponse, InstallAppApplicationErrors, BulkInstallAppOptions, BulkInstallAppResponse, BulkInstallAppApplicationErrors, UninstallAppOptions, UninstallAppApplicationErrors, BulkUninstallAppOptions, BulkUninstallAppResponse, InstallAppFromShareUrlOptions, InstallAppFromShareUrlResponse, InstallAppFromShareUrlApplicationErrors, InstallTypeWithLiterals, IsPermittedToInstallAppsOptions, IsPermittedToInstallAppsResponse, IsPermittedToInstallAppsApplicationErrors, GetInstalledAppsResponse, AppInstanceAppInstalledOnTenantEnvelope } from './index.typings.mjs'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AppInstalledOnTenant, AppInstance, ApplicationError, AppsInstallOptions, BaseEventMetadata, BulkActionMetadata, BulkInstallAppRequest, BulkInstallAppResult, BulkUninstallAppRequest, BulkUninstallAppResult, ClientSpec, ClientSpecMap, DependenciesLogicTree, DependencyNode, DependencyNodeOptionsOneOf, DependencyNodeType, DependencyNodeTypeWithLiterals, DevVersionInstallation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetInstalledAppsRequest, GluedOptions, GluedWidget, IdentificationData, IdentificationDataIdOneOf, InstallAppFromShareUrlRequest, InstallAppRequest, InstallDefaultAppsEvent, InstallType, IsPermittedToInstallAppsOptionsOptionsOneOf, IsPermittedToInstallAppsRequest, IsPermittedToInstallAppsRequestOptionsOneOf, ItemMetadata, LegacyParams, ListAppInstancesRequest, ListAppInstancesResponse, MessageEnvelope, Operator, OperatorWithLiterals, OrderedInstalledApp, RequestedFields, RequestedFieldsWithLiterals, ResolvedSingleDependency, RestoreInfo, ShareUrlInstallOptions, SingleDependency, Status, StatusWithLiterals, TPAAppPage, TPAAppRequirements, TPAPermissions, TPASettingsClientSpec, TPAWidgetPosition, TenantType, TenantTypeWithLiterals, UninstallAppRequest, UninstallAppResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Widget } from './index.typings.mjs'; declare function installApp$1(httpClient: HttpClient): InstallAppSignature; interface InstallAppSignature { /** *
* * __Warning:__ * By using this API to install 3rd-party apps, you acknowledge and agree that: * * - Some 3rd-party apps installed with this API may access, use, copy, change, or delete all your website's data, including your and your website visitors' and members' financial and personal information. * - Wix may not have reviewed the app, and can't guarantee their operation or that it will continue to function as described by the app developers. * - You may be sharing sensitive information with the app. Review the terms of use and privacy policies of any app you choose to install to understand how your data will be handled. * - You agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms). * * By installing any 3rd-party app through this API, you confirm your acceptance of all the above conditions. * ** *
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Installs an app on a tenant, specifying the details of the app instance to create. * * The ID of this app instance is automatically generated and included in the `appInstance` object in the response. * @param - Tenant details. */ (tenant: NonNullablePaths
* * __Warning:__ * By using this API to install 3rd-party apps, you acknowledge and agree that: * * - Some 3rd-party apps installed with this API may access, use, copy, change, or delete all your website's data, including your and your website visitors' and members' financial and personal information. * - Wix may not have reviewed the app, and can't guarantee their operation or that it will continue to function as described by the app developers. * - You may be sharing sensitive information with the app. Review the terms of use and privacy policies of any app you choose to install to understand how your data will be handled. * - You agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms). * * By installing any 3rd-party app through this API, you confirm your acceptance of all the above conditions. * ** *
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Bulk installs apps on a tenant, specifying the details of the app instances to create. * * The IDs of these app instances are automatically generated and included in the `appInstance` objects in the response. * @param - Tenant details. */ (tenant: NonNullablePaths
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Uninstalls an app from a tenant. * * This removes the instance of a specified app from the tenant. * * Uninstalling runs with dashboard scope. An app that has an editor component on the site can't be * uninstalled with this method: the call fails with `UNINSTALL_FAILED` and a `HAS_EDITOR_PRESENCE` * reason. That state isn't transient and isn't an open Editor session, so retrying doesn't help -- * the app has to be removed from the site's Editor instead (Add -> Manage Apps -> Delete). */ (options?: NonNullablePaths
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Uninstalls apps from a tenant. * * This removes the instances of the specified apps from the tenant. * * Uninstalling runs with dashboard scope. An app that has an editor component on the site can't be * uninstalled with this method: its result item carries the `HAS_EDITOR_PRESENCE` error code. That * state isn't transient and isn't an open Editor session, so retrying doesn't help -- the app has to * be removed from the site's Editor instead (Add -> Manage Apps -> Delete). */ (options?: NonNullablePaths
* * __Warning:__ * By using this API to install 3rd-party apps, you acknowledge and agree that: * * - Some 3rd-party apps installed with this API may access, use, copy, change, or delete all your website's data, including your and your website visitors' and members' financial and personal information. * - Wix may not have reviewed the app, and cannot guarantee their operation or that it will continue to function as described by the app developers. * - You may be sharing sensitive information with the app. Please review the terms of use and privacy policies of any app you choose to install to understand how your data will be handled. * - By utilizing this API, you agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms). * * By installing any 3rd-party app through this API, I confirm my acceptance of all the above conditions. * ** *
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Installs an app on a site using a share URL. * @param - Tenant details. */ (tenant: NonNullablePaths
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Returns whether it's possible to install an app on a tenant, either by providing app instance details or using a share URL. * @param - Installation type. */ (installType: InstallTypeWithLiterals, options: IsPermittedToInstallAppsOptions): Promise
* * __Note:__ * Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API. * ** * Returns the apps that are installed on the site in context */ (): Promise