liferay-headless-rest-client
Version:
A collection of Headless Clients used in Liferay Portal
2 lines (1 loc) • 25.7 kB
JavaScript
var R=async(K,D)=>{let Z=typeof D=="function"?await D(K):D;if(Z)return K.scheme==="bearer"?`Bearer ${Z}`:K.scheme==="basic"?`Basic ${btoa(Z)}`:Z},P=(K,D,Z)=>{typeof Z=="string"||Z instanceof Blob?K.append(D,Z):K.append(D,JSON.stringify(Z))};var h={bodySerializer:(K)=>{let D=new FormData;return Object.entries(K).forEach(([Z,G])=>{G!=null&&(Array.isArray(G)?G.forEach((F)=>P(D,Z,F)):P(D,Z,G))}),D}},m={bodySerializer:(K)=>JSON.stringify(K,(D,Z)=>typeof Z=="bigint"?Z.toString():Z)};var w={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},r=Object.entries(w);var b=(K)=>{switch(K){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},g=(K)=>{switch(K){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},d=(K)=>{switch(K){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},U=({allowReserved:K,explode:D,name:Z,style:G,value:F})=>{if(!D){let B=(K?F:F.map((J)=>encodeURIComponent(J))).join(g(G));switch(G){case"label":return`.${B}`;case"matrix":return`;${Z}=${B}`;case"simple":return B;default:return`${Z}=${B}`}}let H=b(G),E=F.map((B)=>G==="label"||G==="simple"?K?B:encodeURIComponent(B):M({allowReserved:K,name:Z,value:B})).join(H);return G==="label"||G==="matrix"?H+E:E},M=({allowReserved:K,name:D,value:Z})=>{if(Z==null)return"";if(typeof Z=="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${D}=${K?Z:encodeURIComponent(Z)}`},v=({allowReserved:K,explode:D,name:Z,style:G,value:F,valueOnly:H})=>{if(F instanceof Date)return H?F.toISOString():`${Z}=${F.toISOString()}`;if(G!=="deepObject"&&!D){let J=[];Object.entries(F).forEach(([Y,q])=>{J=[...J,Y,K?q:encodeURIComponent(q)]});let W=J.join(",");switch(G){case"form":return`${Z}=${W}`;case"label":return`.${W}`;case"matrix":return`;${Z}=${W}`;default:return W}}let E=d(G),B=Object.entries(F).map(([J,W])=>M({allowReserved:K,name:G==="deepObject"?`${Z}[${J}]`:J,value:W})).join(E);return G==="label"||G==="matrix"?E+B:B},f=/\{[^{}]+\}/g,u=({path:K,url:D})=>{let Z=D,G=D.match(f);if(G)for(let F of G){let H=!1,E=F.substring(1,F.length-1),B="simple";E.endsWith("*")&&(H=!0,E=E.substring(0,E.length-1)),E.startsWith(".")?(E=E.substring(1),B="label"):E.startsWith(";")&&(E=E.substring(1),B="matrix");let J=K[E];if(J==null)continue;if(Array.isArray(J)){Z=Z.replace(F,U({explode:H,name:E,style:B,value:J}));continue}if(typeof J=="object"){Z=Z.replace(F,v({explode:H,name:E,style:B,value:J,valueOnly:!0}));continue}if(B==="matrix"){Z=Z.replace(F,`;${M({name:E,value:J})}`);continue}let W=encodeURIComponent(B==="label"?`.${J}`:J);Z=Z.replace(F,W)}return Z},x=({allowReserved:K,array:D,object:Z}={})=>(G)=>{let F=[];if(G&&typeof G=="object")for(let H in G){let E=G[H];if(E!=null)if(Array.isArray(E)){let B=U({allowReserved:K,explode:!0,name:H,style:"form",value:E,...D});B&&F.push(B)}else if(typeof E=="object"){let B=v({allowReserved:K,explode:!0,name:H,style:"deepObject",value:E,...Z});B&&F.push(B)}else{let B=M({allowReserved:K,name:H,value:E});B&&F.push(B)}}return F.join("&")},c=(K)=>{if(!K)return"stream";let D=K.split(";")[0]?.trim();if(D){if(D.startsWith("application/json")||D.endsWith("+json"))return"json";if(D==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((Z)=>D.startsWith(Z)))return"blob";if(D.startsWith("text/"))return"text"}},a=async({security:K,...D})=>{for(let Z of K){let G=await R(Z,D.auth);if(!G)continue;let F=Z.name??"Authorization";switch(Z.in){case"query":D.query||(D.query={}),D.query[F]=G;break;case"cookie":D.headers.append("Cookie",`${F}=${G}`);break;case"header":default:D.headers.set(F,G);break}return}},S=(K)=>A({baseUrl:K.baseUrl,path:K.path,query:K.query,querySerializer:typeof K.querySerializer=="function"?K.querySerializer:x(K.querySerializer),url:K.url}),A=({baseUrl:K,path:D,query:Z,querySerializer:G,url:F})=>{let H=F.startsWith("/")?F:`/${F}`,E=(K??"")+H;D&&(E=u({path:D,url:E}));let B=Z?G(Z):"";return B.startsWith("?")&&(B=B.substring(1)),B&&(E+=`?${B}`),E},T=(K,D)=>{let Z={...K,...D};return Z.baseUrl?.endsWith("/")&&(Z.baseUrl=Z.baseUrl.substring(0,Z.baseUrl.length-1)),Z.headers=z(K.headers,D.headers),Z},z=(...K)=>{let D=new Headers;for(let Z of K){if(!Z||typeof Z!="object")continue;let G=Z instanceof Headers?Z.entries():Object.entries(Z);for(let[F,H]of G)if(H===null)D.delete(F);else if(Array.isArray(H))for(let E of H)D.append(F,E);else H!==void 0&&D.set(F,typeof H=="object"?JSON.stringify(H):H)}return D},N=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(K){return typeof K=="number"?this._fns[K]?K:-1:this._fns.indexOf(K)}exists(K){let D=this.getInterceptorIndex(K);return!!this._fns[D]}eject(K){let D=this.getInterceptorIndex(K);this._fns[D]&&(this._fns[D]=null)}update(K,D){let Z=this.getInterceptorIndex(K);return this._fns[Z]?(this._fns[Z]=D,K):!1}use(K){return this._fns=[...this._fns,K],this._fns.length-1}},_=()=>({error:new N,request:new N,response:new N}),C=x({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),y={"Content-Type":"application/json"},O=(K={})=>({...m,headers:y,parseAs:"auto",querySerializer:C,...K}),j=(K={})=>{let D=T(O(),K),Z=()=>({...D}),G=(E)=>(D=T(D,E),Z()),F=_(),H=async(E)=>{let B={...D,...E,fetch:E.fetch??D.fetch??globalThis.fetch,headers:z(D.headers,E.headers)};B.security&&await a({...B,security:B.security}),B.body&&B.bodySerializer&&(B.body=B.bodySerializer(B.body)),(B.body===void 0||B.body==="")&&B.headers.delete("Content-Type");let J=S(B),W={redirect:"follow",...B},Y=new Request(J,W);for(let V of F.request._fns)V&&(Y=await V(Y,B));let q=B.fetch,Q=await q(Y);for(let V of F.response._fns)V&&(Q=await V(Q,Y,B));let I={request:Y,response:Q};if(Q.ok){if(Q.status===204||Q.headers.get("Content-Length")==="0")return B.responseStyle==="data"?{}:{data:{},...I};let V=(B.parseAs==="auto"?c(Q.headers.get("Content-Type")):B.parseAs)??"json";if(V==="stream")return B.responseStyle==="data"?Q.body:{data:Q.body,...I};let k=await Q[V]();return V==="json"&&(B.responseValidator&&await B.responseValidator(k),B.responseTransformer&&(k=await B.responseTransformer(k))),B.responseStyle==="data"?k:{data:k,...I}}let L=await Q.text();try{L=JSON.parse(L)}catch{}let $=L;for(let V of F.error._fns)V&&($=await V(L,Q,Y,B));if($=$||{},B.throwOnError)throw $;return B.responseStyle==="data"?void 0:{error:$,...I}};return{buildUrl:S,connect:(E)=>H({...E,method:"CONNECT"}),delete:(E)=>H({...E,method:"DELETE"}),get:(E)=>H({...E,method:"GET"}),getConfig:Z,head:(E)=>H({...E,method:"HEAD"}),interceptors:F,options:(E)=>H({...E,method:"OPTIONS"}),patch:(E)=>H({...E,method:"PATCH"}),post:(E)=>H({...E,method:"POST"}),put:(E)=>H({...E,method:"PUT"}),request:H,setConfig:G,trace:(E)=>H({...E,method:"TRACE"})}};var X=j(O({baseUrl:"http://localhost:8080"}));var t=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/by-external-reference-code/{externalReferenceCode}",...K})},i=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/by-external-reference-code/{externalReferenceCode}",...K})},o=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},KK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/keywords/{keywordId}",...K})},XK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/keywords/{keywordId}",...K})},ZK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/keywords/{keywordId}",...K,headers:{"Content-Type":"application/json",...K.headers}})},BK=(K)=>{return(K?.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/keywords/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},DK=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/keywords/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},EK=(K)=>{return(K?.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/keywords/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},FK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/by-external-reference-code/{externalReferenceCode}",...K})},GK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/by-external-reference-code/{externalReferenceCode}",...K})},HK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},JK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/permissions",...K})},QK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},VK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords",...K})},WK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords",...K,headers:{"Content-Type":"application/json",...K.headers}})},YK=(K)=>{return(K?.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/keywords",...K})},$K=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/keywords",...K,headers:{"Content-Type":"application/json",...K?.headers}})},kK=(K)=>{return(K?.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/keywords/ranked",...K})},qK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/permissions",...K})},IK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},LK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords",...K})},MK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords",...K,headers:{"Content-Type":"application/json",...K.headers}})},NK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},OK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/keywords/export-batch",...K})},PK=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/keywords/export-batch",...K})},SK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},TK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/keywords/export-batch",...K})},UK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/keywords/{toKeywordId}/merge",...K})},vK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/keywords/{keywordId}/subscribe",...K})},xK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/keywords/{keywordId}/unsubscribe",...K})},zK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},jK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},RK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},mK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},wK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},bK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},gK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}",...K})},dK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}",...K})},fK=(K)=>{return(K.client??X).patch({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}",...K,headers:{"Content-Type":"application/json",...K.headers}})},uK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}",...K,headers:{"Content-Type":"application/json",...K.headers}})},cK=(K)=>{return(K?.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},aK=(K)=>{return(K?.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},AK=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},_K=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K})},CK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},yK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories",...K})},hK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories",...K,headers:{"Content-Type":"application/json",...K.headers}})},rK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories",...K})},lK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories",...K,headers:{"Content-Type":"application/json",...K.headers}})},eK=(K)=>{return(K?.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/ranked",...K})},pK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}/permissions",...K})},sK=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{taxonomyCategoryId}/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},nK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{parentTaxonomyCategoryId}/taxonomy-categories",...K})},tK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-categories/{parentTaxonomyCategoryId}/taxonomy-categories",...K,headers:{"Content-Type":"application/json",...K.headers}})},iK=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories",...K})},oK=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories",...K,headers:{"Content-Type":"application/json",...K.headers}})},KX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories/export-batch",...K})},XX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-categories/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},ZX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories/export-batch",...K})},BX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-categories/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},DX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories/export-batch",...K})},EX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/taxonomy-categories/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},FX=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K})},GX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K})},HX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},JX=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K})},QX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K})},VX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/by-external-reference-code/{externalReferenceCode}",...K,headers:{"Content-Type":"application/json",...K.headers}})},WX=(K)=>{return(K.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}",...K})},YX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}",...K})},$X=(K)=>{return(K.client??X).patch({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}",...K,headers:{"Content-Type":"application/json",...K.headers}})},kX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}",...K,headers:{"Content-Type":"application/json",...K.headers}})},qX=(K)=>{return(K?.client??X).delete({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},IX=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},LX=(K)=>{return(K?.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/batch",...K,headers:{"Content-Type":"application/json",...K?.headers}})},MX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies",...K})},NX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies",...K,headers:{"Content-Type":"application/json",...K.headers}})},OX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/permissions",...K})},PX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},SX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies",...K})},TX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies",...K,headers:{"Content-Type":"application/json",...K.headers}})},UX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/permissions",...K})},vX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},xX=(K)=>{return(K?.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies",...K})},zX=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies",...K,headers:{"Content-Type":"application/json",...K?.headers}})},jX=(K)=>{return(K.client??X).get({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/permissions",...K})},RX=(K)=>{return(K.client??X).put({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/{taxonomyVocabularyId}/permissions",...K,headers:{"Content-Type":"application/json",...K.headers}})},mX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/export-batch",...K})},wX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/asset-libraries/{assetLibraryId}/taxonomy-vocabularies/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},bX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/export-batch",...K})},gX=(K)=>{return(K.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/sites/{siteId}/taxonomy-vocabularies/batch",...K,headers:{"Content-Type":"application/json",...K.headers}})},dX=(K)=>{return(K?.client??X).post({url:"/o/headless-admin-taxonomy/v1.0/taxonomy-vocabularies/export-batch",...K})};export{CK as putTaxonomyVocabularyTaxonomyCategoryByExternalReferenceCode,RX as putTaxonomyVocabularyPermissionsPage,LX as putTaxonomyVocabularyBatch,kX as putTaxonomyVocabulary,sK as putTaxonomyCategoryPermissionsPage,aK as putTaxonomyCategoryBatch,uK as putTaxonomyCategory,vX as putSiteTaxonomyVocabularyPermissionsPage,VX as putSiteTaxonomyVocabularyByExternalReferenceCode,bK as putSiteTaxonomyCategoryByExternalReferenceCode,IK as putSiteKeywordPermissionsPage,HK as putSiteKeywordByExternalReferenceCode,xK as putKeywordUnsubscribe,vK as putKeywordSubscribe,UK as putKeywordMerge,EK as putKeywordBatch,ZK as putKeyword,PX as putAssetLibraryTaxonomyVocabularyPermissionsPage,HX as putAssetLibraryTaxonomyVocabularyByExternalReferenceCode,RK as putAssetLibraryTaxonomyCategoryByExternalReferenceCode,QK as putAssetLibraryKeywordPermissionsPage,o as putAssetLibraryKeywordByExternalReferenceCode,EX as postTaxonomyVocabularyTaxonomyCategoryBatch,oK as postTaxonomyVocabularyTaxonomyCategory,DX as postTaxonomyVocabularyTaxonomyCategoriesPageExportBatch,IX as postTaxonomyVocabularyBatch,zX as postTaxonomyVocabulary,dX as postTaxonomyVocabulariesPageExportBatch,tK as postTaxonomyCategoryTaxonomyCategory,gX as postSiteTaxonomyVocabularyBatch,TX as postSiteTaxonomyVocabulary,bX as postSiteTaxonomyVocabulariesPageExportBatch,BX as postSiteTaxonomyCategoryBatch,lK as postSiteTaxonomyCategory,ZX as postSiteTaxonomyCategoriesPageExportBatch,TK as postSiteKeywordsPageExportBatch,SK as postSiteKeywordBatch,MK as postSiteKeyword,PK as postKeywordsPageExportBatch,DK as postKeywordBatch,$K as postKeyword,wX as postAssetLibraryTaxonomyVocabularyBatch,NX as postAssetLibraryTaxonomyVocabulary,mX as postAssetLibraryTaxonomyVocabulariesPageExportBatch,XX as postAssetLibraryTaxonomyCategoryBatch,hK as postAssetLibraryTaxonomyCategory,KX as postAssetLibraryTaxonomyCategoriesPageExportBatch,OK as postAssetLibraryKeywordsPageExportBatch,NK as postAssetLibraryKeywordBatch,WK as postAssetLibraryKeyword,$X as patchTaxonomyVocabulary,fK as patchTaxonomyCategory,_K as getTaxonomyVocabularyTaxonomyCategoryByExternalReferenceCode,iK as getTaxonomyVocabularyTaxonomyCategoriesPage,jX as getTaxonomyVocabularyPermissionsPage,YX as getTaxonomyVocabulary,xX as getTaxonomyVocabulariesPage,nK as getTaxonomyCategoryTaxonomyCategoriesPage,pK as getTaxonomyCategoryPermissionsPage,dK as getTaxonomyCategory,eK as getTaxonomyCategoriesRankedPage,UX as getSiteTaxonomyVocabularyPermissionsPage,QX as getSiteTaxonomyVocabularyByExternalReferenceCode,SX as getSiteTaxonomyVocabulariesPage,wK as getSiteTaxonomyCategoryByExternalReferenceCode,rK as getSiteTaxonomyCategoriesPage,LK as getSiteKeywordsPage,qK as getSiteKeywordPermissionsPage,GK as getSiteKeywordByExternalReferenceCode,kK as getKeywordsRankedPage,YK as getKeywordsPage,XK as getKeyword,OX as getAssetLibraryTaxonomyVocabularyPermissionsPage,GX as getAssetLibraryTaxonomyVocabularyByExternalReferenceCode,MX as getAssetLibraryTaxonomyVocabulariesPage,jK as getAssetLibraryTaxonomyCategoryByExternalReferenceCode,yK as getAssetLibraryTaxonomyCategoriesPage,VK as getAssetLibraryKeywordsPage,JK as getAssetLibraryKeywordPermissionsPage,i as getAssetLibraryKeywordByExternalReferenceCode,AK as deleteTaxonomyVocabularyTaxonomyCategoryByExternalReferenceCode,qX as deleteTaxonomyVocabularyBatch,WX as deleteTaxonomyVocabulary,cK as deleteTaxonomyCategoryBatch,gK as deleteTaxonomyCategory,JX as deleteSiteTaxonomyVocabularyByExternalReferenceCode,mK as deleteSiteTaxonomyCategoryByExternalReferenceCode,FK as deleteSiteKeywordByExternalReferenceCode,BK as deleteKeywordBatch,KK as deleteKeyword,FX as deleteAssetLibraryTaxonomyVocabularyByExternalReferenceCode,zK as deleteAssetLibraryTaxonomyCategoryByExternalReferenceCode,t as deleteAssetLibraryKeywordByExternalReferenceCode};