//#region \0rolldown/runtime.js
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
var __exportAll = (all, no_symbols) => {
	let target = {};
	for (var name in all) __defProp(target, name, {
		get: all[name],
		enumerable: true
	});
	if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
	return target;
};
var __copyProps = (to, from, except, desc) => {
	if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
		key = keys[i];
		if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
			get: ((k) => from[k]).bind(null, key),
			enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
		});
	}
	return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
	value: mod,
	enumerable: true
}) : target, mod));
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
	if (typeof require !== "undefined") return require.apply(this, arguments);
	throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
});
//#endregion
//#region ../../api-clients/portal-tenant-content/src/namespaces/portal_tenant_content.ts
/**
* List media (own uploads and company share media)
* Returns a paginated list of the member's own uploads and company share media. Training and update media are excluded.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function media_list(client, params) {
	return client.get(`/api/content/media`, params);
}
/**
* Create a new media item
* Creates a new media item record.
*
* @param client - Fetch client instance
* @param body - body
*/
async function media_create(client, body) {
	return client.post(`/api/content/media`, body);
}
/**
* Get a specific media item
* Returns a single media item by ID.
*
* @param client - Fetch client instance
* @param id - id
*/
async function media_show(client, id) {
	return client.get(`/api/content/media/${id}`);
}
/**
* Update a media item (own uploads only)
* Updates a media item's title, description, status, url, content_format, thumbnail, CTA, and SEO.
*
* @param client - Fetch client instance
* @param id - id
* @param body - body
*/
async function media_update(client, id, body) {
	return client.patch(`/api/content/media/${id}`, body);
}
/**
* Delete a media item (own uploads only)
* Removes a media item.
*
* @param client - Fetch client instance
* @param id - id
*/
async function media_destroy(client, id) {
	return client.delete(`/api/content/media/${id}`);
}
/**
* List products associated with a media item
* Returns a paginated list of products associated with a media item.
*
* @param client - Fetch client instance
* @param medium_id - medium_id
* @param [params] - params
*/
async function media_products_list(client, medium_id, params) {
	return client.get(`/api/content/media/${medium_id}/products`, params);
}
/**
* Associate a product with a media item
* Creates a product association for a media item.
*
* @param client - Fetch client instance
* @param medium_id - medium_id
* @param body - body
*/
async function media_products_add(client, medium_id, body) {
	return client.post(`/api/content/media/${medium_id}/products`, body);
}
/**
* Remove a product association from a media item
* Removes a single product association from a media item.
*
* @param client - Fetch client instance
* @param medium_id - medium_id
* @param id - id
*/
async function media_products_remove(client, medium_id, id) {
	return client.delete(`/api/content/media/${medium_id}/products/${id}`);
}
/**
* List playlists with cursor pagination
* Returns a paginated list of playlists.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function playlists_list(client, params) {
	return client.get(`/api/content/playlists`, params);
}
/**
* Create a new playlist
* Creates a new playlist.
*
* @param client - Fetch client instance
* @param body - body
*/
async function playlists_create(client, body) {
	return client.post(`/api/content/playlists`, body);
}
/**
* Get a specific playlist
* Returns a single playlist by ID.
*
* @param client - Fetch client instance
* @param id - id
*/
async function playlists_show(client, id) {
	return client.get(`/api/content/playlists/${id}`);
}
/**
* Update a playlist
* Updates a playlist's title or metadata.
*
* @param client - Fetch client instance
* @param id - id
* @param body - body
*/
async function playlists_update(client, id, body) {
	return client.patch(`/api/content/playlists/${id}`, body);
}
/**
* Delete a playlist
* Removes a playlist.
*
* @param client - Fetch client instance
* @param id - id
*/
async function playlists_destroy(client, id) {
	return client.delete(`/api/content/playlists/${id}`);
}
/**
* List items in a playlist
* Returns a paginated list of items in a playlist.
*
* @param client - Fetch client instance
* @param playlist_id - playlist_id
* @param [params] - params
*/
async function playlists_items_list(client, playlist_id, params) {
	return client.get(`/api/content/playlists/${playlist_id}/items`, params);
}
/**
* Add an item to a playlist
* Adds a content item (media, page, product, or enrollment_pack) to a playlist.
*
* @param client - Fetch client instance
* @param playlist_id - playlist_id
* @param body - body
*/
async function playlists_items_add(client, playlist_id, body) {
	return client.post(`/api/content/playlists/${playlist_id}/items`, body);
}
/**
* Reorder items in a playlist
* Sets the order of items in a playlist. Items not included in the payload are not moved. Flips the playlist to manual ordering.
*
* @param client - Fetch client instance
* @param playlist_id - playlist_id
* @param body - body
*/
async function playlists_items_reorder(client, playlist_id, body) {
	return client.patch(`/api/content/playlists/${playlist_id}/items/reorder`, body);
}
/**
* Remove an item from a playlist
* Removes a single item from a playlist.
*
* @param client - Fetch client instance
* @param playlist_id - playlist_id
* @param id - id
*/
async function playlists_items_remove(client, playlist_id, id) {
	return client.delete(`/api/content/playlists/${playlist_id}/items/${id}`);
}
/**
* List pages for the company
* Returns a paginated list of published pages for the authenticated rep's company. Members have read-only access — there is no create, update, or destroy action for pages in the portal BFF. Response shape matches pages_show (PortalTenant::Api::PageBlueprinter).
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function pages_list(client, params) {
	return client.get(`/api/content/pages`, params);
}
/**
* Get a specific page
* Returns a single page by ID, scoped to the authenticated rep's company. Response is a lean portal-BFF shape rendered by PortalTenant::Api::PageBlueprinter — not the legacy admin shape. Admin-only fields (html_code, application_theme_template, search_engine_optimizer, open_graph, prompts, etc.) are intentionally omitted.
*
* @param client - Fetch client instance
* @param id - id
*/
async function pages_show(client, id) {
	return client.get(`/api/content/pages/${id}`);
}
/**
* List share links for the current user
* Returns a paginated list of share links.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function shares_list(client, params) {
	return client.get(`/api/shares`, params);
}
/**
* Create a share link
* Creates a new share link for content.
*
* @param client - Fetch client instance
* @param body - body
*/
async function shares_create(client, body) {
	return client.post(`/api/shares`, body);
}
/**
* List DAM assets
* Returns a paginated list of DAM assets for the company.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function dam_assets_list(client, params) {
	return client.get(`/api/content/dam/assets`, params);
}
/**
* Create a DAM asset
* Creates a new DAM asset. Supports two modes:
1. **JSON placeholder** — send `application/json` with `asset[name]` to
create a placeholder record for later file upload.

2. **File upload** — send `multipart/form-data` with `asset[file]`,
`asset[name]`, and optionally `asset[description]` and `asset[tags]`
to upload a file and create the full asset with variants.
*
* @param client - Fetch client instance
* @param body - body
*/
async function dam_assets_create(client, body) {
	return client.post(`/api/content/dam/assets`, body);
}
/**
* List paths for a DAM asset
* Returns a paginated list of path aliases for a DAM asset.
*
* @param client - Fetch client instance
* @param asset_code - asset_code
* @param [params] - params
*/
async function dam_asset_paths_list(client, asset_code, params) {
	return client.get(`/api/content/dam/assets/${asset_code}/paths`, params);
}
/**
* Create a path alias for a DAM asset
* Creates a new path alias for an existing DAM asset.
*
* @param client - Fetch client instance
* @param asset_code - asset_code
* @param body - body
*/
async function dam_asset_paths_create(client, asset_code, body) {
	return client.post(`/api/content/dam/assets/${asset_code}/paths`, body);
}
/**
* Query DAM assets using tree paths and tags
* Searches and retrieves DAM assets using tree path pattern matching, tag-based variant filtering, wildcard name matching, and partial search. Supports cursor pagination for large result sets.
*
* @param client - Fetch client instance
* @param body - body
*/
async function dam_query(client, body) {
	return client.post(`/api/content/dam/query`, body);
}
/**
* Delete a DAM asset
* Permanently destroys a DAM asset, including its ImageKit storage, variants, and database records.
*
* @param client - Fetch client instance
* @param code - code
*/
async function dam_assets_destroy(client, code) {
	return client.delete(`/api/content/dam/assets/${code}`);
}
/**
* Discard (soft-delete) a DAM asset
* Soft-deletes a DAM asset. Used to discard an in-progress upload without permanently removing the record.
*
* @param client - Fetch client instance
* @param code - code
*/
async function dam_assets_discard(client, code) {
	return client.patch(`/api/content/dam/assets/${code}/discard`);
}
/**
* Top media by direct visits
* Ranked list of the company's media by total visits (aggregates metrics_media_visits across all visit sources).
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_media_by_visits(client, params) {
	return client.get(`/api/content/media/by-visits`, params);
}
/**
* Top media by share-link visits
* Ranked list of the company's media by click-throughs on rep share links (aggregates metrics_share_shareable_visits where shareable_type='Medium').
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_media_by_shares(client, params) {
	return client.get(`/api/content/media/by-shares`, params);
}
/**
* Top playlists by direct visits
* Ranked list of the company's playlists by total visits (aggregates metrics_library_visits since playlists are stored in the libraries table).
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_playlists_by_visits(client, params) {
	return client.get(`/api/content/playlists/by-visits`, params);
}
/**
* Top playlists by share-link visits
* Ranked list of the company's playlists by click-throughs on rep share links (aggregates metrics_share_shareable_visits where shareable_type='Library').
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_playlists_by_shares(client, params) {
	return client.get(`/api/content/playlists/by-shares`, params);
}
/**
* Top pages by direct visits
* Ranked list of the company's pages by total visits (aggregates metrics_page_visits across all visit sources).
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_pages_by_visits(client, params) {
	return client.get(`/api/content/pages/by-visits`, params);
}
/**
* Top pages by share-link visits
* Ranked list of the company's pages by click-throughs on rep share links (aggregates metrics_share_shareable_visits where shareable_type='Page').
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function content_pages_by_shares(client, params) {
	return client.get(`/api/content/pages/by-shares`, params);
}
//#endregion
export { playlists_list as A, pages_show as C, playlists_items_list as D, playlists_items_add as E, __commonJSMin as F, __exportAll as I, __require as L, playlists_update as M, shares_create as N, playlists_items_remove as O, shares_list as P, __toESM as R, pages_list as S, playlists_destroy as T, media_products_add as _, content_playlists_by_shares as a, media_show as b, dam_asset_paths_list as c, dam_assets_discard as d, dam_assets_list as f, media_list as g, media_destroy as h, content_pages_by_visits as i, playlists_show as j, playlists_items_reorder as k, dam_assets_create as l, media_create as m, content_media_by_visits as n, content_playlists_by_visits as o, dam_query as p, content_pages_by_shares as r, dam_asset_paths_create as s, content_media_by_shares as t, dam_assets_destroy as u, media_products_list as v, playlists_create as w, media_update as x, media_products_remove as y };

//# sourceMappingURL=portal_tenant_content-DPLnrtOG.mjs.map