import{S as Ec,i as gc,s as qc,e as a,k as u,w as y,t as n,N as kc,c as o,d as e,m as h,a as l,x as M,h as p,b as r,P as Jp,G as t,g as c,y as j,q as w,o as v,B as J,v as Ac}from"../chunks/vendor-hf-doc-builder.js";import{T as Ic}from"../chunks/Tip-hf-doc-builder.js";import{I as E}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as wo}from"../chunks/CodeBlock-hf-doc-builder.js";function _c(at){let f,b;return{c(){f=a("p"),b=n("Webhooks are now publicly available!")},l(m){f=o(m,"P",{});var d=l(f);b=p(d,"Webhooks are now publicly available!"),d.forEach(e)},m(m,d){c(m,f,d),t(f,b)},d(m){m&&e(f)}}}function $c(at){let f,b,m;return{c(){f=n(`It's also possible to add the secret directly in the handler URL. For example, setting it as a query parameter: https://example.com/webhook?secret=XXX.
`),b=a("p"),m=n("This can be helpful if accessing the HTTP headers of the request is complicated for your Webhook handler.")},l(d){f=p(d,`It's also possible to add the secret directly in the handler URL. For example, setting it as a query parameter: https://example.com/webhook?secret=XXX.
`),b=o(d,"P",{});var $=l(b);m=p($,"This can be helpful if accessing the HTTP headers of the request is complicated for your Webhook handler."),$.forEach(e)},m(d,$){c(d,f,$),c(d,b,$),t(b,m)},d(d){d&&e(f),d&&e(b)}}}function Cc(at){let f,b,m,d,$,As,vo,kt,Jo,xe,es,Ve,ot,mo,Xe,lt,To,Le,as,bo,At,Uo,Io,Fe,k,_t,nt,Eo,go,$t,pt,qo,ko,Ct,it,Ao,_o,St,$o,Ke,Q,os,Nt,_s,Co,Wt,So,sa,ls,No,$s,Wo,Bo,ta,ct,rt,mp,ea,ut,Do,aa,R,ns,Bt,Cs,Zo,Dt,Po,oa,ps,Qo,Zt,Ro,zo,la,ht,Oo,na,dt,ft,Tp,pa,yt,Yo,ia,Ss,ca,z,is,Pt,Ns,Go,Qt,Ho,ra,cs,xo,Rt,Vo,Xo,ua,S,Lo,zt,Fo,Ko,Ot,sl,tl,ha,Ws,Yt,el,al,da,U,T,Gt,ol,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2FhJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyYXV0aG9yJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIyaWQlMjIlM0ElMjAlMjI2MWQyZjkwYzNjMjA4M2UxYzA4YWYyMmQlMjIlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyQWRkJTIwY28yJTIwZW1pc3Npb25zJTIwaW5mb3JtYXRpb24lMjB0byUyMHRoZSUyMG1vZGVsJTIwY2FyZCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMmhpZGRlbiUyMiUzQSUyMGZhbHNlJTJDJTBBJTIwJTIwJTIwJTIwJTIydXJsJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIyd2ViJTIyJTNBJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmdwdDIlMkZkaXNjdXNzaW9ucyUyRjE5JTIzNjM5OWY1ODUxODcyMWZkZDI3ZmM5Y2FhJTIyJTBBJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIyd2ViaG9vayUyMiUzQSUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMmlkJTIyJTNBJTIwJTIyNjM5MGU4NTVlMzBkOTIwOTQxMWRlOTNiJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIydmVyc2lvbiUyMiUzQSUyMDMlMEElMjAlMjAlN0QlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
  <span class="hljs-attr">&quot;event&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;action&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;create&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;scope&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;discussion&quot;</span>
  <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;repo&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;type&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;model&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;gpt2&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;621ffdc036468d709f17434d&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;private&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">false</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/gpt2&quot;</span><span class="hljs-punctuation">,</span>
      <span class="hljs-attr">&quot;api&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/api/models/gpt2&quot;</span>
    <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;owner&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;628b753283ef59b5be89e937&quot;</span>
    <span class="hljs-punctuation">}</span>
  <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;discussion&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;6399f58518721fdd27fc9ca9&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;title&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Update co2 emissions&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/gpt2/discussions/19&quot;</span><span class="hljs-punctuation">,</span>
      <span class="hljs-attr">&quot;api&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/api/models/gpt2/discussions/19&quot;</span>
    <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;status&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;open&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;author&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;61d2f90c3c2083e1c08af22d&quot;</span>
    <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;num&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">19</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;isPullRequest&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">true</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;changes&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;base&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;refs/heads/main&quot;</span>
    <span class="hljs-punctuation">}</span>
  <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;comment&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;6399f58518721fdd27fc9caa&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;author&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;61d2f90c3c2083e1c08af22d&quot;</span>
    <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;content&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Add co2 emissions information to the model card&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;hidden&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">false</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
      <span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/gpt2/discussions/19#6399f58518721fdd27fc9caa&quot;</span>
    <span class="hljs-punctuation">}</span>
  <span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
  <span class="hljs-attr">&quot;webhook&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
    <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;6390e855e30d9209411de93b&quot;</span><span class="hljs-punctuation">,</span>
    <span class="hljs-attr">&quot;version&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">3</span>
  <span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`}}),Ns=new E({}),Bs=new E({}),Ds=new wo({props:{code:"JTIycmVwbyUyMiUzQSUyMCU3QiUwQSUwOSUyMnR5cGUlMjIlM0ElMjAlMjJtb2RlbCUyMiUyQyUwQSUwOSUyMm5hbWUlMjIlM0ElMjAlMjJzb21lLXVzZXIlMkZzb21lLXJlcG8lMjIlMkMlMEElMDklMjJpZCUyMiUzQSUyMCUyMjYzNjZjMDAwYTJhYmNkZjJmZDY5YTA4MCUyMiUyQyUwQSUwOSUyMnByaXZhdGUlMjIlM0ElMjBmYWxzZSUyQyUwQSUwOSUyMnVybCUyMiUzQSUyMCU3QiUwQSUwOSUwOSUyMndlYiUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZzb21lLXVzZXIlMkZzb21lLXJlcG8lMjIlMkMlMEElMDklMDklMjJhcGklMjIlM0ElMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGYXBpJTJGbW9kZWxzJTJGc29tZS11c2VyJTJGc29tZS1yZXBvJTIyJTBBJTA5JTdEJTJDJTBBJTA5JTIyaGVhZFNoYSUyMiUzQSUyMCUyMmMzNzllODIxYzljOTVkNjEzODk5ZThjNDM0M2U0YmZlZTJiMGM2MDAlMjIlMkMlMEElMDklMjJ0YWdzJTIyJTNBJTIwJTVCJTBBJTA5JTA5JTIybGljZW5zZSUzQW90aGVyJTIyJTJDJTBBJTA5JTA5JTIyaGFzX3NwYWNlJTIyJTBBJTA5JTVEJTJDJTBBJTA5JTIyb3duZXIlMjIlM0ElMjAlN0IlMEElMDklMDklMjJpZCUyMiUzQSUyMCUyMjYxZDIwMDBjM2MyMDgzZTFjMDhhZjIyZCUyMiUwQSUwOSU3RCUwQSU3RA==",highlighted:`<span class="hljs-attr">&quot;repo&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
	<span class="hljs-attr">&quot;type&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;model&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;some-user/some-repo&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;6366c000a2abcdf2fd69a080&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;private&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">false</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/some-user/some-repo&quot;</span><span class="hljs-punctuation">,</span>
		<span class="hljs-attr">&quot;api&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/api/models/some-user/some-repo&quot;</span>
	<span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;headSha&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;c379e821c9c95d613899e8c4343e4bfee2b0c600&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;tags&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span>
		<span class="hljs-string">&quot;license:other&quot;</span><span class="hljs-punctuation">,</span>
		<span class="hljs-string">&quot;has_space&quot;</span>
	<span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;owner&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;61d2000c3c2083e1c08af22d&quot;</span>
	<span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`}}),Zs=new E({}),Ps=new wo({props:{code:"JTIyZGlzY3Vzc2lvbiUyMiUzQSUyMCU3QiUwQSUwOSUyMmlkJTIyJTNBJTIwJTIyNjM5ODg1ZDgxMWFlMmJhZDJiN2JhNDYxJTIyJTJDJTBBJTA5JTIydGl0bGUlMjIlM0ElMjAlMjJIZWxsbyElMjIlMkMlMEElMDklMjJ1cmwlMjIlM0ElMjAlN0IlMEElMDklMDklMjJ3ZWIlMjIlM0ElMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc29tZS11c2VyJTJGc29tZS1yZXBvJTJGZGlzY3Vzc2lvbnMlMkYzJTIyJTJDJTBBJTA5JTA5JTIyYXBpJTIyJTNBJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmFwaSUyRm1vZGVscyUyRnNvbWUtdXNlciUyRnNvbWUtcmVwbyUyRmRpc2N1c3Npb25zJTJGMyUyMiUwQSUwOSU3RCUyQyUwQSUwOSUyMnN0YXR1cyUyMiUzQSUyMCUyMm9wZW4lMjIlMkMlMEElMDklMjJhdXRob3IlMjIlM0ElMjAlN0IlMEElMDklMDklMjJpZCUyMiUzQSUyMCUyMjYxZDIwMDBjM2MyMDgzZTFjMDhhZjIyZCUyMiUwQSUwOSU3RCUyQyUwQSUwOSUyMmlzUHVsbFJlcXVlc3QlMjIlM0ElMjB0cnVlJTJDJTBBJTA5JTIyY2hhbmdlcyUyMiUzQSUyMCU3QiUwQSUwOSUwOSUyMmJhc2UlMjIlM0ElMjAlMjJyZWZzJTJGaGVhZHMlMkZtYWluJTIyJTBBJTA5JTdEJTBBJTA5JTIybnVtJTIyJTNBJTIwMyUwQSU3RA==",highlighted:`<span class="hljs-attr">&quot;discussion&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
	<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;639885d811ae2bad2b7ba461&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;title&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Hello!&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/some-user/some-repo/discussions/3&quot;</span><span class="hljs-punctuation">,</span>
		<span class="hljs-attr">&quot;api&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/api/models/some-user/some-repo/discussions/3&quot;</span>
	<span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;status&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;open&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;author&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;61d2000c3c2083e1c08af22d&quot;</span>
	<span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;isPullRequest&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">true</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;changes&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;base&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;refs/heads/main&quot;</span>
	<span class="hljs-punctuation">}</span>
	<span class="hljs-attr">&quot;num&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">3</span>
