{"version":3,"sources":["../../src/media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.public.ts","../../src/media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.ts","../../src/media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.http.ts","../../src/media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  EnterpriseCategory,\n  EnterpriseCategoryCreatedEnvelope,\n  EnterpriseCategoryDeletedEnvelope,\n  EnterpriseCategoryTree,\n  EnterpriseCategoryUpdatedEnvelope,\n  EnterpriseOnboardingOptions,\n  EnterpriseOnboardingResponse,\n  GetCategoryOptions,\n  GetMediaManagerCategoriesResponse,\n  UpdateCategory,\n  createCategory as universalCreateCategory,\n  deleteCategory as universalDeleteCategory,\n  enterpriseOnboarding as universalEnterpriseOnboarding,\n  getCategory as universalGetCategory,\n  getMediaManagerCategories as universalGetMediaManagerCategories,\n  updateCategory as universalUpdateCategory,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/media' };\n\nexport function createCategory(\n  httpClient: HttpClient\n): CreateCategorySignature {\n  return (category: NonNullablePaths<EnterpriseCategory, `displayName`, 2>) =>\n    universalCreateCategory(\n      category,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateCategorySignature {\n  /**\n   * Creates a category under the account's master category. Only one level of categories is supported under the master category. Before creating categories, ensure [Enterprise Onboarding](#enterpriseonboarding) has been called to initialize the account's root category structure.\n   *\n   * To delete a category, call [Delete Category](#deletecategory).\n   * @param - Category to create.\n   * @returns Created category.\n   */\n  (category: NonNullablePaths<EnterpriseCategory, `displayName`, 2>): Promise<\n    NonNullablePaths<EnterpriseCategory, `_id` | `publishStatus`, 2>\n  >;\n}\n\nexport function deleteCategory(\n  httpClient: HttpClient\n): DeleteCategorySignature {\n  return (categoryId: string) =>\n    universalDeleteCategory(\n      categoryId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteCategorySignature {\n  /**\n   * Deletes a category including all its subcategories. Items in the category are not deleted.\n   *\n   * To create a category, call [Create Category](#createcategory).\n   * @param - Category ID.\n   */\n  (categoryId: string): Promise<void>;\n}\n\nexport function updateCategory(\n  httpClient: HttpClient\n): UpdateCategorySignature {\n  return (_id: string, category: UpdateCategory) =>\n    universalUpdateCategory(\n      _id,\n      category,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateCategorySignature {\n  /**\n   * Updates a category.\n   * @param - Category ID.\n   * @returns Updated category.\n   */\n  (_id: string, category: UpdateCategory): Promise<\n    NonNullablePaths<EnterpriseCategory, `_id` | `publishStatus`, 2>\n  >;\n}\n\nexport function getCategory(httpClient: HttpClient): GetCategorySignature {\n  return (categoryId: string, options?: GetCategoryOptions) =>\n    universalGetCategory(\n      categoryId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetCategorySignature {\n  /**\n   * Retrieves a category by ID, optionally including subcategories.\n   * @param - Category ID.\n   * @returns Category details including subcategories if requested.\n   */\n  (categoryId: string, options?: GetCategoryOptions): Promise<\n    NonNullablePaths<\n      EnterpriseCategoryTree,\n      `category._id` | `category.publishStatus` | `subCategories`,\n      3\n    >\n  >;\n}\n\nexport function enterpriseOnboarding(\n  httpClient: HttpClient\n): EnterpriseOnboardingSignature {\n  return (accountId: string, options?: EnterpriseOnboardingOptions) =>\n    universalEnterpriseOnboarding(\n      accountId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface EnterpriseOnboardingSignature {\n  /**\n   * Initializes the enterprise category structure for an organization during first-time setup. Creates the root account category using the provided account information.\n   * If the root account category already exists, this method returns the existing category structure without creating duplicates.\n   *\n   * The caller's account ID must match the `accountId` in the request.\n   * @param - Account ID of the organization. Used as the organization category ID.\n   */\n  (accountId: string, options?: EnterpriseOnboardingOptions): Promise<\n    NonNullablePaths<\n      EnterpriseOnboardingResponse,\n      `category._id` | `category.publishStatus`,\n      3\n    >\n  >;\n}\n\nexport function getMediaManagerCategories(\n  httpClient: HttpClient\n): GetMediaManagerCategoriesSignature {\n  return () =>\n    universalGetMediaManagerCategories(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetMediaManagerCategoriesSignature {\n  /**\n   * Retrieves the category tree for the media manager, including all categories accessible to the current user.\n   */\n  (): Promise<\n    NonNullablePaths<\n      GetMediaManagerCategoriesResponse,\n      | `category.category._id`\n      | `category.category.publishStatus`\n      | `category.subCategories`,\n      4\n    >\n  >;\n}\n\nexport const onEnterpriseCategoryCreated = EventDefinition(\n  'wix.media.enterprise_public_media.v1.enterprise_category_created',\n  true,\n  (event: EnterpriseCategoryCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'entity.sortOrder' }],\n        },\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<EnterpriseCategoryCreatedEnvelope>();\nexport const onEnterpriseCategoryDeleted = EventDefinition(\n  'wix.media.enterprise_public_media.v1.enterprise_category_deleted',\n  true,\n  (event: EnterpriseCategoryDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'entity.sortOrder' }],\n        },\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<EnterpriseCategoryDeletedEnvelope>();\nexport const onEnterpriseCategoryUpdated = EventDefinition(\n  'wix.media.enterprise_public_media.v1.enterprise_category_updated',\n  true,\n  (event: EnterpriseCategoryUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'entity.sortOrder' }],\n        },\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<EnterpriseCategoryUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  BaseEventMetadata,\n  CreateCategoryRequest,\n  CreateCategoryResponse,\n  DeleteCategoryRequest,\n  DeleteCategoryResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EnterpriseCategory,\n  EnterpriseCategoryCreatedEnvelope,\n  EnterpriseCategoryDeletedEnvelope,\n  EnterpriseCategoryTree,\n  EnterpriseCategoryUpdatedEnvelope,\n  EnterpriseOnboardingOptions,\n  EnterpriseOnboardingRequest,\n  EnterpriseOnboardingResponse,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  GetCategoryOptions,\n  GetCategoryRequest,\n  GetCategoryResponse,\n  GetMediaManagerCategoriesRequest,\n  GetMediaManagerCategoriesResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  LinkItemsToCategoryRequest,\n  LinkItemsToCategoryResponse,\n  MediaType,\n  MessageEnvelope,\n  PublishStatus,\n  RestoreInfo,\n  UnlinkItemsFromCategoryRequest,\n  UnlinkItemsFromCategoryResponse,\n  UpdateCategory,\n  UpdateCategoryRequest,\n  UpdateCategoryResponse,\n  WebhookIdentityType,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.js';\n","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 ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.http.js';\n\n/** A category used to organize enterprise media items. Categories are organized in a two-level hierarchy: a root account category (created during onboarding) and categories nested within it. */\nexport interface EnterpriseCategory {\n  /**\n   * Category ID.\n   * @maxLength 100\n   * @readonly\n   */\n  _id?: string;\n  /**\n   * Display name shown for the category.\n   * @maxLength 100\n   * @minLength 2\n   */\n  displayName?: string | null;\n  /**\n   * ID of the parent category.\n   *\n   * Default: Account category ID.\n   * @maxLength 100\n   */\n  parentCategoryId?: string | null;\n  /** Display order among sibling categories under the same parent. Lower values appear first. Supports decimals to insert between existing positions without renumbering. */\n  sortOrder?: number | null;\n  /** Publication status of the category. Controls whether the category is visible to child accounts. */\n  publishStatus?: PublishStatusWithLiterals;\n  /**\n   * Date and time the category was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the category was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n}\n\nexport enum PublishStatus {\n  /** Unknown publish status. */\n  UNDEFINED = 'UNDEFINED',\n  /** Not published. Visible only in the account dashboard. */\n  UNPUBLISHED = 'UNPUBLISHED',\n  /** Published. Visible in child accounts' media managers. */\n  PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type PublishStatusWithLiterals =\n  | PublishStatus\n  | 'UNDEFINED'\n  | 'UNPUBLISHED'\n  | 'PUBLISHED';\n\nexport enum MediaType {\n  /** Mixed media types. Used for categories that contain multiple types of media. Individual items should use specific media types (IMAGE, VIDEO, etc.) rather than MIXED. */\n  MIXED = 'MIXED',\n  /** Image file. */\n  IMAGE = 'IMAGE',\n  /** Video file. */\n  VIDEO = 'VIDEO',\n  /** Audio file. */\n  AUDIO = 'AUDIO',\n  /** Document file. */\n  DOCUMENT = 'DOCUMENT',\n  /** Vector image file. */\n  VECTOR = 'VECTOR',\n  /** Archive file. Supported formats: ZIP, RAR, TAR, TAR.GZ, GZ, GZIP, JAR, 7Z, FGZ, and WEBARCHIVE. Maximum file size: 4000MB. */\n  ARCHIVE = 'ARCHIVE',\n  /** 3D model file. */\n  MODEL3D = 'MODEL3D',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n  | MediaType\n  | 'MIXED'\n  | 'IMAGE'\n  | 'VIDEO'\n  | 'AUDIO'\n  | 'DOCUMENT'\n  | 'VECTOR'\n  | 'ARCHIVE'\n  | 'MODEL3D';\n\nexport interface CreateCategoryRequest {\n  /** Category to create. */\n  category: EnterpriseCategory;\n}\n\nexport interface CreateCategoryResponse {\n  /** Created category. */\n  category?: EnterpriseCategory;\n}\n\nexport interface DeleteCategoryRequest {\n  /**\n   * Category ID.\n   * @maxLength 100\n   */\n  categoryId: string;\n}\n\nexport interface DeleteCategoryResponse {}\n\nexport interface UpdateCategoryRequest {\n  /** Category to update. */\n  category: EnterpriseCategory;\n}\n\nexport interface UpdateCategoryResponse {\n  /** Updated category. */\n  category?: EnterpriseCategory;\n}\n\nexport interface GetCategoryRequest {\n  /**\n   * Category ID.\n   * @maxLength 100\n   */\n  categoryId: string;\n  /** Number of subcategory levels to include in the response. For example, `levels=1` returns the category with its immediate children, `levels=2` includes grandchildren as well. When not specified, returns only the requested category without subcategories. */\n  levels?: number | null;\n  /** Publish status to filter categories by. Returns both `PUBLISHED` and `UNPUBLISHED` categories by default. When specified in addition to `levels`, this filter applies to all categories in the response, not just the root. */\n  publishStatus?: PublishStatusWithLiterals;\n}\n\nexport interface GetCategoryResponse {\n  /** Category details including subcategories if requested. */\n  category?: EnterpriseCategoryTree;\n}\n\n/** A category and its nested categories, as returned by [Get Category](#getcategory). */\nexport interface EnterpriseCategoryTree {\n  /** Category information. */\n  category?: EnterpriseCategory;\n  /**\n   * Nested categories under this category. Only populated when retrieving an account-level category; nested categories don't have further sub-categories.\n   * @maxSize 100\n   */\n  subCategories?: EnterpriseCategoryTree[];\n}\n\nexport interface EnterpriseOnboardingRequest {\n  /**\n   * Account ID of the organization. Used as the organization category ID.\n   * @format GUID\n   */\n  accountId: string;\n  /**\n   * Account name of the organization. Used as the organization category name.\n   * @maxLength 50\n   */\n  accountName?: string;\n}\n\nexport interface EnterpriseOnboardingResponse {\n  /** Created enterprise category. */\n  category?: EnterpriseCategory;\n}\n\nexport interface LinkItemsToCategoryRequest {\n  /**\n   * Category ID.\n   * @maxLength 100\n   */\n  categoryId?: string;\n  /**\n   * IDs of items to link to the category.\n   * @maxLength 100\n   * @maxSize 50\n   */\n  itemIds?: string[];\n}\n\nexport interface LinkItemsToCategoryResponse {}\n\nexport interface UnlinkItemsFromCategoryRequest {\n  /**\n   * Category ID.\n   * @maxLength 100\n   */\n  categoryId?: string;\n  /**\n   * IDs of items to unlink from the category.\n   * @maxLength 100\n   * @maxSize 50\n   */\n  itemIds?: string[];\n}\n\nexport interface UnlinkItemsFromCategoryResponse {}\n\nexport interface GetMediaManagerCategoriesRequest {}\n\nexport interface GetMediaManagerCategoriesResponse {\n  /** Category tree for the media manager. */\n  category?: EnterpriseCategoryTree;\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  entity?: string;\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  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: 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 BaseEventMetadata {\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  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\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  accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n  /** ID of the Wix account associated with the event */\n  accountId: string;\n  /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n  siteId?: string;\n  /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n  parentAccountId?: string;\n}\n\nexport interface EnterpriseCategoryCreatedEnvelope {\n  entity: EnterpriseCategory;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when a category is created.\n * @webhook\n * @eventType wix.media.enterprise_public_media.v1.enterprise_category_created\n * @serviceIdentifier com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService\n * @slug created\n */\nexport declare function onEnterpriseCategoryCreated(\n  handler: (event: EnterpriseCategoryCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface EnterpriseCategoryDeletedEnvelope {\n  entity: EnterpriseCategory;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when a category is deleted.\n * @webhook\n * @eventType wix.media.enterprise_public_media.v1.enterprise_category_deleted\n * @serviceIdentifier com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService\n * @slug deleted\n */\nexport declare function onEnterpriseCategoryDeleted(\n  handler: (event: EnterpriseCategoryDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface EnterpriseCategoryUpdatedEnvelope {\n  entity: EnterpriseCategory;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when a category is updated.\n * @webhook\n * @eventType wix.media.enterprise_public_media.v1.enterprise_category_updated\n * @serviceIdentifier com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService\n * @slug updated\n */\nexport declare function onEnterpriseCategoryUpdated(\n  handler: (event: EnterpriseCategoryUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a category under the account's master category. Only one level of categories is supported under the master category. Before creating categories, ensure [Enterprise Onboarding](#enterpriseonboarding) has been called to initialize the account's root category structure.\n *\n * To delete a category, call [Delete Category](#deletecategory).\n * @param category - Category to create.\n * @public\n * @requiredField category\n * @requiredField category.displayName\n * @permissionId MEDIA.ENTERPRISE_MEDIA_CATEGORIES_CREATE\n * @applicableIdentity APP\n * @returns Created category.\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.CreateCategory\n */\nexport async function createCategory(\n  category: NonNullablePaths<EnterpriseCategory, `displayName`, 2>\n): Promise<NonNullablePaths<EnterpriseCategory, `_id` | `publishStatus`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ category: category });\n\n  const reqOpts =\n    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.createCategory(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { category: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['category']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Deletes a category including all its subcategories. Items in the category are not deleted.\n *\n * To create a category, call [Create Category](#createcategory).\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @permissionId MEDIA.ENTERPRISE_MEDIA_CATEGORIES_DELETE\n * @applicableIdentity APP\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.DeleteCategory\n */\nexport async function deleteCategory(categoryId: string): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    categoryId: categoryId,\n  });\n\n  const reqOpts =\n    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.deleteCategory(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { categoryId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['categoryId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates a category.\n * @param _id - Category ID.\n * @public\n * @requiredField _id\n * @requiredField category\n * @permissionId MEDIA.ENTERPRISE_MEDIA_CATEGORIES_UPDATE\n * @applicableIdentity APP\n * @returns Updated category.\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.UpdateCategory\n */\nexport async function updateCategory(\n  _id: string,\n  category: UpdateCategory\n): Promise<NonNullablePaths<EnterpriseCategory, `_id` | `publishStatus`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    category: { ...category, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.updateCategory(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { category: '$[1]' },\n        explicitPathsToArguments: { 'category.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'category']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateCategory {\n  /**\n   * Category ID.\n   * @maxLength 100\n   * @readonly\n   */\n  _id?: string;\n  /**\n   * Display name shown for the category.\n   * @maxLength 100\n   * @minLength 2\n   */\n  displayName?: string | null;\n  /**\n   * ID of the parent category.\n   *\n   * Default: Account category ID.\n   * @maxLength 100\n   */\n  parentCategoryId?: string | null;\n  /** Display order among sibling categories under the same parent. Lower values appear first. Supports decimals to insert between existing positions without renumbering. */\n  sortOrder?: number | null;\n  /** Publication status of the category. Controls whether the category is visible to child accounts. */\n  publishStatus?: PublishStatusWithLiterals;\n  /**\n   * Date and time the category was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the category was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n}\n\n/**\n * Retrieves a category by ID, optionally including subcategories.\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @permissionId MEDIA.ENTERPRISE_MEDIA_CATEGORIES_READ\n * @applicableIdentity APP\n * @returns Category details including subcategories if requested.\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetCategory\n */\nexport async function getCategory(\n  categoryId: string,\n  options?: GetCategoryOptions\n): Promise<\n  NonNullablePaths<\n    EnterpriseCategoryTree,\n    `category._id` | `category.publishStatus` | `subCategories`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    categoryId: categoryId,\n    levels: options?.levels,\n    publishStatus: options?.publishStatus,\n  });\n\n  const reqOpts =\n    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getCategory(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          categoryId: '$[0]',\n          levels: '$[1].levels',\n          publishStatus: '$[1].publishStatus',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['categoryId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetCategoryOptions {\n  /** Number of subcategory levels to include in the response. For example, `levels=1` returns the category with its immediate children, `levels=2` includes grandchildren as well. When not specified, returns only the requested category without subcategories. */\n  levels?: number | null;\n  /** Publish status to filter categories by. Returns both `PUBLISHED` and `UNPUBLISHED` categories by default. When specified in addition to `levels`, this filter applies to all categories in the response, not just the root. */\n  publishStatus?: PublishStatusWithLiterals;\n}\n\n/**\n * Initializes the enterprise category structure for an organization during first-time setup. Creates the root account category using the provided account information.\n * If the root account category already exists, this method returns the existing category structure without creating duplicates.\n *\n * The caller's account ID must match the `accountId` in the request.\n * @param accountId - Account ID of the organization. Used as the organization category ID.\n * @public\n * @requiredField accountId\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.EnterpriseOnboarding\n */\nexport async function enterpriseOnboarding(\n  accountId: string,\n  options?: EnterpriseOnboardingOptions\n): Promise<\n  NonNullablePaths<\n    EnterpriseOnboardingResponse,\n    `category._id` | `category.publishStatus`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    accountId: accountId,\n    accountName: options?.accountName,\n  });\n\n  const reqOpts =\n    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.enterpriseOnboarding(\n      payload\n    );\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          accountId: '$[0]',\n          accountName: '$[1].accountName',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['accountId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface EnterpriseOnboardingOptions {\n  /**\n   * Account name of the organization. Used as the organization category name.\n   * @maxLength 50\n   */\n  accountName?: string;\n}\n\n/**\n * Retrieves the category tree for the media manager, including all categories accessible to the current user.\n * @public\n * @fqn com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetMediaManagerCategories\n */\nexport async function getMediaManagerCategories(): Promise<\n  NonNullablePaths<\n    GetMediaManagerCategoriesResponse,\n    | `category.category._id`\n    | `category.category.publishStatus`\n    | `category.subCategories`,\n    4\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    ambassadorWixMediaEnterprisePublicMediaV1EnterpriseCategory.getMediaManagerCategories(\n      payload\n    );\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","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\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 { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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\nfunction resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/enterprise-public-media-server',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_media_enterprise-media-categories';\n\n/**\n * Creates a category under the account's master category. Only one level of categories is supported under the master category. Before creating categories, ensure [Enterprise Onboarding](#enterpriseonboarding) has been called to initialize the account's root category structure.\n *\n * To delete a category, call [Delete Category](#deletecategory).\n */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n  function __createCategory({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [{ path: 'category.sortOrder' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'category.createdDate' },\n          { path: 'category.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.CreateCategory',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        { protoPath: '/v1/enterprise/categories', data: serializedData, host }\n      ),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'category.sortOrder' }],\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'category.createdDate' },\n              { path: 'category.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createCategory;\n}\n\n/**\n * Deletes a category including all its subcategories. Items in the category are not deleted.\n *\n * To create a category, call [Create Category](#createcategory).\n */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n  function __deleteCategory({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.DeleteCategory',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        {\n          protoPath: '/v1/enterprise/categories/{categoryId}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteCategory;\n}\n\n/** Updates a category. */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n  function __updateCategory({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [{ path: 'category.sortOrder' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'category.createdDate' },\n          { path: 'category.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.UpdateCategory',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        {\n          protoPath: '/v1/enterprise/categories/{category.id}',\n          data: serializedData,\n          host,\n        }\n      ),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'category.sortOrder' }],\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'category.createdDate' },\n              { path: 'category.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateCategory;\n}\n\n/** Retrieves a category by ID, optionally including subcategories. */\nexport function getCategory(payload: object): RequestOptionsFactory<any> {\n  function __getCategory({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetCategory',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        {\n          protoPath: '/v1/enterprise/categories/{categoryId}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'category.category.sortOrder' }],\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'category.category.createdDate' },\n              { path: 'category.category.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getCategory;\n}\n\n/**\n * Initializes the enterprise category structure for an organization during first-time setup. Creates the root account category using the provided account information.\n * If the root account category already exists, this method returns the existing category structure without creating duplicates.\n *\n * The caller's account ID must match the `accountId` in the request.\n */\nexport function enterpriseOnboarding(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __enterpriseOnboarding({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.EnterpriseOnboarding',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        { protoPath: '/v1/enterprise/onboarding', data: payload, host }\n      ),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'category.sortOrder' }],\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'category.createdDate' },\n              { path: 'category.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __enterpriseOnboarding;\n}\n\n/** Retrieves the category tree for the media manager, including all categories accessible to the current user. */\nexport function getMediaManagerCategories(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getMediaManagerCategories({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.media.enterprise_public_media.v1.enterprise_category',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wix.media.enterprise_public_media.v1.EnterpriseCategoriesService.GetMediaManagerCategories',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixMediaEnterprisePublicMediaV1EnterpriseCategoriesServiceUrl(\n        {\n          protoPath: '/v1/enterprise/media-manager/categories',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'category.category.sortOrder' }],\n          },\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'category.category.createdDate' },\n              { path: 'category.category.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getMediaManagerCategories;\n}\n","import {\n  createCategory as publicCreateCategory,\n  deleteCategory as publicDeleteCategory,\n  updateCategory as publicUpdateCategory,\n  getCategory as publicGetCategory,\n  enterpriseOnboarding as publicEnterpriseOnboarding,\n  getMediaManagerCategories as publicGetMediaManagerCategories,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onEnterpriseCategoryCreated as publicOnEnterpriseCategoryCreated } from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.public.js';\nimport { onEnterpriseCategoryDeleted as publicOnEnterpriseCategoryDeleted } from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.public.js';\nimport { onEnterpriseCategoryUpdated as publicOnEnterpriseCategoryUpdated } from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.public.js';\n\nexport const createCategory: MaybeContext<\n  BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicCreateCategory);\nexport const deleteCategory: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteCategory> & typeof publicDeleteCategory\n> = /*#__PURE__*/ createRESTModule(publicDeleteCategory);\nexport const updateCategory: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateCategory> & typeof publicUpdateCategory\n> = /*#__PURE__*/ createRESTModule(publicUpdateCategory);\nexport const getCategory: MaybeContext<\n  BuildRESTFunction<typeof publicGetCategory> & typeof publicGetCategory\n> = /*#__PURE__*/ createRESTModule(publicGetCategory);\nexport const enterpriseOnboarding: MaybeContext<\n  BuildRESTFunction<typeof publicEnterpriseOnboarding> &\n    typeof publicEnterpriseOnboarding\n> = /*#__PURE__*/ createRESTModule(publicEnterpriseOnboarding);\nexport const getMediaManagerCategories: MaybeContext<\n  BuildRESTFunction<typeof publicGetMediaManagerCategories> &\n    typeof publicGetMediaManagerCategories\n> = /*#__PURE__*/ createRESTModule(publicGetMediaManagerCategories);\n/**\n * Triggered when a category is created.\n */\nexport const onEnterpriseCategoryCreated: BuildEventDefinition<\n  typeof publicOnEnterpriseCategoryCreated\n> &\n  typeof publicOnEnterpriseCategoryCreated = createEventModule(\n  publicOnEnterpriseCategoryCreated\n);\n/**\n * Triggered when a category is deleted.\n */\nexport const onEnterpriseCategoryDeleted: BuildEventDefinition<\n  typeof publicOnEnterpriseCategoryDeleted\n> &\n  typeof publicOnEnterpriseCategoryDeleted = createEventModule(\n  publicOnEnterpriseCategoryDeleted\n);\n/**\n * Triggered when a category is updated.\n */\nexport const onEnterpriseCategoryUpdated: BuildEventDefinition<\n  typeof publicOnEnterpriseCategoryUpdated\n> &\n  typeof publicOnEnterpriseCategoryUpdated = createEventModule(\n  publicOnEnterpriseCategoryUpdated\n);\n\nexport {\n  PublishStatus,\n  MediaType,\n  WebhookIdentityType,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.js';\nexport {\n  EnterpriseCategory,\n  CreateCategoryRequest,\n  CreateCategoryResponse,\n  DeleteCategoryRequest,\n  DeleteCategoryResponse,\n  UpdateCategoryRequest,\n  UpdateCategoryResponse,\n  GetCategoryRequest,\n  GetCategoryResponse,\n  EnterpriseCategoryTree,\n  EnterpriseOnboardingRequest,\n  EnterpriseOnboardingResponse,\n  LinkItemsToCategoryRequest,\n  LinkItemsToCategoryResponse,\n  UnlinkItemsFromCategoryRequest,\n  UnlinkItemsFromCategoryResponse,\n  GetMediaManagerCategoriesRequest,\n  GetMediaManagerCategoriesResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  EnterpriseCategoryCreatedEnvelope,\n  EnterpriseCategoryDeletedEnvelope,\n  EnterpriseCategoryUpdatedEnvelope,\n  UpdateCategory,\n  GetCategoryOptions,\n  EnterpriseOnboardingOptions,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.js';\nexport {\n  PublishStatusWithLiterals,\n  MediaTypeWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n} from './media-enterprise-public-media-v1-enterprise-category-enterprise-media-categories.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACJ9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MAC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;AAAA,EACA;AAAA,EACA,CAAC,UACCH;AAAA,IACEC,gBAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAAA,MACtC;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAqC;AAC9B,IAAM,8BAA8B;AAAA,EACzC;AAAA,EACA;AAAA,EACA,CAAC,UACCH;AAAA,IACEC,gBAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAAA,MACtC;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAqC;;;AGnOrC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAU3B,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAI3D,IAAMC,+BAGgC;AAAA,EAC3C;AACF;AAIO,IAAMC,+BAGgC;AAAA,EAC3C;AACF;AAIO,IAAMC,+BAGgC;AAAA,EAC3C;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","transformPaths","payload","PublishStatus","MediaType","WebhookIdentityType","createCategory","deleteCategory","updateCategory","getCategory","enterpriseOnboarding","getMediaManagerCategories","createCategory","deleteCategory","updateCategory","getCategory","enterpriseOnboarding","getMediaManagerCategories","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTFloatToSDKFloat","transformRESTTimestampToSDKTimestamp","createCategory","deleteCategory","updateCategory","getCategory","enterpriseOnboarding","getMediaManagerCategories","onEnterpriseCategoryCreated","onEnterpriseCategoryDeleted","onEnterpriseCategoryUpdated"]}