import{s as ro,o as io,n as xa}from"../chunks/scheduler.0cf4ef2e.js";import{S as go,i as uo,e as s,s as n,c as r,h as po,a as h,d as o,b as l,f as P,g as i,j as v,k,l as m,m as t,n as g,t as u,o as d,p}from"../chunks/index.abc433bf.js";import{C as co,H as U,E as bo}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.c5e6f579.js";import{D as j}from"../chunks/Docstring.d25cce65.js";import{C as Sa}from"../chunks/CodeBlock.0951eb7c.js";import{E as La}from"../chunks/ExampleCodeBlock.51f0b6db.js";function mo(I){let c,w="Example:",b,W,T;return W=new Sa({props:{code:"aW1wb3J0JTIwZ3JhZGlvJTIwYXMlMjBnciUwQWZyb20lMjBodWdnaW5nZmFjZV9odWIlMjBpbXBvcnQlMjBXZWJob29rc1NlcnZlciUyQyUyMFdlYmhvb2tQYXlsb2FkJTBBJTBBd2l0aCUyMGdyLkJsb2NrcygpJTIwYXMlMjB1aSUzQSUwQSUyMCUyMCUyMCUyMC4uLiUwQSUwQWFwcCUyMCUzRCUyMFdlYmhvb2tzU2VydmVyKHVpJTNEdWklMkMlMjB3ZWJob29rX3NlY3JldCUzRCUyMm15X3NlY3JldF9rZXklMjIpJTBBJTBBJTQwYXBwLmFkZF93ZWJob29rKCUyMiUyRnNheV9oZWxsbyUyMiklMEFhc3luYyUyMGRlZiUyMGhlbGxvKHBheWxvYWQlM0ElMjBXZWJob29rUGF5bG9hZCklM0ElMEElMjAlMjAlMjAlMjByZXR1cm4lMjAlN0IlMjJtZXNzYWdlJTIyJTNBJTIwJTIyaGVsbG8lMjIlN0QlMEElMEFhcHAubGF1bmNoKCk=",highlighted:`<span class="hljs-keyword">import</span> gradio <span class="hljs-keyword">as</span> gr
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> WebhooksServer, WebhookPayload

<span class="hljs-keyword">with</span> gr.Blocks() <span class="hljs-keyword">as</span> ui:
    ...

app = WebhooksServer(ui=ui, webhook_secret=<span class="hljs-string">&quot;my_secret_key&quot;</span>)

<span class="hljs-meta">@app.add_webhook(<span class="hljs-params"><span class="hljs-string">&quot;/say_hello&quot;</span></span>)</span>
<span class="hljs-keyword">async</span> <span class="hljs-keyword">def</span> <span class="hljs-title function_">hello</span>(<span class="hljs-params">payload: WebhookPayload</span>):
    <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;message&quot;</span>: <span class="hljs-string">&quot;hello&quot;</span>}