<span class="hljs-punctuation">}</span>`}}),Qs=new E({}),Rs=new wo({props:{code:"JTIyY29tbWVudCUyMiUzQSUyMCU3QiUwQSUwOSUyMmlkJTIyJTNBJTIwJTIyNjM5ODg3Mjg4N2JmY2ZiOTNhMzA2ZjE4JTIyJTJDJTBBJTA5JTIyYXV0aG9yJTIyJTNBJTIwJTdCJTBBJTA5JTA5JTIyaWQlMjIlM0ElMjAlMjI2MWQyMDAwYzNjMjA4M2UxYzA4YWYyMmQlMjIlMEElMDklN0QlMkMlMEElMDklMjJjb250ZW50JTIyJTNBJTIwJTIyVGhpcyUyMGFkZHMlMjBhbiUyMGVudiUyMGtleSUyMiUyQyUwQSUwOSUyMmhpZGRlbiUyMiUzQSUyMGZhbHNlJTJDJTBBJTA5JTIydXJsJTIyJTNBJTIwJTdCJTBBJTA5JTA5JTIyd2ViJTIyJTNBJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnNvbWUtdXNlciUyRnNvbWUtcmVwbyUyRmRpc2N1c3Npb25zJTJGNCUyMzYzOTg4NzI4ODdiZmNmYjkzYTMwNmYxOCUyMiUwQSUwOSU3RCUwQSU3RA==",highlighted:`<span class="hljs-attr">&quot;comment&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
	<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;6398872887bfcfb93a306f18&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;author&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;61d2000c3c2083e1c08af22d&quot;</span>
	<span class="hljs-punctuation">}</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;content&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;This adds an env key&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;hidden&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">false</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;url&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
		<span class="hljs-attr">&quot;web&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;https://huggingface.co/some-user/some-repo/discussions/4#6398872887bfcfb93a306f18&quot;</span>
	<span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>`}}),zs=new E({}),ws=new Ic({props:{$$slots:{default:[$c]},$$scope:{ctx:at}}}),Os=new E({}),Ys=new E({}),Xs=new E({}),Ls=new E({}),Fs=new E({}),Ks=new E({}),{c(){f=a("meta"),b=u(),m=a("h1"),d=a("a"),$=a("span"),y(As.$$.fragment),vo=u(),kt=a("span"),Jo=n("Webhooks"),xe=u(),y(es.$$.fragment),Ve=u(),ot=a("p"),mo=n("Webhooks are a foundation for MLOps-related features. They allow you to listen for new changes on specific repos or to all repos belonging to particular set of users/organizations (not just your repos, but any repo)."),Xe=u(),lt=a("p"),To=n("You can use them to auto-convert models, build community bots, or build CI/CD for your models, datasets, and Spaces (and much more!)."),Le=u(),as=a("p"),bo=n("The documentation for Webhooks is below \u2013 or you can also browse our "),At=a("strong"),Uo=n("guides"),Io=n(" showcasing a few possible use cases of Webhooks:"),Fe=u(),k=a("ul"),_t=a("li"),nt=a("a"),Eo=n("Fine-tune a new model whenever a dataset gets updated (Python)"),go=u(),$t=a("li"),pt=a("a"),qo=n("Create a discussion bot on the Hub, using a LLM API (NodeJS)"),ko=u(),Ct=a("li"),it=a("a"),Ao=n("Create metadata quality reports (Python)"),_o=u(),St=a("li"),$o=n("and more to come\u2026"),Ke=u(),Q=a("h2"),os=a("a"),Nt=a("span"),y(_s.$$.fragment),Co=u(),Wt=a("span"),So=n("Create your Webhook"),sa=u(),ls=a("p"),No=n("You can create new Webhooks and edit existing ones in your Webhooks "),$s=a("a"),Wo=n("settings"),Bo=n(":"),ta=u(),ct=a("p"),rt=a("img"),ea=u(),ut=a("p"),Do=n("Webhooks can watch for repos updates, Pull Requests, discussions, and new comments. It\u2019s even possible to create a Space to react to your Webhooks!"),aa=u(),R=a("h2"),ns=a("a"),Bt=a("span"),y(Cs.$$.fragment),Zo=u(),Dt=a("span"),Po=n("Webhook Payloads"),oa=u(),ps=a("p"),Qo=n("After registering a Webhook, you will be notified of new events via an "),Zt=a("code"),Ro=n("HTTP POST"),zo=n(" call on the specified target URL. The payload is encoded in JSON."),la=u(),ht=a("p"),Oo=n("You can view the history of payloads sent in the activity tab of the webhook settings page, it\u2019s also possible to replay past webhooks for easier debugging:"),na=u(),dt=a("p"),ft=a("img"),pa=u(),yt=a("p"),Yo=n("As an example, here is the full payload when a Pull Request is opened:"),ia=u(),y(Ss.$$.fragment),ca=u(),z=a("h3"),is=a("a"),Pt=a("span"),y(Ns.$$.fragment),Go=u(),Qt=a("span"),Ho=n("Event"),ra=u(),cs=a("p"),xo=n("The top-level properties "),Rt=a("code"),Vo=n("event"),Xo=n(" is always specified and used to determine the nature of the event."),ua=u(),S=a("p"),Lo=n("It has two sub-properties: "),zt=a("code"),Fo=n("event.action"),Ko=n(" and "),Ot=a("code"),sl=n("event.scope"),tl=n("."),ha=u(),Ws=a("p"),Yt=a("code"),el=n("event.scope"),al=n(" will be one of the following values:"),da=u(),U=a("ul"),T=a("li"),Gt=a("code"),ol=n('"repo"'),ll=n(" - Global events on repos. Possible values for the associated "),Ht=a("code"),nl=n("action"),pl=n(": "),xt=a("code"),il=n('"create"'),cl=n(", "),Vt=a("code"),rl=n('"delete"'),ul=n(", "),Xt=a("code"),hl=n('"update"'),dl=n(", "),Lt=a("code"),fl=n('"move"'),yl=n("."),Ml=u(),N=a("li"),Ft=a("code"),jl=n('"repo.content"'),wl=n(" - Events on the repo\u2019s content, such as new commits or tags. It triggers on new Pull Requests as well due to the newly created reference/commit. The associated "),Kt=a("code"),vl=n("action"),Jl=n(" is always "),se=a("code"),ml=n('"update"'),Tl=n("."),bl=u(),W=a("li"),te=a("code"),Ul=n('"repo.config"'),Il=n(" - Events on the config: update Space secrets, update settings, update DOIs, disabled or not, etc. The associated "),ee=a("code"),El=n("action"),gl=n(" is always "),ae=a("code"),ql=n('"update"'),kl=n("."),Al=u(),I=a("li"),oe=a("code"),_l=n('"discussion"'),$l=n(" - Creating a discussion or Pull Request, updating the title or status, and merging. Possible values for the associated "),le=a("code"),Cl=n("action"),Sl=n(": "),ne=a("code"),Nl=n('"create"'),Wl=n(", "),pe=a("code"),Bl=n('"delete"'),Dl=n(", "),ie=a("code"),Zl=n('"update"'),Pl=n("."),Ql=u(),A=a("li"),ce=a("code"),Rl=n('"discussion.comment"'),zl=n(" - Creating, updating, and hiding a comment. Possible values for the associated "),re=a("code"),Ol=n("action"),Yl=n(": "),ue=a("code"),Gl=n('"create"'),Hl=n(", "),he=a("code"),xl=n('"update"'),Vl=n("."),fa=u(),rs=a("p"),Xl=n("More scopes can be added in the future. To handle unknown events, your webhook handler can consider any action on a narrowed scope to be an "),de=a("code"),Ll=n('"update"'),Fl=n(" action on the broader scope."),ya=u(),_=a("p"),Kl=n("For example, if the "),fe=a("code"),sn=n('"repo.config.dois"'),tn=n(" scope is added in the future, any event with that scope can be considered by your webhook handler as an "),ye=a("code"),en=n('"update"'),an=n(" action on the "),Me=a("code"),on=n('"repo.config"'),ln=n(" scope."),Ma=u(),O=a("h3"),us=a("a"),je=a("span"),y(Bs.$$.fragment),nn=u(),we=a("span"),pn=n("Repo"),ja=u(),hs=a("p"),cn=n("In the current version of webhooks, the top-level property "),ve=a("code"),rn=n("repo"),un=n(" is always specified, as events can always be associated with a repo. For example, consider the following value:"),wa=u(),y(Ds.$$.fragment),va=u(),g=a("p"),Je=a("code"),hn=n("repo.headSha"),dn=n(" is the sha of the latest commit on the repo\u2019s "),me=a("code"),fn=n("main"),yn=n(" branch. It is only sent when "),Te=a("code"),Mn=n("event.scope"),jn=n(" starts with "),be=a("code"),wn=n('"repo"'),vn=n(", not on community events like discussions and comments."),Ja=u(),Y=a("h3"),ds=a("a"),Ue=a("span"),y(Zs.$$.fragment),Jn=u(),Ie=a("span"),mn=n("Discussions and Pull Requests"),ma=u(),B=a("p"),Tn=n("The top-level property "),Ee=a("code"),bn=n("discussion"),Un=n(" is specified on community events (discussions and Pull Requests). The "),ge=a("code"),In=n("discussion.isPullRequest"),En=n(" property is a boolean indicating if the discussion is also a Pull Request (on the Hub, a PR is a special type of discussion). Here is an example value:"),Ta=u(),y(Ps.$$.fragment),ba=u(),G=a("h3"),fs=a("a"),qe=a("span"),y(Qs.$$.fragment),gn=u(),ke=a("span"),qn=n("Comment"),Ua=u(),ys=a("p"),kn=n("The top level property "),Ae=a("code"),An=n("comment"),_n=n(" is specified when a comment is created (including on discussion creation) or updated. Here is an example value:"),Ia=u(),y(Rs.$$.fragment),Ea=u(),H=a("h2"),Ms=a("a"),_e=a("span"),y(zs.$$.fragment),$n=u(),$e=a("span"),Cn=n("Webhook secret"),ga=u(),Mt=a("p"),Sn=n("Setting a Webhook secret is useful to make sure payloads sent to your Webhook handler URL are actually from Hugging Face."),qa=u(),js=a("p"),Nn=n("If you set a secret for your Webhook, it will be sent along as an "),Ce=a("code"),Wn=n("X-Webhook-Secret"),Bn=n(" HTTP header on every request. Only ASCII characters are supported."),ka=u(),y(ws.$$.fragment),Aa=u(),x=a("h2"),vs=a("a"),Se=a("span"),y(Os.$$.fragment),Dn=u(),Ne=a("span"),Zn=n("Rate limiting"),_a=u(),jt=a("p"),Pn=n("Each Webhook is limited to 1,000 triggers per 24 hours. You can view your usage in the Webhook settings page in the \u201CActivity\u201D tab."),$a=u(),Js=a("p"),Qn=n("If you need to increase the number of triggers for your Webhook, contact us at "),wt=a("a"),Rn=n("website@huggingface.co"),zn=n("."),Ca=u(),V=a("h2"),ms=a("a"),We=a("span"),y(Ys.$$.fragment),On=u(),Be=a("span"),Yn=n("Developing your Webhooks"),Sa=u(),D=a("p"),Gn=n("If you do not have an HTTPS endpoint/URL, you can try out public tools for webhook testing. These tools act as catch-all (capture all requests) sent to them and give 200 OK status code. "),Gs=a("a"),Hn=n("Beeceptor"),xn=n(" is one tool you can use to create a temporary HTTP endpoint and review the incoming payload. Another such tool is "),Hs=a("a"),Vn=n("Webhook.site"),Xn=n("."),Na=u(),Z=a("p"),Ln=n("Additionally, you can route a real Webhook payload to the code running locally on your machine during development. This is a great way to test and debug for faster integrations. You can do this by exposing your localhost port to the Internet. To be able to go this path, you can use "),xs=a("a"),Fn=n("ngrok"),Kn=n(" or "),Vs=a("a"),sp=n("localtunnel"),tp=n("."),Wa=u(),X=a("h2"),Ts=a("a"),De=a("span"),y(Xs.$$.fragment),ep=u(),Ze=a("span"),ap=n("Debugging Webhooks"),Ba=u(),vt=a("p"),op=n("You can easily find recently generated events for your webhooks. Open the activity tab for your webhook. There you will see the list of recent events."),Da=u(),Jt=a("p"),mt=a("img"),Za=u(),bs=a("p"),lp=n("Here you can review the HTTP status code and the payload of the generated events. Additionally, you can replay these events by clicking on the "),Pe=a("code"),np=n("Replay"),pp=n(" button!"),Pa=u(),Tt=a("p"),ip=n("Note: When changing the target URL or secret of a Webhook, replaying an event will send the payload to the updated URL."),Qa=u(),L=a("h2"),Us=a("a"),Qe=a("span"),y(Ls.$$.fragment),cp=u(),Re=a("span"),rp=n("FAQ"),Ra=u(),F=a("h5"),Is=a("a"),ze=a("span"),y(Fs.$$.fragment),up=u(),Oe=a("span"),hp=n("Can I define webhooks on my organization vs my user account?"),za=u(),bt=a("p"),dp=n("No, this is not currently supported."),Oa=u(),K=a("h5"),Es=a("a"),Ye=a("span"),y(Ks.$$.fragment),fp=u(),Ge=a("span"),yp=n("How can I subscribe to events on all repos (or across a whole repo type, like on all models)?"),Ya=u(),gs=a("p"),Mp=n("This is not currently exposed to end users but we can toggle this for you if you send an email to "),Ut=a("a"),jp=n("website@huggingface.co"),wp=n("."),this.h()},l(s){const i=kc('[data-svelte="svelte-1phssyn"]',document.head);f=o(i,"META",{name:!0,content:!0}),i.forEach(e),b=h(s),m=o(s,"H1",{class:!0});var st=l(m);d=o(st,"A",{id:!0,class:!0,href:!0});var He=l(d);$=o(He,"SPAN",{});var Up=l($);M(As.$$.fragment,Up),Up.forEach(e),He.forEach(e),vo=h(st),kt=o(st,"SPAN",{});var Ip=l(kt);Jo=p(Ip,"Webhooks"),Ip.forEach(e),st.forEach(e),xe=h(s),M(es.$$.fragment,s),Ve=h(s),ot=o(s,"P",{});var Ep=l(ot);mo=p(Ep,"Webhooks are a foundation for MLOps-related features. They allow you to listen for new changes on specific repos or to all repos belonging to particular set of users/organizations (not just your repos, but any repo)."),Ep.forEach(e),Xe=h(s),lt=o(s,"P",{});var gp=l(lt);To=p(gp,"You can use them to auto-convert models, build community bots, or build CI/CD for your models, datasets, and Spaces (and much more!)."),gp.forEach(e),Le=h(s),as=o(s,"P",{});var Ha=l(as);bo=p(Ha,"The documentation for Webhooks is below \u2013 or you can also browse our "),At=o(Ha,"STRONG",{});var qp=l(At);Uo=p(qp,"guides"),qp.forEach(e),Io=p(Ha," showcasing a few possible use cases of Webhooks:"),Ha.forEach(e),Fe=h(s),k=o(s,"UL",{});var qs=l(k);_t=o(qs,"LI",{});var kp=l(_t);nt=o(kp,"A",{href:!0});var Ap=l(nt);Eo=p(Ap,"Fine-tune a new model whenever a dataset gets updated (Python)"),Ap.forEach(e),kp.forEach(e),go=h(qs),$t=o(qs,"LI",{});var _p=l($t);pt=o(_p,"A",{href:!0});var $p=l(pt);qo=p($p,"Create a discussion bot on the Hub, using a LLM API (NodeJS)"),$p.forEach(e),_p.forEach(e),ko=h(qs),Ct=o(qs,"LI",{});var Cp=l(Ct);it=o(Cp,"A",{href:!0});var Sp=l(it);Ao=p(Sp,"Create metadata quality reports (Python)"),Sp.forEach(e),Cp.forEach(e),_o=h(qs),St=o(qs,"LI",{});var Np=l(St);$o=p(Np,"and more to come\u2026"),Np.forEach(e),qs.forEach(e),Ke=h(s),Q=o(s,"H2",{class:!0});var xa=l(Q);os=o(xa,"A",{id:!0,class:!0,href:!0});var Wp=l(os);Nt=o(Wp,"SPAN",{});var Bp=l(Nt);M(_s.$$.fragment,Bp),Bp.forEach(e),Wp.forEach(e),Co=h(xa),Wt=o(xa,"SPAN",{});var Dp=l(Wt);So=p(Dp,"Create your Webhook"),Dp.forEach(e),xa.forEach(e),sa=h(s),ls=o(s,"P",{});var Va=l(ls);No=p(Va,"You can create new Webhooks and edit existing ones in your Webhooks "),$s=o(Va,"A",{href:!0,rel:!0});var Zp=l($s);Wo=p(Zp,"settings"),Zp.forEach(e),Bo=p(Va,":"),Va.forEach(e),ta=h(s),ct=o(s,"P",{});var Pp=l(ct);rt=o(Pp,"IMG",{src:!0,alt:!0}),Pp.forEach(e),ea=h(s),ut=o(s,"P",{});var Qp=l(ut);Do=p(Qp,"Webhooks can watch for repos updates, Pull Requests, discussions, and new comments. It\u2019s even possible to create a Space to react to your Webhooks!"),Qp.forEach(e),aa=h(s),R=o(s,"H2",{class:!0});var Xa=l(R);ns=o(Xa,"A",{id:!0,class:!0,href:!0});var Rp=l(ns);Bt=o(Rp,"SPAN",{});var zp=l(Bt);M(Cs.$$.fragment,zp),zp.forEach(e),Rp.forEach(e),Zo=h(Xa),Dt=o(Xa,"SPAN",{});var Op=l(Dt);Po=p(Op,"Webhook Payloads"),Op.forEach(e),Xa.forEach(e),oa=h(s),ps=o(s,"P",{});var La=l(ps);Qo=p(La,"After registering a Webhook, you will be notified of new events via an "),Zt=o(La,"CODE",{});var Yp=l(Zt);Ro=p(Yp,"HTTP POST"),Yp.forEach(e),zo=p(La," call on the specified target URL. The payload is encoded in JSON."),La.forEach(e),la=h(s),ht=o(s,"P",{});var Gp=l(ht);Oo=p(Gp,"You can view the history of payloads sent in the activity tab of the webhook settings page, it\u2019s also possible to replay past webhooks for easier debugging:"),Gp.forEach(e),na=h(s),dt=o(s,"P",{});var Hp=l(dt);ft=o(Hp,"IMG",{src:!0,alt:!0}),Hp.forEach(e),pa=h(s),yt=o(s,"P",{});var xp=l(yt);Yo=p(xp,"As an example, here is the full payload when a Pull Request is opened:"),xp.forEach(e),ia=h(s),M(Ss.$$.fragment,s),ca=h(s),z=o(s,"H3",{class:!0});var Fa=l(z);is=o(Fa,"A",{id:!0,class:!0,href:!0});var Vp=l(is);Pt=o(Vp,"SPAN",{});var Xp=l(Pt);M(Ns.$$.fragment,Xp),Xp.forEach(e),Vp.forEach(e),Go=h(Fa),Qt=o(Fa,"SPAN",{});var Lp=l(Qt);Ho=p(Lp,"Event"),Lp.forEach(e),Fa.forEach(e),ra=h(s),cs=o(s,"P",{});var Ka=l(cs);xo=p(Ka,"The top-level properties "),Rt=o(Ka,"CODE",{});var Fp=l(Rt);Vo=p(Fp,"event"),Fp.forEach(e),Xo=p(Ka," is always specified and used to determine the nature of the event."),Ka.forEach(e),ua=h(s),S=o(s,"P",{});var It=l(S);Lo=p(It,"It has two sub-properties: "),zt=o(It,"CODE",{});var Kp=l(zt);Fo=p(Kp,"event.action"),Kp.forEach(e),Ko=p(It," and "),Ot=o(It,"CODE",{});var si=l(Ot);sl=p(si,"event.scope"),si.forEach(e),tl=p(It,"."),It.forEach(e),ha=h(s),Ws=o(s,"P",{});var vp=l(Ws);Yt=o(vp,"CODE",{});var ti=l(Yt);el=p(ti,"event.scope"),ti.forEach(e),al=p(vp," will be one of the following values:"),vp.forEach(e),da=h(s),U=o(s,"UL",{});var P=l(U);T=o(P,"LI",{});var q=l(T);Gt=o(q,"CODE",{});var ei=l(Gt);ol=p(ei,'"repo"'),ei.forEach(e),ll=p(q," - Global events on repos. Possible values for the associated "),Ht=o(q,"CODE",{});var ai=l(Ht);nl=p(ai,"action"),ai.forEach(e),pl=p(q,": "),xt=o(q,"CODE",{});var oi=l(xt);il=p(oi,'"create"'),oi.forEach(e),cl=p(q,", "),Vt=o(q,"CODE",{});var li=l(Vt);rl=p(li,'"delete"'),li.forEach(e),ul=p(q,", "),Xt=o(q,"CODE",{});var ni=l(Xt);hl=p(ni,'"update"'),ni.forEach(e),dl=p(q,", "),Lt=o(q,"CODE",{});var pi=l(Lt);fl=p(pi,'"move"'),pi.forEach(e),yl=p(q,"."),q.forEach(e),Ml=h(P),N=o(P,"LI",{});var tt=l(N);Ft=o(tt,"CODE",{});var ii=l(Ft);jl=p(ii,'"repo.content"'),ii.forEach(e),wl=p(tt," - Events on the repo\u2019s content, such as new commits or tags. It triggers on new Pull Requests as well due to the newly created reference/commit. The associated "),Kt=o(tt,"CODE",{});var ci=l(Kt);vl=p(ci,"action"),ci.forEach(e),Jl=p(tt," is always "),se=o(tt,"CODE",{});var ri=l(se);ml=p(ri,'"update"'),ri.forEach(e),Tl=p(tt,"."),tt.forEach(e),bl=h(P),W=o(P,"LI",{});var et=l(W);te=o(et,"CODE",{});var ui=l(te);Ul=p(ui,'"repo.config"'),ui.forEach(e),Il=p(et," - Events on the config: update Space secrets, update settings, update DOIs, disabled or not, etc. The associated "),ee=o(et,"CODE",{});var hi=l(ee);El=p(hi,"action"),hi.forEach(e),gl=p(et," is always "),ae=o(et,"CODE",{});var di=l(ae);ql=p(di,'"update"'),di.forEach(e),kl=p(et,"."),et.forEach(e),Al=h(P),I=o(P,"LI",{});var C=l(I);oe=o(C,"CODE",{});var fi=l(oe);_l=p(fi,'"discussion"'),fi.forEach(e),$l=p(C," - Creating a discussion or Pull Request, updating the title or status, and merging. Possible values for the associated "),le=o(C,"CODE",{});var yi=l(le);Cl=p(yi,"action"),yi.forEach(e),Sl=p(C,": "),ne=o(C,"CODE",{});var Mi=l(ne);Nl=p(Mi,'"create"'),Mi.forEach(e),Wl=p(C,", "),pe=o(C,"CODE",{});var ji=l(pe);Bl=p(ji,'"delete"'),ji.forEach(e),Dl=p(C,", "),ie=o(C,"CODE",{});var wi=l(ie);Zl=p(wi,'"update"'),wi.forEach(e),Pl=p(C,"."),C.forEach(e),Ql=h(P),A=o(P,"LI",{});var ss=l(A);ce=o(ss,"CODE",{});var vi=l(ce);Rl=p(vi,'"discussion.comment"'),vi.forEach(e),zl=p(ss," - Creating, updating, and hiding a comment. Possible values for the associated "),re=o(ss,"CODE",{});var Ji=l(re);Ol=p(Ji,"action"),Ji.forEach(e),Yl=p(ss,": "),ue=o(ss,"CODE",{});var mi=l(ue);Gl=p(mi,'"create"'),mi.forEach(e),Hl=p(ss,", "),he=o(ss,"CODE",{});var Ti=l(he);xl=p(Ti,'"update"'),Ti.forEach(e),Vl=p(ss,"."),ss.forEach(e),P.forEach(e),fa=h(s),rs=o(s,"P",{});var so=l(rs);Xl=p(so,"More scopes can be added in the future. To handle unknown events, your webhook handler can consider any action on a narrowed scope to be an "),de=o(so,"CODE",{});var bi=l(de);Ll=p(bi,'"update"'),bi.forEach(e),Fl=p(so," action on the broader scope."),so.forEach(e),ya=h(s),_=o(s,"P",{});var ks=l(_);Kl=p(ks,"For example, if the "),fe=o(ks,"CODE",{});var Ui=l(fe);sn=p(Ui,'"repo.config.dois"'),Ui.forEach(e),tn=p(ks," scope is added in the future, any event with that scope can be considered by your webhook handler as an "),ye=o(ks,"CODE",{});var Ii=l(ye);en=p(Ii,'"update"'),Ii.forEach(e),an=p(ks," action on the "),Me=o(ks,"CODE",{});var Ei=l(Me);on=p(Ei,'"repo.config"'),Ei.forEach(e),ln=p(ks," scope."),ks.forEach(e),Ma=h(s),O=o(s,"H3",{class:!0});var to=l(O);us=o(to,"A",{id:!0,class:!0,href:!0});var gi=l(us);je=o(gi,"SPAN",{});var qi=l(je);M(Bs.$$.fragment,qi),qi.forEach(e),gi.forEach(e),nn=h(to),we=o(to,"SPAN",{});var ki=l(we);pn=p(ki,"Repo"),ki.forEach(e),to.forEach(e),ja=h(s),hs=o(s,"P",{});var eo=l(hs);cn=p(eo,"In the current version of webhooks, the top-level property "),ve=o(eo,"CODE",{});var Ai=l(ve);rn=p(Ai,"repo"),Ai.forEach(e),un=p(eo," is always specified, as events can always be associated with a repo. For example, consider the following value:"),eo.forEach(e),wa=h(s),M(Ds.$$.fragment,s),va=h(s),g=o(s,"P",{});var ts=l(g);Je=o(ts,"CODE",{});var _i=l(Je);hn=p(_i,"repo.headSha"),_i.forEach(e),dn=p(ts," is the sha of the latest commit on the repo\u2019s "),me=o(ts,"CODE",{});var $i=l(me);fn=p($i,"main"),$i.forEach(e),yn=p(ts," branch. It is only sent when "),Te=o(ts,"CODE",{});var Ci=l(Te);Mn=p(Ci,"event.scope"),Ci.forEach(e),jn=p(ts," starts with "),be=o(ts,"CODE",{});var Si=l(be);wn=p(Si,'"repo"'),Si.forEach(e),vn=p(ts,", not on community events like discussions and comments."),ts.forEach(e),Ja=h(s),Y=o(s,"H3",{class:!0});var ao=l(Y);ds=o(ao,"A",{id:!0,class:!0,href:!0});var Ni=l(ds);Ue=o(Ni,"SPAN",{});var Wi=l(Ue);M(Zs.$$.fragment,Wi),Wi.forEach(e),Ni.forEach(e),Jn=h(ao),Ie=o(ao,"SPAN",{});var Bi=l(Ie);mn=p(Bi,"Discussions and Pull Requests"),Bi.forEach(e),ao.forEach(e),ma=h(s),B=o(s,"P",{});var Et=l(B);Tn=p(Et,"The top-level property "),Ee=o(Et,"CODE",{});var Di=l(Ee);bn=p(Di,"discussion"),Di.forEach(e),Un=p(Et," is specified on community events (discussions and Pull Requests). The "),ge=o(Et,"CODE",{});var Zi=l(ge);In=p(Zi,"discussion.isPullRequest"),Zi.forEach(e),En=p(Et," property is a boolean indicating if the discussion is also a Pull Request (on the Hub, a PR is a special type of discussion). Here is an example value:"),Et.forEach(e),Ta=h(s),M(Ps.$$.fragment,s),ba=h(s),G=o(s,"H3",{class:!0});var oo=l(G);fs=o(oo,"A",{id:!0,class:!0,href:!0});var Pi=l(fs);qe=o(Pi,"SPAN",{});var Qi=l(qe);M(Qs.$$.fragment,Qi),Qi.forEach(e),Pi.forEach(e),gn=h(oo),ke=o(oo,"SPAN",{});var Ri=l(ke);qn=p(Ri,"Comment"),Ri.forEach(e),oo.forEach(e),Ua=h(s),ys=o(s,"P",{});var lo=l(ys);kn=p(lo,"The top level property "),Ae=o(lo,"CODE",{});var zi=l(Ae);An=p(zi,"comment"),zi.forEach(e),_n=p(lo," is specified when a comment is created (including on discussion creation) or updated. Here is an example value:"),lo.forEach(e),Ia=h(s),M(Rs.$$.fragment,s),Ea=h(s),H=o(s,"H2",{class:!0});var no=l(H);Ms=o(no,"A",{id:!0,class:!0,href:!0});var Oi=l(Ms);_e=o(Oi,"SPAN",{});var Yi=l(_e);M(zs.$$.fragment,Yi),Yi.forEach(e),Oi.forEach(e),$n=h(no),$e=o(no,"SPAN",{});var Gi=l($e);Cn=p(Gi,"Webhook secret"),Gi.forEach(e),no.forEach(e),ga=h(s),Mt=o(s,"P",{});var Hi=l(Mt);Sn=p(Hi,"Setting a Webhook secret is useful to make sure payloads sent to your Webhook handler URL are actually from Hugging Face."),Hi.forEach(e),qa=h(s),js=o(s,"P",{});var po=l(js);Nn=p(po,"If you set a secret for your Webhook, it will be sent along as an "),Ce=o(po,"CODE",{});var xi=l(Ce);Wn=p(xi,"X-Webhook-Secret"),xi.forEach(e),Bn=p(po," HTTP header on every request. Only ASCII characters are supported."),po.forEach(e),ka=h(s),M(ws.$$.fragment,s),Aa=h(s),x=o(s,"H2",{class:!0});var io=l(x);vs=o(io,"A",{id:!0,class:!0,href:!0});var Vi=l(vs);Se=o(Vi,"SPAN",{});var Xi=l(Se);M(Os.$$.fragment,Xi),Xi.forEach(e),Vi.forEach(e),Dn=h(io),Ne=o(io,"SPAN",{});var Li=l(Ne);Zn=p(Li,"Rate limiting"),Li.forEach(e),io.forEach(e),_a=h(s),jt=o(s,"P",{});var Fi=l(jt);Pn=p(Fi,"Each Webhook is limited to 1,000 triggers per 24 hours. You can view your usage in the Webhook settings page in the \u201CActivity\u201D tab."),Fi.forEach(e),$a=h(s),Js=o(s,"P",{});var co=l(Js);Qn=p(co,"If you need to increase the number of triggers for your Webhook, contact us at "),wt=o(co,"A",{href:!0});var Ki=l(wt);Rn=p(Ki,"website@huggingface.co"),Ki.forEach(e),zn=p(co,"."),co.forEach(e),Ca=h(s),V=o(s,"H2",{class:!0});var ro=l(V);ms=o(ro,"A",{id:!0,class:!0,href:!0});var sc=l(ms);We=o(sc,"SPAN",{});var tc=l(We);M(Ys.$$.fragment,tc),tc.forEach(e),sc.forEach(e),On=h(ro),Be=o(ro,"SPAN",{});var ec=l(Be);Yn=p(ec,"Developing your Webhooks"),ec.forEach(e),ro.forEach(e),Sa=h(s),D=o(s,"P",{});var gt=l(D);Gn=p(gt,"If you do not have an HTTPS endpoint/URL, you can try out public tools for webhook testing. These tools act as catch-all (capture all requests) sent to them and give 200 OK status code. "),Gs=o(gt,"A",{href:!0,rel:!0});var ac=l(Gs);Hn=p(ac,"Beeceptor"),ac.forEach(e),xn=p(gt," is one tool you can use to create a temporary HTTP endpoint and review the incoming payload. Another such tool is "),Hs=o(gt,"A",{href:!0,rel:!0});var oc=l(Hs);Vn=p(oc,"Webhook.site"),oc.forEach(e),Xn=p(gt,"."),gt.forEach(e),Na=h(s),Z=o(s,"P",{});var qt=l(Z);Ln=p(qt,"Additionally, you can route a real Webhook payload to the code running locally on your machine during development. This is a great way to test and debug for faster integrations. You can do this by exposing your localhost port to the Internet. To be able to go this path, you can use "),xs=o(qt,"A",{href:!0,rel:!0});var lc=l(xs);Fn=p(lc,"ngrok"),lc.forEach(e),Kn=p(qt," or "),Vs=o(qt,"A",{href:!0,rel:!0});var nc=l(Vs);sp=p(nc,"localtunnel"),nc.forEach(e),tp=p(qt,"."),qt.forEach(e),Wa=h(s),X=o(s,"H2",{class:!0});var uo=l(X);Ts=o(uo,"A",{id:!0,class:!0,href:!0});var pc=l(Ts);De=o(pc,"SPAN",{});var ic=l(De);M(Xs.$$.fragment,ic),ic.forEach(e),pc.forEach(e),ep=h(uo),Ze=o(uo,"SPAN",{});var cc=l(Ze);ap=p(cc,"Debugging Webhooks"),cc.forEach(e),uo.forEach(e),Ba=h(s),vt=o(s,"P",{});var rc=l(vt);op=p(rc,"You can easily find recently generated events for your webhooks. Open the activity tab for your webhook. There you will see the list of recent events."),rc.forEach(e),Da=h(s),Jt=o(s,"P",{});var uc=l(Jt);mt=o(uc,"IMG",{src:!0,alt:!0}),uc.forEach(e),Za=h(s),bs=o(s,"P",{});var ho=l(bs);lp=p(ho,"Here you can review the HTTP status code and the payload of the generated events. Additionally, you can replay these events by clicking on the "),Pe=o(ho,"CODE",{});var hc=l(Pe);np=p(hc,"Replay"),hc.forEach(e),pp=p(ho," button!"),ho.forEach(e),Pa=h(s),Tt=o(s,"P",{});var dc=l(Tt);ip=p(dc,"Note: When changing the target URL or secret of a Webhook, replaying an event will send the payload to the updated URL."),dc.forEach(e),Qa=h(s),L=o(s,"H2",{class:!0});var fo=l(L);Us=o(fo,"A",{id:!0,class:!0,href:!0});var fc=l(Us);Qe=o(fc,"SPAN",{});var yc=l(Qe);M(Ls.$$.fragment,yc),yc.forEach(e),fc.forEach(e),cp=h(fo),Re=o(fo,"SPAN",{});var Mc=l(Re);rp=p(Mc,"FAQ"),Mc.forEach(e),fo.forEach(e),Ra=h(s),F=o(s,"H5",{class:!0});var yo=l(F);Is=o(yo,"A",{id:!0,class:!0,href:!0});var jc=l(Is);ze=o(jc,"SPAN",{});var wc=l(ze);M(Fs.$$.fragment,wc),wc.forEach(e),jc.forEach(e),up=h(yo),Oe=o(yo,"SPAN",{});var vc=l(Oe);hp=p(vc,"Can I define webhooks on my organization vs my user account?"),vc.forEach(e),yo.forEach(e),za=h(s),bt=o(s,"P",{});var Jc=l(bt);dp=p(Jc,"No, this is not currently supported."),Jc.forEach(e),Oa=h(s),K=o(s,"H5",{class:!0});var Mo=l(K);Es=o(Mo,"A",{id:!0,class:!0,href:!0});var mc=l(Es);Ye=o(mc,"SPAN",{});var Tc=l(Ye);M(Ks.$$.fragment,Tc),Tc.forEach(e),mc.forEach(e),fp=h(Mo),Ge=o(Mo,"SPAN",{});var bc=l(Ge);yp=p(bc,"How can I subscribe to events on all repos (or across a whole repo type, like on all models)?"),bc.forEach(e),Mo.forEach(e),Ya=h(s),gs=o(s,"P",{});var jo=l(gs);Mp=p(jo,"This is not currently exposed to end users but we can toggle this for you if you send an email to "),Ut=o(jo,"A",{href:!0});var Uc=l(Ut);jp=p(Uc,"website@huggingface.co"),Uc.forEach(e),wp=p(jo,"."),jo.forEach(e),this.h()},h(){r(f,"name","hf:doc:metadata"),r(f,"content",JSON.stringify(Sc)),r(d,"id","webhooks"),r(d,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(d,"href","#webhooks"),r(m,"class","relative group"),r(nt,"href","./webhooks-guide-auto-retrain"),r(pt,"href","./webhooks-guide-discussion-bot"),r(it,"href","./webhooks-guide-metadata-review"),r(os,"id","create-your-webhook"),r(os,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(os,"href","#create-your-webhook"),r(Q,"class","relative group"),r($s,"href","https://huggingface.co/settings/webhooks"),r($s,"rel","nofollow"),Jp(rt.src,mp="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/webhook-settings.png")||r(rt,"src",mp),r(rt,"alt","Settings of an individual webhook"),r(ns,"id","webhook-payloads"),r(ns,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(ns,"href","#webhook-payloads"),r(R,"class","relative group"),Jp(ft.src,Tp="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/webhook-activity.png")||r(ft,"src",Tp),r(ft,"alt","image.png"),r(is,"id","event"),r(is,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(is,"href","#event"),r(z,"class","relative group"),r(us,"id","repo"),r(us,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(us,"href","#repo"),r(O,"class","relative group"),r(ds,"id","discussions-and-pull-requests"),r(ds,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(ds,"href","#discussions-and-pull-requests"),r(Y,"class","relative group"),r(fs,"id","comment"),r(fs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(fs,"href","#comment"),r(G,"class","relative group"),r(Ms,"id","webhook-secret"),r(Ms,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(Ms,"href","#webhook-secret"),r(H,"class","relative group"),r(vs,"id","rate-limiting"),r(vs,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(vs,"href","#rate-limiting"),r(x,"class","relative group"),r(wt,"href","mailto:website@huggingface.co"),r(ms,"id","developing-your-webhooks"),r(ms,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(ms,"href","#developing-your-webhooks"),r(V,"class","relative group"),r(Gs,"href","https://beeceptor.com/"),r(Gs,"rel","nofollow"),r(Hs,"href","https://webhook.site/"),r(Hs,"rel","nofollow"),r(xs,"href","https://ngrok.com/"),r(xs,"rel","nofollow"),r(Vs,"href","https://theboroer.github.io/localtunnel-www/"),r(Vs,"rel","nofollow"),r(Ts,"id","debugging-webhooks"),r(Ts,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(Ts,"href","#debugging-webhooks"),r(X,"class","relative group"),Jp(mt.src,bp="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/webhook-payload.png")||r(mt,"src",bp),r(mt,"alt","image.png"),r(Us,"id","faq"),r(Us,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(Us,"href","#faq"),r(L,"class","relative group"),r(Is,"id","can-i-define-webhooks-on-my-organization-vs-my-user-account"),r(Is,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(Is,"href","#can-i-define-webhooks-on-my-organization-vs-my-user-account"),r(F,"class","relative group"),r(Es,"id","how-can-i-subscribe-to-events-on-all-repos-or-across-a-whole-repo-type-like-on-all-models"),r(Es,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),r(Es,"href","#how-can-i-subscribe-to-events-on-all-repos-or-across-a-whole-repo-type-like-on-all-models"),r(K,"class","relative group"),r(Ut,"href","mailto:website@huggingface.co")},m(s,i){t(document.head,f),c(s,b,i),c(s,m,i),t(m,d),t(d,$),j(As,$,null),t(m,vo),t(m,kt),t(kt,Jo),c(s,xe,i),j(es,s,i),c(s,Ve,i),c(s,ot,i),t(ot,mo),c(s,Xe,i),c(s,lt,i),t(lt,To),c(s,Le,i),c(s,as,i),t(as,bo),t(as,At),t(At,Uo),t(as,Io),c(s,Fe,i),c(s,k,i),t(k,_t),t(_t,nt),t(nt,Eo),t(k,go),t(k,$t),t($t,pt),t(pt,qo),t(k,ko),t(k,Ct),t(Ct,it),t(it,Ao),t(k,_o),t(k,St),t(St,$o),c(s,Ke,i),c(s,Q,i),t(Q,os),t(os,Nt),j(_s,Nt,null),t(Q,Co),t(Q,Wt),t(Wt,So),c(s,sa,i),c(s,ls,i),t(ls,No),t(ls,$s),t($s,Wo),t(ls,Bo),c(s,ta,i),c(s,ct,i),t(ct,rt),c(s,ea,i),c(s,ut,i),t(ut,Do),c(s,aa,i),c(s,R,i),t(R,ns),t(ns,Bt),j(Cs,Bt,null),t(R,Zo),t(R,Dt),t(Dt,Po),c(s,oa,i),c(s,ps,i),t(ps,Qo),t(ps,Zt),t(Zt,Ro),t(ps,zo),c(s,la,i),c(s,ht,i),t(ht,Oo),c(s,na,i),c(s,dt,i),t(dt,ft),c(s,pa,i),c(s,yt,i),t(yt,Yo),c(s,ia,i),j(Ss,s,i),c(s,ca,i),c(s,z,i),t(z,is),t(is,Pt),j(Ns,Pt,null),t(z,Go),t(z,Qt),t(Qt,Ho),c(s,ra,i),c(s,cs,i),t(cs,xo),t(cs,Rt),t(Rt,Vo),t(cs,Xo),c(s,ua,i),c(s,S,i),t(S,Lo),t(S,zt),t(zt,Fo),t(S,Ko),t(S,Ot),t(Ot,sl),t(S,tl),c(s,ha,i),c(s,Ws,i),t(Ws,Yt),t(Yt,el),t(Ws,al),c(s,da,i),c(s,U,i),t(U,T),t(T,Gt),t(Gt,ol),t(T,ll),t(T,Ht),t(Ht,nl),t(T,pl),t(T,xt),t(xt,il),t(T,cl),t(T,Vt),t(Vt,rl),t(T,ul),t(T,Xt),t(Xt,hl),t(T,dl),t(T,Lt),t(Lt,fl),t(T,yl),t(U,Ml),t(U,N),t(N,Ft),t(Ft,jl),t(N,wl),t(N,Kt),t(Kt,vl),t(N,Jl),t(N,se),t(se,ml),t(N,Tl),t(U,bl),t(U,W),t(W,te),t(te,Ul),t(W,Il),t(W,ee),t(ee,El),t(W,gl),t(W,ae),t(ae,ql),t(W,kl),t(U,Al),t(U,I),t(I,oe),t(oe,_l),t(I,$l),t(I,le),t(le,Cl),t(I,Sl),t(I,ne),t(ne,Nl),t(I,Wl),t(I,pe),t(pe,Bl),t(I,Dl),t(I,ie),t(ie,Zl),t(I,Pl),t(U,Ql),t(U,A),t(A,ce),t(ce,Rl),t(A,zl),t(A,re),t(re,Ol),t(A,Yl),t(A,ue),t(ue,Gl),t(A,Hl),t(A,he),t(he,xl),t(A,Vl),c(s,fa,i),c(s,rs,i),t(rs,Xl),t(rs,de),t(de,Ll),t(rs,Fl),c(s,ya,i),c(s,_,i),t(_,Kl),t(_,fe),t(fe,sn),t(_,tn),t(_,ye),t(ye,en),t(_,an),t(_,Me),t(Me,on),t(_,ln),c(s,Ma,i),c(s,O,i),t(O,us),t(us,je),j(Bs,je,null),t(O,nn),t(O,we),t(we,pn),c(s,ja,i),c(s,hs,i),t(hs,cn),t(hs,ve),t(ve,rn),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ze,ap),c(s,Ba,i),c(s,vt,i),t(vt,op),c(s,Da,i),c(s,Jt,i),t(Jt,mt),c(s,Za,i),c(s,bs,i),t(bs,lp),t(bs,Pe),t(Pe,np),t(bs,pp),c(s,Pa,i),c(s,Tt,i),t(Tt,ip),c(s,Qa,i),c(s,L,i),t(L,Us),t(Us,Qe),j(Ls,Qe,null),t(L,cp),t(L,Re),t(Re,rp),c(s,Ra,i),c(s,F,i),t(F,Is),t(Is,ze),j(Fs,ze,null),t(F,up),t(F,Oe),t(Oe,hp),c(s,za,i),c(s,bt,i),t(bt,dp),c(s,Oa,i),c(s,K,i),t(K,Es),t(Es,Ye),j(Ks,Ye,null),t(K,fp),t(K,Ge),t(Ge,yp),c(s,Ya,i),c(s,gs,i),t(gs,Mp),t(gs,Ut),t(Ut,jp),t(gs,wp),Ga=!0},p(s,[i]){const st={};i&2&&(st.$$scope={dirty:i,ctx:s}),es.$set(st);const He={};i&2&&(He.$$scope={dirty:i,ctx:s}),ws.$set(He)},i(s){Ga||(w(As.$$.fragment,s),w(es.$$.fragment,s),w(_s.$$.fragment,s),w(Cs.$$.fragment,s),w(Ss.$$.fragment,s),w(Ns.$$.fragment,s),w(Bs.$$.fragment,s),w(Ds.$$.fragment,s),w(Zs.$$.fragment,s),w(Ps.$$.fragment,s),w(Qs.$$.fragment,s),w(Rs.$$.fragment,s),w(zs.$$.fragment,s),w(ws.$$.fragment,s),w(Os.$$.fragment,s),w(Ys.$$.fragment,s),w(Xs.$$.fragment,s),w(Ls.$$.fragment,s),w(Fs.$$.fragment,s),w(Ks.$$.fragment,s),Ga=!0)},o(s){v(As.$$.fragment,s),v(es.$$.fragment,s),v(_s.$$.fragment,s),v(Cs.$$.fragment,s),v(Ss.$$.fragment,s),v(Ns.$$.fragment,s),v(Bs.$$.fragment,s),v(Ds.$$.fragment,s),v(Zs.$$.fragment,s),v(Ps.$$.fragment,s),v(Qs.$$.fragment,s),v(Rs.$$.fragment,s),v(zs.$$.fragment,s),v(ws.$$.fragment,s),v(Os.$$.fragment,s),v(Ys.$$.fragment,s),v(Xs.$$.fragment,s),v(Ls.$$.fragment,s),v(Fs.$$.fragment,s),v(Ks.$$.fragment,s),Ga=!1},d(s){e(f),s&&e(b),s&&e(m),J(As),s&&e(xe),J(es,s),s&&e(Ve),s&&e(ot),s&&e(Xe),s&&e(lt),s&&e(Le),s&&e(as),s&&e(Fe),s&&e(k),s&&e(Ke),s&&e(Q),J(_s),s&&e(sa),s&&e(ls),s&&e(ta),s&&e(ct),s&&e(ea),s&&e(ut),s&&e(aa),s&&e(R),J(Cs),s&&e(oa),s&&e(ps),s&&e(la),s&&e(ht),s&&e(na),s&&e(dt),s&&e(pa),s&&e(yt),s&&e(ia),J(Ss,s),s&&e(ca),s&&e(z),J(Ns),s&&e(ra),s&&e(cs),s&&e(ua),s&&e(S),s&&e(ha),s&&e(Ws),s&&e(da),s&&e(U),s&&e(fa),s&&e(rs),s&&e(ya),s&&e(_),s&&e(Ma),s&&e(O),J(Bs),s&&e(ja),s&&e(hs),s&&e(wa),J(Ds,s),s&&e(va),s&&e(g),s&&e(Ja),s&&e(Y),J(Zs),s&&e(ma),s&&e(B),s&&e(Ta),J(Ps,s),s&&e(ba),s&&e(G),J(Qs),s&&e(Ua),s&&e(ys),s&&e(Ia),J(Rs,s),s&&e(Ea),s&&e(H),J(zs),s&&e(ga),s&&e(Mt),s&&e(qa),s&&e(js),s&&e(ka),J(ws,s),s&&e(Aa),s&&e(x),J(Os),s&&e(_a),s&&e(jt),s&&e($a),s&&e(Js),s&&e(Ca),s&&e(V),J(Ys),s&&e(Sa),s&&e(D),s&&e(Na),s&&e(Z),s&&e(Wa),s&&e(X),J(Xs),s&&e(Ba),s&&e(vt),s&&e(Da),s&&e(Jt),s&&e(Za),s&&e(bs),s&&e(Pa),s&&e(Tt),s&&e(Qa),s&&e(L),J(Ls),s&&e(Ra),s&&e(F),J(Fs),s&&e(za),s&&e(bt),s&&e(Oa),s&&e(K),J(Ks),s&&e(Ya),s&&e(gs)}}}const Sc={local:"webhooks",sections:[{local:"create-your-webhook",title:"Create your Webhook"},{local:"webhook-payloads",sections:[{local:"event",title:"Event"},{local:"repo",title:"Repo"},{local:"discussions-and-pull-requests",title:"Discussions and Pull Requests"},{local:"comment",title:"Comment"}],title:"Webhook Payloads"},{local:"webhook-secret",title:"Webhook secret"},{local:"rate-limiting",title:"Rate limiting"},{local:"developing-your-webhooks",title:"Developing your Webhooks"},{local:"debugging-webhooks",title:"Debugging Webhooks"},{local:"faq",sections:[{local:null,sections:[{local:"can-i-define-webhooks-on-my-organization-vs-my-user-account",title:"Can I define webhooks on my organization vs my user account?"},{local:"how-can-i-subscribe-to-events-on-all-repos-or-across-a-whole-repo-type-like-on-all-models",title:"How can I subscribe to events on all repos (or across a whole repo type, like on all models)?"}],title:null}],title:"FAQ"}],title:"Webhooks"};function Nc(at){return Ac(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pc extends Ec{constructor(f){super();gc(this,f,Nc,Cc,qc,{})}}export{Pc as default,Sc as metadata};
