import{s as xe,n as Me,o as _e}from"../chunks/scheduler.9cda857a.js";import{S as we,i as Ae,e as s,s as l,c as u,h as Se,a as o,d as i,b as a,f as Te,g as m,j as r,k as me,q as He,l as ke,m as n,n as g,t as d,o as c,p}from"../chunks/index.f47f3121.js";import{C as ze}from"../chunks/CopyLLMTxtMenu.676ed699.js";import{H as v,E as Ee}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.64d112fc.js";function Pe(ge){let f,q,O,I,b,D,L,B,h,de='<p>This feature is part of the <a href="https://huggingface.co/enterprise">Team &amp; Enterprise</a> plans.</p>',G,y,ce="Audit Logs enable organization admins to easily review actions taken by members, including organization membership, repository settings and billing changes.",F,$,pe='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/audit-logs.png" alt="screenshot of Hugging Face Audit Logs feature"/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-audit-logs.png" alt="screenshot of Hugging Face Audit Logs feature"/>',J,C,N,T,fe="Audit Logs are accessible through your organization settings. Each log entry includes:",V,x,$e="<li>Who performed the action</li> <li>What type of action was taken</li> <li>A description of the change</li> <li>Location and anonymized IP address</li> <li>Date and time of the action</li>",K,M,he="You can also download the complete audit log as a JSON file for further analysis.",Q,_,Y,w,X,A,ve=`<li>Core organization changes
<ul><li>Creation, deletion, and restoration</li> <li>Name changes and settings updates</li></ul></li> <li>Security management
<ul><li>Security token rotation</li> <li>Token approval system (enabling/disabling, authorization requests, approvals, denials, revocations)</li> <li>SSO events (logins and joins)</li></ul></li>`,Z,S,ee,H,be=`<li>Member lifecycle
<ul><li>Invitations (sending, accepting) and automatic joins</li> <li>Adding and removing members</li> <li>Role changes and departures</li></ul></li> <li>Join settings
<ul><li>Domain-based access</li> <li>Automatic join configurations</li></ul></li>`,te,k,ie,z,Le=`<li>Repository administration
<ul><li>Core actions (creation, deletion, moving, duplication)</li> <li>Settings and configuration changes</li> <li>Enabling/disabling repositories</li> <li>DOI management</li> <li>Resource group assignments</li></ul></li> <li>Collections
<ul><li>Creation and deletion events</li></ul></li> <li>Repository security
<ul><li>Secrets management (individual and bulk)</li> <li>Variables handling (individual and bulk)</li></ul></li> <li>Spaces configuration
<ul><li>Storage modifications</li> <li>Hardware settings</li> <li>Sleep time adjustments</li></ul></li>`,ne,E,le,P,ye=`<li>Payment management
<ul><li>Payment methods (adding/removing)</li> <li>Customer account creation</li> <li>AWS integration setup and removal</li></ul></li> <li>Subscription lifecycle
<ul><li>Starting and renewing</li> <li>Updates and cancellations</li> <li>Cancellation reversals</li></ul></li>`,ae,R,se,U,Ce=`<li>Administrative actions
<ul><li>Creation and deletion</li> <li>Settings modifications</li></ul></li> <li>Member management
<ul><li>Adding and removing users</li> <li>Role assignments and changes</li></ul></li>`,oe,j,re,W,ue;return b=new ze({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),L=new v({props:{title:"Audit Logs",local:"audit-logs",headingTag:"h1"}}),C=new v({props:{title:"Accessing Audit Logs",local:"accessing-audit-logs",headingTag:"h2"}}),_=new v({props:{title:"What Events Are Tracked?",local:"what-events-are-tracked",headingTag:"h2"}}),w=new v({props:{title:"Organization Management & Security",local:"organization-management--security",headingTag:"h3"}}),S=new v({props:{title:"Membership and Access Control",local:"membership-and-access-control",headingTag:"h3"}}),k=new v({props:{title:"Content and Resource Management",local:"content-and-resource-management",headingTag:"h3"}}),E=new v({props:{title:"Billing and AWS Integration",local:"billing-and-aws-integration",headingTag:"h3"}}),R=new v({props:{title:"Resource Groups",local:"resource-groups",headingTag:"h3"}}),j=new Ee({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/audit-logs.md"}}),{c(){f=s("meta"),q=l(),O=s("p"),I=l(),u(b.$$.fragment),D=l(),u(L.$$.fragment),B=l(),h=s("blockquote"),h.innerHTML=de,G=l(),y=s("p"),y.textContent=ce,F=l(),$=s("div"),$.innerHTML=pe,J=l(),u(C.$$.fragment),N=l(),T=s("p"),T.textContent=fe,V=l(),x=s("ul"),x.innerHTML=$e,K=l(),M=s("p"),M.textContent=he,Q=l(),u(_.$$.fragment),Y=l(),u(w.$$.fragment),X=l(),A=s("ul"),A.innerHTML=ve,Z=l(),u(S.$$.fragment),ee=l(),H=s("ul"),H.innerHTML=be,te=l(),u(k.$$.fragment),ie=l(),z=s("ul"),z.innerHTML=Le,ne=l(),u(E.$$.fragment),le=l(),P=s("ul"),P.innerHTML=ye,ae=l(),u(R.$$.fragment),se=l(),U=s("ul"),U.innerHTML=Ce,oe=l(),u(j.$$.fragment),re=l(),W=s("p"),this.h()},l(e){const t=Se("svelte-u9bgzb",document.head);f=o(t,"META",{name:!0,content:!0}),t.forEach(i),q=a(e),O=o(e,"P",{}),Te(O).forEach(i),I=a(e),m(b.$$.fragment,e),D=a(e),m(L.$$.fragment,e),B=a(e),h=o(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r(h)!=="svelte-16y0s3r"&&(h.innerHTML=de),G=a(e),y=o(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-188t3nu"&&(y.textContent=ce),F=a(e),$=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),r($)!=="svelte-1v1x3li"&&($.innerHTML=pe),J=a(e),m(C.$$.fragment,e),N=a(e),T=o(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-1e7rhfu"&&(T.textContent=fe),V=a(e),x=o(e,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-x44eo7"&&(x.innerHTML=$e),K=a(e),M=o(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-10zvh3n"&&(M.textContent=he),Q=a(e),m(_.$$.fragment,e),Y=a(e),m(w.$$.fragment,e),X=a(e),A=o(e,"UL",{"data-svelte-h":!0}),r(A)!=="svelte-se730p"&&(A.innerHTML=ve),Z=a(e),m(S.$$.fragment,e),ee=a(e),H=o(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-qm6mix"&&(H.innerHTML=be),te=a(e),m(k.$$.fragment,e),ie=a(e),z=o(e,"UL",{"data-svelte-h":!0}),r(z)!=="svelte-rtrl6s"&&(z.innerHTML=Le),ne=a(e),m(E.$$.fragment,e),le=a(e),P=o(e,"UL",{"data-svelte-h":!0}),r(P)!=="svelte-13npjdu"&&(P.innerHTML=ye),ae=a(e),m(R.$$.fragment,e),se=a(e),U=o(e,"UL",{"data-svelte-h":!0}),r(U)!=="svelte-dn1j2f"&&(U.innerHTML=Ce),oe=a(e),m(j.$$.fragment,e),re=a(e),W=o(e,"P",{}),Te(W).forEach(i),this.h()},h(){me(f,"name","hf:doc:metadata"),me(f,"content",Re),me(h,"class","warning"),me($,"class","flex justify-center"),He($,"max-width","550px")},m(e,t){ke(document.head,f),n(e,q,t),n(e,O,t),n(e,I,t),g(b,e,t),n(e,D,t),g(L,e,t),n(e,B,t),n(e,h,t),n(e,G,t),n(e,y,t),n(e,F,t),n(e,$,t),n(e,J,t),g(C,e,t),n(e,N,t),n(e,T,t),n(e,V,t),n(e,x,t),n(e,K,t),n(e,M,t),n(e,Q,t),g(_,e,t),n(e,Y,t),g(w,e,t),n(e,X,t),n(e,A,t),n(e,Z,t),g(S,e,t),n(e,ee,t),n(e,H,t),n(e,te,t),g(k,e,t),n(e,ie,t),n(e,z,t),n(e,ne,t),g(E,e,t),n(e,le,t),n(e,P,t),n(e,ae,t),g(R,e,t),n(e,se,t),n(e,U,t),n(e,oe,t),g(j,e,t),n(e,re,t),n(e,W,t),ue=!0},p:Me,i(e){ue||(d(b.$$.fragment,e),d(L.$$.fragment,e),d(C.$$.fragment,e),d(_.$$.fragment,e),d(w.$$.fragment,e),d(S.$$.fragment,e),d(k.$$.fragment,e),d(E.$$.fragment,e),d(R.$$.fragment,e),d(j.$$.fragment,e),ue=!0)},o(e){c(b.$$.fragment,e),c(L.$$.fragment,e),c(C.$$.fragment,e),c(_.$$.fragment,e),c(w.$$.fragment,e),c(S.$$.fragment,e),c(k.$$.fragment,e),c(E.$$.fragment,e),c(R.$$.fragment,e),c(j.$$.fragment,e),ue=!1},d(e){e&&(i(q),i(O),i(I),i(D),i(B),i(h),i(G),i(y),i(F),i($),i(J),i(N),i(T),i(V),i(x),i(K),i(M),i(Q),i(Y),i(X),i(A),i(Z),i(ee),i(H),i(te),i(ie),i(z),i(ne),i(le),i(P),i(ae),i(se),i(U),i(oe),i(re),i(W)),i(f),p(b,e),p(L,e),p(C,e),p(_,e),p(w,e),p(S,e),p(k,e),p(E,e),p(R,e),p(j,e)}}}const Re='{"title":"Audit Logs","local":"audit-logs","sections":[{"title":"Accessing Audit Logs","local":"accessing-audit-logs","sections":[],"depth":2},{"title":"What Events Are Tracked?","local":"what-events-are-tracked","sections":[{"title":"Organization Management & Security","local":"organization-management--security","sections":[],"depth":3},{"title":"Membership and Access Control","local":"membership-and-access-control","sections":[],"depth":3},{"title":"Content and Resource Management","local":"content-and-resource-management","sections":[],"depth":3},{"title":"Billing and AWS Integration","local":"billing-and-aws-integration","sections":[],"depth":3},{"title":"Resource Groups","local":"resource-groups","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ue(ge){return _e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ie extends we{constructor(f){super(),Ae(this,f,Ue,Pe,xe,{})}}export{Ie as component};
