{"version":3,"sources":["../../src/apps-v1-app-instance-apps-installer.http.ts","../../src/apps-v1-app-instance-apps-installer.types.ts","../../src/apps-v1-app-instance-apps-installer.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [\n  { path: 'appInstance.installedDate' },\n  { path: 'appInstance.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'appInstance.installedDate' },\n  { path: 'appInstance.updatedDate' },\n  { path: 'dependenciesInstallation.installedDate' },\n  { path: 'dependenciesInstallation.updatedDate' },\n];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'appInstances.installedDate' },\n  { path: 'appInstances.updatedDate' },\n];\nconst TRANSFORM_PATHS_3 = [\n  { path: 'results.appInstance.installedDate' },\n  { path: 'results.appInstance.updatedDate' },\n];\nconst TRANSFORM_PATHS_4 = [\n  { path: 'clientSpecMap.data.widgets.*.gluedOptions.verticalMargin' },\n  { path: 'clientSpecMap.data.widgets.*.gluedOptions.horizontalMargin' },\n];\nconst TRANSFORM_PATHS_5 = [\n  { path: 'appsInstallOptions.appInstances.installedDate' },\n  { path: 'appsInstallOptions.appInstances.updatedDate' },\n];\n\nfunction resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/apps/v1/app-instances',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/apps/v1/app-instances',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/apps-installer-service',\n        destPath: '',\n      },\n    ],\n    'vibe._base_domain_': [\n      {\n        srcPath: '/_api/apps-installer-service',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_apps-installer_apps-installer';\n\n/**\n * <blockquote class=\"warning\">\n *\n * __Warning:__\n * By using this API to install 3rd-party apps, you acknowledge and agree that:\n *\n * - 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.\n * - 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.\n * - 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.\n * - You agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms).\n *\n * By installing any 3rd-party app through this API, you confirm your acceptance of all the above conditions.\n *\n * </blockquote>\n *\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Installs an app on a tenant, specifying the details of the app instance to create.\n *\n * The ID of this app instance is automatically generated and included in the `appInstance` object in the response.\n */\nexport function installApp(payload: object): RequestOptionsFactory<any> {\n  function __installApp({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/app-instance/install',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_1,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __installApp;\n}\n\n/**\n * <blockquote class=\"warning\">\n *\n * __Warning:__\n * By using this API to install 3rd-party apps, you acknowledge and agree that:\n *\n * - 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.\n * - 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.\n * - 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.\n * - You agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms).\n *\n * By installing any 3rd-party app through this API, you confirm your acceptance of all the above conditions.\n *\n * </blockquote>\n *\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Bulk installs apps on a tenant, specifying the details of the app instances to create.\n *\n * The IDs of these app instances are automatically generated and included in the `appInstance` objects in the response.\n */\nexport function bulkInstallApp(payload: object): RequestOptionsFactory<any> {\n  function __bulkInstallApp({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_2,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.BulkInstallApp',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/bulk/app-instance/install',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_3,\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: TRANSFORM_PATHS_4,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkInstallApp;\n}\n\n/**\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Uninstalls an app from a tenant.\n *\n * This removes the instance of a specified app from the tenant.\n *\n * Uninstalling runs with dashboard scope. An app that has an editor component on the site can't be\n * uninstalled with this method: the call fails with `UNINSTALL_FAILED` and a `HAS_EDITOR_PRESENCE`\n * reason. That state isn't transient and isn't an open Editor session, so retrying doesn't help --\n * the app has to be removed from the site's Editor instead (Add -> Manage Apps -> Delete).\n */\nexport function uninstallApp(payload: object): RequestOptionsFactory<any> {\n  function __uninstallApp({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.UninstallApp',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/app-instance/uninstall',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __uninstallApp;\n}\n\n/**\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Uninstalls apps from a tenant.\n *\n * This removes the instances of the specified apps from the tenant.\n *\n * Uninstalling runs with dashboard scope. An app that has an editor component on the site can't be\n * uninstalled with this method: its result item carries the `HAS_EDITOR_PRESENCE` error code. That\n * state isn't transient and isn't an open Editor session, so retrying doesn't help -- the app has to\n * be removed from the site's Editor instead (Add -> Manage Apps -> Delete).\n */\nexport function bulkUninstallApp(payload: object): RequestOptionsFactory<any> {\n  function __bulkUninstallApp({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.BulkUninstallApp',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/bulk/app-instance/uninstall',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_3,\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: TRANSFORM_PATHS_4,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkUninstallApp;\n}\n\n/**\n * <blockquote class=\"warning\">\n *\n * __Warning:__\n * By using this API to install 3rd-party apps, you acknowledge and agree that:\n *\n * - 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.\n * - 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.\n * - 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.\n * - By utilizing this API, you agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms).\n *\n * By installing any 3rd-party app through this API, I confirm my acceptance of all the above conditions.\n *\n * </blockquote>\n *\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Installs an app on a site using a share URL.\n */\nexport function installAppFromShareUrl(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __installAppFromShareUrl({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.InstallAppFromShareUrl',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/app-share-url/install',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_1,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __installAppFromShareUrl;\n}\n\n/**\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Returns whether it's possible to install an app on a tenant, either by providing app instance details or using a share URL.\n */\nexport function isPermittedToInstallApps(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __isPermittedToInstallApps({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_5,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.IsPermittedToInstallApps',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/app-instance/is-permitted-to-install',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __isPermittedToInstallApps;\n}\n\n/**\n * <blockquote class=\"note\">\n *\n * __Note:__\n * 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.\n *\n * </blockquote>\n *\n * Returns the apps that are installed on the site in context\n */\nexport function getInstalledApps(payload: object): RequestOptionsFactory<any> {\n  function __getInstalledApps({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.apps.v1.app_instance',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n        protoPath: '/v1/app-instances',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_2,\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n            protoPath: '/v1/app-instances',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getInstalledApps;\n}\n","export interface AppInstance {\n  /**\n   * App instance ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string;\n  /**\n   * ID of the app to install.\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * Version of the app to install.\n   *\n   * If you don't specify a version, the latest version of the app will be installed. Don't specify a version unless you want to install an older version of the app.\n   */\n  version?: string | null;\n  /** Whether the app instance is enabled. */\n  enabled?: boolean;\n  /**\n   * App instance installation status.\n   * @internal\n   */\n  status?: StatusWithLiterals;\n  /**\n   * A signed access token of the Wix user and the app instance.\n   * @readonly\n   */\n  appToken?: string | null;\n  /**\n   * Date and time the app instance was installed.\n   * @readonly\n   */\n  installedDate?: Date | null;\n  /**\n   * Date and time the app instance was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Legacy params.\n   * @internal\n   */\n  legacyParams?: LegacyParams;\n  /**\n   * Information about the development version of the app to install if `version` is \"dev\".\n   * @internal\n   */\n  devVersion?: DevVersionInstallation;\n  /**\n   * URL the user is redirected to after installing the app from an external install link. Input only, never stored or returned.\n   * When the app validates post-installation URLs, the install fails unless this URL is allowed.\n   * @internal\n   * @maxLength 4096\n   */\n  postInstallationUrl?: string | null;\n}\n\nexport enum Status {\n  /** Installation status is unknown. */\n  UNKNOWN = 'UNKNOWN',\n  /** Waiting for OAUTH authentication to complete installation. */\n  WAITING_FOR_OAUTH = 'WAITING_FOR_OAUTH',\n  /** App instance authenticated successfully. */\n  AUTHENTICATED = 'AUTHENTICATED',\n  /** Payment hasn't been completed and is required for access to the app. */\n  DIDNT_COMPLETE_PAYMENT = 'DIDNT_COMPLETE_PAYMENT',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'UNKNOWN'\n  | 'WAITING_FOR_OAUTH'\n  | 'AUTHENTICATED'\n  | 'DIDNT_COMPLETE_PAYMENT';\n\nexport interface LegacyParams {\n  /** Legacy int id */\n  intId?: number | null;\n  /**\n   * Legacy source template id\n   * @format GUID\n   */\n  sourceTemplateId?: string | null;\n}\n\nexport interface DevVersionInstallation {\n  /**\n   * ID of the override to assign to the development version.\n   * @maxLength 50\n   */\n  overrideId?: string;\n}\n\nexport interface ListAppInstancesRequest {\n  /** Tenant to fetch app instances for */\n  tenant?: Tenant;\n}\n\nexport interface Tenant {\n  /** Tenant ID. For a site, this is the [site ID](https://dev.wix.com/docs/rest/account-level/sites/sites/introduction). For an account this is the [account ID](https://dev.wix.com/docs/rest/account-level/user-management/accounts/accounts/about-accounts). */\n  id?: string;\n  /** Tenant type. This can be a Wix site or account. */\n  tenantType?: TenantTypeWithLiterals;\n}\n\nexport enum TenantType {\n  SITE = 'SITE',\n  ACCOUNT = 'ACCOUNT',\n}\n\n/** @enumType */\nexport type TenantTypeWithLiterals = TenantType | 'SITE' | 'ACCOUNT';\n\nexport interface ListAppInstancesResponse {\n  /** List of installed app instances list for the specified tenant */\n  appInstances?: AppInstance[];\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /**\n   * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n   * @internal\n   */\n  triggeredByUndelete?: boolean | null;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n  /**\n   * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n   * wont populate it / have any reference to it in the API.\n   * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n   * the developer should send only the new (current) entity.\n   * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n   * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n   * @internal\n   * @deprecated\n   */\n  previousEntityAsJson?: string | null;\n  /**\n   * Map of fully qualified field paths to their previous values for fields that changed.\n   * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n   * @internal\n   */\n  modifiedFields?: Record<string, any>;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n  /**\n   * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n   * @internal\n   */\n  movedToTrash?: boolean | null;\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\nexport interface InstallDefaultAppsEvent {\n  tenant?: Tenant;\n}\n\nexport interface Empty {}\n\nexport interface InstallAppRequest {\n  /** Tenant details. */\n  tenant: Tenant;\n  /** Details of the app instance to create when the app is installed. */\n  appInstance: AppInstance;\n  /**\n   * True if the the app was already added to the document\n   * @internal\n   */\n  addedToDocument?: boolean | null;\n}\n\nexport interface InstallAppResponse {\n  /** The app instance created when the app was installed. */\n  appInstance?: AppInstance;\n  /**\n   * List of app instances that were created when dependencies of the app were installed.\n   * @internal\n   */\n  dependenciesInstallation?: AppInstance[];\n  /**\n   * Deprecated: use `installation_order`.\n   * Dependency tree rooted at the requested app, reflecting the dependencies that were selected for provisioning (OR branches resolved) and reconciled with the metasite install outcome. A node whose app failed to be provisioned but whose descendants succeeded carries the placeholder app_id `00000000-0000-0000-0000-000000000000`; nodes whose app and all descendants failed are dropped. The tree is therefore NOT a complete view of the requested dependency graph — callers must not assume every requested dependency appears here.\n   * @internal\n   * @deprecated\n   * @replacedBy installation_order\n   * @targetRemovalDate 2027-01-31\n   */\n  dependenciesTree?: DependencyNode;\n  /**\n   * The requested app and its provisioned dependencies, ordered dependencies-first (leaves before the\n   * apps that depend on them). Each app appears once. Reflects the dependencies selected for\n   * provisioning; the `installed` flag tells whether metasite actually installed each one.\n   * @internal\n   */\n  installationOrder?: OrderedInstalledApp[];\n}\n\nexport interface DependencyNode extends DependencyNodeOptionsOneOf {\n  /** A single app dependency. Leaf node. */\n  singleDependencyOptions?: SingleDependency;\n  /** Dependencies combined with a logical operator (AND/OR). Inner node. */\n  dependenciesLogicTreeOptions?: DependenciesLogicTree;\n  /**\n   * Resolved dependencies\n   * @readonly\n   */\n  resolvedSingleDependencyOptions?: ResolvedSingleDependency;\n  /** The type of the dependency node. */\n  nodeType?: DependencyNodeTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface DependencyNodeOptionsOneOf {\n  /** A single app dependency. Leaf node. */\n  singleDependencyOptions?: SingleDependency;\n  /** Dependencies combined with a logical operator (AND/OR). Inner node. */\n  dependenciesLogicTreeOptions?: DependenciesLogicTree;\n  /**\n   * Resolved dependencies\n   * @readonly\n   */\n  resolvedSingleDependencyOptions?: ResolvedSingleDependency;\n}\n\nexport enum DependencyNodeType {\n  SINGLE_DEPENDENCY = 'SINGLE_DEPENDENCY',\n  DEPENDENCIES_LOGIC_TREE = 'DEPENDENCIES_LOGIC_TREE',\n  /** A resolved single dependency, which is a leaf node with resolved dependencies. */\n  RESOLVED_SINGLE_DEPENDENCY = 'RESOLVED_SINGLE_DEPENDENCY',\n}\n\n/** @enumType */\nexport type DependencyNodeTypeWithLiterals =\n  | DependencyNodeType\n  | 'SINGLE_DEPENDENCY'\n  | 'DEPENDENCIES_LOGIC_TREE'\n  | 'RESOLVED_SINGLE_DEPENDENCY';\n\nexport interface SingleDependency {\n  /**\n   * The ID of the app dependency.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport interface DependenciesLogicTree {\n  /** The logical relation between the dependencies. */\n  operator?: OperatorWithLiterals;\n  /**\n   * The sub-dependencies of this node.\n   * minSize is 0 (not 1) so the migration endpoint can receive an empty OR logic tree,\n   * which means \"clear the OR branch\". create/update/merge independently reject empty\n   * trees via DependencyTreeValidator / MergeRequestValidator, so this stays safe there.\n   * @maxSize 30\n   */\n  dependencies?: DependencyNode[];\n}\n\nexport enum Operator {\n  /** All dependencies are required. */\n  AND = 'AND',\n  /** At least one dependency is required. */\n  OR = 'OR',\n}\n\n/** @enumType */\nexport type OperatorWithLiterals = Operator | 'AND' | 'OR';\n\nexport interface ResolvedSingleDependency {\n  /**\n   * The ID of the app dependency.\n   * @format GUID\n   */\n  appId?: string;\n  /** The sub-dependencies of this app. */\n  dependencies?: DependencyNode;\n}\n\n/**\n * A single app in an install-order list. Apps are ordered dependencies-first (leaves before the apps\n * that depend on them), so a consumer replaying the list in order never installs an app before one of\n * its dependencies. Populated only for SITE-tenant installs (which resolve a dependency tree); ACCOUNT\n * installs have no dependency tree, so `installation_order` is empty there.\n */\nexport interface OrderedInstalledApp {\n  /**\n   * The ID of the app.\n   * @format GUID\n   */\n  appId?: string;\n  /** Whether the app was actually installed. `false` means it was selected for provisioning but metasite did not install it. */\n  installed?: boolean;\n}\n\nexport interface AppInstalledOnTenant {\n  /** Tenant details. */\n  tenant?: Tenant;\n  /** App instance details. */\n  appInstance?: AppInstance;\n}\n\nexport interface BulkInstallAppRequest {\n  /** Tenant details. */\n  tenant: Tenant;\n  /**\n   * Details of the app instances to create when the apps are installed.\n   * @maxSize 20\n   */\n  appInstances?: AppInstance[];\n  /**\n   * Additional fields to include in the response.\n   * @internal\n   * @maxSize 1\n   */\n  fields?: RequestedFieldsWithLiterals[];\n  /**\n   * True if the the apps were already added to the document\n   * @internal\n   */\n  addedToDocument?: boolean | null;\n}\n\n/** A list of possible additional fields to be included in the response. */\nexport enum RequestedFields {\n  /** The client spec map. */\n  CLIENT_SPEC_MAP = 'CLIENT_SPEC_MAP',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals = RequestedFields | 'CLIENT_SPEC_MAP';\n\nexport interface BulkInstallAppResponse {\n  /** Information and metadata about the app installations. */\n  results?: BulkInstallAppResult[];\n  /** Metadata about the bulk installation. */\n  bulkActionMetadata?: BulkActionMetadata;\n  /**\n   * The Client Spec Map returned by Metasite provision endpoint.\n   * @internal\n   */\n  clientSpecMap?: ClientSpecMap;\n  /**\n   * All requested apps and their provisioned dependencies as a single flat list, ordered\n   * dependencies-first (leaves before the apps that depend on them). The per-requested-app orders are\n   * concatenated in request order and de-duplicated, so each app appears exactly once and never before\n   * one of its dependencies. The `installed` flag on each entry tells whether metasite actually\n   * installed it.\n   * @internal\n   */\n  installationOrder?: OrderedInstalledApp[];\n}\n\nexport interface BulkInstallAppResult {\n  /** Metadata about the app installation. */\n  itemMetadata?: ItemMetadata;\n  /** Details of the created app instance. */\n  appInstance?: AppInstance;\n  /**\n   * Deprecated: use `BulkInstallAppResponse.installation_order`.\n   * Dependency tree rooted at the requested app, reflecting the dependencies that were selected for provisioning (OR branches resolved) and reconciled with the metasite install outcome. A node whose app failed to be provisioned but whose descendants succeeded carries the placeholder app_id `00000000-0000-0000-0000-000000000000`; nodes whose app and all descendants failed are dropped. The tree is therefore NOT a complete view of the requested dependency graph — callers must not assume every requested dependency appears here.\n   * @internal\n   * @deprecated\n   * @replacedBy installation_order\n   * @targetRemovalDate 2027-01-31\n   */\n  dependenciesTree?: DependencyNode;\n}\n\nexport interface ItemMetadata {\n  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n  id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface ClientSpecMap {\n  /** The Client Spec Map data. */\n  data?: Record<number, ClientSpec>;\n}\n\n/**\n * ClientSpec is a merge of meta site and dev center data about application.\n *\n * This API is very old, but used a lot in editor and viewer.\n *\n * It represents a flatten hierarchy of subclasses of [com.wixpress.apps.dto.ClientSpec](https://github.com/wix-private/meta-site/blob/master/wix-meta-site-server/app-store-service/client-spec-map-api/src/main/scala/com/wixpress/apps/dto/ClientSpec.java).\n */\nexport interface ClientSpec {\n  /** Possible values: editor, public, wixapps, appbuilder, sitemembers, siteextension, mobileapp, onboarding, metasite or ignored. */\n  type?: string;\n  /**\n   * Deprecated. Represents so-called intId -- a \"position\" of the application in Site Pages (previously editor saved intId\n   * instead of appDefId in pages to correlate with applications).\n   */\n  applicationId?: number;\n  appDefinitionId?: string | null;\n  instanceId?: string | null;\n  state?: string | null;\n  expirationDate?: string | null;\n  /** This field will be deprecated in the future. It currently contains either the access token or the data token. */\n  instance?: string | null;\n  /** A OAuth access token for the application - provides API access. */\n  accessToken?: string | null;\n  /** A data token for the application - provides data about the application user. */\n  dataToken?: string | null;\n  /** MetaSiteClientSpec */\n  metaSiteId?: string | null;\n  /** deprecated */\n  appDefId?: string | null;\n  /** BaseTPAClientSpec */\n  versionFailure?: string | null;\n  appWorkerUrl?: string | null;\n  appDefinitionName?: string | null;\n  sectionDefaultPage?: string | null;\n  sectionUrl?: string | null;\n  widgets?: Record<string, Widget>;\n  gluedWidgets?: Record<string, GluedWidget>;\n  pixelUrl?: string | null;\n  embeddedScriptUrl?: string | null;\n  appRequirements?: TPAAppRequirements;\n  sectionRefreshOnWidthChange?: boolean | null;\n  sectionMobileUrl?: string | null;\n  sectionPublished?: boolean | null;\n  sectionMobilePublished?: boolean | null;\n  sectionSeoEnabled?: boolean | null;\n  /** TODO check serialization */\n  isWixTPA?: boolean | null;\n  installedAtDashboard?: boolean | null;\n  permissions?: TPAPermissions;\n  appFields?: any;\n  version?: string | null;\n  requiresEditorComponent?: boolean | null;\n  editorPartDismissed?: boolean | null;\n  openPremiumPage?: boolean | null;\n  /** TPAEditorClientSpec */\n  settingsUrl?: string | null;\n  onboardingSettingsUrl?: string | null;\n  dashboardUrl?: string | null;\n  dashboardDefaultHeight?: number | null;\n  settingsDialogBanner?: string | null;\n  settingsCompanyName?: string | null;\n  settingsWidth?: number | null;\n  settingsHeight?: number | null;\n  demoMode?: boolean | null;\n  sectionSettings?: TPASettingsClientSpec;\n  vendorProductId?: string | null;\n  vendorProducts?: string[];\n  preInstalled?: boolean | null;\n  appType?: string | null;\n  provisionOnSaveSite?: boolean | null;\n  components?: any;\n  /** WLAClientSpec */\n  datastoreId?: string | null;\n  originDatastoreId?: string | null;\n  packageName?: string | null;\n  /** SiteMembersClientSpec */\n  smcollectionId?: string | null;\n  collectionType?: string | null;\n  collectionFormFace?: string | null;\n  collectionExposure?: string | null;\n  smtoken?: string | null;\n  /** MobileAppClientSpec */\n  name?: string | null;\n  iconUrl?: string | null;\n  /** OnboardingClientSpec */\n  storyId?: string | null;\n  inUse?: boolean | null;\n}\n\nexport interface Widget {\n  /** BaseTPAClientWidget */\n  widgetId?: string | null;\n  widgetUrl?: string | null;\n  tpaWidgetId?: string | null;\n  refreshOnWidthChange?: boolean | null;\n  mobileUrl?: string | null;\n  appPage?: TPAAppPage;\n  published?: boolean | null;\n  mobilePublished?: boolean | null;\n  seoEnabled?: boolean | null;\n  preFetch?: boolean | null;\n  shouldBeStretchedByDefault?: boolean | null;\n  shouldBeStretchedByDefaultMobile?: boolean | null;\n  gluedOptions?: GluedOptions;\n  componentFields?: any;\n  default?: boolean | null;\n  /** TPAEditorClientWidget */\n  defaultWidth?: number | null;\n  defaultHeight?: number | null;\n  defaultShowOnAllPages?: boolean | null;\n  settings?: TPASettingsClientSpec;\n  autoAddToSite?: boolean | null;\n  defaultPosition?: TPAWidgetPosition;\n  canBeStretched?: boolean | null;\n  santaEditorPublished?: boolean | null;\n  addOnlyOnce?: boolean | null;\n  excludeFromAppInstallation?: boolean | null;\n}\n\nexport interface TPAAppPage {\n  id?: string;\n  name?: string;\n  defaultPage?: string;\n  hidden?: boolean;\n  multiInstanceEnabled?: boolean | null;\n  order?: number | null;\n  indexable?: boolean | null;\n  fullPage?: boolean | null;\n  landingPageInMobile?: boolean | null;\n  hideFromMenu?: boolean | null;\n}\n\nexport interface GluedOptions {\n  placement?: string | null;\n  verticalMargin?: number | null;\n  horizontalMargin?: number | null;\n}\n\nexport interface TPASettingsClientSpec {\n  height?: number;\n  width?: number;\n  url?: string | null;\n  urlV2?: string | null;\n  onboardingUrl?: string | null;\n  abTest?: boolean | null;\n  version?: number | null;\n}\n\nexport interface TPAWidgetPosition {\n  region?: string;\n  placement?: string;\n}\n\nexport interface GluedWidget {\n  widgetId?: string | null;\n  widgetUrl?: string | null;\n}\n\nexport interface TPAAppRequirements {\n  requireSiteMembers?: boolean;\n}\n\nexport interface TPAPermissions {\n  revoked?: boolean;\n}\n\nexport interface UninstallAppRequest {\n  /** Tenant details. */\n  tenant?: Tenant;\n  /**\n   * The ID of the app to install.\n   * @format GUID\n   */\n  appDefId: string;\n  /**\n   * True if the the app was already removed from the document\n   * @internal\n   */\n  removedFromDocument?: boolean | null;\n}\n\nexport interface UninstallAppResponse {}\n\nexport interface BulkUninstallAppRequest {\n  /** Tenant details. */\n  tenant?: Tenant;\n  /**\n   * List of apps to be uninstalled.\n   * @format GUID\n   * @maxSize 20\n   */\n  appDefIds: string[];\n  /**\n   * Optional: A list of additional fields to be included in the response.\n   * @internal\n   * @maxSize 1\n   */\n  fields?: RequestedFieldsWithLiterals[];\n  /**\n   * True if the the apps were already removed from the document\n   * @internal\n   */\n  removedFromDocument?: boolean | null;\n}\n\nexport interface BulkUninstallAppResponse {\n  /** Information and metadata about the uninstalled apps. */\n  results?: BulkUninstallAppResult[];\n  /** Metadata about the bulk uninstallation. */\n  bulkActionMetadata?: BulkActionMetadata;\n  /**\n   * The Client Spec Map returned by Metasite uninstall endpoint.\n   * @internal\n   */\n  clientSpecMap?: ClientSpecMap;\n}\n\nexport interface BulkUninstallAppResult {\n  /** Metadata about the uninstalled app instance. */\n  itemMetadata?: ItemMetadata;\n  /**\n   * @format GUID\n   * @deprecated\n   * @replacedBy app_instance\n   * @targetRemovalDate 2025-09-01\n   */\n  appDefId?: string;\n  /** Details of the uninstalled app instance. */\n  appInstance?: AppInstance;\n}\n\nexport interface InstallAppFromShareUrlRequest {\n  /** Tenant details. */\n  tenant: Tenant;\n  /**\n   * ID of the share URL to install the app from.\n   *\n   * To get the share URL of an app:\n   *\n   * 1. [Generate an install link](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/share-your-app-with-an-install-link).\n   *\n   * 2. Click the link, which will redirect you to a page where you can install the app. The URL of this page is the share URL, and the string after `install/` in the URL is the share URL ID. For example, in the share URL `https://www.wix.com/app-market/install/8d5179a2-6d46-45b0-bcfa-64f479c6a2al`, the share URL ID is `8d5179a2-6d46-45b0-bcfa-64f479c6a2al`.\n   * @format GUID\n   */\n  shareUrlId: string;\n  /** Information about the development version of the app to install. Only relevant if the share URL refers to a development version of an app created in the Wix CLI. */\n  devVersion?: DevVersionInstallation;\n  /**\n   * URL the user is redirected to after installing the app from an external install link. Input only, never stored or returned.\n   * When the app validates post-installation URLs, the install fails unless this URL is allowed.\n   * @internal\n   * @maxLength 4096\n   */\n  postInstallationUrl?: string | null;\n}\n\nexport interface InstallAppFromShareUrlResponse {\n  /** App instance created when the app was installed. */\n  appInstance?: AppInstance;\n  /**\n   * List of app instances that were created when dependencies of the app were installed.\n   * @internal\n   */\n  dependenciesInstallation?: AppInstance[];\n  /**\n   * Deprecated: use `installation_order`.\n   * Dependency tree rooted at the requested app, reflecting the dependencies that were selected for provisioning (OR branches resolved) and reconciled with the metasite install outcome. A node whose app failed to be provisioned but whose descendants succeeded carries the placeholder app_id `00000000-0000-0000-0000-000000000000`; nodes whose app and all descendants failed are dropped. The tree is therefore NOT a complete view of the requested dependency graph — callers must not assume every requested dependency appears here.\n   * @internal\n   * @deprecated\n   * @replacedBy installation_order\n   * @targetRemovalDate 2027-01-31\n   */\n  dependenciesTree?: DependencyNode;\n  /**\n   * The requested app and its provisioned dependencies, ordered dependencies-first (leaves before the\n   * apps that depend on them). Each app appears once. The `installed` flag tells whether metasite\n   * actually installed each one.\n   * @internal\n   */\n  installationOrder?: OrderedInstalledApp[];\n}\n\nexport interface IsPermittedToInstallAppsRequest\n  extends IsPermittedToInstallAppsRequestOptionsOneOf {\n  /** Install the app using app instance details. */\n  appsInstallOptions?: AppsInstallOptions;\n  /** Install an app using a share URL. */\n  shareUrlInstallOptions?: ShareUrlInstallOptions;\n  /** Installation type. */\n  installType: InstallTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IsPermittedToInstallAppsRequestOptionsOneOf {\n  /** Install the app using app instance details. */\n  appsInstallOptions?: AppsInstallOptions;\n  /** Install an app using a share URL. */\n  shareUrlInstallOptions?: ShareUrlInstallOptions;\n}\n\nexport enum InstallType {\n  /** Installation based on app instance data provided in the request. */\n  APPS_INSTALL = 'APPS_INSTALL',\n  /** Installation based on a shareable app URL. */\n  SHARE_URL_INSTALL = 'SHARE_URL_INSTALL',\n}\n\n/** @enumType */\nexport type InstallTypeWithLiterals =\n  | InstallType\n  | 'APPS_INSTALL'\n  | 'SHARE_URL_INSTALL';\n\nexport interface AppsInstallOptions {\n  /** Tenant details. */\n  tenant?: Tenant;\n  /**\n   * Details of the app instances to create when the apps are installed.\n   * @minSize 1\n   * @maxSize 30\n   */\n  appInstances?: AppInstance[];\n}\n\nexport interface ShareUrlInstallOptions {\n  /**\n   * ID of the share URL to install the app from.\n   * @format GUID\n   */\n  shareUrlId?: string;\n}\n\nexport interface IsPermittedToInstallAppsResponse {\n  /** Whether the installation is permitted. */\n  permitted?: boolean;\n}\n\nexport interface GetInstalledAppsRequest {}\n\nexport interface GetInstalledAppsResponse {\n  /** The installed app instances */\n  appInstances?: AppInstance[];\n}\n\n/** @docsIgnore */\nexport type InstallAppApplicationErrors =\n  | {\n      code?: 'DOMAIN_ENTITY_MISSING';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'UNSUPPORTED_TENANT_TYPE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_DEV_VERSION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'POST_INSTALLATION_URL_NOT_ALLOWED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type BulkInstallAppApplicationErrors =\n  | {\n      code?: 'DOMAIN_ENTITY_MISSING';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'UNSUPPORTED_TENANT_TYPE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'POST_INSTALLATION_URL_NOT_ALLOWED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type UninstallAppApplicationErrors = {\n  code?: 'UNINSTALL_FAILED';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type InstallAppFromShareUrlApplicationErrors =\n  | {\n      code?: 'UNSUPPORTED_TENANT_TYPE';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'SHARE_URL_IS_REVOKED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'SHARE_URL_NOT_FOUND';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'POST_INSTALLATION_URL_NOT_ALLOWED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type IsPermittedToInstallAppsApplicationErrors = {\n  code?: 'UNSUPPORTED_TENANT_TYPE';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixAppsV1AppInstance from './apps-v1-app-instance-apps-installer.http.js';\nimport * as ambassadorWixAppsV1AppInstanceTypes from './apps-v1-app-instance-apps-installer.types.js';\nimport * as ambassadorWixAppsV1AppInstanceUniversalTypes from './apps-v1-app-instance-apps-installer.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function installApp(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppRequest,\n  ambassadorWixAppsV1AppInstanceTypes.InstallAppRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppResponse,\n  ambassadorWixAppsV1AppInstanceTypes.InstallAppResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixAppsV1AppInstance.installApp(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/app-instance/install',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function bulkInstallApp(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.BulkInstallAppRequest,\n  ambassadorWixAppsV1AppInstanceTypes.BulkInstallAppRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.BulkInstallAppResponse,\n  ambassadorWixAppsV1AppInstanceTypes.BulkInstallAppResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.bulkInstallApp(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/bulk/app-instance/install',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function uninstallApp(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.UninstallAppRequest,\n  ambassadorWixAppsV1AppInstanceTypes.UninstallAppRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.UninstallAppResponse,\n  ambassadorWixAppsV1AppInstanceTypes.UninstallAppResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.uninstallApp(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/app-instance/uninstall',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function bulkUninstallApp(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.BulkUninstallAppRequest,\n  ambassadorWixAppsV1AppInstanceTypes.BulkUninstallAppRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.BulkUninstallAppResponse,\n  ambassadorWixAppsV1AppInstanceTypes.BulkUninstallAppResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.bulkUninstallApp(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/bulk/app-instance/uninstall',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function installAppFromShareUrl(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppFromShareUrlRequest,\n  ambassadorWixAppsV1AppInstanceTypes.InstallAppFromShareUrlRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppFromShareUrlResponse,\n  ambassadorWixAppsV1AppInstanceTypes.InstallAppFromShareUrlResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.installAppFromShareUrl(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/app-share-url/install',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function isPermittedToInstallApps(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.IsPermittedToInstallAppsRequest,\n  ambassadorWixAppsV1AppInstanceTypes.IsPermittedToInstallAppsRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.IsPermittedToInstallAppsResponse,\n  ambassadorWixAppsV1AppInstanceTypes.IsPermittedToInstallAppsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.isPermittedToInstallApps(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/app-instance/is-permitted-to-install',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getInstalledApps(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixAppsV1AppInstanceUniversalTypes.GetInstalledAppsRequest,\n  ambassadorWixAppsV1AppInstanceTypes.GetInstalledAppsRequest,\n  ambassadorWixAppsV1AppInstanceUniversalTypes.GetInstalledAppsResponse,\n  ambassadorWixAppsV1AppInstanceTypes.GetInstalledAppsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppsV1AppInstance.getInstalledApps(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/app-instances',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  AppInstance as AppInstanceOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  LegacyParams as LegacyParamsOriginal,\n  DevVersionInstallation as DevVersionInstallationOriginal,\n  ListAppInstancesRequest as ListAppInstancesRequestOriginal,\n  Tenant as TenantOriginal,\n  TenantType as TenantTypeOriginal,\n  TenantTypeWithLiterals as TenantTypeWithLiteralsOriginal,\n  ListAppInstancesResponse as ListAppInstancesResponseOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  InstallDefaultAppsEvent as InstallDefaultAppsEventOriginal,\n  Empty as EmptyOriginal,\n  InstallAppRequest as InstallAppRequestOriginal,\n  InstallAppResponse as InstallAppResponseOriginal,\n  DependencyNode as DependencyNodeOriginal,\n  DependencyNodeOptionsOneOf as DependencyNodeOptionsOneOfOriginal,\n  DependencyNodeType as DependencyNodeTypeOriginal,\n  DependencyNodeTypeWithLiterals as DependencyNodeTypeWithLiteralsOriginal,\n  SingleDependency as SingleDependencyOriginal,\n  DependenciesLogicTree as DependenciesLogicTreeOriginal,\n  Operator as OperatorOriginal,\n  OperatorWithLiterals as OperatorWithLiteralsOriginal,\n  ResolvedSingleDependency as ResolvedSingleDependencyOriginal,\n  OrderedInstalledApp as OrderedInstalledAppOriginal,\n  AppInstalledOnTenant as AppInstalledOnTenantOriginal,\n  BulkInstallAppRequest as BulkInstallAppRequestOriginal,\n  RequestedFields as RequestedFieldsOriginal,\n  RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n  BulkInstallAppResponse as BulkInstallAppResponseOriginal,\n  BulkInstallAppResult as BulkInstallAppResultOriginal,\n  ItemMetadata as ItemMetadataOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  BulkActionMetadata as BulkActionMetadataOriginal,\n  ClientSpecMap as ClientSpecMapOriginal,\n  ClientSpec as ClientSpecOriginal,\n  Widget as WidgetOriginal,\n  TPAAppPage as TPAAppPageOriginal,\n  GluedOptions as GluedOptionsOriginal,\n  TPASettingsClientSpec as TPASettingsClientSpecOriginal,\n  TPAWidgetPosition as TPAWidgetPositionOriginal,\n  GluedWidget as GluedWidgetOriginal,\n  TPAAppRequirements as TPAAppRequirementsOriginal,\n  TPAPermissions as TPAPermissionsOriginal,\n  UninstallAppRequest as UninstallAppRequestOriginal,\n  UninstallAppResponse as UninstallAppResponseOriginal,\n  BulkUninstallAppRequest as BulkUninstallAppRequestOriginal,\n  BulkUninstallAppResponse as BulkUninstallAppResponseOriginal,\n  BulkUninstallAppResult as BulkUninstallAppResultOriginal,\n  InstallAppFromShareUrlRequest as InstallAppFromShareUrlRequestOriginal,\n  InstallAppFromShareUrlResponse as InstallAppFromShareUrlResponseOriginal,\n  IsPermittedToInstallAppsRequest as IsPermittedToInstallAppsRequestOriginal,\n  IsPermittedToInstallAppsRequestOptionsOneOf as IsPermittedToInstallAppsRequestOptionsOneOfOriginal,\n  InstallType as InstallTypeOriginal,\n  InstallTypeWithLiterals as InstallTypeWithLiteralsOriginal,\n  AppsInstallOptions as AppsInstallOptionsOriginal,\n  ShareUrlInstallOptions as ShareUrlInstallOptionsOriginal,\n  IsPermittedToInstallAppsResponse as IsPermittedToInstallAppsResponseOriginal,\n  GetInstalledAppsRequest as GetInstalledAppsRequestOriginal,\n  GetInstalledAppsResponse as GetInstalledAppsResponseOriginal,\n  InstallAppApplicationErrors as InstallAppApplicationErrorsOriginal,\n  BulkInstallAppApplicationErrors as BulkInstallAppApplicationErrorsOriginal,\n  UninstallAppApplicationErrors as UninstallAppApplicationErrorsOriginal,\n  InstallAppFromShareUrlApplicationErrors as InstallAppFromShareUrlApplicationErrorsOriginal,\n  IsPermittedToInstallAppsApplicationErrors as IsPermittedToInstallAppsApplicationErrorsOriginal,\n} from './apps-v1-app-instance-apps-installer.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,4BAA4B;AAAA,EACpC,EAAE,MAAM,0BAA0B;AACpC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,4BAA4B;AAAA,EACpC,EAAE,MAAM,0BAA0B;AAAA,EAClC,EAAE,MAAM,yCAAyC;AAAA,EACjD,EAAE,MAAM,uCAAuC;AACjD;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,6BAA6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AAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","TenantType","WebhookIdentityType","DependencyNodeType","Operator","RequestedFields","InstallType","installApp","bulkInstallApp","uninstallApp","bulkUninstallApp","installAppFromShareUrl","isPermittedToInstallApps","getInstalledApps"]}