app.launch()`,wrap:!1}}),{c(){c=s("p"),c.textContent=w,b=n(),r(W.$$.fragment)},l($){c=h($,"P",{"data-svelte-h":!0}),v(c)!=="svelte-11lpom8"&&(c.textContent=w),b=l($),i(W.$$.fragment,$)},m($,C){t($,c,C),t($,b,C),g(W,$,C),T=!0},p:xa,i($){T||(u(W.$$.fragment,$),T=!0)},o($){d(W.$$.fragment,$),T=!1},d($){$&&(o(c),o(b)),p(W,$)}}}function fo(I){let c,w;return c=new Sa({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHdlYmhvb2tfZW5kcG9pbnQlMkMlMjBXZWJob29rUGF5bG9hZCUwQSUwQSU0MHdlYmhvb2tfZW5kcG9pbnQlMEFhc3luYyUyMGRlZiUyMHRyaWdnZXJfdHJhaW5pbmcocGF5bG9hZCUzQSUyMFdlYmhvb2tQYXlsb2FkKSUzQSUwQSUyMCUyMCUyMCUyMGlmJTIwcGF5bG9hZC5yZXBvLnR5cGUlMjAlM0QlM0QlMjAlMjJkYXRhc2V0JTIyJTIwYW5kJTIwcGF5bG9hZC5ldmVudC5hY3Rpb24lMjAlM0QlM0QlMjAlMjJ1cGRhdGUlMjIlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBUcmlnZ2VyJTIwYSUyMHRyYWluaW5nJTIwam9iJTIwaWYlMjBhJTIwZGF0YXNldCUyMGlzJTIwdXBkYXRlZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMC4uLiUwQSUwQSUyMyUyMFNlcnZlciUyMGlzJTIwYXV0b21hdGljYWxseSUyMHN0YXJ0ZWQlMjBhdCUyMHRoZSUyMGVuZCUyMG9mJTIwdGhlJTIwc2NyaXB0Lg==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> webhook_endpoint, WebhookPayload

<span class="hljs-meta">@webhook_endpoint</span>
<span class="hljs-keyword">async</span> <span class="hljs-keyword">def</span> <span class="hljs-title function_">trigger_training</span>(<span class="hljs-params">payload: WebhookPayload</span>):
    <span class="hljs-keyword">if</span> payload.repo.<span class="hljs-built_in">type</span> == <span class="hljs-string">&quot;dataset&quot;</span> <span class="hljs-keyword">and</span> payload.event.action == <span class="hljs-string">&quot;update&quot;</span>:
        <span class="hljs-comment"># Trigger a training job if a dataset is updated</span>
        ...

<span class="hljs-comment"># Server is automatically started at the end of the script.</span>`,wrap:!1}}),{c(){r(c.$$.fragment)},l(b){i(c.$$.fragment,b)},m(b,W){g(c,b,W),w=!0},p:xa,i(b){w||(u(c.$$.fragment,b),w=!0)},o(b){d(c.$$.fragment,b),w=!1},d(b){p(c,b)}}}function yo(I){let c,w;return c=new Sa({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHdlYmhvb2tfZW5kcG9pbnQlMkMlMjBXZWJob29rUGF5bG9hZCUwQSUwQSU0MHdlYmhvb2tfZW5kcG9pbnQlMEFhc3luYyUyMGRlZiUyMHRyaWdnZXJfdHJhaW5pbmcocGF5bG9hZCUzQSUyMFdlYmhvb2tQYXlsb2FkKSUzQSUwQSUyMCUyMCUyMCUyMGlmJTIwcGF5bG9hZC5yZXBvLnR5cGUlMjAlM0QlM0QlMjAlMjJkYXRhc2V0JTIyJTIwYW5kJTIwcGF5bG9hZC5ldmVudC5hY3Rpb24lMjAlM0QlM0QlMjAlMjJ1cGRhdGUlMjIlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBUcmlnZ2VyJTIwYSUyMHRyYWluaW5nJTIwam9iJTIwaWYlMjBhJTIwZGF0YXNldCUyMGlzJTIwdXBkYXRlZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMC4uLiUwQSUwQSUyMyUyMFN0YXJ0JTIwdGhlJTIwc2VydmVyJTIwbWFudWFsbHklMEF0cmlnZ2VyX3RyYWluaW5nLmxhdW5jaCgp",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> webhook_endpoint, WebhookPayload

<span class="hljs-meta">@webhook_endpoint</span>
<span class="hljs-keyword">async</span> <span class="hljs-keyword">def</span> <span class="hljs-title function_">trigger_training</span>(<span class="hljs-params">payload: WebhookPayload</span>):
    <span class="hljs-keyword">if</span> payload.repo.<span class="hljs-built_in">type</span> == <span class="hljs-string">&quot;dataset&quot;</span> <span class="hljs-keyword">and</span> payload.event.action == <span class="hljs-string">&quot;update&quot;</span>:
        <span class="hljs-comment"># Trigger a training job if a dataset is updated</span>
        ...

<span class="hljs-comment"># Start the server manually</span>
trigger_training.launch()`,wrap:!1}}),{c(){r(c.$$.fragment)},l(b){i(c.$$.fragment,b)},m(b,W){g(c,b,W),w=!0},p:xa,i(b){w||(u(c.$$.fragment,b),w=!0)},o(b){d(c.$$.fragment,b),w=!1},d(b){p(c,b)}}}function ko(I){let c,w,b,W,T,$,C,Je,J,Ea=`웹훅은 MLOps 관련 기능의 기반이 됩니다. 이를 통해 특정 저장소의 새로운 변경 사항을 수신하거나, 관심 있는 특정 사용자/조직에 속한 모든 저장소의 변경 사항을 받아볼 수 있습니다.
Huggingface Hub의 웹훅에 대해 더 자세히 알아보려면 이 <a href="https://huggingface.co/docs/hub/webhooks" rel="nofollow">가이드</a>를 읽어보세요.`,He,L,Ga='<p>웹훅 서버를 설정하고 Space로 배포하는 방법은 이 단계별 <a href="../guides/webhooks_server">가이드</a>를 확인하세요.</p>',Ze,x,Ja="<p>이 기능은 실험적인 기능입니다. 본 API는 현재 개선 작업 중이며, 향후 사전 통지 없이 주요 변경 사항이 도입될 수 있음을 의미합니다. <code>requirements</code>에서 <code>huggingface_hub</code>의 버전을 고정하는 것을 권장합니다. 참고로 실험적 기능을 사용하면 경고가 트리거 됩니다. 이 경고 트리거를 비활성화 시키길 원한다면 환경변수 <code>HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1</code>를 설정하세요.</p>",Ye,H,Qe,Z,Ha='여기서 서버는 하나의 <a href="https://gradio.app/" rel="nofollow">Gradio</a> 앱을 의미합니다. Gradio에는 사용자 또는 사용자에게 지침을 표시하는 UI와 웹훅을 수신하기 위한 API가 있습니다. 웹훅 엔드포인트를 구현하는 것은 함수에 데코레이터를 추가하는 것만큼 간단합니다. 서버를 Space에 배포하기 전에 Gradio 터널을 사용하여 웹훅을 머신으로 리디렉션하여 디버깅할 수 있습니다.',Be,Y,Re,_,Q,fa,Ue,Za=`The <a href="/docs/huggingface_hub/main/ko/package_reference/webhooks_server#huggingface_hub.WebhooksServer">WebhooksServer()</a> class lets you create an instance of a Gradio app that can receive Huggingface webhooks.
These webhooks can be registered using the <code>add_webhook()</code> decorator. Webhook endpoints are added to
the app as a POST endpoint to the FastAPI router. Once all the webhooks are registered, the <code>launch</code> method has to be
called to start the app.`,ya,Te,Ya=`It is recommended to accept <a href="/docs/huggingface_hub/main/ko/package_reference/webhooks_server#huggingface_hub.WebhookPayload">WebhookPayload</a> as the first argument of the webhook function. It is a Pydantic
model that contains all the information about the webhook event. The data will be parsed automatically for you.`,ka,je,Qa=`Check out the <a href="../guides/webhooks_server">webhooks guide</a> for a step-by-step tutorial on how to set up your
WebhooksServer and deploy it on a Space.`,$a,B,Ba="<p><code>WebhooksServer</code> is experimental. Its API is subject to change in the future.</p>",_a,R,Ra="<p>You must have <code>gradio</code> installed to use <code>WebhooksServer</code> (<code>pip install --upgrade gradio</code>).</p>",va,S,Ae,A,Ne,f,N,wa,Ce,Aa='Decorator to start a <a href="/docs/huggingface_hub/main/ko/package_reference/webhooks_server#huggingface_hub.WebhooksServer">WebhooksServer()</a> and register the decorated function as a webhook endpoint.',Ma,Ie,Na=`This is a helper to get started quickly. If you need more flexibility (custom landing page or webhook secret),
you can use <a href="/docs/huggingface_hub/main/ko/package_reference/webhooks_server#huggingface_hub.WebhooksServer">WebhooksServer()</a> directly. You can register multiple webhook endpoints (to the same server) by using
this decorator multiple times.`,Wa,Le,Oa=`Check out the <a href="../guides/webhooks_server">webhooks guide</a> for a step-by-step tutorial on how to set up your
server and deploy it on a Space.`,Pa,O,Da="<p><code>webhook_endpoint</code> is experimental. Its API is subject to change in the future.</p>",Ua,D,Fa="<p>You must have <code>gradio</code> installed to use <code>webhook_endpoint</code> (<code>pip install --upgrade gradio</code>).</p>",Ta,xe,Xa=`Examples:
The default usage is to register a function as a webhook endpoint. The function name will be used as the path.
The server will be started automatically at exit (i.e. at the end of the script).`,ja,E,Ca,Se,qa=`Advanced usage: register a function as a webhook endpoint and start the server manually. This is useful if you
are running it in a notebook.`,Ia,G,Oe,F,De,X,Va='<a href="/docs/huggingface_hub/main/ko/package_reference/webhooks_server#huggingface_hub.WebhookPayload">WebhookPayload</a>는 웹훅의 페이로드를 포함하는 기본 데이터 구조입니다. 이것은 <code>pydantic</code> 클래스로서 FastAPI에서 매우 쉽게 사용할 수 있습니다. 즉 WebhookPayload를 웹후크 엔드포인트에 매개변수로 전달하면 자동으로 유효성이 검사되고 파이썬 객체로 파싱됩니다.',Fe,q,za='웹훅 페이로드에 대한 자세한 사항은 이 <a href="https://huggingface.co/docs/hub/webhooks#webhook-payloads" rel="nofollow">가이드</a>를 참고하세요.',Xe,V,z,qe,K,Ve,ee,ae,ze,oe,Ke,te,ne,ea,le,aa,se,he,oa,re,ta,ie,ge,na,ue,la,de,pe,sa,ce,ha,be,me,ra,fe,ia,ye,ke,ga,$e,ua,_e,ve,da,we,pa,Me,We,ca,Pe,ba,Ee,ma;return T=new co({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new U({props:{title:"웹훅 서버",local:"webhooks-server",headingTag:"h1"}}),H=new U({props:{title:"서버",local:"server",headingTag:"h2"}}),Y=new U({props:{title:"WebhooksServer",local:"huggingface_hub.WebhooksServer ][ huggingface_hub.WebhooksServer",headingTag:"h3"}}),Q=new j({props:{name:"huggingface_hub.WebhooksServer",anchor:"huggingface_hub.WebhooksServer",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.WebhooksServer.ui",description:`<strong>ui</strong> (<code>gradio.Blocks</code>, optional) &#x2014;
A Gradio UI instance to be used as the Space landing page. If <code>None</code>, a UI displaying instructions
about the configured webhooks is created.`,name:"ui"},{anchor:"huggingface_hub.WebhooksServer.webhook_secret",description:`<strong>webhook_secret</strong> (<code>str</code>, optional) &#x2014;
A secret key to verify incoming webhook requests. You can set this value to any secret you want as long as
you also configure it in your <a href="https://huggingface.co/settings/webhooks" rel="nofollow">webhooks settings panel</a>. You
can also set this value as the <code>WEBHOOK_SECRET</code> environment variable. If no secret is provided, the
webhook endpoints are opened without any security.`,name:"webhook_secret"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_server.py#L43"}}),S=new La({props:{anchor:"huggingface_hub.WebhooksServer.example",$$slots:{default:[mo]},$$scope:{ctx:I}}}),A=new U({props:{title:"@webhook_endpoint",local:"huggingface_hub.webhook_endpoint ][ huggingface_hub.webhook_endpoint",headingTag:"h3"}}),N=new j({props:{name:"huggingface_hub.webhook_endpoint",anchor:"huggingface_hub.webhook_endpoint",parameters:[{name:"path",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.webhook_endpoint.path",description:`<strong>path</strong> (<code>str</code>, optional) &#x2014;
The URL path to register the webhook function. If not provided, the function name will be used as the path.
In any case, all webhooks are registered under <code>/webhooks</code>.`,name:"path"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_server.py#L226"}}),E=new La({props:{anchor:"huggingface_hub.webhook_endpoint.example",$$slots:{default:[fo]},$$scope:{ctx:I}}}),G=new La({props:{anchor:"huggingface_hub.webhook_endpoint.example-2",$$slots:{default:[yo]},$$scope:{ctx:I}}}),F=new U({props:{title:"페이로드",local:"huggingface_hub.WebhookPayload ][ huggingface_hub.WebhookPayload",headingTag:"h2"}}),z=new j({props:{name:"class huggingface_hub.WebhookPayload",anchor:"huggingface_hub.WebhookPayload",parameters:[{name:"event",val:": WebhookPayloadEvent"},{name:"repo",val:": WebhookPayloadRepo"},{name:"discussion",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadDiscussion] = None"},{name:"comment",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadComment] = None"},{name:"webhook",val:": WebhookPayloadWebhook"},{name:"movedTo",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadMovedTo] = None"},{name:"updatedRefs",val:": typing.Optional[list[huggingface_hub._webhooks_payload.WebhookPayloadUpdatedRef]] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L130"}}),K=new U({props:{title:"WebhookPayload",local:"huggingface_hub.WebhookPayload ][ huggingface_hub.WebhookPayload",headingTag:"h3"}}),ae=new j({props:{name:"class huggingface_hub.WebhookPayload",anchor:"huggingface_hub.WebhookPayload",parameters:[{name:"event",val:": WebhookPayloadEvent"},{name:"repo",val:": WebhookPayloadRepo"},{name:"discussion",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadDiscussion] = None"},{name:"comment",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadComment] = None"},{name:"webhook",val:": WebhookPayloadWebhook"},{name:"movedTo",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadMovedTo] = None"},{name:"updatedRefs",val:": typing.Optional[list[huggingface_hub._webhooks_payload.WebhookPayloadUpdatedRef]] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L130"}}),oe=new U({props:{title:"WebhookPayloadComment",local:"huggingface_hub.WebhookPayloadComment ][ huggingface_hub.WebhookPayloadComment",headingTag:"h3"}}),ne=new j({props:{name:"class huggingface_hub.WebhookPayloadComment",anchor:"huggingface_hub.WebhookPayloadComment",parameters:[{name:"id",val:": str"},{name:"author",val:": ObjectId"},{name:"hidden",val:": bool"},{name:"content",val:": typing.Optional[str] = None"},{name:"url",val:": WebhookPayloadUrl"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L95"}}),le=new U({props:{title:"WebhookPayloadDiscussion",local:"huggingface_hub.WebhookPayloadDiscussion ][ huggingface_hub.WebhookPayloadDiscussion",headingTag:"h3"}}),he=new j({props:{name:"class huggingface_hub.WebhookPayloadDiscussion",anchor:"huggingface_hub.WebhookPayloadDiscussion",parameters:[{name:"id",val:": str"},{name:"num",val:": int"},{name:"author",val:": ObjectId"},{name:"url",val:": WebhookPayloadUrl"},{name:"title",val:": str"},{name:"isPullRequest",val:": bool"},{name:"status",val:": typing.Literal['closed', 'draft', 'open', 'merged']"},{name:"changes",val:": typing.Optional[huggingface_hub._webhooks_payload.WebhookPayloadDiscussionChanges] = None"},{name:"pinned",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L102"}}),re=new U({props:{title:"WebhookPayloadDiscussionChanges",local:"huggingface_hub.WebhookPayloadDiscussionChanges ][ huggingface_hub.WebhookPayloadDiscussionChanges",headingTag:"h3"}}),ge=new j({props:{name:"class huggingface_hub.WebhookPayloadDiscussionChanges",anchor:"huggingface_hub.WebhookPayloadDiscussionChanges",parameters:[{name:"base",val:": str"},{name:"mergeCommitId",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L90"}}),ue=new U({props:{title:"WebhookPayloadEvent",local:"huggingface_hub.WebhookPayloadEvent ][ huggingface_hub.WebhookPayloadEvent",headingTag:"h3"}}),pe=new j({props:{name:"class huggingface_hub.WebhookPayloadEvent",anchor:"huggingface_hub.WebhookPayloadEvent",parameters:[{name:"action",val:": typing.Literal['create', 'delete', 'move', 'update']"},{name:"scope",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L85"}}),ce=new U({props:{title:"WebhookPayloadMovedTo",local:"huggingface_hub.WebhookPayloadMovedTo ][ huggingface_hub.WebhookPayloadMovedTo",headingTag:"h3"}}),me=new j({props:{name:"class huggingface_hub.WebhookPayloadMovedTo",anchor:"huggingface_hub.WebhookPayloadMovedTo",parameters:[{name:"name",val:": str"},{name:"owner",val:": ObjectId"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L76"}}),fe=new U({props:{title:"WebhookPayloadRepo",local:"huggingface_hub.WebhookPayloadRepo ][ huggingface_hub.WebhookPayloadRepo",headingTag:"h3"}}),ke=new j({props:{name:"class huggingface_hub.WebhookPayloadRepo",anchor:"huggingface_hub.WebhookPayloadRepo",parameters:[{name:"id",val:": str"},{name:"owner",val:": ObjectId"},{name:"head_sha",val:": typing.Optional[str] = None"},{name:"name",val:": str"},{name:"private",val:": bool"},{name:"subdomain",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Optional[list[str]] = None"},{name:"type",val:": typing.Literal['dataset', 'model', 'space']"},{name:"url",val:": WebhookPayloadUrl"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L113"}}),$e=new U({props:{title:"WebhookPayloadUrl",local:"huggingface_hub.WebhookPayloadUrl ][ huggingface_hub.WebhookPayloadUrl",headingTag:"h3"}}),ve=new j({props:{name:"class huggingface_hub.WebhookPayloadUrl",anchor:"huggingface_hub.WebhookPayloadUrl",parameters:[{name:"web",val:": str"},{name:"api",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L71"}}),we=new U({props:{title:"WebhookPayloadWebhook",local:"huggingface_hub.WebhookPayloadWebhook ][ huggingface_hub.WebhookPayloadWebhook",headingTag:"h3"}}),We=new j({props:{name:"class huggingface_hub.WebhookPayloadWebhook",anchor:"huggingface_hub.WebhookPayloadWebhook",parameters:[{name:"id",val:": str"},{name:"version",val:": typing.Literal[3]"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_webhooks_payload.py#L81"}}),Pe=new bo({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/ko/package_reference/webhooks_server.md"}}),{c(){c=s("meta"),w=n(),b=s("p"),W=n(),r(T.$$.fragment),$=n(),r(C.$$.fragment),Je=n(),J=s("p"),J.innerHTML=Ea,He=n(),L=s("blockquote"),L.innerHTML=Ga,Ze=n(),x=s("blockquote"),x.innerHTML=Ja,Ye=n(),r(H.$$.fragment),Qe=n(),Z=s("p"),Z.innerHTML=Ha,Be=n(),r(Y.$$.fragment),Re=n(),_=s("div"),r(Q.$$.fragment),fa=n(),Ue=s("p"),Ue.innerHTML=Za,ya=n(),Te=s("p"),Te.innerHTML=Ya,ka=n(),je=s("p"),je.innerHTML=Qa,$a=n(),B=s("blockquote"),B.innerHTML=Ba,_a=n(),R=s("blockquote"),R.innerHTML=Ra,va=n(),r(S.$$.fragment),Ae=n(),r(A.$$.fragment),Ne=n(),f=s("div"),r(N.$$.fragment),wa=n(),Ce=s("p"),Ce.innerHTML=Aa,Ma=n(),Ie=s("p"),Ie.innerHTML=Na,Wa=n(),Le=s("p"),Le.innerHTML=Oa,Pa=n(),O=s("blockquote"),O.innerHTML=Da,Ua=n(),D=s("blockquote"),D.innerHTML=Fa,Ta=n(),xe=s("p"),xe.textContent=Xa,ja=n(),r(E.$$.fragment),Ca=n(),Se=s("p"),Se.textContent=qa,Ia=n(),r(G.$$.fragment),Oe=n(),r(F.$$.fragment),De=n(),X=s("p"),X.innerHTML=Va,Fe=n(),q=s("p"),q.innerHTML=za,Xe=n(),V=s("div"),r(z.$$.fragment),qe=n(),r(K.$$.fragment),Ve=n(),ee=s("div"),r(ae.$$.fragment),ze=n(),r(oe.$$.fragment),Ke=n(),te=s("div"),r(ne.$$.fragment),ea=n(),r(le.$$.fragment),aa=n(),se=s("div"),r(he.$$.fragment),oa=n(),r(re.$$.fragment),ta=n(),ie=s("div"),r(ge.$$.fragment),na=n(),r(ue.$$.fragment),la=n(),de=s("div"),r(pe.$$.fragment),sa=n(),r(ce.$$.fragment),ha=n(),be=s("div"),r(me.$$.fragment),ra=n(),r(fe.$$.fragment),ia=n(),ye=s("div"),r(ke.$$.fragment),ga=n(),r($e.$$.fragment),ua=n(),_e=s("div"),r(ve.$$.fragment),da=n(),r(we.$$.fragment),pa=n(),Me=s("div"),r(We.$$.fragment),ca=n(),r(Pe.$$.fragment),ba=n(),Ee=s("p"),this.h()},l(e){const a=po("svelte-u9bgzb",document.head);c=h(a,"META",{name:!0,content:!0}),a.forEach(o),w=l(e),b=h(e,"P",{}),P(b).forEach(o),W=l(e),i(T.$$.fragment,e),$=l(e),i(C.$$.fragment,e),Je=l(e),J=h(e,"P",{"data-svelte-h":!0}),v(J)!=="svelte-t2ccrn"&&(J.innerHTML=Ea),He=l(e),L=h(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(L)!=="svelte-v8d6ln"&&(L.innerHTML=Ga),Ze=l(e),x=h(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(x)!=="svelte-1fjfa7g"&&(x.innerHTML=Ja),Ye=l(e),i(H.$$.fragment,e),Qe=l(e),Z=h(e,"P",{"data-svelte-h":!0}),v(Z)!=="svelte-toyanw"&&(Z.innerHTML=Ha),Be=l(e),i(Y.$$.fragment,e),Re=l(e),_=h(e,"DIV",{class:!0});var M=P(_);i(Q.$$.fragment,M),fa=l(M),Ue=h(M,"P",{"data-svelte-h":!0}),v(Ue)!=="svelte-1racsz1"&&(Ue.innerHTML=Za),ya=l(M),Te=h(M,"P",{"data-svelte-h":!0}),v(Te)!=="svelte-1msja7c"&&(Te.innerHTML=Ya),ka=l(M),je=h(M,"P",{"data-svelte-h":!0}),v(je)!=="svelte-1tzqmi6"&&(je.innerHTML=Qa),$a=l(M),B=h(M,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(B)!=="svelte-1an35tm"&&(B.innerHTML=Ba),_a=l(M),R=h(M,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(R)!=="svelte-dwx3yh"&&(R.innerHTML=Ra),va=l(M),i(S.$$.fragment,M),M.forEach(o),Ae=l(e),i(A.$$.fragment,e),Ne=l(e),f=h(e,"DIV",{class:!0});var y=P(f);i(N.$$.fragment,y),wa=l(y),Ce=h(y,"P",{"data-svelte-h":!0}),v(Ce)!=="svelte-137eevd"&&(Ce.innerHTML=Aa),Ma=l(y),Ie=h(y,"P",{"data-svelte-h":!0}),v(Ie)!=="svelte-njvgbl"&&(Ie.innerHTML=Na),Wa=l(y),Le=h(y,"P",{"data-svelte-h":!0}),v(Le)!=="svelte-r8ecsk"&&(Le.innerHTML=Oa),Pa=l(y),O=h(y,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(O)!=="svelte-1kbi1dw"&&(O.innerHTML=Da),Ua=l(y),D=h(y,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(D)!=="svelte-a1wf5j"&&(D.innerHTML=Fa),Ta=l(y),xe=h(y,"P",{"data-svelte-h":!0}),v(xe)!=="svelte-a86ntl"&&(xe.textContent=Xa),ja=l(y),i(E.$$.fragment,y),Ca=l(y),Se=h(y,"P",{"data-svelte-h":!0}),v(Se)!=="svelte-t28ynx"&&(Se.textContent=qa),Ia=l(y),i(G.$$.fragment,y),y.forEach(o),Oe=l(e),i(F.$$.fragment,e),De=l(e),X=h(e,"P",{"data-svelte-h":!0}),v(X)!=="svelte-1laegfa"&&(X.innerHTML=Va),Fe=l(e),q=h(e,"P",{"data-svelte-h":!0}),v(q)!=="svelte-17c948s"&&(q.innerHTML=za),Xe=l(e),V=h(e,"DIV",{class:!0});var Ge=P(V);i(z.$$.fragment,Ge),Ge.forEach(o),qe=l(e),i(K.$$.fragment,e),Ve=l(e),ee=h(e,"DIV",{class:!0});var Ka=P(ee);i(ae.$$.fragment,Ka),Ka.forEach(o),ze=l(e),i(oe.$$.fragment,e),Ke=l(e),te=h(e,"DIV",{class:!0});var eo=P(te);i(ne.$$.fragment,eo),eo.forEach(o),ea=l(e),i(le.$$.fragment,e),aa=l(e),se=h(e,"DIV",{class:!0});var ao=P(se);i(he.$$.fragment,ao),ao.forEach(o),oa=l(e),i(re.$$.fragment,e),ta=l(e),ie=h(e,"DIV",{class:!0});var oo=P(ie);i(ge.$$.fragment,oo),oo.forEach(o),na=l(e),i(ue.$$.fragment,e),la=l(e),de=h(e,"DIV",{class:!0});var to=P(de);i(pe.$$.fragment,to),to.forEach(o),sa=l(e),i(ce.$$.fragment,e),ha=l(e),be=h(e,"DIV",{class:!0});var no=P(be);i(me.$$.fragment,no),no.forEach(o),ra=l(e),i(fe.$$.fragment,e),ia=l(e),ye=h(e,"DIV",{class:!0});var lo=P(ye);i(ke.$$.fragment,lo),lo.forEach(o),ga=l(e),i($e.$$.fragment,e),ua=l(e),_e=h(e,"DIV",{class:!0});var so=P(_e);i(ve.$$.fragment,so),so.forEach(o),da=l(e),i(we.$$.fragment,e),pa=l(e),Me=h(e,"DIV",{class:!0});var ho=P(Me);i(We.$$.fragment,ho),ho.forEach(o),ca=l(e),i(Pe.$$.fragment,e),ba=l(e),Ee=h(e,"P",{}),P(Ee).forEach(o),this.h()},h(){k(c,"name","hf:doc:metadata"),k(c,"content",$o),k(L,"class","tip"),k(x,"class","warning"),k(B,"class","warning"),k(R,"class","warning"),k(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(O,"class","warning"),k(D,"class","warning"),k(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,a){m(document.head,c),t(e,w,a),t(e,b,a),t(e,W,a),g(T,e,a),t(e,$,a),g(C,e,a),t(e,Je,a),t(e,J,a),t(e,He,a),t(e,L,a),t(e,Ze,a),t(e,x,a),t(e,Ye,a),g(H,e,a),t(e,Qe,a),t(e,Z,a),t(e,Be,a),g(Y,e,a),t(e,Re,a),t(e,_,a),g(Q,_,null),m(_,fa),m(_,Ue),m(_,ya),m(_,Te),m(_,ka),m(_,je),m(_,$a),m(_,B),m(_,_a),m(_,R),m(_,va),g(S,_,null),t(e,Ae,a),g(A,e,a),t(e,Ne,a),t(e,f,a),g(N,f,null),m(f,wa),m(f,Ce),m(f,Ma),m(f,Ie),m(f,Wa),m(f,Le),m(f,Pa),m(f,O),m(f,Ua),m(f,D),m(f,Ta),m(f,xe),m(f,ja),g(E,f,null),m(f,Ca),m(f,Se),m(f,Ia),g(G,f,null),t(e,Oe,a),g(F,e,a),t(e,De,a),t(e,X,a),t(e,Fe,a),t(e,q,a),t(e,Xe,a),t(e,V,a),g(z,V,null),t(e,qe,a),g(K,e,a),t(e,Ve,a),t(e,ee,a),g(ae,ee,null),t(e,ze,a),g(oe,e,a),t(e,Ke,a),t(e,te,a),g(ne,te,null),t(e,ea,a),g(le,e,a),t(e,aa,a),t(e,se,a),g(he,se,null),t(e,oa,a),g(re,e,a),t(e,ta,a),t(e,ie,a),g(ge,ie,null),t(e,na,a),g(ue,e,a),t(e,la,a),t(e,de,a),g(pe,de,null),t(e,sa,a),g(ce,e,a),t(e,ha,a),t(e,be,a),g(me,be,null),t(e,ra,a),g(fe,e,a),t(e,ia,a),t(e,ye,a),g(ke,ye,null),t(e,ga,a),g($e,e,a),t(e,ua,a),t(e,_e,a),g(ve,_e,null),t(e,da,a),g(we,e,a),t(e,pa,a),t(e,Me,a),g(We,Me,null),t(e,ca,a),g(Pe,e,a),t(e,ba,a),t(e,Ee,a),ma=!0},p(e,[a]){const M={};a&2&&(M.$$scope={dirty:a,ctx:e}),S.$set(M);const y={};a&2&&(y.$$scope={dirty:a,ctx:e}),E.$set(y);const Ge={};a&2&&(Ge.$$scope={dirty:a,ctx:e}),G.$set(Ge)},i(e){ma||(u(T.$$.fragment,e),u(C.$$.fragment,e),u(H.$$.fragment,e),u(Y.$$.fragment,e),u(Q.$$.fragment,e),u(S.$$.fragment,e),u(A.$$.fragment,e),u(N.$$.fragment,e),u(E.$$.fragment,e),u(G.$$.fragment,e),u(F.$$.fragment,e),u(z.$$.fragment,e),u(K.$$.fragment,e),u(ae.$$.fragment,e),u(oe.$$.fragment,e),u(ne.$$.fragment,e),u(le.$$.fragment,e),u(he.$$.fragment,e),u(re.$$.fragment,e),u(ge.$$.fragment,e),u(ue.$$.fragment,e),u(pe.$$.fragment,e),u(ce.$$.fragment,e),u(me.$$.fragment,e),u(fe.$$.fragment,e),u(ke.$$.fragment,e),u($e.$$.fragment,e),u(ve.$$.fragment,e),u(we.$$.fragment,e),u(We.$$.fragment,e),u(Pe.$$.fragment,e),ma=!0)},o(e){d(T.$$.fragment,e),d(C.$$.fragment,e),d(H.$$.fragment,e),d(Y.$$.fragment,e),d(Q.$$.fragment,e),d(S.$$.fragment,e),d(A.$$.fragment,e),d(N.$$.fragment,e),d(E.$$.fragment,e),d(G.$$.fragment,e),d(F.$$.fragment,e),d(z.$$.fragment,e),d(K.$$.fragment,e),d(ae.$$.fragment,e),d(oe.$$.fragment,e),d(ne.$$.fragment,e),d(le.$$.fragment,e),d(he.$$.fragment,e),d(re.$$.fragment,e),d(ge.$$.fragment,e),d(ue.$$.fragment,e),d(pe.$$.fragment,e),d(ce.$$.fragment,e),d(me.$$.fragment,e),d(fe.$$.fragment,e),d(ke.$$.fragment,e),d($e.$$.fragment,e),d(ve.$$.fragment,e),d(we.$$.fragment,e),d(We.$$.fragment,e),d(Pe.$$.fragment,e),ma=!1},d(e){e&&(o(w),o(b),o(W),o($),o(Je),o(J),o(He),o(L),o(Ze),o(x),o(Ye),o(Qe),o(Z),o(Be),o(Re),o(_),o(Ae),o(Ne),o(f),o(Oe),o(De),o(X),o(Fe),o(q),o(Xe),o(V),o(qe),o(Ve),o(ee),o(ze),o(Ke),o(te),o(ea),o(aa),o(se),o(oa),o(ta),o(ie),o(na),o(la),o(de),o(sa),o(ha),o(be),o(ra),o(ia),o(ye),o(ga),o(ua),o(_e),o(da),o(pa),o(Me),o(ca),o(ba),o(Ee)),o(c),p(T,e),p(C,e),p(H,e),p(Y,e),p(Q),p(S),p(A,e),p(N),p(E),p(G),p(F,e),p(z),p(K,e),p(ae),p(oe,e),p(ne),p(le,e),p(he),p(re,e),p(ge),p(ue,e),p(pe),p(ce,e),p(me),p(fe,e),p(ke),p($e,e),p(ve),p(we,e),p(We),p(Pe,e)}}}const $o='{"title":"웹훅 서버","local":"webhooks-server","sections":[{"title":"서버","local":"server","sections":[{"title":"WebhooksServer","local":"huggingface_hub.WebhooksServer ][ huggingface_hub.WebhooksServer","sections":[],"depth":3},{"title":"@webhook_endpoint","local":"huggingface_hub.webhook_endpoint ][ huggingface_hub.webhook_endpoint","sections":[],"depth":3}],"depth":2},{"title":"페이로드","local":"huggingface_hub.WebhookPayload ][ huggingface_hub.WebhookPayload","sections":[{"title":"WebhookPayload","local":"huggingface_hub.WebhookPayload ][ huggingface_hub.WebhookPayload","sections":[],"depth":3},{"title":"WebhookPayloadComment","local":"huggingface_hub.WebhookPayloadComment ][ huggingface_hub.WebhookPayloadComment","sections":[],"depth":3},{"title":"WebhookPayloadDiscussion","local":"huggingface_hub.WebhookPayloadDiscussion ][ huggingface_hub.WebhookPayloadDiscussion","sections":[],"depth":3},{"title":"WebhookPayloadDiscussionChanges","local":"huggingface_hub.WebhookPayloadDiscussionChanges ][ huggingface_hub.WebhookPayloadDiscussionChanges","sections":[],"depth":3},{"title":"WebhookPayloadEvent","local":"huggingface_hub.WebhookPayloadEvent ][ huggingface_hub.WebhookPayloadEvent","sections":[],"depth":3},{"title":"WebhookPayloadMovedTo","local":"huggingface_hub.WebhookPayloadMovedTo ][ huggingface_hub.WebhookPayloadMovedTo","sections":[],"depth":3},{"title":"WebhookPayloadRepo","local":"huggingface_hub.WebhookPayloadRepo ][ huggingface_hub.WebhookPayloadRepo","sections":[],"depth":3},{"title":"WebhookPayloadUrl","local":"huggingface_hub.WebhookPayloadUrl ][ huggingface_hub.WebhookPayloadUrl","sections":[],"depth":3},{"title":"WebhookPayloadWebhook","local":"huggingface_hub.WebhookPayloadWebhook ][ huggingface_hub.WebhookPayloadWebhook","sections":[],"depth":3}],"depth":2}],"depth":1}';function _o(I){return io(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class To extends go{constructor(c){super(),uo(this,c,_o,ko,ro,{})}}export{To as component};
