{"version":3,"sources":["../../src/site-actions-v1-site-actions-site-actions.universal.ts","../../src/site-actions-v1-site-actions-site-actions.http.ts","../../src/site-actions-v1-site-actions-site-actions.public.ts","../../src/site-actions-v1-site-actions-site-actions.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixSiteActionsV1SiteActions from './site-actions-v1-site-actions-site-actions.http.js';\n\n/**\n * A package is group of instances of Wix services that a reseller offers to a\n * customer as part of a single transaction.\n */\nexport interface EmptyEntity {}\n\nexport interface PublishSiteRequest {}\n\nexport interface PublishSiteResponse {}\n\nexport interface DeployStandalonePagesRequest {}\n\nexport interface DeployStandalonePagesResponse {}\n\nexport interface DuplicateSiteRequest {\n  /**\n   * ID of the site to duplicated.\n   * @format GUID\n   */\n  sourceSiteId: string;\n  /**\n   * Display name for the new site.\n   * @minLength 1\n   * @maxLength 40\n   */\n  siteDisplayName: string;\n}\n\nexport interface DuplicateSiteResponse {\n  /**\n   * ID of the new site.\n   * @format GUID\n   */\n  newSiteId?: string;\n}\n\nexport interface BulkDeleteSiteRequest {\n  /**\n   * Site IDs.\n   *\n   * Min: 1 site ID <br>\n   * Max: 20 site IDs\n   * @format GUID\n   * @minSize 1\n   * @maxSize 20\n   */\n  ids: string[];\n}\n\nexport interface BulkDeleteSiteResponse {\n  /** List of deletion results. */\n  results?: BulkSiteResult[];\n  /** Summary of deletion data. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkSiteResult {\n  /** Result of deletion request per site describing the success or failure of each deletion. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface ItemMetadata {\n  /** Site ID. */\n  _id?: string | null;\n  /** Index of the site in the request array. Allows for correlation between request and response. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated. */\n  success?: boolean;\n  /** Details about the error. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of error. */\n  description?: string;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of sites that were deleted successfully. */\n  totalSuccesses?: number;\n  /** Number of sites that were not deleted successfully. */\n  totalFailures?: number;\n}\n\nexport interface RenameSiteRequest {\n  /**\n   * @minLength 1\n   * @maxLength 40\n   */\n  siteNewName?: string;\n}\n\nexport interface RenameSiteResponse {}\n\nexport interface ValidateSiteNameRequest {\n  /**\n   * @minLength 1\n   * @maxLength 40\n   */\n  siteName?: string;\n}\n\nexport interface ValidateSiteNameResponse {\n  /** Indicates whether the site name is valid. */\n  valid?: boolean;\n}\n\nexport interface UnpublishSiteRequest {}\n\nexport interface UnpublishSiteResponse {}\n\nexport interface MoveSiteToTrashRequest {}\n\nexport interface MoveSiteToTrashResponse {}\n\nexport interface RestoreSiteFromTrashRequest {\n  /** @format GUID */\n  siteId?: string;\n}\n\nexport interface RestoreSiteFromTrashResponse {}\n\nexport interface DeleteSiteFromTrashRequest {\n  /** @format GUID */\n  siteId?: string;\n}\n\nexport interface DeleteSiteFromTrashResponse {}\n\nexport interface CreateAndAttachChildRequest {\n  /** @format GUID */\n  templateId?: string;\n  /**\n   * @minLength 1\n   * @maxLength 40\n   */\n  name?: string;\n}\n\nexport interface CreateAndAttachChildResponse {\n  /** @format GUID */\n  childMetaSiteId?: string;\n}\n\n/** @docsIgnore */\nexport type PublishSiteApplicationErrors = {\n  code?: 'SITE_IS_NOT_DEFINED_AS_PUBLISHABLE';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DeployStandalonePagesApplicationErrors = {\n  code?: 'SITE_IS_NOT_HEADLESS';\n  description?: string;\n  data?: Record<string, any>;\n};\n\n/**\n * Publishes a site.\n *\n * Publishing a site makes any changes previously saved on the site available on the internet.\n * After publishing, changes to your site appear in the [site's history](https://support.wix.com/en/article/viewing-and-managing-your-site-history).\n *\n * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n * @public\n * @permissionId METASITE.UPDATE\n * @applicableIdentity APP\n * @fqn wix.site.v1.SitePublisher.PublishSite\n */\nexport async function publishSite(): Promise<\n  void & {\n    __applicationErrorsType?: PublishSiteApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixSiteActionsV1SiteActions.publishSite(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Publishes a headless site.\n *\n * Publishing only the headless pages of the site.\n *\n * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n * @public\n * @permissionId METASITE.UPDATE\n * @applicableIdentity APP\n * @fqn wix.site.v1.SitePublisher.DeployStandalonePages\n */\nexport async function deployStandalonePages(): Promise<\n  void & {\n    __applicationErrorsType?: DeployStandalonePagesApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts =\n    ambassadorWixSiteActionsV1SiteActions.deployStandalonePages(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Duplicates a site with a new site name.\n *\n * > **Note:** When you duplicate a site, some business-related content such as store orders, contacts, invoices, and 3rd-party app settings are not be included.\n * > The duplicated site won’t have a domain or any Premium capabilities.\n *\n * Any installed apps that can be used only on sites with a Premium Plan, will be copied to the duplicated site and\n * will appear unactivated. Once the site is upgraded, the app will be available for use.\n *\n * > **Important:** This call requires an account level API key.\n * @param sourceSiteId - ID of the site to duplicated.\n * @public\n * @requiredField options\n * @requiredField options.siteDisplayName\n * @requiredField sourceSiteId\n * @permissionId my-account.duplicate-site\n * @fqn com.wix.site.actions.SiteActionsService.DuplicateSite\n */\nexport async function duplicateSite(\n  sourceSiteId: string,\n  options: NonNullablePaths<DuplicateSiteOptions, `siteDisplayName`, 0>\n): Promise<NonNullablePaths<DuplicateSiteResponse, `newSiteId`, 0>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    sourceSiteId: sourceSiteId,\n    siteDisplayName: options?.siteDisplayName,\n  });\n\n  const reqOpts = ambassadorWixSiteActionsV1SiteActions.duplicateSite(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          sourceSiteId: '$[0]',\n          siteDisplayName: '$[1].siteDisplayName',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['sourceSiteId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface DuplicateSiteOptions {\n  /**\n   * Display name for the new site.\n   * @minLength 1\n   * @maxLength 40\n   */\n  siteDisplayName: string;\n}\n\n/**\n * This endpoint enables you to delete multiple sites.\n *\n * This is not a permanent delete. Sites are moved to the trash bin and can be restored through site collaborators.\n *\n * Learn more about [deleting multiple sites](https://support.wix.com/en/article/moving-a-site-to-trash).\n *\n * > **Important:** This call requires an account level API key.\n * @param ids - Site IDs.\n *\n * Min: 1 site ID <br>\n * Max: 20 site IDs\n * @public\n * @requiredField ids\n * @permissionId my-account.delete-site\n * @fqn com.wix.site.actions.SiteActionsService.BulkDeleteSite\n */\nexport async function bulkDeleteSite(\n  ids: string[]\n): Promise<\n  NonNullablePaths<\n    BulkDeleteSiteResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });\n\n  const reqOpts = ambassadorWixSiteActionsV1SiteActions.bulkDeleteSite(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { ids: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['ids']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixSiteActionsSiteActionsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/site-actions',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/site-actions',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/site-actions',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixSiteV1SitePublisherUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/site-publisher',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/site-publisher',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/site-publisher',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/site-publisher',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_sites_site-actions';\n\n/**\n * Publishes a site.\n *\n * Publishing a site makes any changes previously saved on the site available on the internet.\n * After publishing, changes to your site appear in the [site's history](https://support.wix.com/en/article/viewing-and-managing-your-site-history).\n *\n * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n */\nexport function publishSite(payload: object): RequestOptionsFactory<any> {\n  function __publishSite({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.site_actions.v1.site_actions',\n      method: 'POST' as any,\n      methodFqn: 'wix.site.v1.SitePublisher.PublishSite',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSiteV1SitePublisherUrl({\n        protoPath: '/v1/site/publish',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __publishSite;\n}\n\n/**\n * Publishes a headless site.\n *\n * Publishing only the headless pages of the site.\n *\n * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n */\nexport function deployStandalonePages(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deployStandalonePages({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.site_actions.v1.site_actions',\n      method: 'POST' as any,\n      methodFqn: 'wix.site.v1.SitePublisher.DeployStandalonePages',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixSiteV1SitePublisherUrl({\n        protoPath: '/v1/site/deploy-standalone-pages',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __deployStandalonePages;\n}\n\n/**\n * Duplicates a site with a new site name.\n *\n * > **Note:** When you duplicate a site, some business-related content such as store orders, contacts, invoices, and 3rd-party app settings are not be included.\n * > The duplicated site won’t have a domain or any Premium capabilities.\n *\n * Any installed apps that can be used only on sites with a Premium Plan, will be copied to the duplicated site and\n * will appear unactivated. Once the site is upgraded, the app will be available for use.\n *\n * > **Important:** This call requires an account level API key.\n */\nexport function duplicateSite(payload: object): RequestOptionsFactory<any> {\n  function __duplicateSite({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.site_actions.v1.site_actions',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.site.actions.SiteActionsService.DuplicateSite',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixSiteActionsSiteActionsServiceUrl({\n        protoPath: '/v1/sites/duplicate',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __duplicateSite;\n}\n\n/**\n * This endpoint enables you to delete multiple sites.\n *\n * This is not a permanent delete. Sites are moved to the trash bin and can be restored through site collaborators.\n *\n * Learn more about [deleting multiple sites](https://support.wix.com/en/article/moving-a-site-to-trash).\n *\n * > **Important:** This call requires an account level API key.\n */\nexport function bulkDeleteSite(payload: object): RequestOptionsFactory<any> {\n  function __bulkDeleteSite({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.site_actions.v1.site_actions',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.site.actions.SiteActionsService.BulkDeleteSite',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixSiteActionsSiteActionsServiceUrl({\n        protoPath: '/v1/bulk/sites/delete',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkDeleteSite;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  BulkDeleteSiteResponse,\n  DeployStandalonePagesApplicationErrors,\n  DuplicateSiteOptions,\n  DuplicateSiteResponse,\n  PublishSiteApplicationErrors,\n  bulkDeleteSite as universalBulkDeleteSite,\n  deployStandalonePages as universalDeployStandalonePages,\n  duplicateSite as universalDuplicateSite,\n  publishSite as universalPublishSite,\n} from './site-actions-v1-site-actions-site-actions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/sites' };\n\nexport function publishSite(httpClient: HttpClient): PublishSiteSignature {\n  return () =>\n    universalPublishSite(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishSiteSignature {\n  /**\n   * Publishes a site.\n   *\n   * Publishing a site makes any changes previously saved on the site available on the internet.\n   * After publishing, changes to your site appear in the [site's history](https://support.wix.com/en/article/viewing-and-managing-your-site-history).\n   *\n   * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n   */\n  (): Promise<\n    void & {\n      __applicationErrorsType?: PublishSiteApplicationErrors;\n    }\n  >;\n}\n\nexport function deployStandalonePages(\n  httpClient: HttpClient\n): DeployStandalonePagesSignature {\n  return () =>\n    universalDeployStandalonePages(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeployStandalonePagesSignature {\n  /**\n   * Publishes a headless site.\n   *\n   * Publishing only the headless pages of the site.\n   *\n   * When using an API key for authentication, include a `wix-site-id` header with the ID of the site you want to publish.\n   */\n  (): Promise<\n    void & {\n      __applicationErrorsType?: DeployStandalonePagesApplicationErrors;\n    }\n  >;\n}\n\nexport function duplicateSite(httpClient: HttpClient): DuplicateSiteSignature {\n  return (\n    sourceSiteId: string,\n    options: NonNullablePaths<DuplicateSiteOptions, `siteDisplayName`, 0>\n  ) =>\n    universalDuplicateSite(\n      sourceSiteId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DuplicateSiteSignature {\n  /**\n   * Duplicates a site with a new site name.\n   *\n   * > **Note:** When you duplicate a site, some business-related content such as store orders, contacts, invoices, and 3rd-party app settings are not be included.\n   * > The duplicated site won’t have a domain or any Premium capabilities.\n   *\n   * Any installed apps that can be used only on sites with a Premium Plan, will be copied to the duplicated site and\n   * will appear unactivated. Once the site is upgraded, the app will be available for use.\n   *\n   * > **Important:** This call requires an account level API key.\n   * @param - ID of the site to duplicated.\n   */\n  (\n    sourceSiteId: string,\n    options: NonNullablePaths<DuplicateSiteOptions, `siteDisplayName`, 0>\n  ): Promise<NonNullablePaths<DuplicateSiteResponse, `newSiteId`, 0>>;\n}\n\nexport function bulkDeleteSite(\n  httpClient: HttpClient\n): BulkDeleteSiteSignature {\n  return (ids: string[]) =>\n    universalBulkDeleteSite(\n      ids,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkDeleteSiteSignature {\n  /**\n   * This endpoint enables you to delete multiple sites.\n   *\n   * This is not a permanent delete. Sites are moved to the trash bin and can be restored through site collaborators.\n   *\n   * Learn more about [deleting multiple sites](https://support.wix.com/en/article/moving-a-site-to-trash).\n   *\n   * > **Important:** This call requires an account level API key.\n   * @param - Site IDs.\n   *\n   * Min: 1 site ID <br>\n   * Max: 20 site IDs\n   */\n  (ids: string[]): Promise<\n    NonNullablePaths<\n      BulkDeleteSiteResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`,\n      4\n    >\n  >;\n}\n\nexport {\n  ApplicationError,\n  BulkActionMetadata,\n  BulkDeleteSiteRequest,\n  BulkDeleteSiteResponse,\n  BulkSiteResult,\n  CreateAndAttachChildRequest,\n  CreateAndAttachChildResponse,\n  DeleteSiteFromTrashRequest,\n  DeleteSiteFromTrashResponse,\n  DeployStandalonePagesRequest,\n  DeployStandalonePagesResponse,\n  DuplicateSiteOptions,\n  DuplicateSiteRequest,\n  DuplicateSiteResponse,\n  EmptyEntity,\n  ItemMetadata,\n  MoveSiteToTrashRequest,\n  MoveSiteToTrashResponse,\n  PublishSiteRequest,\n  PublishSiteResponse,\n  RenameSiteRequest,\n  RenameSiteResponse,\n  RestoreSiteFromTrashRequest,\n  RestoreSiteFromTrashResponse,\n  UnpublishSiteRequest,\n  UnpublishSiteResponse,\n  ValidateSiteNameRequest,\n  ValidateSiteNameResponse,\n} from './site-actions-v1-site-actions-site-actions.universal.js';\n","import {\n  publishSite as publicPublishSite,\n  deployStandalonePages as publicDeployStandalonePages,\n  duplicateSite as publicDuplicateSite,\n  bulkDeleteSite as publicBulkDeleteSite,\n} from './site-actions-v1-site-actions-site-actions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const publishSite: MaybeContext<\n  BuildRESTFunction<typeof publicPublishSite> & typeof publicPublishSite\n> = /*#__PURE__*/ createRESTModule(publicPublishSite);\nexport const deployStandalonePages: MaybeContext<\n  BuildRESTFunction<typeof publicDeployStandalonePages> &\n    typeof publicDeployStandalonePages\n> = /*#__PURE__*/ createRESTModule(publicDeployStandalonePages);\nexport const duplicateSite: MaybeContext<\n  BuildRESTFunction<typeof publicDuplicateSite> & typeof publicDuplicateSite\n> = /*#__PURE__*/ createRESTModule(publicDuplicateSite);\nexport const bulkDeleteSite: MaybeContext<\n  BuildRESTFunction<typeof publicBulkDeleteSite> & typeof publicBulkDeleteSite\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteSite);\n\nexport {\n  EmptyEntity,\n  PublishSiteRequest,\n  PublishSiteResponse,\n  DeployStandalonePagesRequest,\n  DeployStandalonePagesResponse,\n  DuplicateSiteRequest,\n  DuplicateSiteResponse,\n  BulkDeleteSiteRequest,\n  BulkDeleteSiteResponse,\n  BulkSiteResult,\n  ItemMetadata,\n  ApplicationError,\n  BulkActionMetadata,\n  RenameSiteRequest,\n  RenameSiteResponse,\n  ValidateSiteNameRequest,\n  ValidateSiteNameResponse,\n  UnpublishSiteRequest,\n  UnpublishSiteResponse,\n  MoveSiteToTrashRequest,\n  MoveSiteToTrashResponse,\n  RestoreSiteFromTrashRequest,\n  RestoreSiteFromTrashResponse,\n  DeleteSiteFromTrashRequest,\n  DeleteSiteFromTrashResponse,\n  CreateAndAttachChildRequest,\n  CreateAndAttachChildResponse,\n  DuplicateSiteOptions,\n} from './site-actions-v1-site-actions-site-actions.universal.js';\nexport {\n  PublishSiteApplicationErrors,\n  DeployStandalonePagesApplicationErrors,\n} from './site-actions-v1-site-actions-site-actions.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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gBACpB,KAaA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC,EAAE,IAAS,CAAC;AAElE,QAAM,UAAgD,eAAe,OAAO;AAE5E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,KAAK,OAAO;AAAA,QACxC,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,KAAK;AAAA,IACR;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE7XO,SAASC,aAAY,YAA8C;AACxE,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAkBO,SAASC,uBACd,YACgC;AAChC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAiBO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CACL,cACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAqBO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,QACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACnGA,SAAS,wBAAwB;AAG1B,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,kBAEK,iCAAiBA,eAAoB;","names":["publishSite","deployStandalonePages","duplicateSite","bulkDeleteSite","publishSite","deployStandalonePages","duplicateSite","bulkDeleteSite","publishSite","deployStandalonePages","duplicateSite","bulkDeleteSite"]}