PageSourceSearch

https://app.memberstack.com/assets/SvixEmbed-vcmr-bXj.js

js memberstack.com collected 2026-09-24 17:16:38 UTC 157,403 bytes, 3 lines download raw bytes

1import{r as Z,R as Xs,j as de}from"./vendor-CSdFbWfl.js";import{b as Ys}from"./index-BynWLX9U.js";import{u as eu}from"./devtools.hooks-BESY-f9q.js";import{D as tu}from"./DevtoolsSectionHeader-CCz6rqQ7.js";import{W as ru,T as nu}from"./TestModeBanner-FInwBOVI.js";import"./Spacer-B7_yc4Q-.js";import"./flask-conical-DB-QeJfL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"5fdab7154cbea903e2531547e54739370b469773"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c7f96db5-cca7-468c-a3e2-774da0f2f220",e._sentryDebugIdIdentifier="sentry-dbid-c7f96db5-cca7-468c-a3e2-774da0f2f220")}catch{}})();var ve={},qe={},Te={},ci;function Vn(){return ci||(ci=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.ApplicationInSerializer=void 0,Te.ApplicationInSerializer={_fromJsonObject(e){return{metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid}},_toJsonObject(e){return{metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid}}}),Te}var xe={},pi;function Ts(){return pi||(pi=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.ApplicationOutSerializer=void 0,xe.ApplicationOutSerializer={_fromJsonObject(e){return{createdAt:new Date(e.createdAt),id:e.id,metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid,updatedAt:new Date(e.updatedAt)}},_toJsonObject(e){return{createdAt:e.createdAt,id:e.id,metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid,updatedAt:e.updatedAt}}}),xe}var Ee={},fi;function iu(){return fi||(fi=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.ApplicationPatchSerializer=void 0,Ee.ApplicationPatchSerializer={_fromJsonObject(e){return{metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid}},_toJsonObject(e){return{metadata:e.metadata,name:e.name,rateLimit:e.rateLimit,uid:e.uid}}}),Ee}var ke={},li;function au(){if(li)return ke;li=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.ListResponseApplicationOutSerializer=void 0;const e=Ts();return ke.ListResponseApplicationOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.ApplicationOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.ApplicationOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},ke}var ze={},vi={},Q=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof vi<"u"&&vi||{},K={searchParams:"URLSearchParams"in Q,iterable:"Symbol"in Q&&"iterator"in Symbol,blob:"FileReader"in Q&&"Blob"in Q&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Q,arrayBuffer:"ArrayBuffer"in Q};function ou(e){return e&&DataView.prototype.isPrototypeOf(e)}if(K.arrayBuffer)var su=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],uu=ArrayBuffer.isView||function(e){return e&&su.indexOf(Object.prototype.toString.call(e))>-1};function Se(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Gn(e){return typeof e!="string"&&(e=String(e)),e}function Kn(e){var t={next:function(){var a=e.shift();return{done:a===void 0,value:a}}};return K.iterable&&(t[Symbol.iterator]=function(){return t}),t}function N(e){this.map={},e instanceof N?e.forEach(function(t,a){this.append(a,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}N.prototype.append=function(e,t){e=Se(e),t=Gn(t);var a=this.map[e];this.map[e]=a?a+", "+t:t};N.prototype.delete=function(e){delete this.map[Se(e)]};N.prototype.get=function(e){return e=Se(e),this.has(e)?this.map[e]:null};N.prototype.has=function(e){return this.map.hasOwnProperty(Se(e))};N.prototype.set=function(e,t){this.map[Se(e)]=Gn(t)};N.prototype.forEach=function(e,t){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(t,this.map[a],a,this)};N.prototype.keys=function(){var e=[];return this.forEach(function(t,a){e.push(a)}),Kn(e)};N.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Kn(e)};N.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),Kn(e)};K.iterable&&(N.prototype[Symbol.iterator]=N.prototype.entries);function wn(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function xs(e){return new Promise(function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}})}function du(e){var t=new FileReader,a=xs(t);return t.readAsArrayBuffer(e),a}function cu(e){var t=new FileReader,a=xs(t),c=/charset=([A-Za-z0-9_-]+)/.exec(e.type),l=c?c[1]:"utf-8";return t.readAsText(e,l),a}function pu(e){for(var t=new Uint8Array(e),a=new Array(t.length),c=0;c<t.length;c++)a[c]=String.fromCharCode(t[c]);return a.join("")}function mi(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Es(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:K.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:K.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:K.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():K.arrayBuffer&&K.blob&&ou(e)?(this._bodyArrayBuffer=mi(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):K.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||uu(e))?this._bodyArrayBuffer=mi(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):K.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},K.blob&&(this.blob=function(){var e=wn(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=wn(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(K.blob)return this.blob().then(du);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=wn(this);if(e)return e;if(this._bodyBlob)return cu(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pu(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},K.formData&&(this.formData=function(){return this.text().then(vu)}),this.json=function(){return this.text().then(JSON.parse)},this}var fu=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function lu(e){var t=e.toUpperCase();return fu.indexOf(t)>-1?t:e}function _e(e,t){if(!(this instanceof _e))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');t=t||{};var a=t.body;if(e instanceof _e){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!a&&e._bodyInit!=null&&(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new N(t.headers)),this.method=lu(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Q){var o=new AbortController;return o.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+new Date().getTime());else{var l=/\?/;this.url+=(l.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_e.prototype.clone=function(){return new _e(this,{body:this._bodyInit})};function vu(e){var t=new FormData;return e.trim().split("&").forEach(function(a){if(a){var c=a.split("="),l=c.shift().replace(/\+/g," "),o=c.join("=").replace(/\+/g," ");t.append(decodeURIComponent(l),decodeURIComponent(o))}}),t}function mu(e){var t=new N,a=e.replace(/\r?\n[\t ]+/g," ");return a.split("\r").map(function(c){return c.indexOf(`
2`)===0?c.substr(1,c.length):c}).forEach(function(c){var l=c.split(":"),o=l.shift().trim();if(o){var h=l.join(":").trim();try{t.append(o,h)}catch(v){console.warn("Response "+v.message)}}}),t}Es.call(_e.prototype);function ne(e,t){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new N(t.headers),this.url=t.url||"",this._initBody(e)}Es.call(ne.prototype);ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})};ne.error=function(){var e=new ne(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var gu=[301,302,303,307,308];ne.redirect=function(e,t){if(gu.indexOf(t)===-1)throw new RangeError("Invalid status code");return new ne(null,{status:t,headers:{location:e}})};var he=Q.DOMException;try{new he}catch{he=function(t,a){this.message=t,this.name=a;var c=Error(t);this.stack=c.stack},he.prototype=Object.create(Error.prototype),he.prototype.constructor=he}function ks(e,t){return new Promise(function(a,c){var l=new _e(e,t);if(l.signal&&l.signal.aborted)return c(new he("Aborted","AbortError"));var o=new XMLHttpRequest;function h(){o.abort()}o.onload=function(){var i={statusText:o.statusText,headers:mu(o.getAllResponseHeaders()||"")};l.url.indexOf("file://")===0&&(o.status<200||o.status>599)?i.status=200:i.status=o.status,i.url="responseURL"in o?o.responseURL:i.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){a(new ne(n,i))},0)},o.onerror=function(){setTimeout(function(){c(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){c(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){c(new he("Aborted","AbortError"))},0)};function v(i){try{return i===""&&Q.location.href?Q.location.href:i}catch{return i}}if(o.open(l.method,v(l.url),!0),l.credentials==="include"?o.withCredentials=!0:l.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(K.blob?o.responseType="blob":K.arrayBuffer&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof N||Q.Headers&&t.headers instanceof Q.Headers)){var d=[];
2Object.getOwnPropertyNames(t.headers).forEach(function(i){d.push(Se(i)),o.setRequestHeader(i,Gn(t.headers[i]))}),l.headers.forEach(function(i,n){d.indexOf(n)===-1&&o.setRequestHeader(n,i)})}else l.headers.forEach(function(i,n){o.setRequestHeader(n,i)});l.signal&&(l.signal.addEventListener("abort",h),o.onreadystatechange=function(){o.readyState===4&&l.signal.removeEventListener("abort",h)}),o.send(typeof l._bodyInit>"u"?null:l._bodyInit)})}ks.polyfill=!0;Q.fetch||(Q.fetch=ks,Q.Headers=N,Q.Request=_e,Q.Response=ne);var Jn,gi;function hu(){return gi||(gi=1,Jn=self.fetch.bind(self)),Jn}var Ce={},hi;function zs(){if(hi)return Ce;hi=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ApiException=void 0;class e extends Error{constructor(a,c,l){super(`HTTP-Code: ${a}
3Headers: ${JSON.stringify(l)}`),this.code=a,this.body=c,this.headers={},l.forEach((o,h)=>{this.headers[h]=o})}}return Ce.ApiException=e,Ce}var An={},Ie={},_i;function _u(){return _i||(_i=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=void 0,Ie.default="ffffffff-ffff-ffff-ffff-ffffffffffff"),Ie}var Re={},Oi;function Ou(){return Oi||(Oi=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=void 0,Re.default="00000000-0000-0000-0000-000000000000"),Re}var we={},Je={},Ae={},yi;function yu(){return yi||(yi=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0,Ae.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i),Ae}var bi;function On(){if(bi)return Je;bi=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=void 0;var e=t(yu());function t(c){return c&&c.__esModule?c:{default:c}}function a(c){return typeof c=="string"&&e.default.test(c)}return Je.default=a,Je}var Si;function yn(){if(Si)return we;Si=1,Object.defineProperty(we,"__esModule",{value:!0}),we.default=void 0;var e=t(On());function t(c){return c&&c.__esModule?c:{default:c}}function a(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");var l,o=new Uint8Array(16);return o[0]=(l=parseInt(c.slice(0,8),16))>>>24,o[1]=l>>>16&255,o[2]=l>>>8&255,o[3]=l&255,o[4]=(l=parseInt(c.slice(9,13),16))>>>8,o[5]=l&255,o[6]=(l=parseInt(c.slice(14,18),16))>>>8,o[7]=l&255,o[8]=(l=parseInt(c.slice(19,23),16))>>>8,o[9]=l&255,o[10]=(l=parseInt(c.slice(24,36),16))/1099511627776&255,o[11]=l/4294967296&255,o[12]=l>>>24&255,o[13]=l>>>16&255,o[14]=l>>>8&255,o[15]=l&255,o}return we.default=a,we}var be={},Pi;function pe(){if(Pi)return be;Pi=1,Object.defineProperty(be,"__esModule",{value:!0}),be.default=void 0,be.unsafeStringify=l;var e=t(On());function t(h){return h&&h.__esModule?h:{default:h}}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).slice(1));function l(h,v=0){return(a[h[v+0]]+a[h[v+1]]+a[h[v+2]]+a[h[v+3]]+"-"+a[h[v+4]]+a[h[v+5]]+"-"+a[h[v+6]]+a[h[v+7]]+"-"+a[h[v+8]]+a[h[v+9]]+"-"+a[h[v+10]]+a[h[v+11]]+a[h[v+12]]+a[h[v+13]]+a[h[v+14]]+a[h[v+15]]).toLowerCase()}function o(h,v=0){var d=l(h,v);if(!(0,e.default)(d))throw TypeError("Stringified UUID is invalid");return d}return be.default=o,be}var Me={},ln={},qi;function $n(){if(qi)return ln;qi=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=a;var e,t=new Uint8Array(16);function a(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return ln}var Ti;function Cs(){if(Ti)return Me;Ti=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var e=a($n()),t=pe();function a(d){return d&&d.__esModule?d:{default:d}}var c,l,o=0,h=0;function v(d,i,n){var u=i&&n||0,r=i||new Array(16);d=d||{};var s=d.node,p=d.clockseq;if(d._v6||(s||(s=c),p==null&&(p=l)),s==null||p==null){var f=d.random||(d.rng||e.default)();s==null&&(s=[f[0],f[1],f[2],f[3],f[4],f[5]],!c&&!d._v6&&(s[0]|=1,c=s)),p==null&&(p=(f[6]<<8|f[7])&16383,l===void 0&&!d._v6&&(l=p))}var m=d.msecs!==void 0?d.msecs:Date.now(),g=d.nsecs!==void 0?d.nsecs:h+1,_=m-o+(g-h)/1e4;if(_<0&&d.clockseq===void 0&&(p=p+1&16383),(_<0||m>o)&&d.nsecs===void 0&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=m,h=g,l=p,m+=122192928e5;var b=((m&268435455)*1e4+g)%4294967296;r[u++]=b>>>24&255,r[u++]=b>>>16&255,r[u++]=b>>>8&255,r[u++]=b&255;var w=m/4294967296*1e4&268435455;r[u++]=w>>>8&255,r[u++]=w&255,r[u++]=w>>>24&15|16,r[u++]=w>>>16&255,r[u++]=p>>>8|128,r[u++]=p&255;for(var I=0;I<6;++I)r[u+I]=s[I];
3return i||(0,t.unsafeStringify)(r)}return Me.default=v,Me}var vn={},xi;function Is(){if(xi)return vn;xi=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=c;var e=a(yn()),t=pe();function a(o){return o&&o.__esModule?o:{default:o}}function c(o){var h=typeof o=="string"?(0,e.default)(o):o,v=l(h);return typeof o=="string"?(0,t.unsafeStringify)(v):v}function l(o,h=!1){return Uint8Array.of((o[6]&15)<<4|o[7]>>4&15,(o[7]&15)<<4|(o[4]&240)>>4,(o[4]&15)<<4|(o[5]&240)>>4,(o[5]&15)<<4|(o[0]&240)>>4,(o[0]&15)<<4|(o[1]&240)>>4,(o[1]&15)<<4|(o[2]&240)>>4,96|o[2]&15,o[3],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}return vn}var je={},ce={},Ei;function Rs(){if(Ei)return ce;Ei=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.URL=ce.DNS=void 0,ce.default=h;var e=pe(),t=a(yn());function a(v){return v&&v.__esModule?v:{default:v}}function c(v){v=unescape(encodeURIComponent(v));for(var d=[],i=0;i<v.length;++i)d.push(v.charCodeAt(i));return d}var l=ce.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o=ce.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function h(v,d,i){function n(u,r,s,p){var f;if(typeof u=="string"&&(u=c(u)),typeof r=="string"&&(r=(0,t.default)(r)),((f=r)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var m=new Uint8Array(16+u.length);if(m.set(r),m.set(u,r.length),m=i(m),m[6]=m[6]&15|d,m[8]=m[8]&63|128,s){p=p||0;for(var g=0;g<16;++g)s[p+g]=m[g];return s}return(0,e.unsafeStringify)(m)}try{n.name=v}catch{}return n.DNS=l,n.URL=o,n}return ce}var He={},ki;function bu(){if(ki)return He;ki=1,Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;function e(r){if(typeof r=="string"){var s=unescape(encodeURIComponent(r));r=new Uint8Array(s.length);for(var p=0;p<s.length;++p)r[p]=s.charCodeAt(p)}return t(c(l(r),r.length*8))}function t(r){for(var s=[],p=r.length*32,f="0123456789abcdef",m=0;m<p;m+=8){var g=r[m>>5]>>>m%32&255,_=parseInt(f.charAt(g>>>4&15)+f.charAt(g&15),16);s.push(_)}return s}function a(r){return(r+64>>>9<<4)+14+1}function c(r,s){r[s>>5]|=128<<s%32,r[a(s)-1]=s;for(var p=1732584193,f=-271733879,m=-1732584194,g=271733878,_=0;_<r.length;_+=16){var b=p,w=f,I=m,y=g;p=d(p,f,m,g,r[_],7,-680876936),g=d(g,p,f,m,r[_+1],12,-389564586),m=d(m,g,p,f,r[_+2],17,606105819),f=d(f,m,g,p,r[_+3],22,-1044525330),p=d(p,f,m,g,r[_+4],7,-176418897),g=d(g,p,f,m,r[_+5],12,1200080426),m=d(m,g,p,f,r[_+6],17,-1473231341),f=d(f,m,g,p,r[_+7],22,-45705983),p=d(p,f,m,g,r[_+8],7,1770035416),g=d(g,p,f,m,r[_+9],12,-1958414417),m=d(m,g,p,f,r[_+10],17,-42063),f=d(f,m,g,p,r[_+11],22,-1990404162),p=d(p,f,m,g,r[_+12],7,1804603682),g=d(g,p,f,m,r[_+13],12,-40341101),m=d(m,g,p,f,r[_+14],17,-1502002290),f=d(f,m,g,p,r[_+15],22,1236535329),p=i(p,f,m,g,r[_+1],5,-165796510),g=i(g,p,f,m,r[_+6],9,-1069501632),m=i(m,g,p,f,r[_+11],14,643717713),f=i(f,m,g,p,r[_],20,-373897302),p=i(p,f,m,g,r[_+5],5,-701558691),g=i(g,p,f,m,r[_+10],9,38016083),m=i(m,g,p,f,r[_+15],14,-660478335),f=i(f,m,g,p,r[_+4],20,-405537848),p=i(p,f,m,g,r[_+9],5,568446438),g=i(g,p,f,m,r[_+14],9,-1019803690),m=i(m,g,p,f,r[_+3],14,-187363961),f=i(f,m,g,p,r[_+8],20,1163531501),p=i(p,f,m,g,r[_+13],5,-1444681467),g=i(g,p,f,m,r[_+2],9,-51403784),m=i(m,g,p,f,r[_+7],14,1735328473),f=i(f,m,g,p,r[_+12],20,-1926607734),p=n(p,f,m,g,r[_+5],4,-378558),g=n(g,p,f,m,r[_+8],11,-2022574463),m=n(m,g,p,f,r[_+11],16,1839030562),f=n(f,m,g,p,r[_+14],23,-35309556),p=n(p,f,m,g,r[_+1],4,-1530992060),g=n(g,p,f,m,r[_+4],11,1272893353),m=n(m,g,p,f,r[_+7],16,-155497632),f=n(f,m,g,p,r[_+10],23,-1094730640),p=n(p,f,m,g,r[_+13],4,681279174),g=n(g,p,f,m,r[_],11,-358537222),m=n(m,g,p,f,r[_+3],16,-722521979),f=n(f,m,g,p,r[_+6],23,76029189),p=n(p,f,m,g,r[_+9],4,-640364487),g=n(g,p,f,m,r[_+12],11,-421815835),m=n(m,g,p,f,r[_+15],16,530742520),f=n(f,m,g,p,r[_+2],23,-995338651),p=u(p,f,m,g,r[_],6,-198630844),g=u(g,p,f,m,r[_+7],10,1126891415),m=u(m,g,p,f,r[_+14],15,-1416354905),f=u(f,m,g,p,r[_+5],21,-57434055),p=u(p,f,m,g,r[_+12],6,1700485571),g=u(g,p,f,m,r[_+3],10,-1894986606),m=u(m,g,p,f,r[_+10],15,-1051523),f=u(f,m,g,p,r[_+1],21,-2054922799),p=u(p,f,m,g,r[_+8],6,1873313359),g=u(g,p,f,m,r[_+15],10,-30611744),m=u(m,g,p,f,r[_+6],15,-1560198380),f=u(f,m,g,p,r[_+13],21,1309151649),p=u(p,f,m,g,r[_+4],6,-145523070),g=u(g,p,f,m,r[_+11],10,-1120210379),m=u(m,g,p,f,r[_+2],15,718787259),f=u(f,m,g,p,r[_+9],21,-343485551),p=o(p,b),f=o(f,w),m=o(m,I),g=o(g,y)}return[p,f,m,g]}function l(r){if(r.length===0)return[];for(var s=r.length*8,p=new Uint32Array(a(s)),f=0;f<s;f+=8)p[f>>5]|=(r[f/8]&255)<<f%32;return p}function o(r,s){var p=(r&65535)+(s&65535),f=(r>>16)+(s>>16)+(p>>16);return f<<16|p&65535}function h(r,s){return r<<s|r>>>32-s}function v(r,s,p,f,m,g){return o(h(o(o(s,r),o(f,g)),m),p)}function d(r,s,p,f,m,g,_){return v(s&p|~s&f,r,s,m,g,_)}function i(r,s,p,f,m,g,_){return v(s&f|p&~f,r,s,m,g,_)}function n(r,s,p,f,m,g,_){return v(s^p^f,r,s,m,g,_)}function u(r,s,p,f,m,g,_){return v(p^(s|~f),r,s,m,g,_)}return He.default=e,He}var zi;
3function Su(){if(zi)return je;zi=1,Object.defineProperty(je,"__esModule",{value:!0}),je.default=void 0;var e=a(Rs()),t=a(bu());function a(l){return l&&l.__esModule?l:{default:l}}var c=(0,e.default)("v3",48,t.default);return je.default=c,je}var Le={},De={},Ci;function Pu(){if(Ci)return De;Ci=1,Object.defineProperty(De,"__esModule",{value:!0}),De.default=void 0;var e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);return De.default={randomUUID:e},De}var Ii;function qu(){if(Ii)return Le;Ii=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=void 0;var e=c(Pu()),t=c($n()),a=pe();function c(o){return o&&o.__esModule?o:{default:o}}function l(o,h,v){if(e.default.randomUUID&&!h&&!o)return e.default.randomUUID();o=o||{};var d=o.random||(o.rng||t.default)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,h){v=v||0;for(var i=0;i<16;++i)h[v+i]=d[i];return h}return(0,a.unsafeStringify)(d)}return Le.default=l,Le}var Ue={},Be={},Ri;function Tu(){if(Ri)return Be;Ri=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=void 0;function e(c,l,o,h){switch(c){case 0:return l&o^~l&h;case 1:return l^o^h;case 2:return l&o^l&h^o&h;case 3:return l^o^h}}function t(c,l){return c<<l|c>>>32-l}function a(c){var l=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof c=="string"){var h=unescape(encodeURIComponent(c));c=[];for(var v=0;v<h.length;
3++v)c.push(h.charCodeAt(v))}else Array.isArray(c)||(c=Array.prototype.slice.call(c));c.push(128);for(var d=c.length/4+2,i=Math.ceil(d/16),n=new Array(i),u=0;u<i;++u){for(var r=new Uint32Array(16),s=0;s<16;++s)r[s]=c[u*64+s*4]<<24|c[u*64+s*4+1]<<16|c[u*64+s*4+2]<<8|c[u*64+s*4+3];n[u]=r}n[i-1][14]=(c.length-1)*8/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=(c.length-1)*8&4294967295;for(var p=0;p<i;++p){for(var f=new Uint32Array(80),m=0;m<16;++m)f[m]=n[p][m];for(var g=16;g<80;++g)f[g]=t(f[g-3]^f[g-8]^f[g-14]^f[g-16],1);for(var _=o[0],b=o[1],w=o[2],I=o[3],y=o[4],q=0;q<80;++q){var S=Math.floor(q/20),P=t(_,5)+e(S,b,w,I)+y+l[S]+f[q]>>>0;y=I,I=w,w=t(b,30)>>>0,b=_,_=P}o[0]=o[0]+_>>>0,o[1]=o[1]+b>>>0,o[2]=o[2]+w>>>0,o[3]=o[3]+I>>>0,o[4]=o[4]+y>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}return Be.default=a,Be}var wi;function xu(){if(wi)return Ue;wi=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.default=void 0;var e=a(Rs()),t=a(Tu());function a(l){return l&&l.__esModule?l:{default:l}}var c=(0,e.default)("v5",80,t.default);return Ue.default=c,Ue}var mn={},Ji;function Eu(){if(Ji)return mn;Ji=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=i;var e=pe(),t=c(Cs()),a=c(Is());function c(n){return n&&n.__esModule?n:{default:n}}function l(n,u){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);u&&(s=s.filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable})),r.push.apply(r,s)}return r}function o(n){for(var u=1;u<arguments.length;u++){var r=arguments[u]!=null?arguments[u]:{};u%2?l(Object(r),!0).forEach(function(s){h(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function h(n,u,r){return(u=v(u))in n?Object.defineProperty(n,u,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[u]=r,n}function v(n){var u=d(n,"string");return typeof u=="symbol"?u:u+""}function d(n,u){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,u);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(n)}function i(n={},u,r=0){var s=(0,t.default)(o(o({},n),{},{_v6:!0}),new Uint8Array(16));if(s=(0,a.default)(s),u){for(var p=0;p<16;p++)u[r+p]=s[p];return u}return(0,e.unsafeStringify)(s)}return mn}var gn={},Ai;function ku(){if(Ai)return gn;Ai=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=c;var e=a(yn()),t=pe();function a(o){return o&&o.__esModule?o:{default:o}}function c(o){var h=typeof o=="string"?(0,e.default)(o):o,v=l(h);return typeof o=="string"?(0,t.unsafeStringify)(v):v}function l(o){return Uint8Array.of((o[3]&15)<<4|o[4]>>4&15,(o[4]&15)<<4|(o[5]&240)>>4,(o[5]&15)<<4|o[6]&15,o[7],(o[1]&15)<<4|(o[2]&240)>>4,(o[2]&15)<<4|(o[3]&240)>>4,16|(o[0]&240)>>4,(o[0]&15)<<4|(o[1]&240)>>4,o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}return gn}var Ne={},Mi;function zu(){if(Mi)return Ne;Mi=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=void 0;var e=a($n()),t=pe();function a(v){return v&&v.__esModule?v:{default:v}}var c=null,l=null,o=0;function h(v,d,i){v=v||{};var n=d&&i||0,u=d||new Uint8Array(16),r=v.random||(v.rng||e.default)(),s=v.msecs!==void 0?v.msecs:Date.now(),p=v.seq!==void 0?v.seq:null,f=l,m=c;return s>o&&v.msecs===void 0&&(o=s,p!==null&&(f=null,m=null)),p!==null&&(p>2147483647&&(p=2147483647),f=p>>>19&4095,m=p&524287),(f===null||m===null)&&(f=r[6]&127,f=f<<8|r[7],m=r[8]&63,m=m<<8|r[9],m=m<<5|r[10]>>>3),s+1e4>o&&p===null?++m>524287&&(m=0,++f>4095&&(f=0,o++)):o=s,l=f,c=m,u[n++]=o/1099511627776&255,u[n++]=o/4294967296&255,u[n++]=o/16777216&255,u[n++]=o/65536&255,u[n++]=o/256&255,u[n++]=o&255,u[n++]=f>>>4&15|112,u[n++]=f&255,u[n++]=m>>>13&63|128,u[n++]=m>>>5&255,u[n++]=m<<3&255|r[10]&7,u[n++]=r[11],u[n++]=r[12],u[n++]=r[13],u[n++]=r[14],u[n++]=r[15],d||(0,t.unsafeStringify)(u)}return Ne.default=h,Ne}var Fe={},ji;function Cu(){if(ji)return Fe;
3ji=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var e=t(On());function t(c){return c&&c.__esModule?c:{default:c}}function a(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");return parseInt(c.slice(14,15),16)}return Fe.default=a,Fe}var Hi;function Iu(){return Hi||(Hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return p.default}});var t=f(_u()),a=f(Ou()),c=f(yn()),l=f(pe()),o=f(Cs()),h=f(Is()),v=f(Su()),d=f(qu()),i=f(xu()),n=f(Eu()
3),u=f(ku()),r=f(zu()),s=f(On()),p=f(Cu());function f(m){return m&&m.__esModule?m:{default:m}}}(An)),An}var Li;function V(){return Li||(Li=1,function(e){var t=ze&&ze.__awaiter||function(d,i,n,u){function r(s){return s instanceof n?s:new n(function(p){p(s)})}return new(n||(n=Promise))(function(s,p){function f(_){try{g(u.next(_))}catch(b){p(b)}}function m(_){try{g(u.throw(_))}catch(b){p(b)}}function g(_){_.done?s(_.value):r(_.value).then(f,m)}g((u=u.apply(d,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.SvixRequest=e.HttpMethod=e.LIB_VERSION=void 0,hu();const a=zs(),c=Iu();e.LIB_VERSION="1.68.0";const l=`svix-libs/${e.LIB_VERSION}/javascript`;(function(d){d.GET="GET",d.HEAD="HEAD",d.POST="POST",d.PUT="PUT",d.DELETE="DELETE",d.CONNECT="CONNECT",d.OPTIONS="OPTIONS",d.TRACE="TRACE",d.PATCH="PATCH"})(e.HttpMethod||(e.HttpMethod={}));class o{constructor(i,n){this.method=i,this.path=n,this.queryParams={},this.headerParams={}}setPathParam(i,n){const u=this.path.replace(`{${i}}`,encodeURIComponent(n));if(this.path===u)throw new Error(`path parameter ${i} not found`);this.path=u}setQueryParam(i,n){if(n!=null)if(typeof n=="string")this.queryParams[i]=n;else if(typeof n=="boolean"||typeof n=="number")this.queryParams[i]=n.toString();else if(n instanceof Date)this.queryParams[i]=n.toISOString();else if(n instanceof Array)n.length>0&&(this.queryParams[i]=n.join(","));else throw new Error(`query parameter ${i} has unsupported type`)}setHeaderParam(i,n){n!==void 0&&(this.headerParams[i]=n)}setBody(i){this.body=JSON.stringify(i)}send(i,n){return t(this,void 0,void 0,function*(){const u=yield this.sendInner(i);if(u.status==204)return null;const r=yield u.text();return n(JSON.parse(r))})}sendNoResponseBody(i){return t(this,void 0,void 0,function*(){yield this.sendInner(i)})}sendInner(i){return t(this,void 0,void 0,function*(){const n=new URL(i.baseUrl+this.path);for(const[p,f]of Object.entries(this.queryParams))n.searchParams.set(p,f);this.headerParams["idempotency-key"]===void 0&&this.method.toUpperCase()==="POST"&&(this.headerParams["idempotency-key"]="auto_"+(0,c.v4)());const u=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);this.body!=null&&(this.headerParams["content-type"]="application/json");const r="credentials"in Request.prototype,s=yield v(n,{method:this.method.toString(),body:this.body,headers:Object.assign({accept:"application/json, */*;q=0.8",authorization:`Bearer ${i.token}`,"user-agent":l,"svix-req-id":u.toString()},this.headerParams),credentials:r?"same-origin":void 0,signal:i.timeout!==void 0?AbortSignal.timeout(i.timeout):void 0});return h(s)})}}e.SvixRequest=o;function h(d){return t(this,void 0,void 0,function*(){if(d.status<300)return d;const i=yield d.text();throw d.status===422?new a.ApiException(d.status,JSON.parse(i),d.headers):d.status>=400&&d.status<=499?new a.ApiException(d.status,JSON.parse(i),d.headers):new a.ApiException(d.status,i,d.headers)})}function v(d,i,n=2,u=50,r=1){return t(this,void 0,void 0,function*(){const s=p=>new Promise(f=>setTimeout(f,p));try{const p=yield fetch(d,i);if(n<=0||p.status<500)return p}catch(p){if(n<=0)throw p}return yield s(u),i.headers["svix-retry-count"]=r.toString(),yield v(d,i,--n,u*2,++r)})}}(ze)),ze}var Di;function Ru(){if(Di)return qe;Di=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.Application=void 0;const e=Vn(),t=Ts(),a=iu(),c=au(),l=V();class o{constructor(v){this.requestCtx=v}list(v){const d=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app");return d.setQueryParam("limit",v==null?void 0:v.limit),d.setQueryParam("iterator",v==null?void 0:v.iterator),d.setQueryParam("order",v==null?void 0:v.order),d.send(this.requestCtx,c.ListResponseApplicationOutSerializer._fromJsonObject)}create(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/app");return i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.setBody(e.ApplicationInSerializer._toJsonObject(v)),i.send(this.requestCtx,t.ApplicationOutSerializer._fromJsonObject)}getOrCreate(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/app");return i.setQueryParam("get_if_exists",!0),i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.setBody(e.ApplicationInSerializer._toJsonObject(v)),i.send(this.requestCtx,t.ApplicationOutSerializer._fromJsonObject)}get(v){const d=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}");return d.setPathParam("app_id",v),d.send(this.requestCtx,t.ApplicationOutSerializer._fromJsonObject)}update(v,d){const i=new l.SvixRequest(l.HttpMethod.PUT,"/api/v1/app/{app_id}");return i.setPathParam("app_id",v),i.setBody(e.ApplicationInSerializer._toJsonObject(d)),i.send(this.requestCtx,t.ApplicationOutSerializer._fromJsonObject)}delete(v){const d=new l.SvixRequest(l.HttpMethod.DELETE,"/api/v1/app/{app_id}");return d.setPathParam("app_id",v),d.sendNoResponseBody(this.requestCtx)}patch(v,d){const i=new l.SvixRequest(l.HttpMethod.PATCH,"/api/v1/app/{app_id}");return i.setPathParam("app_id",v),i.setBody(a.ApplicationPatchSerializer._toJsonObject(d)),i.send(this.requestCtx,t.ApplicationOutSerializer._fromJsonObject)}}return qe.Application=o,qe}var We={},Qe={},Ui;
3function wu(){if(Ui)return Qe;Ui=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.AppPortalAccessInSerializer=void 0;const e=Vn();return Qe.AppPortalAccessInSerializer={_fromJsonObject(t){return{application:t.application?e.ApplicationInSerializer._fromJsonObject(t.application):void 0,expiry:t.expiry,featureFlags:t.featureFlags,readOnly:t.readOnly}},_toJsonObject(t){return{application:t.application?e.ApplicationInSerializer._toJsonObject(t.application):void 0,expiry:t.expiry,featureFlags:t.featureFlags,readOnly:t.readOnly}}},Qe}var Ve={},Bi;function Ju(){return Bi||(Bi=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.AppPortalAccessOutSerializer=void 0,Ve.AppPortalAccessOutSerializer={_fromJsonObject(e){return{token:e.token,url:e.url}},_toJsonObject(e){return{token:e.token,url:e.url}}}),Ve}var Ge={},Ni;function Au(){return Ni||(Ni=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.ApplicationTokenExpireInSerializer=void 0,Ge.ApplicationTokenExpireInSerializer={_fromJsonObject(e){return{expiry:e.expiry}},_toJsonObject(e){return{expiry:e.expiry}}}),Ge}var Ke={},Fi;function ws(){return Fi||(Fi=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.DashboardAccessOutSerializer=void 0,Ke.DashboardAccessOutSerializer={_fromJsonObject(e){return{token:e.token,url:e.url}},_toJsonObject(e){return{token:e.token,url:e.url}}}),Ke}var Wi;function Mu(){if(Wi)return We;Wi=1,Object.defineProperty(We,"__esModule",{value:!0}),We.Authentication=void 0;const e=wu(),t=Ju(),a=Au(),c=ws(),l=V();class o{constructor(v){this.requestCtx=v}appPortalAccess(v,d,i){const n=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/auth/app-portal-access/{app_id}");return n.setPathParam("app_id",v),n.setHeaderParam("idempotency-key",i==null?void 0:i.idempotencyKey),n.setBody(e.AppPortalAccessInSerializer._toJsonObject(d)),n.send(this.requestCtx,t.AppPortalAccessOutSerializer._fromJsonObject)}expireAll(v,d,i){const n=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/auth/app/{app_id}/expire-all");return n.setPathParam("app_id",v),n.setHeaderParam("idempotency-key",i==null?void 0:i.idempotencyKey),n.setBody(a.ApplicationTokenExpireInSerializer._toJsonObject(d)),n.sendNoResponseBody(this.requestCtx)}dashboardAccess(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/auth/dashboard-access/{app_id}");return i.setPathParam("app_id",v),i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.send(this.requestCtx,c.DashboardAccessOutSerializer._fromJsonObject)}logout(v){const d=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/auth/logout");return d.setHeaderParam("idempotency-key",v==null?void 0:v.idempotencyKey),d.sendNoResponseBody(this.requestCtx)}}return We.Authentication=o,We}var $e={},Ze={},Mn={},Qi;function Oe(){return Qi||(Qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundTaskStatusSerializer=e.BackgroundTaskStatus=void 0,function(t){t.Running="running",t.Finished="finished",t.Failed="failed"}(e.BackgroundTaskStatus||(e.BackgroundTaskStatus={})),e.BackgroundTaskStatusSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Mn)),Mn}var jn={},Vi;function ye(){return Vi||(Vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundTaskTypeSerializer=e.BackgroundTaskType=void 0,function(t){t.EndpointReplay="endpoint.replay",t.EndpointRecover="endpoint.recover",t.ApplicationStats="application.stats",t.MessageBroadcast="message.broadcast",t.SdkGenerate="sdk.generate",t.EventTypeAggregate="event-type.aggregate",t.ApplicationPurgeContent="application.purge_content"}(e.BackgroundTaskType||(e.BackgroundTaskType={})),e.BackgroundTaskTypeSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(jn)),jn}var Gi;function Js(){if(Gi)return Ze;Gi=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.BackgroundTaskOutSerializer=void 0;const e=Oe(),t=ye();return Ze.BackgroundTaskOutSerializer={_fromJsonObject(a){return{data:a.data,id:a.id,status:e.BackgroundTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task)}}
3,_toJsonObject(a){return{data:a.data,id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task)}}},Ze}var Xe={},Ki;function ju(){if(Ki)return Xe;Ki=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.ListResponseBackgroundTaskOutSerializer=void 0;const e=Js();return Xe.ListResponseBackgroundTaskOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.BackgroundTaskOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.BackgroundTaskOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Xe}var $i;function Hu(){if($i)return $e;$i=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.BackgroundTask=void 0;const e=Js(),t=ju(),a=V();class c{constructor(o){this.requestCtx=o}list(o){const h=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/background-task");return h.setQueryParam("status",o==null?void 0:o.status),h.setQueryParam("task",o==null?void 0:o.task),h.setQueryParam("limit",o==null?void 0:o.limit),h.setQueryParam("iterator",o==null?void 0:o.iterator),h.setQueryParam("order",o==null?void 0:o.order),h.send(this.requestCtx,t.ListResponseBackgroundTaskOutSerializer._fromJsonObject)}listByEndpoint(o){return this.list(o)}get(o){const h=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/background-task/{task_id}");return h.setPathParam("task_id",o),h.send(this.requestCtx,e.BackgroundTaskOutSerializer._fromJsonObject)}}return $e.BackgroundTask=c,$e}var Ye={},et={},Zi;function Lu(){return Zi||(Zi=1,Object.defineProperty(et,"__esModule",{value:!0}),et.EndpointHeadersInSerializer=void 0,et.EndpointHeadersInSerializer={_fromJsonObject(e){return{headers:e.headers}},_toJsonObject(e){return{headers:e.headers}}}),et}var tt={},Xi;function Du(){return Xi||(Xi=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.EndpointHeadersOutSerializer=void 0,tt.EndpointHeadersOutSerializer={_fromJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}},_toJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}}}),tt}var rt={},Yi;function Uu(){return Yi||(Yi=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.EndpointHeadersPatchInSerializer=void 0,rt.EndpointHeadersPatchInSerializer={_fromJsonObject(e){return{headers:e.headers}},_toJsonObject(e){return{headers:e.headers}}}),rt}var nt={},ea;function Bu(){return ea||(ea=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.EndpointInSerializer=void 0,nt.EndpointInSerializer={_fromJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,headers:e.headers,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url,version:e.version}},_toJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,headers:e.headers,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url,version:e.version}}}),nt}var it={},ta;function As(){return ta||(ta=1,Object.defineProperty(it,"__esModule",{value:!0}),it.EndpointOutSerializer=void 0,it.EndpointOutSerializer={_fromJsonObject(e){return{channels:e.channels,createdAt:new Date(e.createdAt),description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:new Date(e.updatedAt),url:e.url,version:e.version}},_toJsonObject(e){return{channels:e.channels,createdAt:e.createdAt,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:e.updatedAt,url:e.url,version:e.version}}}),it}var at={},ra;
3function Nu(){return ra||(ra=1,Object.defineProperty(at,"__esModule",{value:!0}),at.EndpointPatchSerializer=void 0,at.EndpointPatchSerializer={_fromJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url,version:e.version}},_toJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url,version:e.version}}}),at}var ot={},na;function Fu(){return na||(na=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.EndpointSecretOutSerializer=void 0,ot.EndpointSecretOutSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),ot}var st={},ia;function Wu(){return ia||(ia=1,Object.defineProperty(st,"__esModule",{value:!0}),st.EndpointSecretRotateInSerializer=void 0,st.EndpointSecretRotateInSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),st}var ut={},aa;function Qu(){return aa||(aa=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.EndpointStatsSerializer=void 0,ut.EndpointStatsSerializer={_fromJsonObject(e){return{fail:e.fail,pending:e.pending,sending:e.sending,success:e.success}},_toJsonObject(e){return{fail:e.fail,pending:e.pending,sending:e.sending,success:e.success}}}),ut}var dt={},oa;
3function Vu(){return oa||(oa=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.EndpointTransformationInSerializer=void 0,dt.EndpointTransformationInSerializer={_fromJsonObject(e){return{code:e.code,enabled:e.enabled}},_toJsonObject(e){return{code:e.code,enabled:e.enabled}}}),dt}var ct={},sa;function Gu(){return sa||(sa=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.EndpointTransformationOutSerializer=void 0,ct.EndpointTransformationOutSerializer={_fromJsonObject(e){return{code:e.code,enabled:e.enabled}},_toJsonObject(e){return{code:e.code,enabled:e.enabled}}}),ct}var pt={},ua;function Ku(){return ua||(ua=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.EndpointUpdateSerializer=void 0,pt.EndpointUpdateSerializer={_fromJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url,version:e.version}},_toJsonObject(e){return{channels:e.channels,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url,version:e.version}}}),pt}var ft={},da;function $u(){return da||(da=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.EventExampleInSerializer=void 0,ft.EventExampleInSerializer={_fromJsonObject(e){return{eventType:e.eventType,exampleIndex:e.exampleIndex}},_toJsonObject(e){return{eventType:e.eventType,exampleIndex:e.exampleIndex}}}),ft}var lt={},ca;function Zu(){if(ca)return lt;ca=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.ListResponseEndpointOutSerializer=void 0;const e=As();return lt.ListResponseEndpointOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.EndpointOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.EndpointOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},lt}var vt={},pa;function bn(){return pa||(pa=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.MessageOutSerializer=void 0,vt.MessageOutSerializer={_fromJsonObject(e){return{channels:e.channels,eventId:e.eventId,eventType:e.eventType,id:e.id,payload:e.payload,tags:e.tags,timestamp:new Date(e.timestamp)}},_toJsonObject(e){return{channels:e.channels,eventId:e.eventId,eventType:e.eventType,id:e.id,payload:e.payload,tags:e.tags,timestamp:e.timestamp}}}),vt}var mt={},fa;function Xu(){return fa||(fa=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.RecoverInSerializer=void 0,mt.RecoverInSerializer={_fromJsonObject(e){return{since:new Date(e.since),until:e.until?new Date(e.until):null}},_toJsonObject(e){return{since:e.since,until:e.until}}}),mt}var gt={},la;function Yu(){if(la)return gt;la=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.RecoverOutSerializer=void 0;const e=Oe(),t=ye();return gt.RecoverOutSerializer={_fromJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task)}},_toJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task)}}},gt}var ht={},va;function ed(){return va||(va=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.ReplayInSerializer=void 0,ht.ReplayInSerializer={_fromJsonObject(e){return{since:new Date(e.since),until:e.until?new Date(e.until):null}},_toJsonObject(e){return{since:e.since,until:e.until}}}),ht}var _t={},ma;function td(){if(ma)return _t;ma=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.ReplayOutSerializer=void 0;const e=Oe(),t=ye();return _t.ReplayOutSerializer={_fromJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task)}},_toJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task)}}},_t}var ga;function rd(){if(ga)return Ye;ga=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Endpoint=void 0;const e=Lu(),t=Du(),a=Uu(),c=Bu(),l=As(),o=Nu(),h=Fu(),v=Wu(),d=Qu(),i=Vu(),n=Gu(),u=Ku(),r=$u(),s=Zu(),p=bn(),f=Xu(),m=Yu(),g=ed(),_=td(),b=V();class w{constructor(y){this.requestCtx=y}list(y,q){const S=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint");return S.setPathParam("app_id",y),S.setQueryParam("limit",q==null?void 0:q.limit),S.setQueryParam("iterator",q==null?void 0:q.iterator),S.setQueryParam("order",q==null?void 0:q.order),S.send(this.requestCtx,s.ListResponseEndpointOutSerializer._fromJsonObject)}create(y,q,S){const P=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint");return P.setPathParam("app_id",y),P.setHeaderParam("idempotency-key",S==null?void 0:S.idempotencyKey),P.setBody(c.EndpointInSerializer._toJsonObject(q)),P.send(this.requestCtx,l.EndpointOutSerializer._fromJsonObject)}get(y,q){const S=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return S.setPathParam("app_id",y),S.setPathParam("endpoint_id",q),S.send(this.requestCtx,l.EndpointOutSerializer._fromJsonObject)}update(y,q,S){const P=new b.SvixRequest(b.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setBody(u.EndpointUpdateSerializer._toJsonObject(S)),P.send(this.requestCtx,l.EndpointOutSerializer._fromJsonObject)}delete(y,q){const S=new b.SvixRequest(b.HttpMethod.DELETE,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return S.setPathParam("app_id",y),S.setPathParam("endpoint_id",q),S.sendNoResponseBody(this.requestCtx)}patch(y,q,S){const P=new b.SvixRequest(b.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setBody(o.EndpointPatchSerializer._toJsonObject(S)),P.send(this.requestCtx,l.EndpointOutSerializer._fromJsonObject)}getHeaders(y,q){const S=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return S.setPathParam("app_id",y),S.setPathParam("endpoint_id",q),S.send(this.requestCtx,t.EndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(y,q,S){const P=new b.SvixRequest(b.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setBody(e.EndpointHeadersInSerializer._toJsonObject(S)),P.sendNoResponseBody(this.requestCtx)}headersUpdate(y,q,S){return this.updateHeaders(y,q,S)}patchHeaders(y,q,S){const P=new b.SvixRequest(b.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setBody(a.EndpointHeadersPatchInSerializer._toJsonObject(S)),P.sendNoResponseBody(this.requestCtx)}headersPatch(y,q,S){return this.patchHeaders(y,q,S)}recover(y,q,S,P){const E=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover");return E.setPathParam("app_id",y),E.setPathParam("endpoint_id",q),E.setHeaderParam("idempotency-key",P==null?void 0:P.idempotencyKey),E.setBody(f.RecoverInSerializer._toJsonObject(S)),E.send(this.requestCtx,m.RecoverOutSerializer._fromJsonObject)}replayMissing(y,q,S,P){const E=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing");return E.setPathParam("app_id",y),E.setPathParam("endpoint_id",q),E.setHeaderParam("idempotency-key",P==null?void 0:P.idempotencyKey),E.setBody(g.ReplayInSerializer._toJsonObject(S)),E.send(this.requestCtx,_.ReplayOutSerializer._fromJsonObject)}getSecret(y,q){const S=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret");return S.setPathParam("app_id",y),S.setPathParam("endpoint_id",q),S.send(this.requestCtx,h.EndpointSecretOutSerializer._fromJsonObject)}rotateSecret(y,q,S,P){const E=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate");return E.setPathParam("app_id",y),E.setPathParam("endpoint_id",q),E.setHeaderParam("idempotency-key",P==null?void 0:P.idempotencyKey),E.setBody(v.EndpointSecretRotateInSerializer._toJsonObject(S)),E.sendNoResponseBody(this.requestCtx)}sendExample(y,q,S,P){const E=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example");return E.setPathParam("app_id",y),E.setPathParam("endpoint_id",q),E.setHeaderParam("idempotency-key",P==null?void 0:P.idempotencyKey),E.setBody(r.EventExampleInSerializer._toJsonObject(S)),E.send(this.requestCtx,p.MessageOutSerializer._fromJsonObject)}getStats(y,q,S){const P=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setQueryParam("since",S==null?void 0:S.since),P.setQueryParam("until",S==null?void 0:S.until),P.send(this.requestCtx,d.EndpointStatsSerializer._fromJsonObject)}transformationGet(y,q){const S=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return S.setPathParam("app_id",y),S.setPathParam("endpoint_id",q),S.send(this.requestCtx,n.EndpointTransformationOutSerializer._fromJsonObject)}transformationPartialUpdate(y,q,S){const P=new b.SvixRequest(b.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return P.setPathParam("app_id",y),P.setPathParam("endpoint_id",q),P.setBody(i.EndpointTransformationInSerializer._toJsonObject(S)),P.sendNoResponseBody(this.requestCtx)}}return Ye.Endpoint=w,Ye}var Ot={},yt={},bt={},Hn={},ha;function Zn(){return ha||(ha=1,function(e){Object.defineProperty(e,"__esMo
3dule",{value:!0}),e.ConnectorKindSerializer=e.ConnectorKind=void 0,function(t){t.Custom="Custom",t.CloseCrm="CloseCRM",t.CustomerIo="CustomerIO",t.Discord="Discord",t.Hubspot="Hubspot",t.Inngest="Inngest",t.Loops="Loops",t.Resend="Resend",t.Salesforce="Salesforce",t.Segment="Segment",t.Sendgrid="Sendgrid",t.Slack="Slack",t.Teams="Teams",t.TriggerDev="TriggerDev",t.Windmill="Windmill",t.Zapier="Zapier"}(e.ConnectorKind||(e.ConnectorKind={})),e.ConnectorKindSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Hn)),Hn}var _a;function nd(){if(_a)return bt;_a=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.ConnectorInSerializer=void 0;const e=Zn();return bt.ConnectorInSerializer={_fromJsonObject(t){return{description:t.description,featureFlag:t.featureFlag,filterTypes:t.filterTypes,instructions:t.instructions,instructionsLink:t.instructionsLink,kind:t.kind?e.ConnectorKindSerializer._fromJsonObject(t.kind):void 0,logo:t.logo,name:t.name,transformation:t.transformation}},_toJsonObject(t){return{description:t.description,featureFlag:t.featureFlag,filterTypes:t.filterTypes,instructions:t.instructions,instructionsLink:t.instructionsLink,kind:t.kind?e.ConnectorKindSerializer._toJsonObject(t.kind):void 0,logo:t.logo,name:t.name,transformation:t.transformation}}},bt}var St={},Oa;function Ms(){return Oa||(Oa=1,Object.defineProperty(St,"__esModule",{value:!0}),St.EventTypeInSerializer=void 0,St.EventTypeInSerializer={_fromJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas}},_toJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas}}}),St}var ya;function id(){if(ya)return yt;ya=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.EnvironmentInSerializer=void 0;const e=nd(),t=Ms();return yt.EnvironmentInSerializer={_fromJsonObject(a){var c,l;return{connectors:(c=a.connectors)===null||c===void 0?void 0:c.map(o=>e.ConnectorInSerializer._fromJsonObject(o)),eventTypes:(l=a.eventTypes)===null||l===void 0?void 0:l.map(o=>t.EventTypeInSerializer._fromJsonObject(o)),settings:a.settings}},_toJsonObject(a){var c,l;return{connectors:(c=a.connectors)===null||c===void 0?void 0:c.map(o=>e.ConnectorInSerializer._toJsonObject(o)),eventTypes:(l=a.eventTypes)===null||l===void 0?void 0:l.map(o=>t.EventTypeInSerializer._toJsonObject(o)),settings:a.settings}}},yt}var Pt={},qt={},ba;function ad(){if(ba)return qt;ba=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.ConnectorOutSerializer=void 0;const e=Zn();return qt.ConnectorOutSerializer={_fromJsonObject(t){return{createdAt:new Date(t.createdAt),description:t.description,featureFlag:t.featureFlag,filterTypes:t.filterTypes,id:t.id,instructions:t.instructions,instructionsLink:t.instructionsLink,kind:e.ConnectorKindSerializer._fromJsonObject(t.kind),logo:t.logo,name:t.name,orgId:t.orgId,transformation:t.transformation,updatedAt:new Date(t.updatedAt)}},_toJsonObject(t){return{createdAt:t.createdAt,description:t.description,featureFlag:t.featureFlag,filterTypes:t.filterTypes,id:t.id,instructions:t.instructions,instructionsLink:t.instructionsLink,kind:e.ConnectorKindSerializer._toJsonObject(t.kind),logo:t.logo,name:t.name,orgId:t.orgId,transformation:t.transformation,updatedAt:t.updatedAt}}},qt}var Tt={},Sa;function Xn(){return Sa||(Sa=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.EventTypeOutSerializer=void 0,Tt.EventTypeOutSerializer={_fromJsonObject(e){return{archived:e.archived,createdAt:new Date(e.createdAt),deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas,updatedAt:new Date(e.updatedAt)}},_toJsonObject(e){return{archived:e.archived,createdAt:e.createdAt,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas,updatedAt:e.updatedAt}}}),Tt}var Pa;function od(){if(Pa)return Pt;
3Pa=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.EnvironmentOutSerializer=void 0;const e=ad(),t=Xn();return Pt.EnvironmentOutSerializer={_fromJsonObject(a){return{createdAt:new Date(a.createdAt),eventTypes:a.eventTypes.map(c=>t.EventTypeOutSerializer._fromJsonObject(c)),settings:a.settings,transformationTemplates:a.transformationTemplates.map(c=>e.ConnectorOutSerializer._fromJsonObject(c)),version:a.version}},_toJsonObject(a){return{createdAt:a.createdAt,eventTypes:a.eventTypes.map(c=>t.EventTypeOutSerializer._toJsonObject(c)),settings:a.settings,transformationTemplates:a.transformationTemplates.map(c=>e.ConnectorOutSerializer._toJsonObject(c)),version:a.version}}},Pt}var qa;function sd(){if(qa)return Ot;qa=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.Environment=void 0;const e=id(),t=od(),a=V();class c{constructor(o){this.requestCtx=o}export(o){const h=new a.SvixRequest(a.HttpMethod.POST,"/api/v1/environment/export");return h.setHeaderParam("idempotency-key",o==null?void 0:o.idempotencyKey),h.send(this.requestCtx,t.EnvironmentOutSerializer._fromJsonObject)}import(o,h){const v=new a.SvixRequest(a.HttpMethod.POST,"/api/v1/environment/import");return v.setHeaderParam("idempotency-key",h==null?void 0:h.idempotencyKey),v.setBody(e.EnvironmentInSerializer._toJsonObject(o)),v.sendNoResponseBody(this.requestCtx)}}return Ot.Environment=c,Ot}var xt={},Et={},Ta;function ud(){return Ta||(Ta=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.EventTypeImportOpenApiInSerializer=void 0,Et.EventTypeImportOpenApiInSerializer={_fromJsonObject(e){return{dryRun:e.dryRun,replaceAll:e.replaceAll,spec:e.spec,specRaw:e.specRaw}},_toJsonObject(e){return{dryRun:e.dryRun,replaceAll:e.replaceAll,spec:e.spec,specRaw:e.specRaw}}}),Et}var kt={},zt={},Ct={},xa;function dd(){return xa||(xa=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.EventTypeFromOpenApiSerializer=void 0,Ct.EventTypeFromOpenApiSerializer={_fromJsonObject(e){return{deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas}},_toJsonObject(e){return{deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,name:e.name,schemas:e.schemas}}}),Ct}var Ea;function cd(){if(Ea)return zt;Ea=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.EventTypeImportOpenApiOutDataSerializer=void 0;const e=dd();return zt.EventTypeImportOpenApiOutDataSerializer={_fromJsonObject(t){var a;return{modified:t.modified,toModify:(a=t.to_modify)===null||a===void 0?void 0:a.map(c=>e.EventTypeFromOpenApiSerializer._fromJsonObject(c))}},_toJsonObject(t){var a;return{modified:t.modified,to_modify:(a=t.toModify)===null||a===void 0?void 0:a.map(c=>e.EventTypeFromOpenApiSerializer._toJsonObject(c))}}},zt}var ka;function pd(){if(ka)return kt;ka=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.EventTypeImportOpenApiOutSerializer=void 0;const e=cd();return kt.EventTypeImportOpenApiOutSerializer={_fromJsonObject(t){return{data:e.EventTypeImportOpenApiOutDataSerializer._fromJsonObject(t.data)}},_toJsonObject(t){return{data:e.EventTypeImportOpenApiOutDataSerializer._toJsonObject(t.data)}}},kt}var It={},za;function fd(){return za||(za=1,Object.defineProperty(It,"__esModule",{value:!0}),It.EventTypePatchSerializer=void 0,It.EventTypePatchSerializer={_fromJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,schemas:e.schemas}},_toJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,schemas:e.schemas}}}),It}var Rt={},Ca;
3function ld(){return Ca||(Ca=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.EventTypeUpdateSerializer=void 0,Rt.EventTypeUpdateSerializer={_fromJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,schemas:e.schemas}},_toJsonObject(e){return{archived:e.archived,deprecated:e.deprecated,description:e.description,featureFlag:e.featureFlag,groupName:e.groupName,schemas:e.schemas}}}),Rt}var wt={},Ia;function vd(){if(Ia)return wt;Ia=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.ListResponseEventTypeOutSerializer=void 0;const e=Xn();return wt.ListResponseEventTypeOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.EventTypeOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.EventTypeOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},wt}var Ra;function md(){if(Ra)return xt;Ra=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.EventType=void 0;const e=ud(),t=pd(),a=Ms(),c=Xn(),l=fd(),o=ld(),h=vd(),v=V();class d{constructor(n){this.requestCtx=n}list(n){const u=new v.SvixRequest(v.HttpMethod.GET,"/api/v1/event-type");return u.setQueryParam("limit",n==null?void 0:n.limit),u.setQueryParam("iterator",n==null?void 0:n.iterator),u.setQueryParam("order",n==null?void 0:n.order),u.setQueryParam("include_archived",n==null?void 0:n.includeArchived),u.setQueryParam("with_content",n==null?void 0:n.withContent),u.send(this.requestCtx,h.ListResponseEventTypeOutSerializer._fromJsonObject)}create(n,u){const r=new v.SvixRequest(v.HttpMethod.POST,"/api/v1/event-type");return r.setHeaderParam("idempotency-key",u==null?void 0:u.idempotencyKey),r.setBody(a.EventTypeInSerializer._toJsonObject(n)),r.send(this.requestCtx,c.EventTypeOutSerializer._fromJsonObject)}importOpenapi(n,u){const r=new v.SvixRequest(v.HttpMethod.POST,"/api/v1/event-type/import/openapi");return r.setHeaderParam("idempotency-key",u==null?void 0:u.idempotencyKey),r.setBody(e.EventTypeImportOpenApiInSerializer._toJsonObject(n)),r.send(this.requestCtx,t.EventTypeImportOpenApiOutSerializer._fromJsonObject)}get(n){const u=new v.SvixRequest(v.HttpMethod.GET,"/api/v1/event-type/{event_type_name}");return u.setPathParam("event_type_name",n),u.send(this.requestCtx,c.EventTypeOutSerializer._fromJsonObject)}update(n,u){const r=new v.SvixRequest(v.HttpMethod.PUT,"/api/v1/event-type/{event_type_name}");return r.setPathParam("event_type_name",n),r.setBody(o.EventTypeUpdateSerializer._toJsonObject(u)),r.send(this.requestCtx,c.EventTypeOutSerializer._fromJsonObject)}delete(n,u){const r=new v.SvixRequest(v.HttpMethod.DELETE,"/api/v1/event-type/{event_type_name}");return r.setPathParam("event_type_name",n),r.setQueryParam("expunge",u==null?void 0:u.expunge),r.sendNoResponseBody(this.requestCtx)}patch(n,u){const r=new v.SvixRequest(v.HttpMethod.PATCH,"/api/v1/event-type/{event_type_name}");return r.setPathParam("event_type_name",n),r.setBody(l.EventTypePatchSerializer._toJsonObject(u)),r.send(this.requestCtx,c.EventTypeOutSerializer._fromJsonObject)}}return xt.EventType=d,xt}var Jt={},wa;function gd(){if(wa)return Jt;wa=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.Health=void 0;const e=V();class t{constructor(c){this.requestCtx=c}get(){return new e.SvixRequest(e.HttpMethod.GET,"/api/v1/health").sendNoResponseBody(this.requestCtx)}}return Jt.Health=t,Jt}var At={},Mt={},Ja;function hd(){return Ja||(Ja=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.IngestSourceConsumerPortalAccessInSerializer=void 0,Mt.IngestSourceConsumerPortalAccessInSerializer={_fromJsonObject(e){return{expiry:e.expiry,readOnly:e.readOnly}},_toJsonObject(e){return{expiry:e.expiry,readOnly:e.readOnly}}}),Mt}var jt={},Ht={},Aa;function _d(){return Aa||(Aa=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.IngestEndpointHeadersInSerializer=void 0,Ht.IngestEndpointHeadersInSerializer={_fromJsonObject(e){return{headers:e.headers}},_toJsonObject(e){return{headers:e.headers}}}),Ht}var Lt={},Ma;
3function Od(){return Ma||(Ma=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.IngestEndpointHeadersOutSerializer=void 0,Lt.IngestEndpointHeadersOutSerializer={_fromJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}},_toJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}}}),Lt}var Dt={},ja;function yd(){return ja||(ja=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.IngestEndpointInSerializer=void 0,Dt.IngestEndpointInSerializer={_fromJsonObject(e){return{description:e.description,disabled:e.disabled,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url}},_toJsonObject(e){return{description:e.description,disabled:e.disabled,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url}}}),Dt}var Ut={},Ha;function js(){return Ha||(Ha=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.IngestEndpointOutSerializer=void 0,Ut.IngestEndpointOutSerializer={_fromJsonObject(e){return{createdAt:new Date(e.createdAt),description:e.description,disabled:e.disabled,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:new Date(e.updatedAt),url:e.url}},_toJsonObject(e){return{createdAt:e.createdAt,description:e.description,disabled:e.disabled,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:e.updatedAt,url:e.url}}}),Ut}var Bt={},La;function bd(){return La||(La=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.IngestEndpointSecretInSerializer=void 0,Bt.IngestEndpointSecretInSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),Bt}var Nt={},Da;function Sd(){return Da||(Da=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.IngestEndpointSecretOutSerializer=void 0,Nt.IngestEndpointSecretOutSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),Nt}var Ft={},Ua;function Pd(){return Ua||(Ua=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.IngestEndpointUpdateSerializer=void 0,Ft.IngestEndpointUpdateSerializer={_fromJsonObject(e){return{description:e.description,disabled:e.disabled,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url}},_toJsonObject(e){return{description:e.description,disabled:e.disabled,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url}}}),Ft}var Wt={},Ba;function qd(){if(Ba)return Wt;Ba=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.ListResponseIngestEndpointOutSerializer=void 0;const e=js();return Wt.ListResponseIngestEndpointOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.IngestEndpointOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.IngestEndpointOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Wt}var Na;function Td(){if(Na)return jt;Na=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.IngestEndpoint=void 0;const e=_d(),t=Od(),a=yd(),c=js(),l=bd(),o=Sd(),h=Pd(),v=qd(),d=V();class i{constructor(u){this.requestCtx=u}list(u,r){const s=new d.SvixRequest(d.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint");return s.setPathParam("source_id",u),s.setQueryParam("limit",r==null?void 0:r.limit),s.setQueryParam("iterator",r==null?void 0:r.iterator),s.setQueryParam("order",r==null?void 0:r.order),s.send(this.requestCtx,v.ListResponseIngestEndpointOutSerializer._fromJsonObject)}create(u,r,s){const p=new d.SvixRequest(d.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint");return p.setPathParam("source_id",u),p.setHeaderParam("idempotency-key",s==null?void 0:s.idempotencyKey),p.setBody(a.IngestEndpointInSerializer._toJsonObject(r)),p.send(this.requestCtx,c.IngestEndpointOutSerializer._fromJsonObject)}get(u,r){const s=new d.SvixRequest(d.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return s.setPathParam("source_id",u),s.setPathParam("endpoint_id",r),s.send(this.requestCtx,c.IngestEndpointOutSerializer._fromJsonObject)}update(u,r,s){const p=new d.SvixRequest(d.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return p.setPathParam("source_id",u),p.setPathParam("endpoint_id",r),p.setBody(h.IngestEndpointUpdateSerializer._toJsonObject(s)),p.send(this.requestCtx,c.IngestEndpointOutSerializer._fromJsonObject)}delete(u,r){const s=new d.SvixRequest(d.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return s.setPathParam("source_id",u),s.setPathParam("endpoint_id",r),s.sendNoResponseBody(this.requestCtx)}getHeaders(u,r){const s=new d.SvixRequest(d.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return s.setPathParam("source_id",u),s.setPathParam("endpoint_id",r),s.send(this.requestCtx,t.IngestEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,r,s){const p=new d.SvixRequest(d.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return p.setPathParam("source_id",u),p.setPathParam("endpoint_id",r),p.setBody(e.IngestEndpointHeadersInSerializer._toJsonObject(s)),p.sendNoResponseBody(this.requestCtx)}getSecret(u,r){const s=new d.SvixRequest(d.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret");return s.setPathParam("source_id",u),s.setPathParam("endpoint_id",r),s.send(this.requestCtx,o.IngestEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,r,s,p){const f=new d.SvixRequest(d.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate");return f.setPathParam("source_id",u),f.setPathParam("endpoint_id",r),f.setHeaderParam("idempotency-key",p==null?void 0:p.idempotencyKey),f.setBody(l.IngestEndpointSecretInSerializer._toJsonObject(s)),f.sendNoResponseBody(this.requestCtx)}}return jt.IngestEndpoint=i,jt}var Qt={},Vt={},Gt={},Fa;
3function xd(){return Fa||(Fa=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.AdobeSignConfigSerializer=void 0,Gt.AdobeSignConfigSerializer={_fromJsonObject(e){return{clientId:e.clientId}},_toJsonObject(e){return{clientId:e.clientId}}}),Gt}var Kt={},Wa;function Hs(){return Wa||(Wa=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.CronConfigSerializer=void 0,Kt.CronConfigSerializer={_fromJsonObject(e){return{contentType:e.contentType,payload:e.payload,schedule:e.schedule}},_toJsonObject(e){return{contentType:e.contentType,payload:e.payload,schedule:e.schedule}}}),Kt}var $t={},Qa;function Ed(){return Qa||(Qa=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.DocusignConfigSerializer=void 0,$t.DocusignConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),$t}var Zt={},Va;function kd(){return Va||(Va=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.GithubConfigSerializer=void 0,Zt.GithubConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),Zt}var Xt={},Ga;function zd(){return Ga||(Ga=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.HubspotConfigSerializer=void 0,Xt.HubspotConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),Xt}var Yt={},Ka;function Cd(){return Ka||(Ka=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.PandaDocConfigSerializer=void 0,Yt.PandaDocConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),Yt}var er={},$a;function Id(){return $a||($a=1,Object.defineProperty(er,"__esModule",{value:!0}),er.SegmentConfigSerializer=void 0,er.SegmentConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),er}var tr={},Za;function Rd(){return Za||(Za=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.ShopifyConfigSerializer=void 0,tr.ShopifyConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),tr}var rr={},Xa;function wd(){return Xa||(Xa=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.SlackConfigSerializer=void 0,rr.SlackConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),rr}var nr={},Ya;function Jd(){return Ya||(Ya=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.StripeConfigSerializer=void 0,nr.StripeConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),nr}var ir={},eo;function Ad(){return eo||(eo=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.SvixConfigSerializer=void 0,ir.SvixConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),ir}var ar={},to;function Md(){return to||(to=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.ZoomConfigSerializer=void 0,ar.ZoomConfigSerializer={_fromJsonObject(e){return{secret:e.secret}},_toJsonObject(e){return{secret:e.secret}}}),ar}var ro;function jd(){if(ro)return Vt;ro=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.IngestSourceInSerializer=void 0;const e=xd(),t=Hs(),a=Ed(),c=kd(),l=zd(),o=Cd(),h=Id(),v=Rd(),d=wd(),i=Jd(),n=Ad(),u=Md();return Vt.IngestSourceInSerializer={_fromJsonObject(r){const s=r.type;function p(f){switch(f){case"generic-webhook":return{};case"cron":return t.CronConfigSerializer._fromJsonObject(r.config);case"adobe-sign":return e.AdobeSignConfigSerializer._fromJsonObject(r.config);case"beehiiv":return n.SvixConfigSerializer._fromJsonObject(r.config);case"brex":return n.SvixConfigSerializer._fromJsonObject(r.config);case"clerk":return n.SvixConfigSerializer._fromJsonObject(r.config);case"docusign":return a.DocusignConfigSerializer._fromJsonObject(r.config);case"github":return c.GithubConfigSerializer._fromJsonObject(r.config);case"guesty":return n.SvixConfigSerializer._fromJsonObject(r.config);case"hubspot":return l.HubspotConfigSerializer._fromJsonObject(r.config);case"incident-io":return n.SvixConfigSerializer._fromJsonObject(r.config);case"lithic":return n.SvixConfigSerializer._fromJsonObject(r.config);case"nash":return n.SvixConfigSerializer._fromJsonObject(r.config);case"panda-doc":return o.PandaDocConfigSerializer._fromJsonObject(r.config);case"pleo":return n.SvixConfigSerializer._fromJsonObject(r.config);case"replicate":return n.SvixConfigSerializer._fromJsonObject(r.config);case"resend":return n.SvixConfigSerializer._fromJsonObject(r.config);
3case"safebase":return n.SvixConfigSerializer._fromJsonObject(r.config);case"sardine":return n.SvixConfigSerializer._fromJsonObject(r.config);case"segment":return h.SegmentConfigSerializer._fromJsonObject(r.config);case"shopify":return v.ShopifyConfigSerializer._fromJsonObject(r.config);case"slack":return d.SlackConfigSerializer._fromJsonObject(r.config);case"stripe":return i.StripeConfigSerializer._fromJsonObject(r.config);case"stych":return n.SvixConfigSerializer._fromJsonObject(r.config);case"svix":return n.SvixConfigSerializer._fromJsonObject(r.config);case"zoom":return u.ZoomConfigSerializer._fromJsonObject(r.config);default:throw new Error(`Unexpected type: ${f}`)}}return{type:s,config:p(s),name:r.name,uid:r.uid}},_toJsonObject(r){let s;switch(r.type){case"generic-webhook":s={};break;case"cron":s=t.CronConfigSerializer._toJsonObject(r.config);break;case"adobe-sign":s=e.AdobeSignConfigSerializer._toJsonObject(r.config);break;case"beehiiv":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"brex":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"clerk":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"docusign":s=a.DocusignConfigSerializer._toJsonObject(r.config);break;case"github":s=c.GithubConfigSerializer._toJsonObject(r.config);break;case"guesty":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"hubspot":s=l.HubspotConfigSerializer._toJsonObject(r.config);break;case"incident-io":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"lithic":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"nash":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"panda-doc":s=o.PandaDocConfigSerializer._toJsonObject(r.config);break;case"pleo":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"replicate":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"resend":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"safebase":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"sardine":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"segment":s=h.SegmentConfigSerializer._toJsonObject(r.config);break;case"shopify":s=v.ShopifyConfigSerializer._toJsonObject(r.config);break;case"slack":s=d.SlackConfigSerializer._toJsonObject(r.config);break;case"stripe":s=i.StripeConfigSerializer._toJsonObject(r.config);break;case"stych":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"svix":s=n.SvixConfigSerializer._toJsonObject(r.config);break;case"zoom":s=u.ZoomConfigSerializer._toJsonObject(r.config);break}return{type:r.type,config:s,name:r.name,uid:r.uid}}},Vt}var or={},sr={},no;function Hd(){return no||(no=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.AdobeSignConfigOutSerializer=void 0,sr.AdobeSignConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),sr}var ur={},io;function Ld(){return io||(io=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.DocusignConfigOutSerializer=void 0,ur.DocusignConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),ur}var dr={},ao;function Dd(){return ao||(ao=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.GithubConfigOutSerializer=void 0,dr.GithubConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),dr}var cr={},oo;function Ud(){return oo||(oo=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.HubspotConfigOutSerializer=void 0,cr.HubspotConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),cr}var pr={},so;function Bd(){return so||(so=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.PandaDocConfigOutSerializer=void 0,pr.PandaDocConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),pr}var fr={},uo;function Nd(){return uo||(uo=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.SegmentConfigOutSerializer=void 0,fr.SegmentConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),fr}var lr={},co;function Fd(){return co||(co=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.ShopifyConfigOutSerializer=void 0,lr.ShopifyConfigOutSerializer
3={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),lr}var vr={},po;function Wd(){return po||(po=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.SlackConfigOutSerializer=void 0,vr.SlackConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),vr}var mr={},fo;function Qd(){return fo||(fo=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.StripeConfigOutSerializer=void 0,mr.StripeConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),mr}var gr={},lo;function Vd(){return lo||(lo=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.SvixConfigOutSerializer=void 0,gr.SvixConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),gr}var hr={},vo;function Gd(){return vo||(vo=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.ZoomConfigOutSerializer=void 0,hr.ZoomConfigOutSerializer={_fromJsonObject(e){return{}},_toJsonObject(e){return{}}}),hr}var mo;function Ls(){if(mo)return or;mo=1,Object.defineProperty(or,"__esModule",{value:!0}),or.IngestSourceOutSerializer=void 0;const e=Hd(),t=Hs(),a=Ld(),c=Dd(),l=Ud(),o=Bd(),h=Nd(),v=Fd(),d=Wd(),i=Qd(),n=Vd(),u=Gd();return or.IngestSourceOutSerializer={_fromJsonObject(r){const s=r.type;function p(f){switch(f){case"generic-webhook":return{};case"cron":return t.CronConfigSerializer._fromJsonObject(r.config);case"adobe-sign":return e.AdobeSignConfigOutSerializer._fromJsonObject(r.config);case"beehiiv":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"brex":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"clerk":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"docusign":return a.DocusignConfigOutSerializer._fromJsonObject(r.config);case"github":return c.GithubConfigOutSerializer._fromJsonObject(r.config);case"guesty":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"hubspot":return l.HubspotConfigOutSerializer._fromJsonObject(r.config);case"incident-io":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"lithic":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"nash":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"panda-doc":return o.PandaDocConfigOutSerializer._fromJsonObject(r.config);case"pleo":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"replicate":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"resend":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"safebase":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"sardine":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"segment":return h.SegmentConfigOutSerializer._fromJsonObject(r.config);case"shopify":return v.ShopifyConfigOutSerializer._fromJsonObject(r.config);case"slack":return d.SlackConfigOutSerializer._fromJsonObject(r.config);case"stripe":return i.StripeConfigOutSerializer._fromJsonObject(r.config);case"stych":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"svix":return n.SvixConfigOutSerializer._fromJsonObject(r.config);case"zoom":return u.ZoomConfigOutSerializer._fromJsonObject(r.config);default:throw new Error(`Unexpected type: ${f}`)}}return{type:s,config:p(s),createdAt:new Date(r.createdAt),id:r.id,ingestUrl:r.ingestUrl,name:r.name,uid:r.uid,updatedAt:new Date(r.updatedAt)}},_toJsonObject(r){let s;switch(r.type){case"generic-webhook":s={};break;case"cron":s=t.CronConfigSerializer._toJsonObject(r.config);break;case"adobe-sign":s=e.AdobeSignConfigOutSerializer._toJsonObject(r.config);break;case"beehiiv":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"brex":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"clerk":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"docusign":s=a.DocusignConfigOutSerializer._toJsonObject(r.config);break;case"github":s=c.GithubConfigOutSerializer._toJsonObject(r.config);break;case"guesty":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"hubspot":s=l.HubspotConfigOutSerializer._toJsonObject(r.config);break;case"incident-io":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"lithic":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"nash":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"panda-doc":s=o.PandaDocConfigOutSerializer._toJsonObject(r.config);break;case"pleo":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"replicate":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"resend":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;
3case"safebase":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"sardine":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"segment":s=h.SegmentConfigOutSerializer._toJsonObject(r.config);break;case"shopify":s=v.ShopifyConfigOutSerializer._toJsonObject(r.config);break;case"slack":s=d.SlackConfigOutSerializer._toJsonObject(r.config);break;case"stripe":s=i.StripeConfigOutSerializer._toJsonObject(r.config);break;case"stych":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"svix":s=n.SvixConfigOutSerializer._toJsonObject(r.config);break;case"zoom":s=u.ZoomConfigOutSerializer._toJsonObject(r.config);break}return{type:r.type,config:s,createdAt:r.createdAt,id:r.id,ingestUrl:r.ingestUrl,name:r.name,uid:r.uid,updatedAt:r.updatedAt}}},or}var _r={},go;function Kd(){if(go)return _r;go=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.ListResponseIngestSourceOutSerializer=void 0;const e=Ls();return _r.ListResponseIngestSourceOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.IngestSourceOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.IngestSourceOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},_r}var Or={},ho;function $d(){return ho||(ho=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.RotateTokenOutSerializer=void 0,Or.RotateTokenOutSerializer={_fromJsonObject(e){return{ingestUrl:e.ingestUrl}},_toJsonObject(e){return{ingestUrl:e.ingestUrl}}}),Or}var _o;function Zd(){if(_o)return Qt;_o=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.IngestSource=void 0;const e=jd(),t=Ls(),a=Kd(),c=$d(),l=V();class o{constructor(v){this.requestCtx=v}list(v){const d=new l.SvixRequest(l.HttpMethod.GET,"/ingest/api/v1/source");return d.setQueryParam("limit",v==null?void 0:v.limit),d.setQueryParam("iterator",v==null?void 0:v.iterator),d.setQueryParam("order",v==null?void 0:v.order),d.send(this.requestCtx,a.ListResponseIngestSourceOutSerializer._fromJsonObject)}create(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/ingest/api/v1/source");return i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.setBody(e.IngestSourceInSerializer._toJsonObject(v)),i.send(this.requestCtx,t.IngestSourceOutSerializer._fromJsonObject)}get(v){const d=new l.SvixRequest(l.HttpMethod.GET,"/ingest/api/v1/source/{source_id}");return d.setPathParam("source_id",v),d.send(this.requestCtx,t.IngestSourceOutSerializer._fromJsonObject)}update(v,d){const i=new l.SvixRequest(l.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}");return i.setPathParam("source_id",v),i.setBody(e.IngestSourceInSerializer._toJsonObject(d)),i.send(this.requestCtx,t.IngestSourceOutSerializer._fromJsonObject)}delete(v){const d=new l.SvixRequest(l.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}");return d.setPathParam("source_id",v),d.sendNoResponseBody(this.requestCtx)}rotateToken(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/token/rotate");return i.setPathParam("source_id",v),i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.send(this.requestCtx,c.RotateTokenOutSerializer._fromJsonObject)}}return Qt.IngestSource=o,Qt}var Oo;function Xd(){if(Oo)return At;Oo=1,Object.defineProperty(At,"__esModule",{value:!0}),At.Ingest=void 0;const e=ws(),t=hd(),a=V(),c=Td(),l=Zd();class o{constructor(v){this.requestCtx=v}get endpoint(){return new c.IngestEndpoint(this.requestCtx)}get source(){return new l.IngestSource(this.requestCtx)}dashboard(v,d,i){const n=new a.SvixRequest(a.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/dashboard");return n.setPathParam("source_id",v),n.setHeaderParam("idempotency-key",i==null?void 0:i.idempotencyKey),n.setBody(t.IngestSourceConsumerPortalAccessInSerializer._toJsonObject(d)),n.send(this.requestCtx,e.DashboardAccessOutSerializer._fromJsonObject)}}return At.Ingest=o,At}var yr={},br={},yo;function Yd(){return yo||(yo=1,Object.defineProperty(br,"__esModule",{value:!0}
3),br.IntegrationInSerializer=void 0,br.IntegrationInSerializer={_fromJsonObject(e){return{featureFlags:e.featureFlags,name:e.name}},_toJsonObject(e){return{featureFlags:e.featureFlags,name:e.name}}}),br}var Sr={},bo;function ec(){return bo||(bo=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.IntegrationKeyOutSerializer=void 0,Sr.IntegrationKeyOutSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),Sr}var Pr={},So;function Ds(){return So||(So=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.IntegrationOutSerializer=void 0,Pr.IntegrationOutSerializer={_fromJsonObject(e){return{createdAt:new Date(e.createdAt),featureFlags:e.featureFlags,id:e.id,name:e.name,updatedAt:new Date(e.updatedAt)}},_toJsonObject(e){return{createdAt:e.createdAt,featureFlags:e.featureFlags,id:e.id,name:e.name,updatedAt:e.updatedAt}}}),Pr}var qr={},Po;function tc(){return Po||(Po=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.IntegrationUpdateSerializer=void 0,qr.IntegrationUpdateSerializer={_fromJsonObject(e){return{featureFlags:e.featureFlags,name:e.name}},_toJsonObject(e){return{featureFlags:e.featureFlags,name:e.name}}}),qr}var Tr={},qo;function rc(){if(qo)return Tr;qo=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.ListResponseIntegrationOutSerializer=void 0;const e=Ds();return Tr.ListResponseIntegrationOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.IntegrationOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.IntegrationOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Tr}var To;function nc(){if(To)return yr;
3To=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.Integration=void 0;const e=Yd(),t=ec(),a=Ds(),c=tc(),l=rc(),o=V();class h{constructor(d){this.requestCtx=d}list(d,i){const n=new o.SvixRequest(o.HttpMethod.GET,"/api/v1/app/{app_id}/integration");return n.setPathParam("app_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.setQueryParam("order",i==null?void 0:i.order),n.send(this.requestCtx,l.ListResponseIntegrationOutSerializer._fromJsonObject)}create(d,i,n){const u=new o.SvixRequest(o.HttpMethod.POST,"/api/v1/app/{app_id}/integration");return u.setPathParam("app_id",d),u.setHeaderParam("idempotency-key",n==null?void 0:n.idempotencyKey),u.setBody(e.IntegrationInSerializer._toJsonObject(i)),u.send(this.requestCtx,a.IntegrationOutSerializer._fromJsonObject)}get(d,i){const n=new o.SvixRequest(o.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}");return n.setPathParam("app_id",d),n.setPathParam("integ_id",i),n.send(this.requestCtx,a.IntegrationOutSerializer._fromJsonObject)}update(d,i,n){const u=new o.SvixRequest(o.HttpMethod.PUT,"/api/v1/app/{app_id}/integration/{integ_id}");return u.setPathParam("app_id",d),u.setPathParam("integ_id",i),u.setBody(c.IntegrationUpdateSerializer._toJsonObject(n)),u.send(this.requestCtx,a.IntegrationOutSerializer._fromJsonObject)}delete(d,i){const n=new o.SvixRequest(o.HttpMethod.DELETE,"/api/v1/app/{app_id}/integration/{integ_id}");return n.setPathParam("app_id",d),n.setPathParam("integ_id",i),n.sendNoResponseBody(this.requestCtx)}getKey(d,i){const n=new o.SvixRequest(o.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}/key");return n.setPathParam("app_id",d),n.setPathParam("integ_id",i),n.send(this.requestCtx,t.IntegrationKeyOutSerializer._fromJsonObject)}rotateKey(d,i,n){const u=new o.SvixRequest(o.HttpMethod.POST,"/api/v1/app/{app_id}/integration/{integ_id}/key/rotate");return u.setPathParam("app_id",d),u.setPathParam("integ_id",i),u.setHeaderParam("idempotency-key",n==null?void 0:n.idempotencyKey),u.send(this.requestCtx,t.IntegrationKeyOutSerializer._fromJsonObject)}}return yr.Integration=h,yr}var xr={},Er={},kr={},xo;function ic(){return xo||(xo=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.ApiTokenExpireInSerializer=void 0,kr.ApiTokenExpireInSerializer={_fromJsonObject(e){return{expiry:e.expiry}},_toJsonObject(e){return{expiry:e.expiry}}}),kr}var zr={},Eo;function ac(){return Eo||(Eo=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.ApiTokenInSerializer=void 0,zr.ApiTokenInSerializer={_fromJsonObject(e){return{name:e.name,scopes:e.scopes}},_toJsonObject(e){return{name:e.name,scopes:e.scopes}}}),zr}var Cr={},ko;function oc(){return ko||(ko=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.ApiTokenOutSerializer=void 0,Cr.ApiTokenOutSerializer={_fromJsonObject(e){return{createdAt:new Date(e.createdAt),expiresAt:e.expiresAt?new Date(e.expiresAt):null,id:e.id,name:e.name,scopes:e.scopes,token:e.token}},_toJsonObject(e){return{createdAt:e.createdAt,expiresAt:e.expiresAt,id:e.id,name:e.name,scopes:e.scopes,token:e.token}}}),Cr}var Ir={},Rr={},zo;function sc(){return zo||(zo=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.ApiTokenCensoredOutSerializer=void 0,Rr.ApiTokenCensoredOutSerializer={_fromJsonObject(e){return{censoredToken:e.censoredToken,createdAt:new Date(e.createdAt),expiresAt:e.expiresAt?new Date(e.expiresAt):null,id:e.id,name:e.name,scopes:e.scopes}},_toJsonObject(e){return{censoredToken:e.censoredToken,createdAt:e.createdAt,expiresAt:e.expiresAt,id:e.id,name:e.name,scopes:e.scopes}}}),Rr}var Co;function uc(){if(Co)return Ir;Co=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.ListResponseApiTokenCensoredOutSerializer=void 0;const e=sc();return Ir.ListResponseApiTokenCensoredOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.ApiTokenCensoredOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.ApiTokenCensoredOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Ir}var Io;function dc(){if(Io)return Er;
3Io=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.ManagementAuthentication=void 0;const e=ic(),t=ac(),a=oc(),c=uc(),l=V();class o{constructor(v){this.requestCtx=v}listApiTokens(v){const d=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/management/authentication/api-token");return d.setQueryParam("limit",v==null?void 0:v.limit),d.setQueryParam("iterator",v==null?void 0:v.iterator),d.setQueryParam("order",v==null?void 0:v.order),d.send(this.requestCtx,c.ListResponseApiTokenCensoredOutSerializer._fromJsonObject)}createApiToken(v,d){const i=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/management/authentication/api-token");return i.setHeaderParam("idempotency-key",d==null?void 0:d.idempotencyKey),i.setBody(t.ApiTokenInSerializer._toJsonObject(v)),i.send(this.requestCtx,a.ApiTokenOutSerializer._fromJsonObject)}expireApiToken(v,d,i){const n=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/management/authentication/api-token/{key_id}/expire");return n.setPathParam("key_id",v),n.setHeaderParam("idempotency-key",i==null?void 0:i.idempotencyKey),n.setBody(e.ApiTokenExpireInSerializer._toJsonObject(d)),n.sendNoResponseBody(this.requestCtx)}}return Er.ManagementAuthentication=o,Er}var Ro;function cc(){if(Ro)return xr;Ro=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.Management=void 0;const e=dc();class t{constructor(c){this.requestCtx=c}get authentication(){return new e.ManagementAuthentication(this.requestCtx)}}return xr.Management=t,xr}var me={},wr={},wo;function pc(){if(wo)return wr;wo=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.ExpungeAllContentsOutSerializer=void 0;const e=Oe(),t=ye();return wr.ExpungeAllContentsOutSerializer={_fromJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task)}},_toJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task)}}},wr}var Jr={},Jo;function fc(){if(Jo)return Jr;Jo=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.ListResponseMessageOutSerializer=void 0;const e=bn();return Jr.ListResponseMessageOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.MessageOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.MessageOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Jr}var Ar={},Ao;function lc(){if(Ao)return Ar;Ao=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.MessageInSerializer=void 0;const e=Vn();return Ar.MessageInSerializer={_fromJsonObject(t){return{application:t.application?e.ApplicationInSerializer._fromJsonObject(t.application):void 0,channels:t.channels,eventId:t.eventId,eventType:t.eventType,payload:t.payload,payloadRetentionHours:t.payloadRetentionHours,payloadRetentionPeriod:t.payloadRetentionPeriod,tags:t.tags,transformationsParams:t.transformationsParams}},_toJsonObject(t){return{application:t.application?e.ApplicationInSerializer._toJsonObject(t.application):void 0,channels:t.channels,eventId:t.eventId,eventType:t.eventType,payload:t.payload,payloadRetentionHours:t.payloadRetentionHours,payloadRetentionPeriod:t.payloadRetentionPeriod,tags:t.tags,transformationsParams:t.transformationsParams}}},Ar}var Mr={},jr={},Mo;function vc(){return Mo||(Mo=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.PollingEndpointConsumerSeekInSerializer=void 0,jr.PollingEndpointConsumerSeekInSerializer={_fromJsonObject(e){return{after:new Date(e.after)}},_toJsonObject(e){return{after:e.after}}}),jr}var Hr={},jo;function mc(){return jo||(jo=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.PollingEndpointConsumerSeekOutSerializer=void 0,Hr.PollingEndpointConsumerSeekOutSerializer={_fromJsonObject(e){return{iterator:e.iterator}},_toJsonObject(e){return{iterator:e.iterator}}}),Hr}var Lr={},Dr={},Ho;function gc(){return Ho||(Ho=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.PollingEndpointMessageOutSerializer=void 0,Dr.PollingEndpointMessageOutSerializer
3={_fromJsonObject(e){return{channels:e.channels,eventId:e.eventId,eventType:e.eventType,headers:e.headers,id:e.id,payload:e.payload,tags:e.tags,timestamp:new Date(e.timestamp)}},_toJsonObject(e){return{channels:e.channels,eventId:e.eventId,eventType:e.eventType,headers:e.headers,id:e.id,payload:e.payload,tags:e.tags,timestamp:e.timestamp}}}),Dr}var Lo;function hc(){if(Lo)return Lr;Lo=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.PollingEndpointOutSerializer=void 0;const e=gc();return Lr.PollingEndpointOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.PollingEndpointMessageOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator}},_toJsonObject(t){return{data:t.data.map(a=>e.PollingEndpointMessageOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator}}},Lr}var Do;function _c(){if(Do)return Mr;Do=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.MessagePoller=void 0;const e=vc(),t=mc(),a=hc(),c=V();class l{constructor(h){this.requestCtx=h}poll(h,v,d){const i=new c.SvixRequest(c.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}");return i.setPathParam("app_id",h),i.setPathParam("sink_id",v),i.setQueryParam("limit",d==null?void 0:d.limit),i.setQueryParam("iterator",d==null?void 0:d.iterator),i.setQueryParam("event_type",d==null?void 0:d.eventType),i.setQueryParam("channel",d==null?void 0:d.channel),i.setQueryParam("after",d==null?void 0:d.after),i.send(this.requestCtx,a.PollingEndpointOutSerializer._fromJsonObject)}consumerPoll(h,v,d,i){const n=new c.SvixRequest(c.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}");return n.setPathParam("app_id",h),n.setPathParam("sink_id",v),n.setPathParam("consumer_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.send(this.requestCtx,a.PollingEndpointOutSerializer._fromJsonObject)}consumerSeek(h,v,d,i,n){const u=new c.SvixRequest(c.HttpMethod.POST,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}/seek");return u.setPathParam("app_id",h),u.setPathParam("sink_id",v),u.setPathParam("consumer_id",d),u.setHeaderParam("idempotency-key",n==null?void 0:n.idempotencyKey),u.setBody(e.PollingEndpointConsumerSeekInSerializer._toJsonObject(i)),u.send(this.requestCtx,t.PollingEndpointConsumerSeekOutSerializer._fromJsonObject)}}return Mr.MessagePoller=l,Mr}var Uo;function Bo(){if(Uo)return me;Uo=1,Object.defineProperty(me,"__esModule",{value:!0}),me.messageInRaw=me.Message=void 0;const e=pc(),t=fc(),a=lc(),c=bn(),l=V(),o=_c();class h{constructor(i){this.requestCtx=i}get poller(){return new o.MessagePoller(this.requestCtx)}list(i,n){const u=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/msg");return u.setPathParam("app_id",i),u.setQueryParam("limit",n==null?void 0:n.limit),u.setQueryParam("iterator",n==null?void 0:n.iterator),u.setQueryParam("channel",n==null?void 0:n.channel),u.setQueryParam("before",n==null?void 0:n.before),u.setQueryParam("after",n==null?void 0:n.after),u.setQueryParam("with_content",n==null?void 0:n.withContent),u.setQueryParam("tag",n==null?void 0:n.tag),u.setQueryParam("event_types",n==null?void 0:n.eventTypes),u.send(this.requestCtx,t.ListResponseMessageOutSerializer._fromJsonObject)}create(i,n,u){const r=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/app/{app_id}/msg");return r.setPathParam("app_id",i),r.setQueryParam("with_content",u==null?void 0:u.withContent),r.setHeaderParam("idempotency-key",u==null?void 0:u.idempotencyKey),r.setBody(a.MessageInSerializer._toJsonObject(n)),r.send(this.requestCtx,c.MessageOutSerializer._fromJsonObject)}expungeAllContents(i,n){const u=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/app/{app_id}/msg/expunge-all-contents");return u.setPathParam("app_id",i),u.setHeaderParam("idempotency-key",n==null?void 0:n.idempotencyKey),u.send(this.requestCtx,e.ExpungeAllContentsOutSerializer._fromJsonObject)}get(i,n,u){const r=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}");return r.setPathParam("app_id",i),r.setPathParam("msg_id",n),r.setQueryParam("with_content",u==null?void 0:u.withContent),r.send(this.requestCtx,c.MessageOutSerializer._fromJsonObject)}expungeContent(i,n){const u=new l.SvixRequest(l.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/content");return u.setPathParam("app_id",i),u.setPathParam("msg_id",n),u.sendNoResponseBody(this.requestCtx)}}me.Message=h;function v(d,i,n){return{eventType:d,payload:{},transformationsParams:{rawPayload:i,headers:n?{"content-type":n}:void 0}}}return me.messageInRaw=v,me}var Ur={},Br={},Nr={},Ln={},No;function Sn(){return No||(No=1,function(e){Object.defineProperty(e,"__esMo
3dule",{value:!0}),e.MessageStatusSerializer=e.MessageStatus=void 0,function(t){t[t.Success=0]="Success",t[t.Pending=1]="Pending",t[t.Fail=2]="Fail",t[t.Sending=3]="Sending"}(e.MessageStatus||(e.MessageStatus={})),e.MessageStatusSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Ln)),Ln}var Fo;function Oc(){if(Fo)return Nr;Fo=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.EndpointMessageOutSerializer=void 0;const e=Sn();return Nr.EndpointMessageOutSerializer={_fromJsonObject(t){return{channels:t.channels,eventId:t.eventId,eventType:t.eventType,id:t.id,nextAttempt:t.nextAttempt?new Date(t.nextAttempt):null,payload:t.payload,status:e.MessageStatusSerializer._fromJsonObject(t.status),tags:t.tags,timestamp:new Date(t.timestamp)}},_toJsonObject(t){return{channels:t.channels,eventId:t.eventId,eventType:t.eventType,id:t.id,nextAttempt:t.nextAttempt,payload:t.payload,status:e.MessageStatusSerializer._toJsonObject(t.status),tags:t.tags,timestamp:t.timestamp}}},Nr}var Wo;function yc(){if(Wo)return Br;Wo=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.ListResponseEndpointMessageOutSerializer=void 0;const e=Oc();return Br.ListResponseEndpointMessageOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.EndpointMessageOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.EndpointMessageOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Br}var Fr={},Wr={},Dn={},Qo;function Us(){return Qo||(Qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MessageAttemptTriggerTypeSerializer=e.MessageAttemptTriggerType=void 0,function(t){t[t.Scheduled=0]="Scheduled",t[t.Manual=1]="Manual"}(e.MessageAttemptTriggerType||(e.MessageAttemptTriggerType={})),e.MessageAttemptTriggerTypeSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Dn)),Dn}var Vo;function Bs(){if(Vo)return Wr;Vo=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.MessageAttemptOutSerializer=void 0;const e=Us(),t=bn(),a=Sn();return Wr.MessageAttemptOutSerializer={_fromJsonObject(c){return{endpointId:c.endpointId,id:c.id,msg:c.msg?t.MessageOutSerializer._fromJsonObject(c.msg):void 0,msgId:c.msgId,response:c.response,responseDurationMs:c.responseDurationMs,responseStatusCode:c.responseStatusCode,status:a.MessageStatusSerializer._fromJsonObject(c.status),timestamp:new Date(c.timestamp),triggerType:e.MessageAttemptTriggerTypeSerializer._fromJsonObject(c.triggerType),url:c.url}},_toJsonObject(c){return{endpointId:c.endpointId,id:c.id,msg:c.msg?t.MessageOutSerializer._toJsonObject(c.msg):void 0,msgId:c.msgId,response:c.response,responseDurationMs:c.responseDurationMs,responseStatusCode:c.responseStatusCode,status:a.MessageStatusSerializer._toJsonObject(c.status),timestamp:c.timestamp,triggerType:e.MessageAttemptTriggerTypeSerializer._toJsonObject(c.triggerType),url:c.url}}},Wr}var Go;function bc(){if(Go)return Fr;Go=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.ListResponseMessageAttemptOutSerializer=void 0;const e=Bs();return Fr.ListResponseMessageAttemptOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.MessageAttemptOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.MessageAttemptOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Fr}var Qr={},Vr={},Ko;function Sc(){if(Ko)return Vr;Ko=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.MessageEndpointOutSerializer=void 0;const e=Sn();return Vr.MessageEndpointOutSerializer={_fromJsonObject(t){return{channels:t.channels,createdAt:new Date(t.createdAt),description:t.description,disabled:t.disabled,filterTypes:t.filterTypes,id:t.id,nextAttempt:t.nextAttempt?new Date(t.nextAttempt):null,rateLimit:t.rateLimit,status:e.MessageStatusSerializer._fromJsonObject(t.status),uid:t.uid,updatedAt:new Date(t.updatedAt),url:t.url,version:t.version}},_toJsonObject(t){return{channels:t.channels,createdAt:t.createdAt,description:t.description,disabled:t.disabled,filterTypes:t.filterTypes,id:t.id,nextAttempt:t.
3nextAttempt,rateLimit:t.rateLimit,status:e.MessageStatusSerializer._toJsonObject(t.status),uid:t.uid,updatedAt:t.updatedAt,url:t.url,version:t.version}}},Vr}var $o;function Pc(){if($o)return Qr;$o=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.ListResponseMessageEndpointOutSerializer=void 0;const e=Sc();return Qr.ListResponseMessageEndpointOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.MessageEndpointOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.MessageEndpointOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},Qr}var Zo;function qc(){if(Zo)return Ur;Zo=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.MessageAttempt=void 0;const e=yc(),t=bc(),a=Pc(),c=Bs(),l=V();class o{constructor(v){this.requestCtx=v}listByEndpoint(v,d,i){const n=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}");return n.setPathParam("app_id",v),n.setPathParam("endpoint_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.setQueryParam("status",i==null?void 0:i.status),n.setQueryParam("status_code_class",i==null?void 0:i.statusCodeClass),n.setQueryParam("channel",i==null?void 0:i.channel),n.setQueryParam("tag",i==null?void 0:i.tag),n.setQueryParam("before",i==null?void 0:i.before),n.setQueryParam("after",i==null?void 0:i.after),n.setQueryParam("with_content",i==null?void 0:i.withContent),n.setQueryParam("with_msg",i==null?void 0:i.withMsg),n.setQueryParam("event_types",i==null?void 0:i.eventTypes),n.send(this.requestCtx,t.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listByMsg(v,d,i){const n=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/msg/{msg_id}");return n.setPathParam("app_id",v),n.setPathParam("msg_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.setQueryParam("status",i==null?void 0:i.status),n.setQueryParam("status_code_class",i==null?void 0:i.statusCodeClass),n.setQueryParam("channel",i==null?void 0:i.channel),n.setQueryParam("tag",i==null?void 0:i.tag),n.setQueryParam("endpoint_id",i==null?void 0:i.endpointId),n.setQueryParam("before",i==null?void 0:i.before),n.setQueryParam("after",i==null?void 0:i.after),n.setQueryParam("with_content",i==null?void 0:i.withContent),n.setQueryParam("event_types",i==null?void 0:i.eventTypes),n.send(this.requestCtx,t.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listAttemptedMessages(v,d,i){const n=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg");return n.setPathParam("app_id",v),n.setPathParam("endpoint_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.setQueryParam("channel",i==null?void 0:i.channel),n.setQueryParam("tag",i==null?void 0:i.tag),n.setQueryParam("status",i==null?void 0:i.status),n.setQueryParam("before",i==null?void 0:i.before),n.setQueryParam("after",i==null?void 0:i.after),n.setQueryParam("with_content",i==null?void 0:i.withContent),n.setQueryParam("event_types",i==null?void 0:i.eventTypes),n.send(this.requestCtx,e.ListResponseEndpointMessageOutSerializer._fromJsonObject)}get(v,d,i){const n=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}");return n.setPathParam("app_id",v),n.setPathParam("msg_id",d),n.setPathParam("attempt_id",i),n.send(this.requestCtx,c.MessageAttemptOutSerializer._fromJsonObject)}expungeContent(v,d,i){const n=new l.SvixRequest(l.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content");return n.setPathParam("app_id",v),n.setPathParam("msg_id",d),n.setPathParam("attempt_id",i),n.sendNoResponseBody(this.requestCtx)}listAttemptedDestinations(v,d,i){const n=new l.SvixRequest(l.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint");return n.setPathParam("app_id",v),n.setPathParam("msg_id",d),n.setQueryParam("limit",i==null?void 0:i.limit),n.setQueryParam("iterator",i==null?void 0:i.iterator),n.send(this.requestCtx,a.ListResponseMessageEndpointOutSerializer._fromJsonObject)}resend(v,d,i,n){const u=new l.SvixRequest(l.HttpMethod.POST,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend");return u.setPathParam("app_id",v),u.setPathParam("msg_id",d),u.setPathParam("endpoint_id",i),u.setHeaderParam("idempotency-key",n==null?void 0:n.idempotencyKey),u.sendNoResponseBody(this.requestCtx)}}return Ur.MessageAttempt=o,Ur}var Gr={},Kr={},$r={},Zr={},Xo;
3function Ns(){return Xo||(Xo=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.OperationalWebhookEndpointOutSerializer=void 0,Zr.OperationalWebhookEndpointOutSerializer={_fromJsonObject(e){return{createdAt:new Date(e.createdAt),description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:new Date(e.updatedAt),url:e.url}},_toJsonObject(e){return{createdAt:e.createdAt,description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,id:e.id,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,updatedAt:e.updatedAt,url:e.url}}}),Zr}var Yo;function Tc(){if(Yo)return $r;Yo=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.ListResponseOperationalWebhookEndpointOutSerializer=void 0;const e=Ns();return $r.ListResponseOperationalWebhookEndpointOutSerializer={_fromJsonObject(t){return{data:t.data.map(a=>e.OperationalWebhookEndpointOutSerializer._fromJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}},_toJsonObject(t){return{data:t.data.map(a=>e.OperationalWebhookEndpointOutSerializer._toJsonObject(a)),done:t.done,iterator:t.iterator,prevIterator:t.prevIterator}}},$r}var Xr={},es;function xc(){return es||(es=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.OperationalWebhookEndpointHeadersInSerializer=void 0,Xr.OperationalWebhookEndpointHeadersInSerializer={_fromJsonObject(e){return{headers:e.headers}},_toJsonObject(e){return{headers:e.headers}}}),Xr}var Yr={},ts;function Ec(){return ts||(ts=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.OperationalWebhookEndpointHeadersOutSerializer=void 0,Yr.OperationalWebhookEndpointHeadersOutSerializer={_fromJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}},_toJsonObject(e){return{headers:e.headers,sensitive:e.sensitive}}}),Yr}var en={},rs;function kc(){return rs||(rs=1,Object.defineProperty(en,"__esModule",{value:!0}),en.OperationalWebhookEndpointInSerializer=void 0,en.OperationalWebhookEndpointInSerializer={_fromJsonObject(e){return{description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url}},_toJsonObject(e){return{description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,secret:e.secret,uid:e.uid,url:e.url}}}),en}var tn={},ns;function zc(){return ns||(ns=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.OperationalWebhookEndpointSecretInSerializer=void 0,tn.OperationalWebhookEndpointSecretInSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),tn}var rn={},is;function Cc(){return is||(is=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.OperationalWebhookEndpointSecretOutSerializer=void 0,rn.OperationalWebhookEndpointSecretOutSerializer={_fromJsonObject(e){return{key:e.key}},_toJsonObject(e){return{key:e.key}}}),rn}var nn={},as;function Ic(){return as||(as=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.OperationalWebhookEndpointUpdateSerializer=void 0,nn.OperationalWebhookEndpointUpdateSerializer={_fromJsonObject(e){return{description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url}},_toJsonObject(e){return{description:e.description,disabled:e.disabled,filterTypes:e.filterTypes,metadata:e.metadata,rateLimit:e.rateLimit,uid:e.uid,url:e.url}}}),nn}var os;function Fs(){if(os)return Kr;
3os=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.OperationalWebhookEndpoint=void 0;const e=Tc(),t=xc(),a=Ec(),c=kc(),l=Ns(),o=zc(),h=Cc(),v=Ic(),d=V();class i{constructor(u){this.requestCtx=u}list(u){const r=new d.SvixRequest(d.HttpMethod.GET,"/api/v1/operational-webhook/endpoint");return r.setQueryParam("limit",u==null?void 0:u.limit),r.setQueryParam("iterator",u==null?void 0:u.iterator),r.setQueryParam("order",u==null?void 0:u.order),r.send(this.requestCtx,e.ListResponseOperationalWebhookEndpointOutSerializer._fromJsonObject)}create(u,r){const s=new d.SvixRequest(d.HttpMethod.POST,"/api/v1/operational-webhook/endpoint");return s.setHeaderParam("idempotency-key",r==null?void 0:r.idempotencyKey),s.setBody(c.OperationalWebhookEndpointInSerializer._toJsonObject(u)),s.send(this.requestCtx,l.OperationalWebhookEndpointOutSerializer._fromJsonObject)}get(u){const r=new d.SvixRequest(d.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return r.setPathParam("endpoint_id",u),r.send(this.requestCtx,l.OperationalWebhookEndpointOutSerializer._fromJsonObject)}update(u,r){const s=new d.SvixRequest(d.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return s.setPathParam("endpoint_id",u),s.setBody(v.OperationalWebhookEndpointUpdateSerializer._toJsonObject(r)),s.send(this.requestCtx,l.OperationalWebhookEndpointOutSerializer._fromJsonObject)}delete(u){const r=new d.SvixRequest(d.HttpMethod.DELETE,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return r.setPathParam("endpoint_id",u),r.sendNoResponseBody(this.requestCtx)}getHeaders(u){const r=new d.SvixRequest(d.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return r.setPathParam("endpoint_id",u),r.send(this.requestCtx,a.OperationalWebhookEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,r){const s=new d.SvixRequest(d.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return s.setPathParam("endpoint_id",u),s.setBody(t.OperationalWebhookEndpointHeadersInSerializer._toJsonObject(r)),s.sendNoResponseBody(this.requestCtx)}getSecret(u){const r=new d.SvixRequest(d.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret");return r.setPathParam("endpoint_id",u),r.send(this.requestCtx,h.OperationalWebhookEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,r,s){const p=new d.SvixRequest(d.HttpMethod.POST,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate");return p.setPathParam("endpoint_id",u),p.setHeaderParam("idempotency-key",s==null?void 0:s.idempotencyKey),p.setBody(o.OperationalWebhookEndpointSecretInSerializer._toJsonObject(r)),p.sendNoResponseBody(this.requestCtx)}}return Kr.OperationalWebhookEndpoint=i,Kr}var ss;function Rc(){if(ss)return Gr;ss=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.OperationalWebhook=void 0;const e=Fs();class t{constructor(c){this.requestCtx=c}get endpoint(){return new e.OperationalWebhookEndpoint(this.requestCtx)}}return Gr.OperationalWebhook=t,Gr}var an={},on={},us;function wc(){if(us)return on;us=1,Object.defineProperty(on,"__esModule",{value:!0}),on.AggregateEventTypesOutSerializer=void 0;const e=Oe(),t=ye();return on.AggregateEventTypesOutSerializer={_fromJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task)}},_toJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task)}}},on}var sn={},ds;function Jc(){return ds||(ds=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.AppUsageStatsInSerializer=void 0,sn.AppUsageStatsInSerializer={_fromJsonObject(e){return{appIds:e.appIds,since:new Date(e.since),until:new Date(e.until)}},_toJsonObject(e){return{appIds:e.appIds,since:e.since,until:e.until}}}),sn}var un={},cs;function Ac(){if(cs)return un;cs=1,Object.defineProperty(un,"__esModule",{value:!0}),un.AppUsageStatsOutSerializer=void 0;const e=Oe(),t=ye();return un.AppUsageStatsOutSerializer={_fromJsonObject(a){return{id:a.id,status:e.Backgroun
3dTaskStatusSerializer._fromJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._fromJsonObject(a.task),unresolvedAppIds:a.unresolvedAppIds}},_toJsonObject(a){return{id:a.id,status:e.BackgroundTaskStatusSerializer._toJsonObject(a.status),task:t.BackgroundTaskTypeSerializer._toJsonObject(a.task),unresolvedAppIds:a.unresolvedAppIds}}},un}var ps;function Mc(){if(ps)return an;ps=1,Object.defineProperty(an,"__esModule",{value:!0}),an.Statistics=void 0;const e=wc(),t=Jc(),a=Ac(),c=V();class l{constructor(h){this.requestCtx=h}aggregateAppStats(h,v){const d=new c.SvixRequest(c.HttpMethod.POST,"/api/v1/stats/usage/app");return d.setHeaderParam("idempotency-key",v==null?void 0:v.idempotencyKey),d.setBody(t.AppUsageStatsInSerializer._toJsonObject(h)),d.send(this.requestCtx,a.AppUsageStatsOutSerializer._fromJsonObject)}aggregateEventTypes(){return new c.SvixRequest(c.HttpMethod.PUT,"/api/v1/stats/usage/event-types").send(this.requestCtx,e.AggregateEventTypesOutSerializer._fromJsonObject)}}return an.Statistics=l,an}var oe={},fs;function jc(){if(fs)return oe;fs=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.HTTPValidationError=oe.ValidationError=oe.HttpErrorOut=void 0;class e{static getAttributeTypeMap(){return e.attributeTypeMap}}oe.HttpErrorOut=e,e.discriminator=void 0,e.mapping=void 0,e.attributeTypeMap=[{name:"code",baseName:"code",type:"string",format:""},{name:"detail",baseName:"detail",type:"string",format:""}];class t{static getAttributeTypeMap(){return t.attributeTypeMap}}oe.ValidationError=t,t.discriminator=void 0,t.mapping=void 0,t.attributeTypeMap=[{name:"loc",baseName:"loc",type:"Array<string>",format:""},{name:"msg",baseName:"msg",type:"string",format:""},{name:"type",baseName:"type",type:"string",format:""}];class a{static getAttributeTypeMap(){return a.attributeTypeMap}}return oe.HTTPValidationError=a,a.discriminator=void 0,a.mapping=void 0,a.attributeTypeMap=[{name:"detail",baseName:"detail",type:"Array<ValidationError>",format:""}],oe}var ge={},dn={},ls;function Hc(){if(ls)return dn;ls=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.timingSafeEqual=void 0;function e(a,c=""){if(!a)throw new Error(c)}function t(a,c){if(a.byteLength!==c.byteLength)return!1;a instanceof DataView||(a=new DataView(ArrayBuffer.isView(a)?a.buffer:a)),c instanceof DataView||(c=new DataView(ArrayBuffer.isView(c)?c.buffer:c)),e(a instanceof DataView),e(c instanceof DataView);const l=a.byteLength;let o=0,h=-1;for(;++h<l;)o|=a.getUint8(h)^c.getUint8(h);return o===0}return dn.timingSafeEqual=t,dn}var $={},vs;function Lc(){if(vs)return $;vs=1;var e=$&&$.__extends||function(){var n=function(u,r){return n=Object.
3setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,p){s.__proto__=p}||function(s,p){for(var f in p)p.hasOwnProperty(f)&&(s[f]=p[f])},n(u,r)};return function(u,r){n(u,r);function s(){this.constructor=u}u.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty($,"__esModule",{value:!0});var t=256,a=function(){function n(u){u===void 0&&(u="="),this._paddingCharacter=u}return n.prototype.encodedLength=function(u){return this._paddingCharacter?(u+2)/3*4|0:(u*8+5)/6|0},n.prototype.encode=function(u){for(var r="",s=0;s<u.length-2;s+=3){var p=u[s]<<16|u[s+1]<<8|u[s+2];r+=this._encodeByte(p>>>3*6&63),r+=this._encodeByte(p>>>2*6&63),r+=this._encodeByte(p>>>1*6&63),r+=this._encodeByte(p>>>0*6&63)}var f=u.length-s;if(f>0){var p=u[s]<<16|(f===2?u[s+1]<<8:0);r+=this._encodeByte(p>>>3*6&63),r+=this._encodeByte(p>>>2*6&63),f===2?r+=this._encodeByte(p>>>1*6&63):r+=this._paddingCharacter||"",r+=this._paddingCharacter||""}return r},n.prototype.maxDecodedLength=function(u){return this._paddingCharacter?u/4*3|0:(u*6+7)/8|0},n.prototype.decodedLength=function(u){return this.maxDecodedLength(u.length-this._getPaddingLength(u))},n.prototype.decode=function(u){if(u.length===0)return new Uint8Array(0);for(var r=this._getPaddingLength(u),s=u.length-r,p=new Uint8Array(this.maxDecodedLength(s)),f=0,m=0,g=0,_=0,b=0,w=0,I=0;m<s-4;m+=4)_=this._decodeChar(u.charCodeAt(m+0)),b=this._decodeChar(u.charCodeAt(m+1)),w=this._decodeChar(u.charCodeAt(m+2)),I=this._decodeChar(u.charCodeAt(m+3)),p[f++]=_<<2|b>>>4,p[f++]=b<<4|w>>>2,p[f++]=w<<6|I,g|=_&t,g|=b&t,g|=w&t,g|=I&t;if(m<s-1&&(_=this._decodeChar(u.charCodeAt(m)),b=this._decodeChar(u.charCodeAt(m+1)),p[f++]=_<<2|b>>>4,g|=_&t,g|=b&t),m<s-2&&(w=this._decodeChar(u.charCodeAt(m+2)),p[f++]=b<<4|w>>>2,g|=w&t),m<s-3&&(I=this._decodeChar(u.charCodeAt(m+3)),p[f++]=w<<6|I,g|=I&t),g!==0)throw new Error("Base64Coder: incorrect characters for decoding");return p},n.prototype._encodeByte=function(u){var r=u;return r+=65,r+=25-u>>>8&6,r+=51-u>>>8&-75,r+=61-u>>>8&-15,r+=62-u>>>8&3,String.fromCharCode(r)},n.prototype._decodeChar=function(u){var r=t;return r+=(42-u&u-44)>>>8&-256+u-43+62,r+=(46-u&u-48)>>>8&-256+u-47+63,r+=(47-u&u-58)>>>8&-256+u-48+52,r+=(64-u&u-91)>>>8&-256+u-65+0,r+=(96-u&u-123)>>>8&-256+u-97+26,r},n.prototype._getPaddingLength=function(u){var r=0;if(this._paddingCharacter){for(var s=u.length-1;s>=0&&u[s]===this._paddingCharacter;s--)r++;if(u.length<4||r>2)throw new Error("Base64Coder: incorrect padding")}return r},n}();$.Coder=a;var c=new a;function l(n){return c.encode(n)}$.encode=l;function o(n){return c.decode(n)}$.decode=o;var h=function(n){e(u,n);function u(){return n!==null&&n.apply(this,arguments)||this}return u.prototype._encodeByte=function(r){var s=r;return s+=65,s+=25-r>>>8&6,s+=51-r>>>8&-75,s+=61-r>>>8&-13,s+=62-r>>>8&49,String.fromCharCode(s)},u.prototype._decodeChar=function(r){var s=t;return s+=(44-r&r-46)>>>8&-256+r-45+62,s+=(94-r&r-96)>>>8&-256+r-95+63,s+=(47-r&r-58)>>>8&-256+r-48+52,s+=(64-r&r-91)>>>8&-256+r-65+0,s+=(96-r&r-123)>>>8&-256+r-97+26,s},u}(a);$.URLSafeCoder=h;var v=new h;function d(n){return v.encode(n)}$.encodeURLSafe=d;function i(n){return v.decode(n)}return $.decodeURLSafe=i,$.encodedLength=function(n){return c.encodedLength(n)},$.maxDecodedLength=function(n){return c.maxDecodedLength(n)},$.decodedLength=function(n){return c.decodedLength(n)},$}var hn={exports:{}},Dc=hn.exports,ms;function Uc(){return ms||(ms=1,function(e){(function(t,a){var c={};a(c);var l=c.default;for(var o in c)l[o]=c[o];e.exports=l})(Dc,function(t){t.__esModule=!0,t.digestLength=32,t.blockSize=64;var a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
3734187,3204031479,3329325298]);function c(r,s,p,f,m){for(var g,_,b,w,I,y,q,S,P,E,U,X,ee;m>=64;){for(g=s[0],_=s[1],b=s[2],w=s[3],I=s[4],y=s[5],q=s[6],S=s[7],E=0;E<16;E++)U=f+E*4,r[E]=(p[U]&255)<<24|(p[U+1]&255)<<16|(p[U+2]&255)<<8|p[U+3]&255;for(E=16;E<64;E++)P=r[E-2],X=(P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10,P=r[E-15],ee=(P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3,r[E]=(X+r[E-7]|0)+(ee+r[E-16]|0);for(E=0;E<64;E++)X=(((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&y^~I&q)|0)+(S+(a[E]+r[E]|0)|0)|0,ee=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&_^g&b^_&b)|0,S=q,q=y,y=I,I=w+X|0,w=b,b=_,_=g,g=X+ee|0;s[0]+=g,s[1]+=_,s[2]+=b,s[3]+=w,s[4]+=I,s[5]+=y,s[6]+=q,s[7]+=S,f+=64,m-=64}return f}var l=function(){function r(){this.digestLength=t.digestLength,this.blockSize=t.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return r.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},r.prototype.clean=function(){for(var s=0;s<this.buffer.length;s++)this.buffer[s]=0;for(var s=0;s<this.temp.length;s++)this.temp[s]=0;this.reset()},r.prototype.update=function(s,p){if(p===void 0&&(p=s.length),this.finished)throw new Error("SHA256: can't update because hash was finished.");var f=0;if(this.bytesHashed+=p,this.bufferLength>0){for(;this.bufferLength<64&&p>0;)this.buffer[this.bufferLength++]=s[f++],p--;this.bufferLength===64&&(c(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(p>=64&&(f=c(this.temp,this.state,s,f,p),p%=64);p>0;)this.buffer[this.bufferLength++]=s[f++],p--;return this},r.prototype.finish=function(s){if(!this.finished){var p=this.bytesHashed,f=this.bufferLength,m=p/536870912|0,g=p<<3,_=p%64<56?64:128;this.buffer[f]=128;for(var b=f+1;b<_-8;b++)this.buffer[b]=0;this.buffer[_-8]=m>>>24&255,this.buffer[_-7]=m>>>16&255,this.buffer[_-6]=m>>>8&255,this.buffer[_-5]=m>>>0&255,this.buffer[_-4]=g>>>24&255,this.buffer[_-3]=g>>>16&255,this.buffer[_-2]=g>>>8&255,this.buffer[_-1]=g>>>0&255,c(this.temp,this.state,this.buffer,0,_),this.finished=!0}for(var b=0;b<8;b++)s[b*4+0]=this.state[b]>>>24&255,s[b*4+1]=this.state[b]>>>16&255,s[b*4+2]=this.state[b]>>>8&255,s[b*4+3]=this.state[b]>>>0&255;return this},r.prototype.digest=function(){var s=new Uint8Array(this.digestLength);return this.finish(s),s},r.prototype._saveState=function(s){for(var p=0;p<this.state.length;p++)s[p]=this.state[p]},r.prototype._restoreState=function(s,p){for(var f=0;f<this.state.length;f++)this.state[f]=s[f];this.bytesHashed=p,this.finished=!1,this.bufferLength=0},r}();t.Hash=l;var o=function(){function r(s){this.inner=new l,this.outer=new l,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var p=new Uint8Array(this.blockSize);if(s.length>this.blockSize)new l().update(s).finish(p).clean();else for(var f=0;f<s.length;f++)p[f]=s[f];for(var f=0;f<p.length;f++)p[f]^=54;this.inner.update(p);for(var f=0;f<p.length;f++)p[f]^=106;this.outer.update(p),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var f=0;f<p.length;f++)p[f]=0}return r.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},r.prototype.clean=function(){for(var s=0;s<this.istate.length;s++)this.ostate[s]=this.istate[s]=0;this.inner.clean(),this.outer.clean()},r.prototype.update=function(s){return this.inner.update(s),this},r.prototype.finish=function(s){return this.outer.finished?this.outer.finish(s):(this.inner.finish(s),this.outer.update(s,this.digestLength).finish(s)),this},r.prototype.digest=function(){var s=new Uint8Array(this.digestLength);return this.finish(s),s},r}();t.HMAC=o;function h(r){var s=new l().update(r),p=s.digest();return s.clean(),p}t.hash=h,t.default=h;function v(r,s){var p=new o(r).update(s),f=p.digest();return p.clean(),f}t.hmac=v;function d(r,s,p,f){var m=f[0];if(m===0)throw new Error("hkdf: cannot expand more");s.reset(),m>1&&s.update(r),p&&s.update(p),s.update(f),s.finish(r),f[0]++}var i=new Uint8Array(t.digestLength);function n(r,s,p,f){s===void 0&&(s=i),f===void 0&&(f=32);for(var m=new Uint8Array([1]),g=v(s,r),_=new o(g),b=new Uint8Array(_.digestLength),w=b.length,I=new Uint8Array(f),y=0;y<f;y++)w===b.length&&(d(b,_,p,m),w=0),I[y]=b[w++];return _.clean(),b.fill(0),m.fill(0),I}t.hkdf=n;function u(r,s,p,f){for(var m=new o(r),g=m.digestLength,_=new Uint8Array(4),b=new Uint8Array(g),w=new Uint8Array(g),I=new Uint8Array(f),y=0;y*g<f;y++){var q=y+1;_[0]=q>>>24&255,_[1]=q>>>16&255,_[2]=q>>>8&255,_[3]=q>>>0&255,m.reset(),m.update(s),m.update(_),m.finish(w);for(var S=0;S<g;S++)b[S]=w[S];for(var S=2;S<=p;S++){m.reset(),m.update(w).finish(w);for(var P=0;P<g;P++)b[P]^=w[P]}for(var S=0;S<g&&y*g+S<f;S++)I[y*g+S]=b[S]}for(var y=0;y<g;y++)b[y]=w[y]=0;for(var y=0;y<4;y++)_[y]=0;return m.clean(),I}t.pbkdf2=u})}(hn)),hn.exports}var gs;function Bc(){if(gs)return ge;
3gs=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.Webhook=ge.WebhookVerificationError=void 0;const e=Hc(),t=Lc(),a=Uc(),c=5*60;class l extends Error{constructor(d){super(d),Object.setPrototypeOf(this,l.prototype),this.name="ExtendableError",this.stack=new Error(d).stack}}class o extends l{constructor(d){super(d),Object.setPrototypeOf(this,o.prototype),this.name="WebhookVerificationError"}}ge.WebhookVerificationError=o;class h{constructor(d,i){if(!d)throw new Error("Secret can't be empty.");if((i==null?void 0:i.format)==="raw")d instanceof Uint8Array?this.key=d:this.key=Uint8Array.from(d,n=>n.charCodeAt(0));else{if(typeof d!="string")throw new Error("Expected secret to be of type string");d.startsWith(h.prefix)&&(d=d.substring(h.prefix.length)),this.key=t.decode(d)}}verify(d,i){const n={};for(const b of Object.keys(i))n[b.toLowerCase()]=i[b];let u=n["svix-id"],r=n["svix-signature"],s=n["svix-timestamp"];if((!r||!u||!s)&&(u=n["webhook-id"],r=n["webhook-signature"],s=n["webhook-timestamp"],!r||!u||!s))throw new o("Missing required headers");const p=this.verifyTimestamp(s),m=this.sign(u,p,d).split(",")[1],g=r.split(" "),_=new globalThis.TextEncoder;for(const b of g){const[w,I]=b.split(",");if(w==="v1"&&(0,e.timingSafeEqual)(_.encode(I),_.encode(m)))return JSON.parse(d.toString())}throw new o("No matching signature found")}sign(d,i,n){if(typeof n!="string")if(n.constructor.name==="Buffer")n=n.toString();else throw new Error("Expected payload to be of type string or Buffer. Please refer to https://docs.svix.com/receiving/verifying-payloads/how for more information.");const u=new TextEncoder,r=Math.floor(i.getTime()/1e3),s=u.encode(`${d}.${r}.${n}`);return`v1,${t.encode(a.hmac(this.key,s))}`}verifyTimestamp(d){const i=Math.floor(Date.now()/1e3),n=parseInt(d,10);if(isNaN(n))throw new o("Invalid Signature Headers");if(i-n>c)throw new o("Message timestamp too old");if(n>i+c)throw new o("Message timestamp too new");return new Date(n*1e3)}}return ge.Webhook=h,h.prefix="whsec_",ge}var Un={},Bn={},hs;function Nc(){return hs||(hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EndpointDisabledTriggerSerializer=e.EndpointDisabledTrigger=void 0,function(t){t.Manual="manual",t.Automatic="automatic"}(e.EndpointDisabledTrigger||(e.EndpointDisabledTrigger={})),e.EndpointDisabledTriggerSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Bn)),Bn}var Nn={},_s;function Fc(){return _s||(_s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OrderingSerializer=e.Ordering=void 0,function(t){t.Ascending="ascending",t.Descending="descending"}(e.Ordering||(e.Ordering={})),e.OrderingSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Nn)),Nn}var Fn={},Os;function Wc(){return Os||(Os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatusCodeClassSerializer=e.StatusCodeClass=void 0,function(t){t[t.CodeNone=0]="CodeNone",t[t.Code1xx=100]="Code1xx",t[t.Code2xx=200]="Code2xx",t[t.Code3xx=300]="Code3xx",t[t.Code4xx=400]="Code4xx",t[t.Code5xx=500]="Code5xx"}(e.StatusCodeClass||(e.StatusCodeClass={})),e.StatusCodeClassSerializer={_fromJsonObject(t){return t},_toJsonObject(t){return t}}}(Fn)),Fn}var ys;function Qc(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatusCodeClass=e.Ordering=e.MessageStatus=e.MessageAttemptTriggerType=e.EndpointDisabledTrigger=e.ConnectorKind=e.BackgroundTaskType=e.BackgroundTaskStatus=void 0;var t=Oe();Object.defineProperty(e,"BackgroundTaskStatus",{enumerable:!0,get:function(){return t.BackgroundTaskStatus}});var a=ye();Object.defineProperty(e,"BackgroundTaskType",{enumerable:!0,get:function(){return a.BackgroundTaskType}});var c=Zn();Object.defineProperty(e,"ConnectorKind",{enumerable:!0,get:function(){return c.ConnectorKind}});var l=Nc();Object.defineProperty(e,"EndpointDisabledTrigger",{enumerable:!0,get:function(){return l.EndpointDisabledTrigger}});var o=Us();Object.defineProperty(e,"MessageAttemptTriggerType",{enumerable:!0,get:function(){return o.MessageAttemptTriggerType}});var h=Sn();Object.defineProperty(e,"MessageStatus",{enumerable:!0,get:function(){return h.MessageStatus}});var v=Fc();Object.defineProperty(e,"Ordering",{enumerable:!0,get:function(){return v.Ordering}});var d=Wc();Object.defineProperty(e,"StatusCodeClass",{enumerable:!0,get:function(){return d.StatusCodeClass}})}(Un)),Un}var bs;function Vc(){return bs||(bs=1,function(e){var t=ve&&ve.__createBinding||(Object.create?function(q,S,P,E){E===void 0&&(E=P);var U=Object.getOwnPropertyDescriptor(S,P);(!U||("get"in U?!S.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return S[P]}}),Object.defineProperty(q,E,U)}:function(q,S,P,E){E===void 0&&(E=P),q[E]=S[P]}),a=ve&&ve.__exportStar||function(q,S){for(var P in q)P!=="default"&&!Object.prototype.hasOwnProperty.call(S,P)&&t(S,q,P)};
3Object.defineProperty(e,"__esModule",{value:!0}),e.Svix=e.messageInRaw=e.ValidationError=e.HttpErrorOut=e.HTTPValidationError=e.ApiException=void 0;const c=Ru(),l=Mu(),o=Hu(),h=rd(),v=sd(),d=md(),i=gd(),n=Xd(),u=nc(),r=cc(),s=Bo(),p=qc(),f=Rc(),m=Fs(),g=Mc();var _=zs();Object.defineProperty(e,"ApiException",{enumerable:!0,get:function(){return _.ApiException}});var b=jc();Object.defineProperty(e,"HTTPValidationError",{enumerable:!0,get:function(){return b.HTTPValidationError}}),Object.defineProperty(e,"HttpErrorOut",{enumerable:!0,get:function(){return b.HttpErrorOut}}),Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return b.ValidationError}}),a(Bc(),e),a(Qc(),e);var w=Bo();Object.defineProperty(e,"messageInRaw",{enumerable:!0,get:function(){return w.messageInRaw}});const I=[{region:"us",url:"https://api.us.svix.com"},{region:"eu",url:"https://api.eu.svix.com"},{region:"in",url:"https://api.in.svix.com"},{region:"ca",url:"https://api.ca.svix.com"},{region:"au",url:"https://api.au.svix.com"}];class y{constructor(S,P={}){var E,U,X;const ee=(E=I.find(pn=>pn.region===S.split(".")[1]))===null||E===void 0?void 0:E.url,cn=(X=(U=P.serverUrl)!==null&&U!==void 0?U:ee)!==null&&X!==void 0?X:"https://api.svix.com";this.requestCtx={baseUrl:cn,token:S,timeout:P.requestTimeout}}get application(){return new c.Application(this.requestCtx)}get authentication(){return new l.Authentication(this.requestCtx)}get backgroundTask(){return new o.BackgroundTask(this.requestCtx)}get endpoint(){return new h.Endpoint(this.requestCtx)}get environment(){return new v.Environment(this.requestCtx)}get eventType(){return new d.EventType(this.requestCtx)}get health(){return new i.Health(this.requestCtx)}get ingest(){return new n.Ingest(this.requestCtx)}get integration(){return new u.Integration(this.requestCtx)}get management(){return new r.Management(this.requestCtx)}get message(){return new s.Message(this.requestCtx)}get messageAttempt(){return new p.MessageAttempt(this.requestCtx)}get operationalWebhook(){return new f.OperationalWebhook(this.requestCtx)}get statistics(){return new g.Statistics(this.requestCtx)}get operationalWebhookEndpoint(){return new m.OperationalWebhookEndpoint(this.requestCtx)}}e.Svix=y}(ve)),ve}Vc();function Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ws={exports:{}},Wn,Ss;function Kc(){if(Ss)return Wn;Ss=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wn=e,Wn}var Qn,Ps;function $c(){if(Ps)return Qn;Ps=1;var e=Kc();function t(){}function a(){}return a.resetWarningCache=t,Qn=function(){function c(h,v,d,i,n,u){if(u!==e){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}c.isRequired=c;function l(){return c}var o={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:l,element:c,elementType:c,instanceOf:l,node:c,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},Qn}Ws.exports=$c()();var Zc=Ws.exports;const Xc=Gc(Zc);function _n(){return _n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}return e},_n.apply(this,arguments)}function Qs(e,t){if(e==null)return{};var a={},c=Object.keys(e),l,o;for(o=0;o<c.length;o++)l=c[o],!(t.indexOf(l)>=0)&&(a[l]=e[l]);return a}function Yc(e,t){return t={exports:{}},e(t,t.exports),t.exports}var ep=Yc(function(e){(function(t){if(typeof window>"u")return;var a=0,c=!1,l=!1,o="message",h=o.length,v="[iFrameSizer]",d=v.length,i=null,n=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},r={},s=null,p={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){S("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}};function f(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function m(O,T,J){O.addEventListener(T,J,!1)}function g(O,T,J){O.removeEventListener(T,J,!1)}function _(){var O=["moz","webkit","o","ms"],T;
3for(T=0;T<O.length&&!n;T+=1)n=window[O[T]+"RequestAnimationFrame"];n?n=n.bind(window):y("setup","RequestAnimationFrame not supported")}function b(O){var T="Host page: "+O;return window.top!==window.self&&(window.parentIFrame&&window.parentIFrame.getId?T=window.parentIFrame.getId()+": "+O:T="Nested host page: "+O),T}function w(O){return v+"["+b(O)+"]"}function I(O){return r[O]?r[O].log:c}function y(O,T){P("log",O,T,I(O))}function q(O,T){P("info",O,T,I(O))}function S(O,T){P("warn",O,T,!0)}function P(O,T,J,k){k===!0&&typeof window.console=="object"&&console[O](w(T),J)}function E(O){function T(){function x(){ri(H),pn(R),le("onResized",H)}j("Height"),j("Width"),ni(x,H,"init")}function J(){var x=Y.substr(d).split(":"),A=x[1]?parseInt(x[1],10):0,D=r[x[0]]&&r[x[0]].iframe,L=getComputedStyle(D);return{iframe:D,id:x[0],height:A+k(L)+M(L),width:x[2],type:x[3]}}function k(x){if(x.boxSizing!=="border-box")return 0;var A=x.paddingTop?parseInt(x.paddingTop,10):0,D=x.paddingBottom?parseInt(x.paddingBottom,10):0;return A+D}function M(x){if(x.boxSizing!=="border-box")return 0;var A=x.borderTopWidth?parseInt(x.borderTopWidth,10):0,D=x.borderBottomWidth?parseInt(x.borderBottomWidth,10):0;return A+D}function j(x){var A=Number(r[R]["max"+x]),D=Number(r[R]["min"+x]),L=x.toLowerCase(),W=Number(H[L]);y(R,"Checking "+L+" is in range "+D+"-"+A),W<D&&(W=D,y(R,"Set "+L+" to min value")),W>A&&(W=A,y(R,"Set "+L+" to max value")),H[L]=""+W}function re(){function x(){function L(){var G=0,ae=!1;for(y(R,"Checking connection is from allowed list of origins: "+D);G<D.length;G++)if(D[G]===A){ae=!0;break}return ae}function W(){var G=r[R]&&r[R].remoteHost;return y(R,"Checking connection is from: "+G),A===G}return D.constructor===Array?L():W()}var A=O.origin,D=r[R]&&r[R].checkOrigin;if(D&&""+A!="null"&&!x())throw new Error("Unexpected message received from: "+A+" for "+H.iframe.id+". Message was: "+O.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function fe(){return v===(""+Y).substr(0,d)&&Y.substr(d).split(":")[0]in r}function ie(){var x=H.type in{true:1,false:1,undefined:1};return x&&y(R,"Ignoring init message from meta parent page"),x}function se(x){return Y.substr(Y.indexOf(":")+h+x)}function ue(x){y(R,"onMessage passed: {iframe: "+H.iframe.id+", message: "+x+"}"),le("onMessage",{iframe:H.iframe,message:JSON.parse(x)}),y(R,"--")}function Tn(){var x=document.body.getBoundingClientRect(),A=H.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:A.height,iframeWidth:A.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(A.top-x.top,10),offsetLeft:parseInt(A.left-x.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function fn(x,A){function D(){te("Send Page Info","pageInfo:"+Tn(),x,A)}Vs(D,32,A)}function xn(){function x(W,G){function ae(){r[L]?fn(r[L].iframe,L):A()}["scroll","resize"].forEach(function(di){y(L,W+di+" listener for sendPageInfo"),G(window,di,ae)})}function A(){x("Remove ",g)}function D(){x("Add ",m)}var L=R;D(),r[L]&&(r[L].stopPageInfo=A)}function En(){r[R]&&r[R].stopPageInfo&&(r[R].stopPageInfo(),delete r[R].stopPageInfo)}function kn(){var x=!0;return H.iframe===null&&(S(R,"IFrame ("+H.id+") not found"),x=!1),x}function z(x){var A=x.getBoundingClientRect();return cn(R),{x:Math.floor(Number(A.left)+Number(i.x)),y:Math.floor(Number(A.top)+Number(i.y))}}function C(x){function A(){i=G,B(),y(R,"--")}function D(){return{x:Number(H.width)+W.x,y:Number(H.height)+W.y}}function L(){window.parentIFrame?window.parentIFrame["scrollTo"+(x?"Offset":"")](G.x,G.y):S(R,"Unable to scroll to requested position, window.parentIFrame not found")}var W=x?z(H.iframe):{x:0,y:0},G=D();y(R,"Reposition requested from iFrame (offset x:"+W.x+" y:"+W.y+")"),window.top!==window.self?L():A()}function B(){le("onScroll",i)!==!1?pn(R):ei()}function F(x){function A(){var ae=z(G);y(R,"Moving to in page link (#"+L+") at x: "+ae.x+" y: "+ae.y),i={x:ae.x,y:ae.y},B(),y(R,"--")}function D(){window.parentIFrame?window.parentIFrame.moveToAnchor(L):y(R,"In page link #"+L+" not found and window.parentIFrame not found")}var L=x.split("#")[1]||"",W=decodeURIComponent(L),G=document.getElementById(W)||document.getElementsByName(W)[0];G?A():window.top!==window.self?D():y(R,"In page link #"+L+" not found")}function Pe(x){le(x,{iframe:H.iframe,screenX:H.width,screenY:H.height,type:H.type})}function le(x,A){return U(R,x,A)}function zn(){switch(r[R]&&r[R].firstRun&&Rn(),H.type){case"close"
3:ee(H.iframe);break;case"message":ue(se(6));break;case"mouseenter":Pe("onMouseEnter");break;case"mouseleave":Pe("onMouseLeave");break;case"autoResize":r[R].autoResize=JSON.parse(se(9));break;case"scrollTo":C(!1);break;case"scrollToOffset":C(!0);break;case"pageInfo":fn(r[R]&&r[R].iframe,R),xn();break;case"pageInfoStop":En();break;case"inPageLink":F(se(9));break;case"reset":ti(H);break;case"init":T(),le("onInit",H.iframe);break;default:T()}}function Cn(x){var A=!0;return r[x]||(A=!1,S(H.type+" No settings for "+x+". Message was: "+Y)),A}function In(){for(var x in r)te("iFrame requested init",ii(x),r[x].iframe,x)}function Rn(){r[R]&&(r[R].firstRun=!1)}var Y=O.data,H={},R=null;Y==="[iFrameResizerChild]Ready"?In():fe()?(H=J(),R=H.id,r[R]&&(r[R].loaded=!0),!ie()&&Cn(R)&&(y(R,"Received: "+Y),kn()&&re()&&zn())):q(R,"Ignored: "+Y)}function U(O,T,J){var k=null,M=null;if(r[O])if(k=r[O][T],typeof k=="function")M=k(J);else throw new TypeError(T+" on iFrame["+O+"] is not a function");return M}function X(O){var T=O.id;delete r[T]}function ee(O){var T=O.id;if(U(T,"onClose",T)===!1){y(T,"Close iframe cancelled by onClose event");return}y(T,"Removing iFrame: "+T);try{O.parentNode&&O.parentNode.removeChild(O)}catch(J){S(J)}U(T,"onClosed",T),y(T,"--"),X(O)}function cn(O){i===null&&(i={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop},y(O,"Get page position: "+i.x+","+i.y))}function pn(O){i!==null&&(window.scrollTo(i.x,i.y),y(O,"Set page position: "+i.x+","+i.y),ei())}function ei(){i=null}function ti(O){function T(){ri(O),te("reset","reset",O.iframe,O.id)}y(O.id,"Size reset requested by "+(O.type==="init"?"host page":"iFrame")),cn(O.id),ni(T,O,"reset")}function ri(O){function T(j){if(!O.id){y("undefined","messageData id not set");return}O.iframe.style[j]=O[j]+"px",y(O.id,"IFrame ("+M+") "+j+" set to "+O[j]+"px")}function J(j){!l&&O[j]==="0"&&(l=!0,y(M,"Hidden iFrame detected, creating visibility listener"),Gs())}function k(j){T(j),J(j)}var M=O.iframe.id;r[M]&&(r[M].sizeHeight&&k("height"),r[M].sizeWidth&&k("width"))}function ni(O,T,J){J!==T.type&&n&&!window.jasmine?(y(T.id,"Requesting animation frame"),n(O)):O()}function te(O,T,J,k,M){function j(){var ue=r[k]&&r[k].targetOrigin;y(k,"["+O+"] Sending msg to iframe["+k+"] ("+T+") targetOrigin: "+ue),J.contentWindow.postMessage(v+T,ue)}function re(){S(k,"["+O+"] IFrame("+k+") not found")}function fe(){J&&"contentWindow"in J&&J.contentWindow!==null?j():re()}function ie(){function ue(){r[k]&&!r[k].loaded&&!se&&(se=!0,S(k,"IFrame has not responded within "+r[k].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}M&&r[k]&&r[k].warningTimeout&&(r[k].msgTimeout=setTimeout(ue,r[k].warningTimeout))}var se=!1;k=k||J.id,r[k]&&(fe(),ie())}function ii(O){return O+":"+r[O].bodyMarginV1+":"+r[O].sizeWidth+":"+r[O].log+":"+r[O].interval+":"+r[O].enablePublicMethods+":"+r[O].autoResize+":"+r[O].bodyMargin+":"+r[O].heightCalculationMethod+":"+r[O].bodyBackground+":"+r[O].bodyPadding+":"+r[O].tolerance+":"+r[O].inPageLinks+":"+r[O].resizeFrom+":"+r[O].widthCalculationMethod}function ai(O,T){function J(){function C(F){r[z][F]!==1/0&&r[z][F]!==0&&(O.style[F]=r[z][F]+"px",y(z,"Set "+F+" = "+r[z][F]+"px"))}function B(F){if(r[z]["min"+F]>r[z]["max"+F])throw new Error("Value for min"+F+" can not be greater than max"+F)}B("Height"),B("Width"),C("maxHeight"),C("minHeight"),C("maxWidth"),C("minWidth")}function k(){var C=T&&T.id||p.id+a++;return document.getElementById(C)!==null&&(C+=a++),C}function M(C){return C===""&&(O.id=C=k(),c=(T||{}).log,y(C,"Added missing iframe ID: "+C+" ("+O.src+")")),C}function j(){switch(y(z,"IFrame scrolling "+(r[z]&&r[z].scrolling?"enabled":"disabled")+" for "+z),O.style.overflow=(r[z]&&r[z].scrolling)===!1?"hidden":"auto",r[z]&&r[z].scrolling){case"omit":break;case!0:O.scrolling="yes";break;case!1:O.scrolling="no";break;default:O.scrolling=r[z]?r[z].scrolling:"no"}}function re(){(typeof(r[z]&&r[z].bodyMargin)=="number"||(r[z]&&r[z].bodyMargin)==="0")&&(r[z].bodyMarginV1=r[z].bodyMargin,r[z].bodyMargin=""+r[z].bodyMargin+"px")}function fe(){var C=r[z]&&r[z].firstRun,B=r[z]&&r[z].heightCalculationMethod in u;!C&&B&&ti({iframe:O,height:0,width:0,type:"init"})}function ie(){r[z]&&(r[z].iframe.iFrameResizer={close:ee.bind(null,r[z].iframe),removeListeners:X.bind(null,r[z].iframe),resize:te.bind(null,"Window resize","resize",r[z].iframe),moveToAnchor:function(C){te("Move to anchor","moveToAnchor:"+C,r[z].iframe,z)},sendMessage:function(C){C=JSON.stringify(C),te("Send Message","message:"+C,r[z].iframe,z)}})}function se(C){function B(){te("iFrame.onload",C,O,t,!0),fe()}function F(le){if(O.parentNode){var zn=new le(function(Cn){Cn.forEach(function(In){var Rn=Array.prototype.slice.call(In.removedNodes
3);Rn.forEach(function(Y){Y===O&&ee(O)})})});zn.observe(O.parentNode,{childList:!0})}}var Pe=f();Pe&&F(Pe),m(O,"load",B),te("init",C,O,t,!0)}function ue(C){if(typeof C!="object")throw new TypeError("Options is not an object")}function Tn(C){for(var B in p)Object.prototype.hasOwnProperty.call(p,B)&&(r[z][B]=Object.prototype.hasOwnProperty.call(C,B)?C[B]:p[B])}function fn(C){return C===""||C.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":C}function xn(C){var B=C.split("Callback");if(B.length===2){var F="on"+B[0].charAt(0).toUpperCase()+B[0].slice(1);this[F]=this[C],delete this[C],S(z,"Deprecated: '"+C+"' has been renamed '"+F+"'. The old method will be removed in the next major version.")}}function En(C){C=C||{},r[z]={firstRun:!0,iframe:O,remoteHost:O.src&&O.src.split("/").slice(0,3).join("/")},ue(C),Object.keys(C).forEach(xn,C),Tn(C),r[z]&&(r[z].targetOrigin=r[z].checkOrigin===!0?fn(r[z].remoteHost):"*")}function kn(){return z in r&&"iFrameResizer"in O}var z=M(O.id);kn()?S(z,"Ignored iFrame, already setup."):(En(T),j(),J(),re(),se(ii(z)),ie())}function Pn(O,T){s===null&&(s=setTimeout(function(){s=null,O()},T))}var qn={};function Vs(O,T,J){qn[J]||(qn[J]=setTimeout(function(){qn[J]=null,O()},T))}function Gs(){function O(){function M(j){function re(ie){return(r[j]&&r[j].iframe.style[ie])==="0px"}function fe(ie){return ie.offsetParent!==null}r[j]&&fe(r[j].iframe)&&(re("height")||re("width"))&&te("Visibility change","resize",r[j].iframe,j)}Object.keys(r).forEach(function(j){M(j)})}function T(M){y("window","Mutation observed: "+M[0].target+" "+M[0].type),Pn(O,16)}function J(){var M=document.querySelector("body"),j={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},re=new k(T);re.observe(M,j)}var k=f();k&&J()}function Ks(O){function T(){si("Window "+O,"resize")}y("window","Trigger event: "+O),Pn(T,16)}function oi(){function O(){si("Tab Visable","resize")}document.visibilityState!=="hidden"&&(y("document","Trigger event: Visiblity change"),Pn(O,16))}function si(O,T){function J(k){return r[k]&&r[k].resizeFrom==="parent"&&r[k].autoResize&&!r[k].firstRun}Object.keys(r).forEach(function(k){J(k)&&te(O,T,r[k].iframe,k)})}function $s(){m(window,"message",E),m(window,"resize",function(){Ks("resize")}),m(document,"visibilitychange",oi),m(document,"-webkit-visibilitychange",oi)}function ui(){function O(k,M){function j(){if(M.tagName){if(M.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+M.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}M&&(j(),ai(M,k),J.push(M))}function T(k){k&&k.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var J;return _(),$s(),function(k,M){switch(J=[],T(k),typeof M){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(M||"iframe"),O.bind(t,k));break;case"object":O(k,M);break;default:throw new TypeError("Unexpected data type ("+typeof M+")")}return J}}function Zs(O){O.fn?O.fn.iFrameResize||(O.fn.iFrameResize=function(T){function J(k,M){ai(M,T)}return this.filter("iframe").each(J).end()}):q("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery&&Zs(window.jQuery),e.exports=ui(),window.iFrameResize=window.iFrameResize||ui()})()}),tp=function(){},rp=tp,np=function(e){e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onMouseEnter,e.onMouseLeave,e.onResized;var t=Qs(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"]);return t},Yn=function(e){var t=e.title,a=e.forwardRef,c=Qs(e,["title","forwardRef"]),l=np(c),o=Z.useRef(null),h=function(){return rp(!o.current,"[iframeSizerReact]["+(o&&o.current&&o.current.id)+"] Close event ignored, to remove the iframe update your React component"),!o.current};return Z.useEffect(function(){var v=o.current;return ep(_n({},c,{onClose:h}),v),function(){return v.iFrameResizer&&v.iFrameResizer.removeListeners()}},[]),Z.useImperativeHandle(a,function(){return{resize:function(){return o.current.iFrameResizer.resize()},moveToAnchor:function(v){return o.current.iFrameResizer.moveToAnchor(v)},sendMessage:function(v,d){o.current.iFrameResizer.sendMessage(v,d)}}}),Xs.createElement("iframe",_n({title:t},l,{ref:o}))};Yn.defaultProps={title:"iframe"};Yn.propTypes={title:Xc.string};function qs(e,t){if(!e)return;const a=new URL(e);return t.darkMode!==void 0&&a.searchParams.append("darkMode",t.darkMode.toString()),t.fontFamily!==void 0&&a.searchParams.append("fontFamily",t.fontFamily),t.icon!==void 0&&a.searchParams.append("icon",t.icon),t.primaryColor!==void 0&&a.searchParams.append("primaryColor",t.primaryColor),a.href}function ip(){const e=Z.useRef(!1);return Z.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),(t,a)=>{window.setTimeout(()=>{e.current&&t()},a)}}function ap(e){const{url:t,...a}=e,[c,l]=Z.useState(!1),[o,h]=Z.useState(void 0),v=ip();function d(){v(()=>{l(!0)},1e4)}const i=c?null:Z.createElement("div",{className:`Svix__mask ${a.darkMode?"Svix__dark":"Svix__light"}`,style:{height:(o??0)>0?`${o}px`:"100%"}});return Z.createElement(Z.Fragment,null,Z.createElement("div",{style:{borderRadius:"8px",overflow:"hidden",display:"flex",flexGrow:1,position:"relative",width:"100%",minHeight:"80px",...e.style}},i,e.fullSize?Z.createElement(Yn,{allow:"clipboard-write",src:qs(t,a),checkOrigin:!1,heightCalculationMethod:"max",onLoad:d,onResized:({height:n})=>{h(n)},style:{width:"1px",minWidth:"100%",display:"block",zIndex:2,border:"none"}}):Z.createElement("iframe",{allow:"clipboard-write",onLoad:d,style:{bottom:0,height:"100%",left:0,position:"absolute",right:0,top:0,width:"100%",zIndex:2,border:"none"},src:qs(t,a)})))}Z.createContext(null);const lp=()=>{const{svixUrlData:e,isLoadingWebhooks:t}=eu();return t&&!e?de.jsx(ru,{}):de.jsxs("div",{className:"flex flex-col gap-4",children:[de.jsx(tu,{title:"Webhooks",description:"Get notified in real time when events happen in your app like new members, plan changes, and more."}),de.jsx(nu,{}),e?de.jsx(ap,{url:e,fullSize:!0}):de.jsxs(Ys,{className:"flex flex-col items-center gap-1 px-4 py-10 text-center",children:[de.jsx("p",{className:"font-bold text-foreground",children:"Webhooks aren’t available for this app yet."}),de.jsx("p",{className:"text-body-sm text-muted-foreground",children:"Once enabled, you’ll be able to add endpoints and inspect webhook deliveries here."})]})]})};export{lp as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.