gemi 0.54.2 → 0.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bun/plugin.js +2 -2
- package/dist/bun/plugin.js.map +1 -1
- package/dist/bun/preload.js +2 -2
- package/dist/bun/preload.js.map +2 -2
- package/dist/chunk-1312a1t4.js +4 -0
- package/dist/{chunk-r9z5rrk0.js.map → chunk-1312a1t4.js.map} +2 -2
- package/dist/{chunk-9taz1h3t.js → chunk-1psx59jt.js} +2 -2
- package/dist/{chunk-9taz1h3t.js.map → chunk-1psx59jt.js.map} +1 -1
- package/dist/chunk-2s75crt8.js +4 -0
- package/dist/{chunk-07t0dmdg.js.map → chunk-2s75crt8.js.map} +2 -2
- package/dist/chunk-2zyharpa.js +4 -0
- package/dist/{chunk-hk067634.js.map → chunk-2zyharpa.js.map} +2 -2
- package/dist/chunk-35j03vge.js +4 -0
- package/dist/{chunk-br8ten26.js.map → chunk-35j03vge.js.map} +2 -2
- package/dist/chunk-3njyfdj5.js +19 -0
- package/dist/chunk-3njyfdj5.js.map +60 -0
- package/dist/chunk-4n0xx0y6.js +66 -0
- package/dist/{chunk-n382ygnp.js.map → chunk-4n0xx0y6.js.map} +4 -53
- package/dist/{chunk-gn9zjgep.js → chunk-5ad8era8.js} +2 -2
- package/dist/{chunk-gn9zjgep.js.map → chunk-5ad8era8.js.map} +1 -1
- package/dist/{chunk-50vm7x98.js → chunk-6c5xkj0z.js} +2 -2
- package/dist/{chunk-50vm7x98.js.map → chunk-6c5xkj0z.js.map} +1 -1
- package/dist/chunk-6yy92txx.js +9 -0
- package/dist/{chunk-k8endm5j.js.map → chunk-6yy92txx.js.map} +6 -6
- package/dist/chunk-796pyrm9.js +4 -0
- package/dist/{chunk-1snh7yc4.js.map → chunk-796pyrm9.js.map} +2 -2
- package/dist/chunk-876p591d.js +5 -0
- package/dist/chunk-876p591d.js.map +13 -0
- package/dist/chunk-95t14jaw.js +13 -0
- package/dist/chunk-95t14jaw.js.map +222 -0
- package/dist/{chunk-kz39hphm.js → chunk-97rcmaps.js} +3 -3
- package/dist/{chunk-kz39hphm.js.map → chunk-97rcmaps.js.map} +1 -1
- package/dist/{chunk-c22vcxty.js → chunk-9agd5hjw.js} +2 -2
- package/dist/{chunk-c22vcxty.js.map → chunk-9agd5hjw.js.map} +2 -2
- package/dist/chunk-9wrbnr38.js +4 -0
- package/dist/{chunk-c0wcsmpj.js.map → chunk-9wrbnr38.js.map} +2 -2
- package/dist/{chunk-sqp7kn7h.js → chunk-a1h4paj1.js} +3 -3
- package/dist/{chunk-sqp7kn7h.js.map → chunk-a1h4paj1.js.map} +1 -1
- package/dist/{chunk-r06rxn19.js → chunk-b5mc1st9.js} +2 -2
- package/dist/{chunk-r06rxn19.js.map → chunk-b5mc1st9.js.map} +1 -1
- package/dist/chunk-c6qxw3v9.js +5 -0
- package/dist/{chunk-f13f68c0.js.map → chunk-c6qxw3v9.js.map} +2 -2
- package/dist/{chunk-113khwbw.js → chunk-cbqrkfjm.js} +2 -2
- package/dist/{chunk-113khwbw.js.map → chunk-cbqrkfjm.js.map} +1 -1
- package/dist/{chunk-jp4pf3yt.js → chunk-dngwctnt.js} +4 -4
- package/dist/{chunk-jp4pf3yt.js.map → chunk-dngwctnt.js.map} +2 -2
- package/dist/{chunk-f418jh9k.js → chunk-ejrcyzx8.js} +2 -2
- package/dist/{chunk-f418jh9k.js.map → chunk-ejrcyzx8.js.map} +1 -1
- package/dist/chunk-h3b0v3bz.js +4 -0
- package/dist/{chunk-4qkzdyj7.js.map → chunk-h3b0v3bz.js.map} +1 -1
- package/dist/{chunk-jb022m7n.js → chunk-hg9y6ctt.js} +2 -2
- package/dist/{chunk-jb022m7n.js.map → chunk-hg9y6ctt.js.map} +1 -1
- package/dist/chunk-j15ewww3.js +5 -0
- package/dist/{chunk-2pt6kyn9.js.map → chunk-j15ewww3.js.map} +2 -2
- package/dist/{chunk-zckj6bs6.js → chunk-j3tzdcz7.js} +3 -3
- package/dist/{chunk-zckj6bs6.js.map → chunk-j3tzdcz7.js.map} +1 -1
- package/dist/chunk-jq46m17j.js +5 -0
- package/dist/{chunk-efsk1wy0.js.map → chunk-jq46m17j.js.map} +2 -2
- package/dist/{chunk-pgjk5ft3.js → chunk-k5jvafmh.js} +1 -1
- package/dist/chunk-kckva77b.js +5 -0
- package/dist/{chunk-dxw8k6f1.js.map → chunk-kckva77b.js.map} +2 -2
- package/dist/{chunk-cz3szqhq.js → chunk-ke6tsnx1.js} +2 -2
- package/dist/{chunk-cz3szqhq.js.map → chunk-ke6tsnx1.js.map} +1 -1
- package/dist/{chunk-qq2yhtpp.js → chunk-kz5zcw6s.js} +2 -2
- package/dist/{chunk-qq2yhtpp.js.map → chunk-kz5zcw6s.js.map} +2 -2
- package/dist/{chunk-h7mcwfg5.js → chunk-nakfv7pa.js} +4 -4
- package/dist/{chunk-h7mcwfg5.js.map → chunk-nakfv7pa.js.map} +2 -2
- package/dist/chunk-nph4mm6k.js +4 -0
- package/dist/{chunk-jb2nst6v.js.map → chunk-nph4mm6k.js.map} +2 -2
- package/dist/{chunk-dwx2y7br.js → chunk-r07s2p1z.js} +4 -4
- package/dist/{chunk-dwx2y7br.js.map → chunk-r07s2p1z.js.map} +2 -2
- package/dist/chunk-teyphwr0.js +5 -0
- package/dist/{chunk-6rhebm18.js.map → chunk-teyphwr0.js.map} +2 -2
- package/dist/{chunk-agabw2w1.js → chunk-tkdxv6cq.js} +2 -2
- package/dist/{chunk-agabw2w1.js.map → chunk-tkdxv6cq.js.map} +1 -1
- package/dist/chunk-v094r7tz.js +6 -0
- package/dist/{chunk-05edp1zf.js.map → chunk-v094r7tz.js.map} +2 -2
- package/dist/{chunk-3xa807p3.js → chunk-v0t5dejz.js} +2 -2
- package/dist/{chunk-3xa807p3.js.map → chunk-v0t5dejz.js.map} +1 -1
- package/dist/{chunk-f4e7fh95.js → chunk-v7y8zm61.js} +3 -3
- package/dist/{chunk-f4e7fh95.js.map → chunk-v7y8zm61.js.map} +2 -2
- package/dist/{chunk-kv2ep453.js → chunk-vj1vt6qs.js} +18 -19
- package/dist/{chunk-kv2ep453.js.map → chunk-vj1vt6qs.js.map} +4 -8
- package/dist/{chunk-71m47kad.js → chunk-wxepr09t.js} +2 -2
- package/dist/{chunk-71m47kad.js.map → chunk-wxepr09t.js.map} +2 -2
- package/dist/{chunk-efp54183.js → chunk-x1g40y59.js} +1 -1
- package/dist/chunk-x5w7es67.js +4 -0
- package/dist/{chunk-s6e7cvek.js.map → chunk-x5w7es67.js.map} +2 -2
- package/dist/chunk-x67dm5ef.js +5 -0
- package/dist/{chunk-jdgvdddd.js.map → chunk-x67dm5ef.js.map} +2 -2
- package/dist/{chunk-fcqc3e3r.js → chunk-xnytbrda.js} +2 -2
- package/dist/{chunk-fcqc3e3r.js.map → chunk-xnytbrda.js.map} +1 -1
- package/dist/chunk-xska2hx3.js +4 -0
- package/dist/{chunk-hrrmxreg.js.map → chunk-xska2hx3.js.map} +2 -2
- package/dist/{chunk-ms8qd7da.js → chunk-yd6aqeyc.js} +2 -2
- package/dist/{chunk-ms8qd7da.js.map → chunk-yd6aqeyc.js.map} +1 -1
- package/dist/{chunk-bb3zvxsf.js → chunk-zacf5ph0.js} +2 -2
- package/dist/{chunk-bb3zvxsf.js.map → chunk-zacf5ph0.js.map} +1 -1
- package/dist/console/run.js +2 -2
- package/dist/console/run.js.map +1 -1
- package/dist/database/DatabaseManager.d.ts.map +1 -1
- package/dist/database/index.js +2 -2
- package/dist/database/index.js.map +1 -1
- package/dist/email/index.js +1 -1
- package/dist/facades/Storage.d.ts +1 -1
- package/dist/facades/Storage.d.ts.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/i18n/dictionaryRuntime.js +2 -2
- package/dist/i18n/dictionaryRuntime.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +2 -2
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/orm/corpus.d.ts.map +1 -1
- package/dist/orm/dialect/index.d.ts +32 -1
- package/dist/orm/dialect/index.d.ts.map +1 -1
- package/dist/orm/dialect/postgres.d.ts +14 -0
- package/dist/orm/dialect/postgres.d.ts.map +1 -1
- package/dist/orm/dialect/sqlite.d.ts +31 -0
- package/dist/orm/dialect/sqlite.d.ts.map +1 -1
- package/dist/orm/index.js +3 -3
- package/dist/orm/index.js.map +3 -3
- package/dist/orm/types.d.ts +82 -38
- package/dist/orm/types.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +2 -2
- package/dist/services/email/drivers/ResendDriver.d.ts.map +1 -1
- package/dist/services/file-storage/drivers/S3Driver.d.ts +24 -1
- package/dist/services/file-storage/drivers/S3Driver.d.ts.map +1 -1
- package/dist/services/image-optimization/drivers/SharpDriver.d.ts.map +1 -1
- package/dist/services/index.js +9 -18
- package/dist/services/index.js.map +5 -99
- package/dist/services/rate-limiter/drivers/RedisRateLimiterDriver.d.ts.map +1 -1
- package/dist/services/redis/RedisManager.d.ts +19 -2
- package/dist/services/redis/RedisManager.d.ts.map +1 -1
- package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
- package/dist/services/router/htmlInsertionPoint.d.ts +64 -0
- package/dist/services/router/htmlInsertionPoint.d.ts.map +1 -0
- package/dist/services/router/streamQueryInjection.d.ts +10 -0
- package/dist/services/router/streamQueryInjection.d.ts.map +1 -1
- package/dist/support/sharp.d.ts +21 -0
- package/dist/support/sharp.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-05edp1zf.js +0 -6
- package/dist/chunk-07t0dmdg.js +0 -4
- package/dist/chunk-1snh7yc4.js +0 -4
- package/dist/chunk-2pt6kyn9.js +0 -5
- package/dist/chunk-4qkzdyj7.js +0 -4
- package/dist/chunk-6rhebm18.js +0 -5
- package/dist/chunk-br8ten26.js +0 -4
- package/dist/chunk-c0wcsmpj.js +0 -4
- package/dist/chunk-dxw8k6f1.js +0 -5
- package/dist/chunk-efsk1wy0.js +0 -5
- package/dist/chunk-f13f68c0.js +0 -5
- package/dist/chunk-hk067634.js +0 -4
- package/dist/chunk-hrrmxreg.js +0 -4
- package/dist/chunk-jb2nst6v.js +0 -4
- package/dist/chunk-jdgvdddd.js +0 -5
- package/dist/chunk-k8endm5j.js +0 -9
- package/dist/chunk-n382ygnp.js +0 -81
- package/dist/chunk-r9z5rrk0.js +0 -4
- package/dist/chunk-s6e7cvek.js +0 -4
- /package/dist/{chunk-pgjk5ft3.js.map → chunk-k5jvafmh.js.map} +0 -0
- /package/dist/{chunk-efp54183.js.map → chunk-x1g40y59.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{df as
|
|
3
|
-
Headers: ${JSON.stringify(A)}`);this.code=u,this.body=D,this.headers={},A.forEach((F,B)=>{this.headers[B]=F})}}Ju.ApiException=Nu});var R=E((d)=>{var V2=d&&d.__awaiter||function(u,D,A,F){function B(G){return G instanceof A?G:new A(function(w){w(G)})}return new(A||(A=Promise))(function(G,w){function N(X){try{$(F.next(X))}catch(z){w(z)}}function J(X){try{$(F.throw(X))}catch(z){w(z)}}function $(X){X.done?G(X.value):B(X.value).then(N,J)}$((F=F.apply(u,D||[])).next())})};Object.defineProperty(d,"__esModule",{value:!0});d.SvixRequest=d.HttpMethod=d.LIB_VERSION=void 0;var D0=u0();d.LIB_VERSION="1.92.2";var iE=`svix-libs/${d.LIB_VERSION}/javascript`,aE;(function(u){u.GET="GET",u.HEAD="HEAD",u.POST="POST",u.PUT="PUT",u.DELETE="DELETE",u.CONNECT="CONNECT",u.OPTIONS="OPTIONS",u.TRACE="TRACE",u.PATCH="PATCH"})(aE=d.HttpMethod||(d.HttpMethod={}));class zu{constructor(u,D){this.method=u,this.path=D,this.queryParams={},this.headerParams={}}setPathParam(u,D){let A=this.path.replace(`{${u}}`,encodeURIComponent(D));if(this.path===A)throw Error(`path parameter ${u} not found`);this.path=A}setQueryParams(u){for(let[D,A]of Object.entries(u))this.setQueryParam(D,A)}setQueryParam(u,D){if(D===void 0||D===null)return;if(typeof D==="string")this.queryParams[u]=D;else if(typeof D==="boolean"||typeof D==="number")this.queryParams[u]=D.toString();else if(D instanceof Date)this.queryParams[u]=D.toISOString();else if(Array.isArray(D)){if(D.length>0)this.queryParams[u]=D.join(",")}else{let A=D;throw Error(`query parameter ${u} has unsupported type`)}}setHeaderParam(u,D){if(D===void 0)return;this.headerParams[u]=D}setBody(u){this.body=JSON.stringify(u)}send(u,D){return V2(this,void 0,void 0,function*(){let A=yield this.sendInner(u);if(A.status===204)return null;let F=yield A.text();return D(JSON.parse(F))})}sendNoResponseBody(u){return V2(this,void 0,void 0,function*(){yield this.sendInner(u)})}sendInner(u){var D,A;return V2(this,void 0,void 0,function*(){let F=new URL(u.baseUrl+this.path);for(let[N,J]of Object.entries(this.queryParams))F.searchParams.set(N,J);if(this.headerParams["idempotency-key"]===void 0&&this.method.toUpperCase()==="POST")this.headerParams["idempotency-key"]=`auto_${crypto.randomUUID()}`;let B=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);if(this.body!=null)this.headerParams["content-type"]="application/json";let G="credentials"in Request.prototype,w=yield $u(F,{method:this.method.toString(),body:this.body,headers:Object.assign({accept:"application/json, */*;q=0.8",authorization:`Bearer ${u.token}`,"user-agent":iE,"svix-req-id":B.toString()},this.headerParams),credentials:G?"same-origin":void 0,signal:u.timeout!==void 0?AbortSignal.timeout(u.timeout):void 0},u.retryScheduleInMs,(D=u.retryScheduleInMs)===null||D===void 0?void 0:D[0],((A=u.retryScheduleInMs)===null||A===void 0?void 0:A.length)||u.numRetries,u.fetch);return pE(w)})}}d.SvixRequest=zu;function pE(u){return V2(this,void 0,void 0,function*(){if(u.status<300)return u;let D=yield u.text();if(u.status===422)throw new D0.ApiException(u.status,JSON.parse(D),u.headers);if(u.status>=400&&u.status<=499)throw new D0.ApiException(u.status,JSON.parse(D),u.headers);throw new D0.ApiException(u.status,D,u.headers)})}function $u(u,D,A,F=50,B=2,G=fetch,w=1){return V2(this,void 0,void 0,function*(){let N=(J)=>new Promise(($)=>setTimeout($,J));try{let J=yield G(u,D);if(B<=0||J.status<500)return J}catch(J){if(B<=0)throw J}return yield N(F),D.headers["svix-retry-count"]=w.toString(),F=(A===null||A===void 0?void 0:A[w])||F*2,yield $u(u,D,A,F,--B,G,++w)})}});var Vu=E((Yu)=>{Object.defineProperty(Yu,"__esModule",{value:!0});Yu.Application=void 0;var A0=h2(),W2=e2(),nE=Fu(),sE=Gu(),g=R();class Xu{constructor(u){this.requestCtx=u}list(u){let D=new g.SvixRequest(g.HttpMethod.GET,"/api/v1/app");return D.setQueryParams({exclude_apps_with_no_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithNoEndpoints,exclude_apps_with_disabled_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithDisabledEndpoints,exclude_apps_with_svix_play_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithSvixPlayEndpoints,limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,sE.ListResponseApplicationOutSerializer._fromJsonObject)}create(u,D){let A=new g.SvixRequest(g.HttpMethod.POST,"/api/v1/app");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(A0.ApplicationInSerializer._toJsonObject(u)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}getOrCreate(u,D){let A=new g.SvixRequest(g.HttpMethod.POST,"/api/v1/app");return A.setQueryParam("get_if_exists",!0),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(A0.ApplicationInSerializer._toJsonObject(u)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}get(u){let D=new g.SvixRequest(g.HttpMethod.GET,"/api/v1/app/{app_id}");return D.setPathParam("app_id",u),D.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}update(u,D){let A=new g.SvixRequest(g.HttpMethod.PUT,"/api/v1/app/{app_id}");return A.setPathParam("app_id",u),A.setBody(A0.ApplicationInSerializer._toJsonObject(D)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}delete(u){let D=new g.SvixRequest(g.HttpMethod.DELETE,"/api/v1/app/{app_id}");return D.setPathParam("app_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new g.SvixRequest(g.HttpMethod.PATCH,"/api/v1/app/{app_id}");return A.setPathParam("app_id",u),A.setBody(nE.ApplicationPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}}Yu.Application=Xu});var Hu=E((Wu)=>{Object.defineProperty(Wu,"__esModule",{value:!0});Wu.ApiTokenOutSerializer=void 0;Wu.ApiTokenOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),expiresAt:u.expiresAt?new Date(u.expiresAt):null,id:u.id,name:u.name,scopes:u.scopes,token:u.token}},_toJsonObject(u){return{createdAt:u.createdAt,expiresAt:u.expiresAt,id:u.id,name:u.name,scopes:u.scopes,token:u.token}}}});var F0=E((Uu)=>{Object.defineProperty(Uu,"__esModule",{value:!0});Uu.AppPortalCapabilitySerializer=Uu.AppPortalCapability=void 0;var oE;(function(u){u.ViewBase="ViewBase",u.ViewEndpointSecret="ViewEndpointSecret",u.ManageEndpointSecret="ManageEndpointSecret",u.ManageTransformations="ManageTransformations",u.CreateAttempts="CreateAttempts",u.ManageEndpoint="ManageEndpoint"})(oE=Uu.AppPortalCapability||(Uu.AppPortalCapability={}));Uu.AppPortalCapabilitySerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var Su=E((Lu)=>{Object.defineProperty(Lu,"__esModule",{value:!0});Lu.AppPortalAccessInSerializer=void 0;var Ru=F0(),vu=h2();Lu.AppPortalAccessInSerializer={_fromJsonObject(u){var D;return{application:u.application!=null?vu.ApplicationInSerializer._fromJsonObject(u.application):void 0,capabilities:(D=u.capabilities)===null||D===void 0?void 0:D.map((A)=>Ru.AppPortalCapabilitySerializer._fromJsonObject(A)),expiry:u.expiry,featureFlags:u.featureFlags,readOnly:u.readOnly,sessionId:u.sessionId}},_toJsonObject(u){var D;return{application:u.application!=null?vu.ApplicationInSerializer._toJsonObject(u.application):void 0,capabilities:(D=u.capabilities)===null||D===void 0?void 0:D.map((A)=>Ru.AppPortalCapabilitySerializer._toJsonObject(A)),expiry:u.expiry,featureFlags:u.featureFlags,readOnly:u.readOnly,sessionId:u.sessionId}}}});var Ou=E((hu)=>{Object.defineProperty(hu,"__esModule",{value:!0});hu.AppPortalAccessOutSerializer=void 0;hu.AppPortalAccessOutSerializer={_fromJsonObject(u){return{token:u.token,url:u.url}},_toJsonObject(u){return{token:u.token,url:u.url}}}});var Iu=E((qu)=>{Object.defineProperty(qu,"__esModule",{value:!0});qu.ApplicationTokenExpireInSerializer=void 0;qu.ApplicationTokenExpireInSerializer={_fromJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}},_toJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}}}});var _u=E((xu)=>{Object.defineProperty(xu,"__esModule",{value:!0});xu.RotatePollerTokenInSerializer=void 0;xu.RotatePollerTokenInSerializer={_fromJsonObject(u){return{expiry:u.expiry,oldTokenExpiry:u.oldTokenExpiry}},_toJsonObject(u){return{expiry:u.expiry,oldTokenExpiry:u.oldTokenExpiry}}}});var bu=E((mu)=>{Object.defineProperty(mu,"__esModule",{value:!0});mu.StreamPortalAccessInSerializer=void 0;mu.StreamPortalAccessInSerializer={_fromJsonObject(u){return{expiry:u.expiry,featureFlags:u.featureFlags,sessionId:u.sessionId}},_toJsonObject(u){return{expiry:u.expiry,featureFlags:u.featureFlags,sessionId:u.sessionId}}}});var lu=E((ju)=>{Object.defineProperty(ju,"__esModule",{value:!0});ju.StreamTokenExpireInSerializer=void 0;ju.StreamTokenExpireInSerializer={_fromJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}},_toJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}}}});var B0=E((du)=>{Object.defineProperty(du,"__esModule",{value:!0});du.DashboardAccessOutSerializer=void 0;du.DashboardAccessOutSerializer={_fromJsonObject(u){return{token:u.token,url:u.url}},_toJsonObject(u){return{token:u.token,url:u.url}}}});var su=E((pu)=>{Object.defineProperty(pu,"__esModule",{value:!0});pu.Authentication=void 0;var cu=Hu(),tE=Su(),iu=Ou(),eE=Iu(),uG=_u(),DG=bu(),AG=lu(),FG=B0(),q=R();class au{constructor(u){this.requestCtx=u}appPortalAccess(u,D,A){let F=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/app-portal-access/{app_id}");return F.setPathParam("app_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(tE.AppPortalAccessInSerializer._toJsonObject(D)),F.send(this.requestCtx,iu.AppPortalAccessOutSerializer._fromJsonObject)}expireAll(u,D,A){let F=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/app/{app_id}/expire-all");return F.setPathParam("app_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(eE.ApplicationTokenExpireInSerializer._toJsonObject(D)),F.sendNoResponseBody(this.requestCtx)}dashboardAccess(u,D){let A=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/dashboard-access/{app_id}");return A.setPathParam("app_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,FG.DashboardAccessOutSerializer._fromJsonObject)}logout(u){let D=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/logout");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.sendNoResponseBody(this.requestCtx)}streamLogout(u){let D=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream-logout");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.sendNoResponseBody(this.requestCtx)}streamPortalAccess(u,D,A){let F=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream-portal-access/{stream_id}");return F.setPathParam("stream_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(DG.StreamPortalAccessInSerializer._toJsonObject(D)),F.send(this.requestCtx,iu.AppPortalAccessOutSerializer._fromJsonObject)}streamExpireAll(u,D,A){let F=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream/{stream_id}/expire-all");return F.setPathParam("stream_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(AG.StreamTokenExpireInSerializer._toJsonObject(D)),F.sendNoResponseBody(this.requestCtx)}getStreamPollerToken(u,D){let A=new q.SvixRequest(q.HttpMethod.GET,"/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,cu.ApiTokenOutSerializer._fromJsonObject)}rotateStreamPollerToken(u,D,A,F){let B=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token/rotate");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(uG.RotatePollerTokenInSerializer._toJsonObject(A)),B.send(this.requestCtx,cu.ApiTokenOutSerializer._fromJsonObject)}}pu.Authentication=au});var t=E((tu)=>{Object.defineProperty(tu,"__esModule",{value:!0});tu.BackgroundTaskStatusSerializer=tu.BackgroundTaskStatus=void 0;var BG;(function(u){u.Running="running",u.Finished="finished",u.Failed="failed"})(BG=tu.BackgroundTaskStatus||(tu.BackgroundTaskStatus={}));tu.BackgroundTaskStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var e=E((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.BackgroundTaskTypeSerializer=DD.BackgroundTaskType=void 0;var wG;(function(u){u.EndpointReplay="endpoint.replay",u.EndpointRecover="endpoint.recover",u.ApplicationStats="application.stats",u.MessageBroadcast="message.broadcast",u.SdkGenerate="sdk.generate",u.EventTypeAggregate="event-type.aggregate",u.ApplicationPurgeContent="application.purge_content",u.EndpointBulkReplay="endpoint.bulk-replay"})(wG=DD.BackgroundTaskType||(DD.BackgroundTaskType={}));DD.BackgroundTaskTypeSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var w0=E((wD)=>{Object.defineProperty(wD,"__esModule",{value:!0});wD.BackgroundTaskOutSerializer=void 0;var FD=t(),BD=e();wD.BackgroundTaskOutSerializer={_fromJsonObject(u){return{data:u.data,id:u.id,status:FD.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:BD.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{data:u.data,id:u.id,status:FD.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:BD.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var ZD=E((ND)=>{Object.defineProperty(ND,"__esModule",{value:!0});ND.ListResponseBackgroundTaskOutSerializer=void 0;var GD=w0();ND.ListResponseBackgroundTaskOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>GD.BackgroundTaskOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>GD.BackgroundTaskOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var YD=E(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.BackgroundTask=void 0;var EG=w0(),GG=ZD(),T2=R();class zD{constructor(u){this.requestCtx=u}list(u){let D=new T2.SvixRequest(T2.HttpMethod.GET,"/api/v1/background-task");return D.setQueryParams({status:u===null||u===void 0?void 0:u.status,task:u===null||u===void 0?void 0:u.task,limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,GG.ListResponseBackgroundTaskOutSerializer._fromJsonObject)}listByEndpoint(u){return this.list(u)}get(u){let D=new T2.SvixRequest(T2.HttpMethod.GET,"/api/v1/background-task/{task_id}");return D.setPathParam("task_id",u),D.send(this.requestCtx,EG.BackgroundTaskOutSerializer._fromJsonObject)}}$D.BackgroundTask=zD});var w2=E((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.ConnectorKindSerializer=VD.ConnectorKind=void 0;var NG;(function(u){u.Custom="Custom",u.AgenticCommerceProtocol="AgenticCommerceProtocol",u.CloseCrm="CloseCRM",u.CustomerIo="CustomerIO",u.Discord="Discord",u.Hubspot="Hubspot",u.Inngest="Inngest",u.Loops="Loops",u.Otel="Otel",u.Resend="Resend",u.Salesforce="Salesforce",u.Segment="Segment",u.Sendgrid="Sendgrid",u.Slack="Slack",u.Teams="Teams",u.TriggerDev="TriggerDev",u.Windmill="Windmill",u.Zapier="Zapier"})(NG=VD.ConnectorKind||(VD.ConnectorKind={}));VD.ConnectorKindSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var O2=E((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.ConnectorProductSerializer=HD.ConnectorProduct=void 0;var JG;(function(u){u.Dispatch="Dispatch",u.Stream="Stream"})(JG=HD.ConnectorProduct||(HD.ConnectorProduct={}));HD.ConnectorProductSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var E0=E((RD)=>{Object.defineProperty(RD,"__esModule",{value:!0});RD.ConnectorInSerializer=void 0;var UD=w2(),PD=O2();RD.ConnectorInSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?UD.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,productType:u.productType!=null?PD.ConnectorProductSerializer._fromJsonObject(u.productType):void 0,transformation:u.transformation,uid:u.uid}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?UD.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,productType:u.productType!=null?PD.ConnectorProductSerializer._toJsonObject(u.productType):void 0,transformation:u.transformation,uid:u.uid}}}});var q2=E((SD)=>{Object.defineProperty(SD,"__esModule",{value:!0});SD.ConnectorOutSerializer=void 0;var LD=w2(),MD=O2();SD.ConnectorOutSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,createdAt:new Date(u.createdAt),description:u.description,featureFlags:u.featureFlags,id:u.id,instructions:u.instructions,kind:LD.ConnectorKindSerializer._fromJsonObject(u.kind),logo:u.logo,name:u.name,orgId:u.orgId,productType:MD.ConnectorProductSerializer._fromJsonObject(u.productType),transformation:u.transformation,transformationUpdatedAt:new Date(u.transformationUpdatedAt),uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,createdAt:u.createdAt,description:u.description,featureFlags:u.featureFlags,id:u.id,instructions:u.instructions,kind:LD.ConnectorKindSerializer._toJsonObject(u.kind),logo:u.logo,name:u.name,orgId:u.orgId,productType:MD.ConnectorProductSerializer._toJsonObject(u.productType),transformation:u.transformation,transformationUpdatedAt:u.transformationUpdatedAt,uid:u.uid,updatedAt:u.updatedAt}}}});var kD=E((OD)=>{Object.defineProperty(OD,"__esModule",{value:!0});OD.ConnectorPatchSerializer=void 0;var TD=w2();OD.ConnectorPatchSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?TD.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?TD.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}}}});var _D=E((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.ConnectorUpdateSerializer=void 0;var ID=w2();xD.ConnectorUpdateSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?ID.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?ID.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}}}});var jD=E((gD)=>{Object.defineProperty(gD,"__esModule",{value:!0});gD.ListResponseConnectorOutSerializer=void 0;var mD=q2();gD.ListResponseConnectorOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>mD.ConnectorOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>mD.ConnectorOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var rD=E((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.Connector=void 0;var ZG=E0(),k2=q2(),zG=kD(),$G=_D(),XG=jD(),r=R();class fD{constructor(u){this.requestCtx=u}list(u){let D=new r.SvixRequest(r.HttpMethod.GET,"/api/v1/connector");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,product_type:u===null||u===void 0?void 0:u.productType}),D.send(this.requestCtx,XG.ListResponseConnectorOutSerializer._fromJsonObject)}create(u,D){let A=new r.SvixRequest(r.HttpMethod.POST,"/api/v1/connector");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(ZG.ConnectorInSerializer._toJsonObject(u)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}get(u){let D=new r.SvixRequest(r.HttpMethod.GET,"/api/v1/connector/{connector_id}");return D.setPathParam("connector_id",u),D.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}update(u,D){let A=new r.SvixRequest(r.HttpMethod.PUT,"/api/v1/connector/{connector_id}");return A.setPathParam("connector_id",u),A.setBody($G.ConnectorUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}delete(u){let D=new r.SvixRequest(r.HttpMethod.DELETE,"/api/v1/connector/{connector_id}");return D.setPathParam("connector_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new r.SvixRequest(r.HttpMethod.PATCH,"/api/v1/connector/{connector_id}");return A.setPathParam("connector_id",u),A.setBody(zG.ConnectorPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}}lD.Connector=fD});var E2=E((iD)=>{Object.defineProperty(iD,"__esModule",{value:!0});iD.MessageStatusSerializer=iD.MessageStatus=void 0;var YG;(function(u){u[u.Success=0]="Success",u[u.Pending=1]="Pending",u[u.Fail=2]="Fail",u[u.Sending=3]="Sending"})(YG=iD.MessageStatus||(iD.MessageStatus={}));iD.MessageStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var G0=E((nD)=>{Object.defineProperty(nD,"__esModule",{value:!0});nD.StatusCodeClassSerializer=nD.StatusCodeClass=void 0;var QG;(function(u){u[u.CodeNone=0]="CodeNone",u[u.Code1xx=100]="Code1xx",u[u.Code2xx=200]="Code2xx",u[u.Code3xx=300]="Code3xx",u[u.Code4xx=400]="Code4xx",u[u.Code5xx=500]="Code5xx"})(QG=nD.StatusCodeClass||(nD.StatusCodeClass={}));nD.StatusCodeClassSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var D1=E((eD)=>{Object.defineProperty(eD,"__esModule",{value:!0});eD.BulkReplayInSerializer=void 0;var oD=E2(),tD=G0();eD.BulkReplayInSerializer={_fromJsonObject(u){return{channel:u.channel,eventTypes:u.eventTypes,since:new Date(u.since),status:u.status!=null?oD.MessageStatusSerializer._fromJsonObject(u.status):void 0,statusCodeClass:u.statusCodeClass!=null?tD.StatusCodeClassSerializer._fromJsonObject(u.statusCodeClass):void 0,tag:u.tag,until:u.until?new Date(u.until):null}},_toJsonObject(u){return{channel:u.channel,eventTypes:u.eventTypes,since:u.since,status:u.status!=null?oD.MessageStatusSerializer._toJsonObject(u.status):void 0,statusCodeClass:u.statusCodeClass!=null?tD.StatusCodeClassSerializer._toJsonObject(u.statusCodeClass):void 0,tag:u.tag,until:u.until}}}});var B1=E((A1)=>{Object.defineProperty(A1,"__esModule",{value:!0});A1.EndpointHeadersInSerializer=void 0;A1.EndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var N0=E((w1)=>{Object.defineProperty(w1,"__esModule",{value:!0});w1.EndpointHeadersOutSerializer=void 0;w1.EndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var J1=E((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});G1.EndpointHeadersPatchInSerializer=void 0;G1.EndpointHeadersPatchInSerializer={_fromJsonObject(u){return{deleteHeaders:u.deleteHeaders,headers:u.headers}},_toJsonObject(u){return{deleteHeaders:u.deleteHeaders,headers:u.headers}}}});var $1=E((Z1)=>{Object.defineProperty(Z1,"__esModule",{value:!0});Z1.EndpointInSerializer=void 0;Z1.EndpointInSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,headers:u.headers,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,headers:u.headers,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var J0=E((X1)=>{Object.defineProperty(X1,"__esModule",{value:!0});X1.EndpointOutSerializer=void 0;X1.EndpointOutSerializer={_fromJsonObject(u){return{channels:u.channels,createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:u.updatedAt,url:u.url,version:u.version}}}});var W1=E((Q1)=>{Object.defineProperty(Q1,"__esModule",{value:!0});Q1.EndpointPatchSerializer=void 0;Q1.EndpointPatchSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var C1=E((K1)=>{Object.defineProperty(K1,"__esModule",{value:!0});K1.EndpointSecretOutSerializer=void 0;K1.EndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var Z0=E((U1)=>{Object.defineProperty(U1,"__esModule",{value:!0});U1.EndpointSecretRotateInSerializer=void 0;U1.EndpointSecretRotateInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var L1=E((R1)=>{Object.defineProperty(R1,"__esModule",{value:!0});R1.EndpointStatsSerializer=void 0;R1.EndpointStatsSerializer={_fromJsonObject(u){return{fail:u.fail,pending:u.pending,sending:u.sending,success:u.success}},_toJsonObject(u){return{fail:u.fail,pending:u.pending,sending:u.sending,success:u.success}}}});var h1=E((M1)=>{Object.defineProperty(M1,"__esModule",{value:!0});M1.EndpointTransformationInSerializer=void 0;M1.EndpointTransformationInSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var q1=E((T1)=>{Object.defineProperty(T1,"__esModule",{value:!0});T1.EndpointTransformationOutSerializer=void 0;T1.EndpointTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled,updatedAt:u.updatedAt?new Date(u.updatedAt):null}},_toJsonObject(u){return{code:u.code,enabled:u.enabled,updatedAt:u.updatedAt}}}});var x1=E((k1)=>{Object.defineProperty(k1,"__esModule",{value:!0});k1.EndpointTransformationPatchSerializer=void 0;k1.EndpointTransformationPatchSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var m1=E((y1)=>{Object.defineProperty(y1,"__esModule",{value:!0});y1.EndpointUpdateSerializer=void 0;y1.EndpointUpdateSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var j1=E((g1)=>{Object.defineProperty(g1,"__esModule",{value:!0});g1.EventExampleInSerializer=void 0;g1.EventExampleInSerializer={_fromJsonObject(u){return{eventType:u.eventType,exampleIndex:u.exampleIndex}},_toJsonObject(u){return{eventType:u.eventType,exampleIndex:u.exampleIndex}}}});var r1=E((l1)=>{Object.defineProperty(l1,"__esModule",{value:!0});l1.ListResponseEndpointOutSerializer=void 0;var f1=J0();l1.ListResponseEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>f1.EndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>f1.EndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var K2=E((c1)=>{Object.defineProperty(c1,"__esModule",{value:!0});c1.MessageOutSerializer=void 0;c1.MessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,id:u.id,payload:u.payload,tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,id:u.id,payload:u.payload,tags:u.tags,timestamp:u.timestamp}}}});var n1=E((a1)=>{Object.defineProperty(a1,"__esModule",{value:!0});a1.RecoverInSerializer=void 0;a1.RecoverInSerializer={_fromJsonObject(u){return{since:new Date(u.since),until:u.until?new Date(u.until):null}},_toJsonObject(u){return{since:u.since,until:u.until}}}});var u3=E((t1)=>{Object.defineProperty(t1,"__esModule",{value:!0});t1.RecoverOutSerializer=void 0;var s1=t(),o1=e();t1.RecoverOutSerializer={_fromJsonObject(u){return{id:u.id,status:s1.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:o1.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:s1.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:o1.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var F3=E((D3)=>{Object.defineProperty(D3,"__esModule",{value:!0});D3.ReplayInSerializer=void 0;D3.ReplayInSerializer={_fromJsonObject(u){return{since:new Date(u.since),until:u.until?new Date(u.until):null}},_toJsonObject(u){return{since:u.since,until:u.until}}}});var N3=E((E3)=>{Object.defineProperty(E3,"__esModule",{value:!0});E3.ReplayOutSerializer=void 0;var B3=t(),w3=e();E3.ReplayOutSerializer={_fromJsonObject(u){return{id:u.id,status:B3.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:w3.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:B3.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:w3.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var X3=E((z3)=>{Object.defineProperty(z3,"__esModule",{value:!0});z3.Endpoint=void 0;var VG=D1(),WG=B1(),KG=N0(),HG=J1(),CG=$1(),I2=J0(),UG=W1(),PG=C1(),RG=Z0(),vG=L1(),LG=h1(),MG=q1(),SG=x1(),hG=m1(),TG=j1(),OG=r1(),qG=K2(),kG=n1(),IG=u3(),xG=F3(),J3=N3(),V=R();class Z3{constructor(u){this.requestCtx=u}list(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,OG.ListResponseEndpointOutSerializer._fromJsonObject)}create(u,D,A){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint");return F.setPathParam("app_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(CG.EndpointInSerializer._toJsonObject(D)),F.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}get(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}update(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(hG.EndpointUpdateSerializer._toJsonObject(A)),F.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}delete(u,D){let A=new V.SvixRequest(V.HttpMethod.DELETE,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.sendNoResponseBody(this.requestCtx)}patch(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(UG.EndpointPatchSerializer._toJsonObject(A)),F.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}bulkReplay(u,D,A,F){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/bulk-replay");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(VG.BulkReplayInSerializer._toJsonObject(A)),B.send(this.requestCtx,J3.ReplayOutSerializer._fromJsonObject)}getHeaders(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,KG.EndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(WG.EndpointHeadersInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}headersUpdate(u,D,A){return this.updateHeaders(u,D,A)}patchHeaders(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(HG.EndpointHeadersPatchInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}headersPatch(u,D,A){return this.patchHeaders(u,D,A)}recover(u,D,A,F){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(kG.RecoverInSerializer._toJsonObject(A)),B.send(this.requestCtx,IG.RecoverOutSerializer._fromJsonObject)}replayMissing(u,D,A,F){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(xG.ReplayInSerializer._toJsonObject(A)),B.send(this.requestCtx,J3.ReplayOutSerializer._fromJsonObject)}getSecret(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,PG.EndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,F){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(RG.EndpointSecretRotateInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}sendExample(u,D,A,F){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(TG.EventExampleInSerializer._toJsonObject(A)),B.send(this.requestCtx,qG.MessageOutSerializer._fromJsonObject)}getStats(u,D,A){let F=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setQueryParams({since:A===null||A===void 0?void 0:A.since,until:A===null||A===void 0?void 0:A.until}),F.send(this.requestCtx,vG.EndpointStatsSerializer._fromJsonObject)}transformationGet(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,MG.EndpointTransformationOutSerializer._fromJsonObject)}patchTransformation(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(SG.EndpointTransformationPatchSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}transformationPartialUpdate(u,D,A){let F=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setBody(LG.EndpointTransformationInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}}z3.Endpoint=Z3});var z0=E((Y3)=>{Object.defineProperty(Y3,"__esModule",{value:!0});Y3.EventTypeInSerializer=void 0;Y3.EventTypeInSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}}}});var C3=E((K3)=>{Object.defineProperty(K3,"__esModule",{value:!0});K3.EnvironmentInSerializer=void 0;var V3=E0(),W3=z0();K3.EnvironmentInSerializer={_fromJsonObject(u){var D,A;return{connectors:(D=u.connectors)===null||D===void 0?void 0:D.map((F)=>V3.ConnectorInSerializer._fromJsonObject(F)),eventTypes:(A=u.eventTypes)===null||A===void 0?void 0:A.map((F)=>W3.EventTypeInSerializer._fromJsonObject(F)),settings:u.settings}},_toJsonObject(u){var D,A;return{connectors:(D=u.connectors)===null||D===void 0?void 0:D.map((F)=>V3.ConnectorInSerializer._toJsonObject(F)),eventTypes:(A=u.eventTypes)===null||A===void 0?void 0:A.map((F)=>W3.EventTypeInSerializer._toJsonObject(F)),settings:u.settings}}}});var x2=E((U3)=>{Object.defineProperty(U3,"__esModule",{value:!0});U3.EventTypeOutSerializer=void 0;U3.EventTypeOutSerializer={_fromJsonObject(u){return{archived:u.archived,createdAt:new Date(u.createdAt),deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{archived:u.archived,createdAt:u.createdAt,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas,updatedAt:u.updatedAt}}}});var S3=E((L3)=>{Object.defineProperty(L3,"__esModule",{value:!0});L3.EnvironmentOutSerializer=void 0;var R3=q2(),v3=x2();L3.EnvironmentOutSerializer={_fromJsonObject(u){return{connectors:u.connectors.map((D)=>R3.ConnectorOutSerializer._fromJsonObject(D)),createdAt:new Date(u.createdAt),eventTypes:u.eventTypes.map((D)=>v3.EventTypeOutSerializer._fromJsonObject(D)),settings:u.settings,version:u.version}},_toJsonObject(u){return{connectors:u.connectors.map((D)=>R3.ConnectorOutSerializer._toJsonObject(D)),createdAt:u.createdAt,eventTypes:u.eventTypes.map((D)=>v3.EventTypeOutSerializer._toJsonObject(D)),settings:u.settings,version:u.version}}}});var q3=E((T3)=>{Object.defineProperty(T3,"__esModule",{value:!0});T3.Environment=void 0;var yG=C3(),_G=S3(),y2=R();class h3{constructor(u){this.requestCtx=u}export(u){let D=new y2.SvixRequest(y2.HttpMethod.POST,"/api/v1/environment/export");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.send(this.requestCtx,_G.EnvironmentOutSerializer._fromJsonObject)}import(u,D){let A=new y2.SvixRequest(y2.HttpMethod.POST,"/api/v1/environment/import");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(yG.EnvironmentInSerializer._toJsonObject(u)),A.sendNoResponseBody(this.requestCtx)}}T3.Environment=h3});var x3=E((k3)=>{Object.defineProperty(k3,"__esModule",{value:!0});k3.EventTypeImportOpenApiInSerializer=void 0;k3.EventTypeImportOpenApiInSerializer={_fromJsonObject(u){return{dryRun:u.dryRun,replaceAll:u.replaceAll,spec:u.spec,specRaw:u.specRaw}},_toJsonObject(u){return{dryRun:u.dryRun,replaceAll:u.replaceAll,spec:u.spec,specRaw:u.specRaw}}}});var m3=E((y3)=>{Object.defineProperty(y3,"__esModule",{value:!0});y3.EventTypeFromOpenApiSerializer=void 0;y3.EventTypeFromOpenApiSerializer={_fromJsonObject(u){return{deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}},_toJsonObject(u){return{deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}}}});var f3=E((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.EventTypeImportOpenApiOutDataSerializer=void 0;var g3=m3();b3.EventTypeImportOpenApiOutDataSerializer={_fromJsonObject(u){var D;return{modified:u.modified,toModify:(D=u.to_modify)===null||D===void 0?void 0:D.map((A)=>g3.EventTypeFromOpenApiSerializer._fromJsonObject(A))}},_toJsonObject(u){var D;return{modified:u.modified,to_modify:(D=u.toModify)===null||D===void 0?void 0:D.map((A)=>g3.EventTypeFromOpenApiSerializer._toJsonObject(A))}}}});var c3=E((d3)=>{Object.defineProperty(d3,"__esModule",{value:!0});d3.EventTypeImportOpenApiOutSerializer=void 0;var l3=f3();d3.EventTypeImportOpenApiOutSerializer={_fromJsonObject(u){return{data:l3.EventTypeImportOpenApiOutDataSerializer._fromJsonObject(u.data)}},_toJsonObject(u){return{data:l3.EventTypeImportOpenApiOutDataSerializer._toJsonObject(u.data)}}}});var p3=E((i3)=>{Object.defineProperty(i3,"__esModule",{value:!0});i3.EventTypePatchSerializer=void 0;i3.EventTypePatchSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}}}});var o3=E((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.EventTypeUpdateSerializer=void 0;n3.EventTypeUpdateSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}}}});var D5=E((e3)=>{Object.defineProperty(e3,"__esModule",{value:!0});e3.ListResponseEventTypeOutSerializer=void 0;var t3=x2();e3.ListResponseEventTypeOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>t3.EventTypeOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>t3.EventTypeOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var w5=E((F5)=>{Object.defineProperty(F5,"__esModule",{value:!0});F5.EventType=void 0;var mG=x3(),gG=c3(),bG=z0(),_2=x2(),jG=p3(),fG=o3(),lG=D5(),b=R();class A5{constructor(u){this.requestCtx=u}list(u){let D=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/event-type");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,include_archived:u===null||u===void 0?void 0:u.includeArchived,with_content:u===null||u===void 0?void 0:u.withContent}),D.send(this.requestCtx,lG.ListResponseEventTypeOutSerializer._fromJsonObject)}create(u,D){let A=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/event-type");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(bG.EventTypeInSerializer._toJsonObject(u)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}importOpenapi(u,D){let A=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/event-type/import/openapi");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(mG.EventTypeImportOpenApiInSerializer._toJsonObject(u)),A.send(this.requestCtx,gG.EventTypeImportOpenApiOutSerializer._fromJsonObject)}get(u){let D=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/event-type/{event_type_name}");return D.setPathParam("event_type_name",u),D.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}update(u,D){let A=new b.SvixRequest(b.HttpMethod.PUT,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setBody(fG.EventTypeUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}delete(u,D){let A=new b.SvixRequest(b.HttpMethod.DELETE,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setQueryParams({expunge:D===null||D===void 0?void 0:D.expunge}),A.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new b.SvixRequest(b.HttpMethod.PATCH,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setBody(jG.EventTypePatchSerializer._toJsonObject(D)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}}F5.EventType=A5});var Z5=E((N5)=>{Object.defineProperty(N5,"__esModule",{value:!0});N5.Health=void 0;var E5=R();class G5{constructor(u){this.requestCtx=u}get(){return new E5.SvixRequest(E5.HttpMethod.GET,"/api/v1/health").sendNoResponseBody(this.requestCtx)}}N5.Health=G5});var X5=E((z5)=>{Object.defineProperty(z5,"__esModule",{value:!0});z5.IngestSourceConsumerPortalAccessInSerializer=void 0;z5.IngestSourceConsumerPortalAccessInSerializer={_fromJsonObject(u){return{expiry:u.expiry,readOnly:u.readOnly}},_toJsonObject(u){return{expiry:u.expiry,readOnly:u.readOnly}}}});var V5=E((Y5)=>{Object.defineProperty(Y5,"__esModule",{value:!0});Y5.IngestEndpointHeadersInSerializer=void 0;Y5.IngestEndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var H5=E((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.IngestEndpointHeadersOutSerializer=void 0;W5.IngestEndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var P5=E((C5)=>{Object.defineProperty(C5,"__esModule",{value:!0});C5.IngestEndpointInSerializer=void 0;C5.IngestEndpointInSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}}}});var $0=E((R5)=>{Object.defineProperty(R5,"__esModule",{value:!0});R5.IngestEndpointOutSerializer=void 0;R5.IngestEndpointOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url}},_toJsonObject(u){return{createdAt:u.createdAt,description:u.description,disabled:u.disabled,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:u.updatedAt,url:u.url}}}});var S5=E((L5)=>{Object.defineProperty(L5,"__esModule",{value:!0});L5.IngestEndpointSecretInSerializer=void 0;L5.IngestEndpointSecretInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var O5=E((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});h5.IngestEndpointSecretOutSerializer=void 0;h5.IngestEndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var I5=E((q5)=>{Object.defineProperty(q5,"__esModule",{value:!0});q5.IngestEndpointTransformationOutSerializer=void 0;q5.IngestEndpointTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var _5=E((x5)=>{Object.defineProperty(x5,"__esModule",{value:!0});x5.IngestEndpointTransformationPatchSerializer=void 0;x5.IngestEndpointTransformationPatchSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var b5=E((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0});m5.IngestEndpointUpdateSerializer=void 0;m5.IngestEndpointUpdateSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}}}});var d5=E((f5)=>{Object.defineProperty(f5,"__esModule",{value:!0});f5.ListResponseIngestEndpointOutSerializer=void 0;var j5=$0();f5.ListResponseIngestEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>j5.IngestEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>j5.IngestEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var a5=E((c5)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.IngestEndpoint=void 0;var dG=V5(),rG=H5(),cG=P5(),X0=$0(),iG=S5(),aG=O5(),pG=I5(),nG=_5(),sG=b5(),oG=d5(),L=R();class r5{constructor(u){this.requestCtx=u}list(u,D){let A=new L.SvixRequest(L.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint");return A.setPathParam("source_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,oG.ListResponseIngestEndpointOutSerializer._fromJsonObject)}create(u,D,A){let F=new L.SvixRequest(L.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint");return F.setPathParam("source_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(cG.IngestEndpointInSerializer._toJsonObject(D)),F.send(this.requestCtx,X0.IngestEndpointOutSerializer._fromJsonObject)}get(u,D){let A=new L.SvixRequest(L.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,X0.IngestEndpointOutSerializer._fromJsonObject)}update(u,D,A){let F=new L.SvixRequest(L.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return F.setPathParam("source_id",u),F.setPathParam("endpoint_id",D),F.setBody(sG.IngestEndpointUpdateSerializer._toJsonObject(A)),F.send(this.requestCtx,X0.IngestEndpointOutSerializer._fromJsonObject)}delete(u,D){let A=new L.SvixRequest(L.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.sendNoResponseBody(this.requestCtx)}getHeaders(u,D){let A=new L.SvixRequest(L.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,rG.IngestEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D,A){let F=new L.SvixRequest(L.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return F.setPathParam("source_id",u),F.setPathParam("endpoint_id",D),F.setBody(dG.IngestEndpointHeadersInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}getSecret(u,D){let A=new L.SvixRequest(L.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,aG.IngestEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,F){let B=new L.SvixRequest(L.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate");return B.setPathParam("source_id",u),B.setPathParam("endpoint_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(iG.IngestEndpointSecretInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}getTransformation(u,D){let A=new L.SvixRequest(L.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,pG.IngestEndpointTransformationOutSerializer._fromJsonObject)}setTransformation(u,D,A){let F=new L.SvixRequest(L.HttpMethod.PATCH,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");return F.setPathParam("source_id",u),F.setPathParam("endpoint_id",D),F.setBody(nG.IngestEndpointTransformationPatchSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}}c5.IngestEndpoint=r5});var s5=E((p5)=>{Object.defineProperty(p5,"__esModule",{value:!0});p5.AdobeSignConfigSerializer=void 0;p5.AdobeSignConfigSerializer={_fromJsonObject(u){return{clientId:u.clientId}},_toJsonObject(u){return{clientId:u.clientId}}}});var e5=E((o5)=>{Object.defineProperty(o5,"__esModule",{value:!0});o5.AirwallexConfigSerializer=void 0;o5.AirwallexConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var AA=E((uA)=>{Object.defineProperty(uA,"__esModule",{value:!0});uA.CheckbookConfigSerializer=void 0;uA.CheckbookConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var Y0=E((FA)=>{Object.defineProperty(FA,"__esModule",{value:!0});FA.CronConfigSerializer=void 0;FA.CronConfigSerializer={_fromJsonObject(u){return{contentType:u.contentType,payload:u.payload,schedule:u.schedule}},_toJsonObject(u){return{contentType:u.contentType,payload:u.payload,schedule:u.schedule}}}});var GA=E((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.DocusignConfigSerializer=void 0;wA.DocusignConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var ZA=E((NA)=>{Object.defineProperty(NA,"__esModule",{value:!0});NA.EasypostConfigSerializer=void 0;NA.EasypostConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var XA=E((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.GithubConfigSerializer=void 0;zA.GithubConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var VA=E((YA)=>{Object.defineProperty(YA,"__esModule",{value:!0});YA.HubspotConfigSerializer=void 0;YA.HubspotConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var HA=E((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.MetaConfigSerializer=void 0;WA.MetaConfigSerializer={_fromJsonObject(u){return{secret:u.secret,verifyToken:u.verifyToken}},_toJsonObject(u){return{secret:u.secret,verifyToken:u.verifyToken}}}});var PA=E((CA)=>{Object.defineProperty(CA,"__esModule",{value:!0});CA.OrumIoConfigSerializer=void 0;CA.OrumIoConfigSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var LA=E((RA)=>{Object.defineProperty(RA,"__esModule",{value:!0});RA.PandaDocConfigSerializer=void 0;RA.PandaDocConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var hA=E((MA)=>{Object.defineProperty(MA,"__esModule",{value:!0});MA.PortIoConfigSerializer=void 0;MA.PortIoConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var qA=E((TA)=>{Object.defineProperty(TA,"__esModule",{value:!0});TA.RutterConfigSerializer=void 0;TA.RutterConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var xA=E((kA)=>{Object.defineProperty(kA,"__esModule",{value:!0});kA.SegmentConfigSerializer=void 0;kA.SegmentConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var mA=E((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.ShopifyConfigSerializer=void 0;yA.ShopifyConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var jA=E((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});gA.SlackConfigSerializer=void 0;gA.SlackConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var dA=E((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.StripeConfigSerializer=void 0;fA.StripeConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var iA=E((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.SvixConfigSerializer=void 0;rA.SvixConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var nA=E((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.TelnyxConfigSerializer=void 0;aA.TelnyxConfigSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var tA=E((sA)=>{Object.defineProperty(sA,"__esModule",{value:!0});sA.VapiConfigSerializer=void 0;sA.VapiConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var D9=E((eA)=>{Object.defineProperty(eA,"__esModule",{value:!0});eA.VeriffConfigSerializer=void 0;eA.VeriffConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var B9=E((A9)=>{Object.defineProperty(A9,"__esModule",{value:!0});A9.ZoomConfigSerializer=void 0;A9.ZoomConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var h9=E((M9)=>{Object.defineProperty(M9,"__esModule",{value:!0});M9.IngestSourceInSerializer=void 0;var w9=s5(),E9=e5(),G9=AA(),N9=Y0(),J9=GA(),Z9=ZA(),z9=XA(),$9=VA(),X9=HA(),Y9=PA(),Q9=LA(),V9=hA(),W9=qA(),K9=xA(),H9=mA(),C9=jA(),U9=dA(),W=iA(),P9=nA(),R9=tA(),v9=D9(),L9=B9();M9.IngestSourceInSerializer={_fromJsonObject(u){let D=u.type;function A(F){switch(F){case"generic-webhook":return{};case"cron":return N9.CronConfigSerializer._fromJsonObject(u.config);case"adobe-sign":return w9.AdobeSignConfigSerializer._fromJsonObject(u.config);case"beehiiv":return W.SvixConfigSerializer._fromJsonObject(u.config);case"brex":return W.SvixConfigSerializer._fromJsonObject(u.config);case"checkbook":return G9.CheckbookConfigSerializer._fromJsonObject(u.config);case"clerk":return W.SvixConfigSerializer._fromJsonObject(u.config);case"docusign":return J9.DocusignConfigSerializer._fromJsonObject(u.config);case"easypost":return Z9.EasypostConfigSerializer._fromJsonObject(u.config);case"github":return z9.GithubConfigSerializer._fromJsonObject(u.config);case"guesty":return W.SvixConfigSerializer._fromJsonObject(u.config);case"hubspot":return $9.HubspotConfigSerializer._fromJsonObject(u.config);case"incident-io":return W.SvixConfigSerializer._fromJsonObject(u.config);case"lithic":return W.SvixConfigSerializer._fromJsonObject(u.config);case"meta":return X9.MetaConfigSerializer._fromJsonObject(u.config);case"nash":return W.SvixConfigSerializer._fromJsonObject(u.config);case"orum-io":return Y9.OrumIoConfigSerializer._fromJsonObject(u.config);case"panda-doc":return Q9.PandaDocConfigSerializer._fromJsonObject(u.config);case"port-io":return V9.PortIoConfigSerializer._fromJsonObject(u.config);case"pleo":return W.SvixConfigSerializer._fromJsonObject(u.config);case"psi-fi":return W.SvixConfigSerializer._fromJsonObject(u.config);case"replicate":return W.SvixConfigSerializer._fromJsonObject(u.config);case"resend":return W.SvixConfigSerializer._fromJsonObject(u.config);case"rutter":return W9.RutterConfigSerializer._fromJsonObject(u.config);case"safebase":return W.SvixConfigSerializer._fromJsonObject(u.config);case"sardine":return W.SvixConfigSerializer._fromJsonObject(u.config);case"segment":return K9.SegmentConfigSerializer._fromJsonObject(u.config);case"shopify":return H9.ShopifyConfigSerializer._fromJsonObject(u.config);case"slack":return C9.SlackConfigSerializer._fromJsonObject(u.config);case"stripe":return U9.StripeConfigSerializer._fromJsonObject(u.config);case"stych":return W.SvixConfigSerializer._fromJsonObject(u.config);case"svix":return W.SvixConfigSerializer._fromJsonObject(u.config);case"zoom":return L9.ZoomConfigSerializer._fromJsonObject(u.config);case"telnyx":return P9.TelnyxConfigSerializer._fromJsonObject(u.config);case"vapi":return R9.VapiConfigSerializer._fromJsonObject(u.config);case"open-ai":return W.SvixConfigSerializer._fromJsonObject(u.config);case"render":return W.SvixConfigSerializer._fromJsonObject(u.config);case"veriff":return v9.VeriffConfigSerializer._fromJsonObject(u.config);case"airwallex":return E9.AirwallexConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${F}`)}}return{type:D,config:A(D),metadata:u.metadata,name:u.name,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"generic-webhook":D={};break;case"cron":D=N9.CronConfigSerializer._toJsonObject(u.config);break;case"adobe-sign":D=w9.AdobeSignConfigSerializer._toJsonObject(u.config);break;case"beehiiv":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"brex":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"checkbook":D=G9.CheckbookConfigSerializer._toJsonObject(u.config);break;case"clerk":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"docusign":D=J9.DocusignConfigSerializer._toJsonObject(u.config);break;case"easypost":D=Z9.EasypostConfigSerializer._toJsonObject(u.config);break;case"github":D=z9.GithubConfigSerializer._toJsonObject(u.config);break;case"guesty":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"hubspot":D=$9.HubspotConfigSerializer._toJsonObject(u.config);break;case"incident-io":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"lithic":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"meta":D=X9.MetaConfigSerializer._toJsonObject(u.config);break;case"nash":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"orum-io":D=Y9.OrumIoConfigSerializer._toJsonObject(u.config);break;case"panda-doc":D=Q9.PandaDocConfigSerializer._toJsonObject(u.config);break;case"port-io":D=V9.PortIoConfigSerializer._toJsonObject(u.config);break;case"pleo":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"psi-fi":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"replicate":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"resend":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"rutter":D=W9.RutterConfigSerializer._toJsonObject(u.config);break;case"safebase":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"sardine":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"segment":D=K9.SegmentConfigSerializer._toJsonObject(u.config);break;case"shopify":D=H9.ShopifyConfigSerializer._toJsonObject(u.config);break;case"slack":D=C9.SlackConfigSerializer._toJsonObject(u.config);break;case"stripe":D=U9.StripeConfigSerializer._toJsonObject(u.config);break;case"stych":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"svix":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"zoom":D=L9.ZoomConfigSerializer._toJsonObject(u.config);break;case"telnyx":D=P9.TelnyxConfigSerializer._toJsonObject(u.config);break;case"vapi":D=R9.VapiConfigSerializer._toJsonObject(u.config);break;case"open-ai":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"render":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"veriff":D=v9.VeriffConfigSerializer._toJsonObject(u.config);break;case"airwallex":D=E9.AirwallexConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,metadata:u.metadata,name:u.name,uid:u.uid}}}});var q9=E((T9)=>{Object.defineProperty(T9,"__esModule",{value:!0});T9.AdobeSignConfigOutSerializer=void 0;T9.AdobeSignConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var x9=E((k9)=>{Object.defineProperty(k9,"__esModule",{value:!0});k9.AirwallexConfigOutSerializer=void 0;k9.AirwallexConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var m9=E((y9)=>{Object.defineProperty(y9,"__esModule",{value:!0});y9.CheckbookConfigOutSerializer=void 0;y9.CheckbookConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var j9=E((g9)=>{Object.defineProperty(g9,"__esModule",{value:!0});g9.DocusignConfigOutSerializer=void 0;g9.DocusignConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var d9=E((f9)=>{Object.defineProperty(f9,"__esModule",{value:!0});f9.EasypostConfigOutSerializer=void 0;f9.EasypostConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var i9=E((r9)=>{Object.defineProperty(r9,"__esModule",{value:!0});r9.GithubConfigOutSerializer=void 0;r9.GithubConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var n9=E((a9)=>{Object.defineProperty(a9,"__esModule",{value:!0});a9.HubspotConfigOutSerializer=void 0;a9.HubspotConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var t9=E((s9)=>{Object.defineProperty(s9,"__esModule",{value:!0});s9.MetaConfigOutSerializer=void 0;s9.MetaConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var D8=E((e9)=>{Object.defineProperty(e9,"__esModule",{value:!0});e9.OrumIoConfigOutSerializer=void 0;e9.OrumIoConfigOutSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var B8=E((A8)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.PandaDocConfigOutSerializer=void 0;A8.PandaDocConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var G8=E((w8)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.PortIoConfigOutSerializer=void 0;w8.PortIoConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var Z8=E((N8)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.RutterConfigOutSerializer=void 0;N8.RutterConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var X8=E((z8)=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.SegmentConfigOutSerializer=void 0;z8.SegmentConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var V8=E((Y8)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.ShopifyConfigOutSerializer=void 0;Y8.ShopifyConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var H8=E((W8)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.SlackConfigOutSerializer=void 0;W8.SlackConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var P8=E((C8)=>{Object.defineProperty(C8,"__esModule",{value:!0});C8.StripeConfigOutSerializer=void 0;C8.StripeConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var L8=E((R8)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.SvixConfigOutSerializer=void 0;R8.SvixConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var h8=E((M8)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.TelnyxConfigOutSerializer=void 0;M8.TelnyxConfigOutSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var q8=E((T8)=>{Object.defineProperty(T8,"__esModule",{value:!0});T8.VapiConfigOutSerializer=void 0;T8.VapiConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var x8=E((k8)=>{Object.defineProperty(k8,"__esModule",{value:!0});k8.VeriffConfigOutSerializer=void 0;k8.VeriffConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var m8=E((y8)=>{Object.defineProperty(y8,"__esModule",{value:!0});y8.ZoomConfigOutSerializer=void 0;y8.ZoomConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var Q0=E((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.IngestSourceOutSerializer=void 0;var g8=q9(),b8=x9(),j8=m9(),f8=Y0(),l8=j9(),d8=d9(),r8=i9(),c8=n9(),i8=t9(),a8=D8(),p8=B8(),n8=G8(),s8=Z8(),o8=X8(),t8=V8(),e8=H8(),u4=P8(),K=L8(),D4=h8(),A4=q8(),F4=x8(),B4=m8();w4.IngestSourceOutSerializer={_fromJsonObject(u){let D=u.type;function A(F){switch(F){case"generic-webhook":return{};case"cron":return f8.CronConfigSerializer._fromJsonObject(u.config);case"adobe-sign":return g8.AdobeSignConfigOutSerializer._fromJsonObject(u.config);case"beehiiv":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"brex":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"checkbook":return j8.CheckbookConfigOutSerializer._fromJsonObject(u.config);case"clerk":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"docusign":return l8.DocusignConfigOutSerializer._fromJsonObject(u.config);case"easypost":return d8.EasypostConfigOutSerializer._fromJsonObject(u.config);case"github":return r8.GithubConfigOutSerializer._fromJsonObject(u.config);case"guesty":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"hubspot":return c8.HubspotConfigOutSerializer._fromJsonObject(u.config);case"incident-io":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"lithic":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"meta":return i8.MetaConfigOutSerializer._fromJsonObject(u.config);case"nash":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"orum-io":return a8.OrumIoConfigOutSerializer._fromJsonObject(u.config);case"panda-doc":return p8.PandaDocConfigOutSerializer._fromJsonObject(u.config);case"port-io":return n8.PortIoConfigOutSerializer._fromJsonObject(u.config);case"psi-fi":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"pleo":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"replicate":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"resend":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"rutter":return s8.RutterConfigOutSerializer._fromJsonObject(u.config);case"safebase":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"sardine":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"segment":return o8.SegmentConfigOutSerializer._fromJsonObject(u.config);case"shopify":return t8.ShopifyConfigOutSerializer._fromJsonObject(u.config);case"slack":return e8.SlackConfigOutSerializer._fromJsonObject(u.config);case"stripe":return u4.StripeConfigOutSerializer._fromJsonObject(u.config);case"stych":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"svix":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"zoom":return B4.ZoomConfigOutSerializer._fromJsonObject(u.config);case"telnyx":return D4.TelnyxConfigOutSerializer._fromJsonObject(u.config);case"vapi":return A4.VapiConfigOutSerializer._fromJsonObject(u.config);case"open-ai":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"render":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"veriff":return F4.VeriffConfigOutSerializer._fromJsonObject(u.config);case"airwallex":return b8.AirwallexConfigOutSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${F}`)}}return{type:D,config:A(D),createdAt:new Date(u.createdAt),id:u.id,ingestUrl:u.ingestUrl,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){let D;switch(u.type){case"generic-webhook":D={};break;case"cron":D=f8.CronConfigSerializer._toJsonObject(u.config);break;case"adobe-sign":D=g8.AdobeSignConfigOutSerializer._toJsonObject(u.config);break;case"beehiiv":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"brex":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"checkbook":D=j8.CheckbookConfigOutSerializer._toJsonObject(u.config);break;case"clerk":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"docusign":D=l8.DocusignConfigOutSerializer._toJsonObject(u.config);break;case"easypost":D=d8.EasypostConfigOutSerializer._toJsonObject(u.config);break;case"github":D=r8.GithubConfigOutSerializer._toJsonObject(u.config);break;case"guesty":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"hubspot":D=c8.HubspotConfigOutSerializer._toJsonObject(u.config);break;case"incident-io":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"lithic":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"meta":D=i8.MetaConfigOutSerializer._toJsonObject(u.config);break;case"nash":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"orum-io":D=a8.OrumIoConfigOutSerializer._toJsonObject(u.config);break;case"panda-doc":D=p8.PandaDocConfigOutSerializer._toJsonObject(u.config);break;case"port-io":D=n8.PortIoConfigOutSerializer._toJsonObject(u.config);break;case"psi-fi":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"pleo":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"replicate":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"resend":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"rutter":D=s8.RutterConfigOutSerializer._toJsonObject(u.config);break;case"safebase":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"sardine":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"segment":D=o8.SegmentConfigOutSerializer._toJsonObject(u.config);break;case"shopify":D=t8.ShopifyConfigOutSerializer._toJsonObject(u.config);break;case"slack":D=e8.SlackConfigOutSerializer._toJsonObject(u.config);break;case"stripe":D=u4.StripeConfigOutSerializer._toJsonObject(u.config);break;case"stych":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"svix":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"zoom":D=B4.ZoomConfigOutSerializer._toJsonObject(u.config);break;case"telnyx":D=D4.TelnyxConfigOutSerializer._toJsonObject(u.config);break;case"vapi":D=A4.VapiConfigOutSerializer._toJsonObject(u.config);break;case"open-ai":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"render":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"veriff":D=F4.VeriffConfigOutSerializer._toJsonObject(u.config);break;case"airwallex":D=b8.AirwallexConfigOutSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,createdAt:u.createdAt,id:u.id,ingestUrl:u.ingestUrl,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:u.updatedAt}}}});var Z4=E((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.ListResponseIngestSourceOutSerializer=void 0;var G4=Q0();N4.ListResponseIngestSourceOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>G4.IngestSourceOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>G4.IngestSourceOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var X4=E((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.RotateTokenOutSerializer=void 0;z4.RotateTokenOutSerializer={_fromJsonObject(u){return{ingestUrl:u.ingestUrl}},_toJsonObject(u){return{ingestUrl:u.ingestUrl}}}});var K4=E((V4)=>{Object.defineProperty(V4,"__esModule",{value:!0});V4.IngestSource=void 0;var Y4=h9(),V0=Q0(),tG=Z4(),eG=X4(),c=R();class Q4{constructor(u){this.requestCtx=u}list(u){let D=new c.SvixRequest(c.HttpMethod.GET,"/ingest/api/v1/source");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,tG.ListResponseIngestSourceOutSerializer._fromJsonObject)}create(u,D){let A=new c.SvixRequest(c.HttpMethod.POST,"/ingest/api/v1/source");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(Y4.IngestSourceInSerializer._toJsonObject(u)),A.send(this.requestCtx,V0.IngestSourceOutSerializer._fromJsonObject)}get(u){let D=new c.SvixRequest(c.HttpMethod.GET,"/ingest/api/v1/source/{source_id}");return D.setPathParam("source_id",u),D.send(this.requestCtx,V0.IngestSourceOutSerializer._fromJsonObject)}update(u,D){let A=new c.SvixRequest(c.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}");return A.setPathParam("source_id",u),A.setBody(Y4.IngestSourceInSerializer._toJsonObject(D)),A.send(this.requestCtx,V0.IngestSourceOutSerializer._fromJsonObject)}delete(u){let D=new c.SvixRequest(c.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}");return D.setPathParam("source_id",u),D.sendNoResponseBody(this.requestCtx)}rotateToken(u,D){let A=new c.SvixRequest(c.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/token/rotate");return A.setPathParam("source_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,eG.RotateTokenOutSerializer._fromJsonObject)}}V4.IngestSource=Q4});var R4=E((U4)=>{Object.defineProperty(U4,"__esModule",{value:!0});U4.Ingest=void 0;var uN=B0(),DN=X5(),AN=a5(),FN=K4(),H4=R();class C4{constructor(u){this.requestCtx=u}get endpoint(){return new AN.IngestEndpoint(this.requestCtx)}get source(){return new FN.IngestSource(this.requestCtx)}dashboard(u,D,A){let F=new H4.SvixRequest(H4.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/dashboard");return F.setPathParam("source_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(DN.IngestSourceConsumerPortalAccessInSerializer._toJsonObject(D)),F.send(this.requestCtx,uN.DashboardAccessOutSerializer._fromJsonObject)}}U4.Ingest=C4});var M4=E((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.IntegrationInSerializer=void 0;v4.IntegrationInSerializer={_fromJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}}}});var T4=E((S4)=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.IntegrationKeyOutSerializer=void 0;S4.IntegrationKeyOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var W0=E((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.IntegrationOutSerializer=void 0;O4.IntegrationOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),featureFlags:u.featureFlags,id:u.id,name:u.name,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{createdAt:u.createdAt,featureFlags:u.featureFlags,id:u.id,name:u.name,updatedAt:u.updatedAt}}}});var x4=E((k4)=>{Object.defineProperty(k4,"__esModule",{value:!0});k4.IntegrationUpdateSerializer=void 0;k4.IntegrationUpdateSerializer={_fromJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}}}});var g4=E((_4)=>{Object.defineProperty(_4,"__esModule",{value:!0});_4.ListResponseIntegrationOutSerializer=void 0;var y4=W0();_4.ListResponseIntegrationOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>y4.IntegrationOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>y4.IntegrationOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var d4=E((f4)=>{Object.defineProperty(f4,"__esModule",{value:!0});f4.Integration=void 0;var BN=M4(),b4=T4(),K0=W0(),wN=x4(),EN=g4(),j=R();class j4{constructor(u){this.requestCtx=u}list(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,EN.ListResponseIntegrationOutSerializer._fromJsonObject)}create(u,D,A){let F=new j.SvixRequest(j.HttpMethod.POST,"/api/v1/app/{app_id}/integration");return F.setPathParam("app_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(BN.IntegrationInSerializer._toJsonObject(D)),F.send(this.requestCtx,K0.IntegrationOutSerializer._fromJsonObject)}get(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.send(this.requestCtx,K0.IntegrationOutSerializer._fromJsonObject)}update(u,D,A){let F=new j.SvixRequest(j.HttpMethod.PUT,"/api/v1/app/{app_id}/integration/{integ_id}");return F.setPathParam("app_id",u),F.setPathParam("integ_id",D),F.setBody(wN.IntegrationUpdateSerializer._toJsonObject(A)),F.send(this.requestCtx,K0.IntegrationOutSerializer._fromJsonObject)}delete(u,D){let A=new j.SvixRequest(j.HttpMethod.DELETE,"/api/v1/app/{app_id}/integration/{integ_id}");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.sendNoResponseBody(this.requestCtx)}getKey(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}/key");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.send(this.requestCtx,b4.IntegrationKeyOutSerializer._fromJsonObject)}rotateKey(u,D,A){let F=new j.SvixRequest(j.HttpMethod.POST,"/api/v1/app/{app_id}/integration/{integ_id}/key/rotate");return F.setPathParam("app_id",u),F.setPathParam("integ_id",D),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.send(this.requestCtx,b4.IntegrationKeyOutSerializer._fromJsonObject)}}f4.Integration=j4});var p4=E((i4)=>{Object.defineProperty(i4,"__esModule",{value:!0});i4.ExpungeAllContentsOutSerializer=void 0;var r4=t(),c4=e();i4.ExpungeAllContentsOutSerializer={_fromJsonObject(u){return{id:u.id,status:r4.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:c4.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:r4.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:c4.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var t4=E((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.ListResponseMessageOutSerializer=void 0;var n4=K2();s4.ListResponseMessageOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>n4.MessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>n4.MessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var D6=E((e4)=>{Object.defineProperty(e4,"__esModule",{value:!0});e4.MessagePrecheckInSerializer=void 0;e4.MessagePrecheckInSerializer={_fromJsonObject(u){return{channels:u.channels,eventType:u.eventType}},_toJsonObject(u){return{channels:u.channels,eventType:u.eventType}}}});var B6=E((A6)=>{Object.defineProperty(A6,"__esModule",{value:!0});A6.MessagePrecheckOutSerializer=void 0;A6.MessagePrecheckOutSerializer={_fromJsonObject(u){return{active:u.active}},_toJsonObject(u){return{active:u.active}}}});var G6=E((w6)=>{Object.defineProperty(w6,"__esModule",{value:!0});w6.PollingEndpointConsumerSeekInSerializer=void 0;w6.PollingEndpointConsumerSeekInSerializer={_fromJsonObject(u){return{after:new Date(u.after)}},_toJsonObject(u){return{after:u.after}}}});var Z6=E((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.PollingEndpointConsumerSeekOutSerializer=void 0;N6.PollingEndpointConsumerSeekOutSerializer={_fromJsonObject(u){return{iterator:u.iterator}},_toJsonObject(u){return{iterator:u.iterator}}}});var X6=E((z6)=>{Object.defineProperty(z6,"__esModule",{value:!0});z6.PollingEndpointMessageOutSerializer=void 0;z6.PollingEndpointMessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,headers:u.headers,id:u.id,payload:u.payload,tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,headers:u.headers,id:u.id,payload:u.payload,tags:u.tags,timestamp:u.timestamp}}}});var W6=E((Q6)=>{Object.defineProperty(Q6,"__esModule",{value:!0});Q6.PollingEndpointOutSerializer=void 0;var Y6=X6();Q6.PollingEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>Y6.PollingEndpointMessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator}},_toJsonObject(u){return{data:u.data.map((D)=>Y6.PollingEndpointMessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator}}}});var P6=E((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.MessagePoller=void 0;var GN=G6(),NN=Z6(),K6=W6(),G2=R();class H6{constructor(u){this.requestCtx=u}poll(u,D,A){let F=new G2.SvixRequest(G2.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}");return F.setPathParam("app_id",u),F.setPathParam("sink_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,event_type:A===null||A===void 0?void 0:A.eventType,channel:A===null||A===void 0?void 0:A.channel,after:A===null||A===void 0?void 0:A.after}),F.send(this.requestCtx,K6.PollingEndpointOutSerializer._fromJsonObject)}consumerPoll(u,D,A,F){let B=new G2.SvixRequest(G2.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}");return B.setPathParam("app_id",u),B.setPathParam("sink_id",D),B.setPathParam("consumer_id",A),B.setQueryParams({limit:F===null||F===void 0?void 0:F.limit,iterator:F===null||F===void 0?void 0:F.iterator}),B.send(this.requestCtx,K6.PollingEndpointOutSerializer._fromJsonObject)}consumerSeek(u,D,A,F,B){let G=new G2.SvixRequest(G2.HttpMethod.POST,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}/seek");return G.setPathParam("app_id",u),G.setPathParam("sink_id",D),G.setPathParam("consumer_id",A),G.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),G.setBody(GN.PollingEndpointConsumerSeekInSerializer._toJsonObject(F)),G.send(this.requestCtx,NN.PollingEndpointConsumerSeekOutSerializer._fromJsonObject)}}C6.MessagePoller=H6});var M6=E((v6)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.MessageInSerializer=void 0;var R6=h2();v6.MessageInSerializer={_fromJsonObject(u){return{application:u.application!=null?R6.ApplicationInSerializer._fromJsonObject(u.application):void 0,channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,payload:u.payload,payloadRetentionHours:u.payloadRetentionHours,payloadRetentionPeriod:u.payloadRetentionPeriod,tags:u.tags,transformationsParams:u.transformationsParams}},_toJsonObject(u){return{application:u.application!=null?R6.ApplicationInSerializer._toJsonObject(u.application):void 0,channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,payload:u.payload,payloadRetentionHours:u.payloadRetentionHours,payloadRetentionPeriod:u.payloadRetentionPeriod,tags:u.tags,transformationsParams:u.transformationsParams}}}});var H0=E((T6)=>{Object.defineProperty(T6,"__esModule",{value:!0});T6.messageInRaw=T6.Message=void 0;var JN=p4(),ZN=t4(),S6=K2(),zN=D6(),$N=B6(),XN=P6(),i=R(),YN=M6();class h6{constructor(u){this.requestCtx=u}get poller(){return new XN.MessagePoller(this.requestCtx)}list(u,D){let A=new i.SvixRequest(i.HttpMethod.GET,"/api/v1/app/{app_id}/msg");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,channel:D===null||D===void 0?void 0:D.channel,before:D===null||D===void 0?void 0:D.before,after:D===null||D===void 0?void 0:D.after,with_content:D===null||D===void 0?void 0:D.withContent,tag:D===null||D===void 0?void 0:D.tag,event_types:D===null||D===void 0?void 0:D.eventTypes}),A.send(this.requestCtx,ZN.ListResponseMessageOutSerializer._fromJsonObject)}create(u,D,A){let F=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg");return F.setPathParam("app_id",u),F.setQueryParams({with_content:A===null||A===void 0?void 0:A.withContent}),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(YN.MessageInSerializer._toJsonObject(D)),F.send(this.requestCtx,S6.MessageOutSerializer._fromJsonObject)}expungeAllContents(u,D){let A=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg/expunge-all-contents");return A.setPathParam("app_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,JN.ExpungeAllContentsOutSerializer._fromJsonObject)}precheck(u,D,A){let F=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg/precheck/active");return F.setPathParam("app_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(zN.MessagePrecheckInSerializer._toJsonObject(D)),F.send(this.requestCtx,$N.MessagePrecheckOutSerializer._fromJsonObject)}get(u,D,A){let F=new i.SvixRequest(i.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setQueryParams({with_content:A===null||A===void 0?void 0:A.withContent}),F.send(this.requestCtx,S6.MessageOutSerializer._fromJsonObject)}expungeContent(u,D){let A=new i.SvixRequest(i.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/content");return A.setPathParam("app_id",u),A.setPathParam("msg_id",D),A.sendNoResponseBody(this.requestCtx)}}T6.Message=h6;function QN(u,D,A){return{eventType:u,payload:{},transformationsParams:{rawPayload:D,headers:A?{"content-type":A}:void 0}}}T6.messageInRaw=QN});var C0=E((q6)=>{Object.defineProperty(q6,"__esModule",{value:!0});q6.EmptyResponseSerializer=void 0;q6.EmptyResponseSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var H2=E((x6)=>{Object.defineProperty(x6,"__esModule",{value:!0});x6.MessageStatusTextSerializer=x6.MessageStatusText=void 0;var WN;(function(u){u.Success="success",u.Pending="pending",u.Fail="fail",u.Sending="sending"})(WN=x6.MessageStatusText||(x6.MessageStatusText={}));x6.MessageStatusTextSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var j6=E((g6)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.EndpointMessageOutSerializer=void 0;var _6=E2(),m6=H2();g6.EndpointMessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,id:u.id,nextAttempt:u.nextAttempt?new Date(u.nextAttempt):null,payload:u.payload,status:_6.MessageStatusSerializer._fromJsonObject(u.status),statusText:m6.MessageStatusTextSerializer._fromJsonObject(u.statusText),tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,id:u.id,nextAttempt:u.nextAttempt,payload:u.payload,status:_6.MessageStatusSerializer._toJsonObject(u.status),statusText:m6.MessageStatusTextSerializer._toJsonObject(u.statusText),tags:u.tags,timestamp:u.timestamp}}}});var r6=E((l6)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.ListResponseEndpointMessageOutSerializer=void 0;var f6=j6();l6.ListResponseEndpointMessageOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>f6.EndpointMessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>f6.EndpointMessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var U0=E((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.MessageAttemptTriggerTypeSerializer=i6.MessageAttemptTriggerType=void 0;var KN;(function(u){u[u.Scheduled=0]="Scheduled",u[u.Manual=1]="Manual"})(KN=i6.MessageAttemptTriggerType||(i6.MessageAttemptTriggerType={}));i6.MessageAttemptTriggerTypeSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var P0=E((t6)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.MessageAttemptOutSerializer=void 0;var p6=U0(),n6=K2(),s6=E2(),o6=H2();t6.MessageAttemptOutSerializer={_fromJsonObject(u){return{endpointId:u.endpointId,id:u.id,msg:u.msg!=null?n6.MessageOutSerializer._fromJsonObject(u.msg):void 0,msgId:u.msgId,response:u.response,responseDurationMs:u.responseDurationMs,responseStatusCode:u.responseStatusCode,status:s6.MessageStatusSerializer._fromJsonObject(u.status),statusText:o6.MessageStatusTextSerializer._fromJsonObject(u.statusText),timestamp:new Date(u.timestamp),triggerType:p6.MessageAttemptTriggerTypeSerializer._fromJsonObject(u.triggerType),url:u.url}},_toJsonObject(u){return{endpointId:u.endpointId,id:u.id,msg:u.msg!=null?n6.MessageOutSerializer._toJsonObject(u.msg):void 0,msgId:u.msgId,response:u.response,responseDurationMs:u.responseDurationMs,responseStatusCode:u.responseStatusCode,status:s6.MessageStatusSerializer._toJsonObject(u.status),statusText:o6.MessageStatusTextSerializer._toJsonObject(u.statusText),timestamp:u.timestamp,triggerType:p6.MessageAttemptTriggerTypeSerializer._toJsonObject(u.triggerType),url:u.url}}}});var FF=E((DF)=>{Object.defineProperty(DF,"__esModule",{value:!0});DF.ListResponseMessageAttemptOutSerializer=void 0;var uF=P0();DF.ListResponseMessageAttemptOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>uF.MessageAttemptOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>uF.MessageAttemptOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var NF=E((EF)=>{Object.defineProperty(EF,"__esModule",{value:!0});EF.MessageEndpointOutSerializer=void 0;var BF=E2(),wF=H2();EF.MessageEndpointOutSerializer={_fromJsonObject(u){return{channels:u.channels,createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,nextAttempt:u.nextAttempt?new Date(u.nextAttempt):null,rateLimit:u.rateLimit,status:BF.MessageStatusSerializer._fromJsonObject(u.status),statusText:wF.MessageStatusTextSerializer._fromJsonObject(u.statusText),throttleRate:u.throttleRate,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,nextAttempt:u.nextAttempt,rateLimit:u.rateLimit,status:BF.MessageStatusSerializer._toJsonObject(u.status),statusText:wF.MessageStatusTextSerializer._toJsonObject(u.statusText),throttleRate:u.throttleRate,uid:u.uid,updatedAt:u.updatedAt,url:u.url,version:u.version}}}});var $F=E((ZF)=>{Object.defineProperty(ZF,"__esModule",{value:!0});ZF.ListResponseMessageEndpointOutSerializer=void 0;var JF=NF();ZF.ListResponseMessageEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>JF.MessageEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>JF.MessageEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var WF=E((QF)=>{Object.defineProperty(QF,"__esModule",{value:!0});QF.MessageAttempt=void 0;var HN=C0(),CN=r6(),XF=FF(),UN=$F(),PN=P0(),f=R();class YF{constructor(u){this.requestCtx=u}listByEndpoint(u,D,A){let F=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,status:A===null||A===void 0?void 0:A.status,status_code_class:A===null||A===void 0?void 0:A.statusCodeClass,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,with_msg:A===null||A===void 0?void 0:A.withMsg,event_types:A===null||A===void 0?void 0:A.eventTypes}),F.send(this.requestCtx,XF.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listByMsg(u,D,A){let F=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/msg/{msg_id}");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,status:A===null||A===void 0?void 0:A.status,status_code_class:A===null||A===void 0?void 0:A.statusCodeClass,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,endpoint_id:A===null||A===void 0?void 0:A.endpointId,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,event_types:A===null||A===void 0?void 0:A.eventTypes}),F.send(this.requestCtx,XF.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listAttemptedMessages(u,D,A){let F=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,status:A===null||A===void 0?void 0:A.status,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,event_types:A===null||A===void 0?void 0:A.eventTypes}),F.send(this.requestCtx,CN.ListResponseEndpointMessageOutSerializer._fromJsonObject)}get(u,D,A){let F=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setPathParam("attempt_id",A),F.send(this.requestCtx,PN.MessageAttemptOutSerializer._fromJsonObject)}expungeContent(u,D,A){let F=new f.SvixRequest(f.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setPathParam("attempt_id",A),F.sendNoResponseBody(this.requestCtx)}listAttemptedDestinations(u,D,A){let F=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator}),F.send(this.requestCtx,UN.ListResponseMessageEndpointOutSerializer._fromJsonObject)}resend(u,D,A,F){let B=new f.SvixRequest(f.HttpMethod.POST,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setPathParam("endpoint_id",A),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.send(this.requestCtx,HN.EmptyResponseSerializer._fromJsonObject)}}QF.MessageAttempt=YF});var R0=E((KF)=>{Object.defineProperty(KF,"__esModule",{value:!0});KF.OperationalWebhookEndpointOutSerializer=void 0;KF.OperationalWebhookEndpointOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url}},_toJsonObject(u){return{createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:u.updatedAt,url:u.url}}}});var RF=E((UF)=>{Object.defineProperty(UF,"__esModule",{value:!0});UF.ListResponseOperationalWebhookEndpointOutSerializer=void 0;var CF=R0();UF.ListResponseOperationalWebhookEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>CF.OperationalWebhookEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>CF.OperationalWebhookEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var MF=E((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.OperationalWebhookEndpointHeadersInSerializer=void 0;vF.OperationalWebhookEndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var TF=E((SF)=>{Object.defineProperty(SF,"__esModule",{value:!0});SF.OperationalWebhookEndpointHeadersOutSerializer=void 0;SF.OperationalWebhookEndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var kF=E((OF)=>{Object.defineProperty(OF,"__esModule",{value:!0});OF.OperationalWebhookEndpointInSerializer=void 0;OF.OperationalWebhookEndpointInSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}}}});var yF=E((IF)=>{Object.defineProperty(IF,"__esModule",{value:!0});IF.OperationalWebhookEndpointSecretInSerializer=void 0;IF.OperationalWebhookEndpointSecretInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var gF=E((_F)=>{Object.defineProperty(_F,"__esModule",{value:!0});_F.OperationalWebhookEndpointSecretOutSerializer=void 0;_F.OperationalWebhookEndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var fF=E((bF)=>{Object.defineProperty(bF,"__esModule",{value:!0});bF.OperationalWebhookEndpointUpdateSerializer=void 0;bF.OperationalWebhookEndpointUpdateSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}}}});var L0=E((dF)=>{Object.defineProperty(dF,"__esModule",{value:!0});dF.OperationalWebhookEndpoint=void 0;var RN=RF(),vN=MF(),LN=TF(),MN=kF(),v0=R0(),SN=yF(),hN=gF(),TN=fF(),k=R();class lF{constructor(u){this.requestCtx=u}list(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,RN.ListResponseOperationalWebhookEndpointOutSerializer._fromJsonObject)}create(u,D){let A=new k.SvixRequest(k.HttpMethod.POST,"/api/v1/operational-webhook/endpoint");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(MN.OperationalWebhookEndpointInSerializer._toJsonObject(u)),A.send(this.requestCtx,v0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}get(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,v0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}update(u,D){let A=new k.SvixRequest(k.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return A.setPathParam("endpoint_id",u),A.setBody(TN.OperationalWebhookEndpointUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,v0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}delete(u){let D=new k.SvixRequest(k.HttpMethod.DELETE,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return D.setPathParam("endpoint_id",u),D.sendNoResponseBody(this.requestCtx)}getHeaders(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,LN.OperationalWebhookEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D){let A=new k.SvixRequest(k.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return A.setPathParam("endpoint_id",u),A.setBody(vN.OperationalWebhookEndpointHeadersInSerializer._toJsonObject(D)),A.sendNoResponseBody(this.requestCtx)}getSecret(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,hN.OperationalWebhookEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A){let F=new k.SvixRequest(k.HttpMethod.POST,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate");return F.setPathParam("endpoint_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(SN.OperationalWebhookEndpointSecretInSerializer._toJsonObject(D)),F.sendNoResponseBody(this.requestCtx)}}dF.OperationalWebhookEndpoint=lF});var pF=E((iF)=>{Object.defineProperty(iF,"__esModule",{value:!0});iF.OperationalWebhook=void 0;var ON=L0();class cF{constructor(u){this.requestCtx=u}get endpoint(){return new ON.OperationalWebhookEndpoint(this.requestCtx)}}iF.OperationalWebhook=cF});var eF=E((oF)=>{Object.defineProperty(oF,"__esModule",{value:!0});oF.AggregateEventTypesOutSerializer=void 0;var nF=t(),sF=e();oF.AggregateEventTypesOutSerializer={_fromJsonObject(u){return{id:u.id,status:nF.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:sF.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:nF.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:sF.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var AB=E((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.AppUsageStatsInSerializer=void 0;uB.AppUsageStatsInSerializer={_fromJsonObject(u){return{appIds:u.appIds,since:new Date(u.since),until:new Date(u.until)}},_toJsonObject(u){return{appIds:u.appIds,since:u.since,until:u.until}}}});var GB=E((wB)=>{Object.defineProperty(wB,"__esModule",{value:!0});wB.AppUsageStatsOutSerializer=void 0;var FB=t(),BB=e();wB.AppUsageStatsOutSerializer={_fromJsonObject(u){return{id:u.id,status:FB.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:BB.BackgroundTaskTypeSerializer._fromJsonObject(u.task),unresolvedAppIds:u.unresolvedAppIds,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:FB.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:BB.BackgroundTaskTypeSerializer._toJsonObject(u.task),unresolvedAppIds:u.unresolvedAppIds,updatedAt:u.updatedAt}}}});var zB=E((JB)=>{Object.defineProperty(JB,"__esModule",{value:!0});JB.Statistics=void 0;var qN=eF(),kN=AB(),IN=GB(),m2=R();class NB{constructor(u){this.requestCtx=u}aggregateAppStats(u,D){let A=new m2.SvixRequest(m2.HttpMethod.POST,"/api/v1/stats/usage/app");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(kN.AppUsageStatsInSerializer._toJsonObject(u)),A.send(this.requestCtx,IN.AppUsageStatsOutSerializer._fromJsonObject)}aggregateEventTypes(){return new m2.SvixRequest(m2.HttpMethod.PUT,"/api/v1/stats/usage/event-types").send(this.requestCtx,qN.AggregateEventTypesOutSerializer._fromJsonObject)}}JB.Statistics=NB});var YB=E(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.HttpSinkHeadersPatchInSerializer=void 0;$B.HttpSinkHeadersPatchInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var WB=E((QB)=>{Object.defineProperty(QB,"__esModule",{value:!0});QB.SinkTransformationOutSerializer=void 0;QB.SinkTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var M0=E((KB)=>{Object.defineProperty(KB,"__esModule",{value:!0});KB.StreamEventTypeOutSerializer=void 0;KB.StreamEventTypeOutSerializer={_fromJsonObject(u){return{archived:u.archived,createdAt:new Date(u.createdAt),deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{archived:u.archived,createdAt:u.createdAt,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name,updatedAt:u.updatedAt}}}});var RB=E((UB)=>{Object.defineProperty(UB,"__esModule",{value:!0});UB.ListResponseStreamEventTypeOutSerializer=void 0;var CB=M0();UB.ListResponseStreamEventTypeOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>CB.StreamEventTypeOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>CB.StreamEventTypeOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var MB=E((vB)=>{Object.defineProperty(vB,"__esModule",{value:!0});vB.StreamEventTypeInSerializer=void 0;vB.StreamEventTypeInSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}}}});var TB=E((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.StreamEventTypePatchSerializer=void 0;SB.StreamEventTypePatchSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}}}});var xB=E((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});kB.StreamingEventType=void 0;var xN=RB(),OB=MB(),g2=M0(),yN=TB(),a=R();class qB{constructor(u){this.requestCtx=u}list(u){let D=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/stream/event-type");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,include_archived:u===null||u===void 0?void 0:u.includeArchived}),D.send(this.requestCtx,xN.ListResponseStreamEventTypeOutSerializer._fromJsonObject)}create(u,D){let A=new a.SvixRequest(a.HttpMethod.POST,"/api/v1/stream/event-type");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(OB.StreamEventTypeInSerializer._toJsonObject(u)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}get(u){let D=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/stream/event-type/{name}");return D.setPathParam("name",u),D.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}update(u,D){let A=new a.SvixRequest(a.HttpMethod.PUT,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setBody(OB.StreamEventTypeInSerializer._toJsonObject(D)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}delete(u,D){let A=new a.SvixRequest(a.HttpMethod.DELETE,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setQueryParams({expunge:D===null||D===void 0?void 0:D.expunge}),A.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new a.SvixRequest(a.HttpMethod.PATCH,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setBody(yN.StreamEventTypePatchSerializer._toJsonObject(D)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}}kB.StreamingEventType=qB});var mB=E((yB)=>{Object.defineProperty(yB,"__esModule",{value:!0});yB.EventInSerializer=void 0;yB.EventInSerializer={_fromJsonObject(u){return{eventType:u.eventType,payload:u.payload}},_toJsonObject(u){return{eventType:u.eventType,payload:u.payload}}}});var S0=E((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.StreamInSerializer=void 0;gB.StreamInSerializer={_fromJsonObject(u){return{metadata:u.metadata,name:u.name,uid:u.uid}},_toJsonObject(u){return{metadata:u.metadata,name:u.name,uid:u.uid}}}});var rB=E((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.CreateStreamEventsInSerializer=void 0;var jB=mB(),fB=S0();lB.CreateStreamEventsInSerializer={_fromJsonObject(u){return{events:u.events.map((D)=>jB.EventInSerializer._fromJsonObject(D)),stream:u.stream!=null?fB.StreamInSerializer._fromJsonObject(u.stream):void 0}},_toJsonObject(u){return{events:u.events.map((D)=>jB.EventInSerializer._toJsonObject(D)),stream:u.stream!=null?fB.StreamInSerializer._toJsonObject(u.stream):void 0}}}});var aB=E((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});cB.CreateStreamEventsOutSerializer=void 0;cB.CreateStreamEventsOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var sB=E((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.EventOutSerializer=void 0;pB.EventOutSerializer={_fromJsonObject(u){return{eventType:u.eventType,payload:u.payload,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{eventType:u.eventType,payload:u.payload,timestamp:u.timestamp}}}});var u7=E((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.EventStreamOutSerializer=void 0;var oB=sB();tB.EventStreamOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>oB.EventOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator}},_toJsonObject(u){return{data:u.data.map((D)=>oB.EventOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator}}}});var B7=E((A7)=>{Object.defineProperty(A7,"__esModule",{value:!0});A7.StreamingEvents=void 0;var _N=rB(),mN=aB(),gN=u7(),b2=R();class D7{constructor(u){this.requestCtx=u}create(u,D,A){let F=new b2.SvixRequest(b2.HttpMethod.POST,"/api/v1/stream/{stream_id}/events");return F.setPathParam("stream_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(_N.CreateStreamEventsInSerializer._toJsonObject(D)),F.send(this.requestCtx,mN.CreateStreamEventsOutSerializer._fromJsonObject)}get(u,D,A){let F=new b2.SvixRequest(b2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/events");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,after:A===null||A===void 0?void 0:A.after}),F.send(this.requestCtx,gN.EventStreamOutSerializer._fromJsonObject)}}A7.StreamingEvents=D7});var h0=E((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});w7.AzureBlobStorageConfigSerializer=void 0;w7.AzureBlobStorageConfigSerializer={_fromJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}},_toJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}}}});var T0=E((G7)=>{Object.defineProperty(G7,"__esModule",{value:!0});G7.GoogleCloudStorageConfigSerializer=void 0;G7.GoogleCloudStorageConfigSerializer={_fromJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}},_toJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}}}});var O0=E((J7)=>{Object.defineProperty(J7,"__esModule",{value:!0});J7.S3ConfigSerializer=void 0;J7.S3ConfigSerializer={_fromJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}},_toJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}}}});var q0=E((z7)=>{Object.defineProperty(z7,"__esModule",{value:!0});z7.SinkHttpConfigSerializer=void 0;z7.SinkHttpConfigSerializer={_fromJsonObject(u){return{headers:u.headers,key:u.key,url:u.url}},_toJsonObject(u){return{headers:u.headers,key:u.key,url:u.url}}}});var k0=E((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});X7.SinkOtelV1ConfigSerializer=void 0;X7.SinkOtelV1ConfigSerializer={_fromJsonObject(u){return{headers:u.headers,url:u.url}},_toJsonObject(u){return{headers:u.headers,url:u.url}}}});var I0=E((V7)=>{Object.defineProperty(V7,"__esModule",{value:!0});V7.SinkStatusSerializer=V7.SinkStatus=void 0;var bN;(function(u){u.Enabled="enabled",u.Paused="paused",u.Disabled="disabled",u.Retrying="retrying"})(bN=V7.SinkStatus||(V7.SinkStatus={}));V7.SinkStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var x0=E((v7)=>{Object.defineProperty(v7,"__esModule",{value:!0});v7.StreamSinkOutSerializer=void 0;var K7=h0(),H7=T0(),C7=O0(),U7=q0(),P7=k0(),R7=I0();v7.StreamSinkOutSerializer={_fromJsonObject(u){let D=u.type;function A(F){switch(F){case"poller":return{};case"azureBlobStorage":return K7.AzureBlobStorageConfigSerializer._fromJsonObject(u.config);case"otelTracing":return P7.SinkOtelV1ConfigSerializer._fromJsonObject(u.config);case"http":return U7.SinkHttpConfigSerializer._fromJsonObject(u.config);case"amazonS3":return C7.S3ConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return H7.GoogleCloudStorageConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${F}`)}}return{type:D,config:A(D),batchSize:u.batchSize,createdAt:new Date(u.createdAt),currentIterator:u.currentIterator,eventTypes:u.eventTypes,failureReason:u.failureReason,id:u.id,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,nextRetryAt:u.nextRetryAt?new Date(u.nextRetryAt):null,status:R7.SinkStatusSerializer._fromJsonObject(u.status),uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=K7.AzureBlobStorageConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=P7.SinkOtelV1ConfigSerializer._toJsonObject(u.config);break;case"http":D=U7.SinkHttpConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=C7.S3ConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=H7.GoogleCloudStorageConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,createdAt:u.createdAt,currentIterator:u.currentIterator,eventTypes:u.eventTypes,failureReason:u.failureReason,id:u.id,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,nextRetryAt:u.nextRetryAt,status:R7.SinkStatusSerializer._toJsonObject(u.status),uid:u.uid,updatedAt:u.updatedAt}}}});var T7=E((S7)=>{Object.defineProperty(S7,"__esModule",{value:!0});S7.ListResponseStreamSinkOutSerializer=void 0;var M7=x0();S7.ListResponseStreamSinkOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>M7.StreamSinkOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>M7.StreamSinkOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var k7=E((O7)=>{Object.defineProperty(O7,"__esModule",{value:!0});O7.SinkSecretOutSerializer=void 0;O7.SinkSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var y7=E((I7)=>{Object.defineProperty(I7,"__esModule",{value:!0});I7.SinkTransformInSerializer=void 0;I7.SinkTransformInSerializer={_fromJsonObject(u){return{code:u.code}},_toJsonObject(u){return{code:u.code}}}});var j2=E((m7)=>{Object.defineProperty(m7,"__esModule",{value:!0});m7.SinkStatusInSerializer=m7.SinkStatusIn=void 0;var jN;(function(u){u.Enabled="enabled",u.Disabled="disabled"})(jN=m7.SinkStatusIn||(m7.SinkStatusIn={}));m7.SinkStatusInSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var a7=E((c7)=>{Object.defineProperty(c7,"__esModule",{value:!0});c7.StreamSinkInSerializer=void 0;var b7=h0(),j7=T0(),f7=O0(),l7=q0(),d7=k0(),r7=j2();c7.StreamSinkInSerializer={_fromJsonObject(u){let D=u.type;function A(F){switch(F){case"poller":return{};case"azureBlobStorage":return b7.AzureBlobStorageConfigSerializer._fromJsonObject(u.config);case"otelTracing":return d7.SinkOtelV1ConfigSerializer._fromJsonObject(u.config);case"http":return l7.SinkHttpConfigSerializer._fromJsonObject(u.config);case"amazonS3":return f7.S3ConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return j7.GoogleCloudStorageConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${F}`)}}return{type:D,config:A(D),batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?r7.SinkStatusInSerializer._fromJsonObject(u.status):void 0,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=b7.AzureBlobStorageConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=d7.SinkOtelV1ConfigSerializer._toJsonObject(u.config);break;case"http":D=l7.SinkHttpConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=f7.S3ConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=j7.GoogleCloudStorageConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?r7.SinkStatusInSerializer._toJsonObject(u.status):void 0,uid:u.uid}}}});var s7=E((p7)=>{Object.defineProperty(p7,"__esModule",{value:!0});p7.AmazonS3PatchConfigSerializer=void 0;p7.AmazonS3PatchConfigSerializer={_fromJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}},_toJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}}}});var e7=E((o7)=>{Object.defineProperty(o7,"__esModule",{value:!0});o7.AzureBlobStoragePatchConfigSerializer=void 0;o7.AzureBlobStoragePatchConfigSerializer={_fromJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}},_toJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}}}});var Aw=E((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.GoogleCloudStoragePatchConfigSerializer=void 0;uw.GoogleCloudStoragePatchConfigSerializer={_fromJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}},_toJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}}}});var ww=E((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.HttpPatchConfigSerializer=void 0;Fw.HttpPatchConfigSerializer={_fromJsonObject(u){return{url:u.url}},_toJsonObject(u){return{url:u.url}}}});var Nw=E((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});Ew.OtelTracingPatchConfigSerializer=void 0;Ew.OtelTracingPatchConfigSerializer={_fromJsonObject(u){return{url:u.url}},_toJsonObject(u){return{url:u.url}}}});var Ww=E((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.StreamSinkPatchSerializer=void 0;var Jw=s7(),Zw=e7(),zw=Aw(),$w=ww(),Xw=Nw(),Yw=j2();Qw.StreamSinkPatchSerializer={_fromJsonObject(u){let D=u.type;function A(F){switch(F){case"poller":return{};case"azureBlobStorage":return Zw.AzureBlobStoragePatchConfigSerializer._fromJsonObject(u.config);case"otelTracing":return Xw.OtelTracingPatchConfigSerializer._fromJsonObject(u.config);case"http":return $w.HttpPatchConfigSerializer._fromJsonObject(u.config);case"amazonS3":return Jw.AmazonS3PatchConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return zw.GoogleCloudStoragePatchConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${F}`)}}return{type:D,config:A(D),batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?Yw.SinkStatusInSerializer._fromJsonObject(u.status):void 0,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=Zw.AzureBlobStoragePatchConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=Xw.OtelTracingPatchConfigSerializer._toJsonObject(u.config);break;case"http":D=$w.HttpPatchConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=Jw.AmazonS3PatchConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=zw.GoogleCloudStoragePatchConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?Yw.SinkStatusInSerializer._toJsonObject(u.status):void 0,uid:u.uid}}}});var Rw=E((Uw)=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.StreamingSink=void 0;var Kw=C0(),fN=Z0(),lN=T7(),dN=k7(),rN=y7(),Hw=a7(),f2=x0(),cN=Ww(),I=R();class Cw{constructor(u){this.requestCtx=u}list(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink");return A.setPathParam("stream_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,lN.ListResponseStreamSinkOutSerializer._fromJsonObject)}create(u,D,A){let F=new I.SvixRequest(I.HttpMethod.POST,"/api/v1/stream/{stream_id}/sink");return F.setPathParam("stream_id",u),F.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),F.setBody(Hw.StreamSinkInSerializer._toJsonObject(D)),F.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}get(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}update(u,D,A){let F=new I.SvixRequest(I.HttpMethod.PUT,"/api/v1/stream/{stream_id}/sink/{sink_id}");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setBody(Hw.StreamSinkInSerializer._toJsonObject(A)),F.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}delete(u,D){let A=new I.SvixRequest(I.HttpMethod.DELETE,"/api/v1/stream/{stream_id}/sink/{sink_id}");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.sendNoResponseBody(this.requestCtx)}patch(u,D,A){let F=new I.SvixRequest(I.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setBody(cN.StreamSinkPatchSerializer._toJsonObject(A)),F.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}getSecret(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/secret");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,dN.SinkSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,F){let B=new I.SvixRequest(I.HttpMethod.POST,"/api/v1/stream/{stream_id}/sink/{sink_id}/secret/rotate");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),B.setBody(fN.EndpointSecretRotateInSerializer._toJsonObject(A)),B.send(this.requestCtx,Kw.EmptyResponseSerializer._fromJsonObject)}transformationPartialUpdate(u,D,A){let F=new I.SvixRequest(I.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setBody(rN.SinkTransformInSerializer._toJsonObject(A)),F.send(this.requestCtx,Kw.EmptyResponseSerializer._fromJsonObject)}}Uw.StreamingSink=Cw});var y0=E((vw)=>{Object.defineProperty(vw,"__esModule",{value:!0});vw.StreamOutSerializer=void 0;vw.StreamOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),id:u.id,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{createdAt:u.createdAt,id:u.id,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:u.updatedAt}}}});var Tw=E((Sw)=>{Object.defineProperty(Sw,"__esModule",{value:!0});Sw.ListResponseStreamOutSerializer=void 0;var Mw=y0();Sw.ListResponseStreamOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>Mw.StreamOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>Mw.StreamOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var kw=E((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.StreamPatchSerializer=void 0;Ow.StreamPatchSerializer={_fromJsonObject(u){return{description:u.description,metadata:u.metadata,uid:u.uid}},_toJsonObject(u){return{description:u.description,metadata:u.metadata,uid:u.uid}}}});var mw=E((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});yw.StreamingStream=void 0;var iN=Tw(),Iw=S0(),l2=y0(),aN=kw(),p=R();class xw{constructor(u){this.requestCtx=u}list(u){let D=new p.SvixRequest(p.HttpMethod.GET,"/api/v1/stream");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,iN.ListResponseStreamOutSerializer._fromJsonObject)}create(u,D){let A=new p.SvixRequest(p.HttpMethod.POST,"/api/v1/stream");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(Iw.StreamInSerializer._toJsonObject(u)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}get(u){let D=new p.SvixRequest(p.HttpMethod.GET,"/api/v1/stream/{stream_id}");return D.setPathParam("stream_id",u),D.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}update(u,D){let A=new p.SvixRequest(p.HttpMethod.PUT,"/api/v1/stream/{stream_id}");return A.setPathParam("stream_id",u),A.setBody(Iw.StreamInSerializer._toJsonObject(D)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}delete(u){let D=new p.SvixRequest(p.HttpMethod.DELETE,"/api/v1/stream/{stream_id}");return D.setPathParam("stream_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new p.SvixRequest(p.HttpMethod.PATCH,"/api/v1/stream/{stream_id}");return A.setPathParam("stream_id",u),A.setBody(aN.StreamPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}}yw.StreamingStream=xw});var lw=E((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.Streaming=void 0;var gw=N0(),pN=YB(),nN=WB(),sN=xB(),oN=B7(),tN=Rw(),eN=mw(),N2=R();class bw{constructor(u){this.requestCtx=u}get event_type(){return new sN.StreamingEventType(this.requestCtx)}get events(){return new oN.StreamingEvents(this.requestCtx)}get sink(){return new tN.StreamingSink(this.requestCtx)}get stream(){return new eN.StreamingStream(this.requestCtx)}sinkHeadersGet(u,D){let A=new N2.SvixRequest(N2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/headers");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,gw.EndpointHeadersOutSerializer._fromJsonObject)}sinkHeadersPatch(u,D,A){let F=new N2.SvixRequest(N2.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}/headers");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setBody(pN.HttpSinkHeadersPatchInSerializer._toJsonObject(A)),F.send(this.requestCtx,gw.EndpointHeadersOutSerializer._fromJsonObject)}sinkTransformationGet(u,D){let A=new N2.SvixRequest(N2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,nN.SinkTransformationOutSerializer._fromJsonObject)}}jw.Streaming=bw});var cw=E((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.HTTPValidationError=dw.ValidationError=dw.HttpErrorOut=void 0;class J2{static getAttributeTypeMap(){return J2.attributeTypeMap}}dw.HttpErrorOut=J2;J2.discriminator=void 0;J2.mapping=void 0;J2.attributeTypeMap=[{name:"code",baseName:"code",type:"string",format:""},{name:"detail",baseName:"detail",type:"string",format:""}];class Z2{static getAttributeTypeMap(){return Z2.attributeTypeMap}}dw.ValidationError=Z2;Z2.discriminator=void 0;Z2.mapping=void 0;Z2.attributeTypeMap=[{name:"loc",baseName:"loc",type:"Array<string>",format:""},{name:"msg",baseName:"msg",type:"string",format:""},{name:"type",baseName:"type",type:"string",format:""}];class z2{static getAttributeTypeMap(){return z2.attributeTypeMap}}dw.HTTPValidationError=z2;z2.discriminator=void 0;z2.mapping=void 0;z2.attributeTypeMap=[{name:"detail",baseName:"detail",type:"Array<ValidationError>",format:""}]});var nw=E((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.timingSafeEqual=void 0;function iw(u,D=""){if(!u)throw Error(D)}function AJ(u,D){if(u.byteLength!==D.byteLength)return!1;if(!(u instanceof DataView))u=new DataView(ArrayBuffer.isView(u)?u.buffer:u);if(!(D instanceof DataView))D=new DataView(ArrayBuffer.isView(D)?D.buffer:D);iw(u instanceof DataView),iw(D instanceof DataView);let A=u.byteLength,F=0,B=-1;while(++B<A)F|=u.getUint8(B)^D.getUint8(B);return F===0}aw.timingSafeEqual=AJ});var tw=E((l)=>{var FJ=l&&l.__extends||function(){var u=function(D,A){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,B){F.__proto__=B}||function(F,B){for(var G in B)if(B.hasOwnProperty(G))F[G]=B[G]},u(D,A)};return function(D,A){u(D,A);function F(){this.constructor=D}D.prototype=A===null?Object.create(A):(F.prototype=A.prototype,new F)}}();Object.defineProperty(l,"__esModule",{value:!0});var M=256,_0=function(){function u(D){if(D===void 0)D="=";this._paddingCharacter=D}return u.prototype.encodedLength=function(D){if(!this._paddingCharacter)return(D*8+5)/6|0;return(D+2)/3*4|0},u.prototype.encode=function(D){var A="",F=0;for(;F<D.length-2;F+=3){var B=D[F]<<16|D[F+1]<<8|D[F+2];A+=this._encodeByte(B>>>18&63),A+=this._encodeByte(B>>>12&63),A+=this._encodeByte(B>>>6&63),A+=this._encodeByte(B>>>0&63)}var G=D.length-F;if(G>0){var B=D[F]<<16|(G===2?D[F+1]<<8:0);if(A+=this._encodeByte(B>>>18&63),A+=this._encodeByte(B>>>12&63),G===2)A+=this._encodeByte(B>>>6&63);else A+=this._paddingCharacter||"";A+=this._paddingCharacter||""}return A},u.prototype.maxDecodedLength=function(D){if(!this._paddingCharacter)return(D*6+7)/8|0;return D/4*3|0},u.prototype.decodedLength=function(D){return this.maxDecodedLength(D.length-this._getPaddingLength(D))},u.prototype.decode=function(D){if(D.length===0)return new Uint8Array(0);var A=this._getPaddingLength(D),F=D.length-A,B=new Uint8Array(this.maxDecodedLength(F)),G=0,w=0,N=0,J=0,$=0,X=0,z=0;for(;w<F-4;w+=4)J=this._decodeChar(D.charCodeAt(w+0)),$=this._decodeChar(D.charCodeAt(w+1)),X=this._decodeChar(D.charCodeAt(w+2)),z=this._decodeChar(D.charCodeAt(w+3)),B[G++]=J<<2|$>>>4,B[G++]=$<<4|X>>>2,B[G++]=X<<6|z,N|=J&M,N|=$&M,N|=X&M,N|=z&M;if(w<F-1)J=this._decodeChar(D.charCodeAt(w)),$=this._decodeChar(D.charCodeAt(w+1)),B[G++]=J<<2|$>>>4,N|=J&M,N|=$&M;if(w<F-2)X=this._decodeChar(D.charCodeAt(w+2)),B[G++]=$<<4|X>>>2,N|=X&M;if(w<F-3)z=this._decodeChar(D.charCodeAt(w+3)),B[G++]=X<<6|z,N|=z&M;if(N!==0)throw Error("Base64Coder: incorrect characters for decoding");return B},u.prototype._encodeByte=function(D){var A=D;return A+=65,A+=25-D>>>8&6,A+=51-D>>>8&-75,A+=61-D>>>8&-15,A+=62-D>>>8&3,String.fromCharCode(A)},u.prototype._decodeChar=function(D){var A=M;return A+=(42-D&D-44)>>>8&-M+D-43+62,A+=(46-D&D-48)>>>8&-M+D-47+63,A+=(47-D&D-58)>>>8&-M+D-48+52,A+=(64-D&D-91)>>>8&-M+D-65+0,A+=(96-D&D-123)>>>8&-M+D-97+26,A},u.prototype._getPaddingLength=function(D){var A=0;if(this._paddingCharacter){for(var F=D.length-1;F>=0;F--){if(D[F]!==this._paddingCharacter)break;A++}if(D.length<4||A>2)throw Error("Base64Coder: incorrect padding")}return A},u}();l.Coder=_0;var C2=new _0;function BJ(u){return C2.encode(u)}l.encode=BJ;function wJ(u){return C2.decode(u)}l.decode=wJ;var sw=function(u){FJ(D,u);function D(){return u!==null&&u.apply(this,arguments)||this}return D.prototype._encodeByte=function(A){var F=A;return F+=65,F+=25-A>>>8&6,F+=51-A>>>8&-75,F+=61-A>>>8&-13,F+=62-A>>>8&49,String.fromCharCode(F)},D.prototype._decodeChar=function(A){var F=M;return F+=(44-A&A-46)>>>8&-M+A-45+62,F+=(94-A&A-96)>>>8&-M+A-95+63,F+=(47-A&A-58)>>>8&-M+A-48+52,F+=(64-A&A-91)>>>8&-M+A-65+0,F+=(96-A&A-123)>>>8&-M+A-97+26,F},D}(_0);l.URLSafeCoder=sw;var ow=new sw;function EJ(u){return ow.encode(u)}l.encodeURLSafe=EJ;function GJ(u){return ow.decode(u)}l.decodeURLSafe=GJ;l.encodedLength=function(u){return C2.encodedLength(u)};l.maxDecodedLength=function(u){return C2.maxDecodedLength(u)};l.decodedLength=function(u){return C2.decodedLength(u)}});var uE=E((ew,d2)=>{(function(u,D){var A={};D(A);var F=A.default;for(var B in A)F[B]=A[B];if(typeof d2==="object"&&typeof d2.exports==="object")d2.exports=F;else if(typeof define==="function"&&define.amd)define(function(){return F});else u.sha256=F})(ew,function(u){u.__esModule=!0,u.digestLength=32,u.blockSize=64;var D=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,2756734187,3204031479,3329325298]);function A(z,Z,Y,Q,v){var C,U,H,_,h,P,n,T,y,O,$2,X2,P2;while(v>=64){C=Z[0],U=Z[1],H=Z[2],_=Z[3],h=Z[4],P=Z[5],n=Z[6],T=Z[7];for(O=0;O<16;O++)$2=Q+O*4,z[O]=(Y[$2]&255)<<24|(Y[$2+1]&255)<<16|(Y[$2+2]&255)<<8|Y[$2+3]&255;for(O=16;O<64;O++)y=z[O-2],X2=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,y=z[O-15],P2=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3,z[O]=(X2+z[O-7]|0)+(P2+z[O-16]|0);for(O=0;O<64;O++)X2=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&P^~h&n)|0)+(T+(D[O]+z[O]|0)|0)|0,P2=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&U^C&H^U&H)|0,T=n,n=P,P=h,h=_+X2|0,_=H,H=U,U=C,C=X2+P2|0;Z[0]+=C,Z[1]+=U,Z[2]+=H,Z[3]+=_,Z[4]+=h,Z[5]+=P,Z[6]+=n,Z[7]+=T,Q+=64,v-=64}return Q}var F=function(){function z(){this.digestLength=u.digestLength,this.blockSize=u.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 z.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},z.prototype.clean=function(){for(var Z=0;Z<this.buffer.length;Z++)this.buffer[Z]=0;for(var Z=0;Z<this.temp.length;Z++)this.temp[Z]=0;this.reset()},z.prototype.update=function(Z,Y){if(Y===void 0)Y=Z.length;if(this.finished)throw Error("SHA256: can't update because hash was finished.");var Q=0;if(this.bytesHashed+=Y,this.bufferLength>0){while(this.bufferLength<64&&Y>0)this.buffer[this.bufferLength++]=Z[Q++],Y--;if(this.bufferLength===64)A(this.temp,this.state,this.buffer,0,64),this.bufferLength=0}if(Y>=64)Q=A(this.temp,this.state,Z,Q,Y),Y%=64;while(Y>0)this.buffer[this.bufferLength++]=Z[Q++],Y--;return this},z.prototype.finish=function(Z){if(!this.finished){var Y=this.bytesHashed,Q=this.bufferLength,v=Y/536870912|0,C=Y<<3,U=Y%64<56?64:128;this.buffer[Q]=128;for(var H=Q+1;H<U-8;H++)this.buffer[H]=0;this.buffer[U-8]=v>>>24&255,this.buffer[U-7]=v>>>16&255,this.buffer[U-6]=v>>>8&255,this.buffer[U-5]=v>>>0&255,this.buffer[U-4]=C>>>24&255,this.buffer[U-3]=C>>>16&255,this.buffer[U-2]=C>>>8&255,this.buffer[U-1]=C>>>0&255,A(this.temp,this.state,this.buffer,0,U),this.finished=!0}for(var H=0;H<8;H++)Z[H*4+0]=this.state[H]>>>24&255,Z[H*4+1]=this.state[H]>>>16&255,Z[H*4+2]=this.state[H]>>>8&255,Z[H*4+3]=this.state[H]>>>0&255;return this},z.prototype.digest=function(){var Z=new Uint8Array(this.digestLength);return this.finish(Z),Z},z.prototype._saveState=function(Z){for(var Y=0;Y<this.state.length;Y++)Z[Y]=this.state[Y]},z.prototype._restoreState=function(Z,Y){for(var Q=0;Q<this.state.length;Q++)this.state[Q]=Z[Q];this.bytesHashed=Y,this.finished=!1,this.bufferLength=0},z}();u.Hash=F;var B=function(){function z(Z){this.inner=new F,this.outer=new F,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var Y=new Uint8Array(this.blockSize);if(Z.length>this.blockSize)new F().update(Z).finish(Y).clean();else for(var Q=0;Q<Z.length;Q++)Y[Q]=Z[Q];for(var Q=0;Q<Y.length;Q++)Y[Q]^=54;this.inner.update(Y);for(var Q=0;Q<Y.length;Q++)Y[Q]^=106;this.outer.update(Y),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var Q=0;Q<Y.length;Q++)Y[Q]=0}return z.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},z.prototype.clean=function(){for(var Z=0;Z<this.istate.length;Z++)this.ostate[Z]=this.istate[Z]=0;this.inner.clean(),this.outer.clean()},z.prototype.update=function(Z){return this.inner.update(Z),this},z.prototype.finish=function(Z){if(this.outer.finished)this.outer.finish(Z);else this.inner.finish(Z),this.outer.update(Z,this.digestLength).finish(Z);return this},z.prototype.digest=function(){var Z=new Uint8Array(this.digestLength);return this.finish(Z),Z},z}();u.HMAC=B;function G(z){var Z=new F().update(z),Y=Z.digest();return Z.clean(),Y}u.hash=G,u.default=G;function w(z,Z){var Y=new B(z).update(Z),Q=Y.digest();return Y.clean(),Q}u.hmac=w;function N(z,Z,Y,Q){var v=Q[0];if(v===0)throw Error("hkdf: cannot expand more");if(Z.reset(),v>1)Z.update(z);if(Y)Z.update(Y);Z.update(Q),Z.finish(z),Q[0]++}var J=new Uint8Array(u.digestLength);function $(z,Z,Y,Q){if(Z===void 0)Z=J;if(Q===void 0)Q=32;var v=new Uint8Array([1]),C=w(Z,z),U=new B(C),H=new Uint8Array(U.digestLength),_=H.length,h=new Uint8Array(Q);for(var P=0;P<Q;P++){if(_===H.length)N(H,U,Y,v),_=0;h[P]=H[_++]}return U.clean(),H.fill(0),v.fill(0),h}u.hkdf=$;function X(z,Z,Y,Q){var v=new B(z),C=v.digestLength,U=new Uint8Array(4),H=new Uint8Array(C),_=new Uint8Array(C),h=new Uint8Array(Q);for(var P=0;P*C<Q;P++){var n=P+1;U[0]=n>>>24&255,U[1]=n>>>16&255,U[2]=n>>>8&255,U[3]=n>>>0&255,v.reset(),v.update(Z),v.update(U),v.finish(_);for(var T=0;T<C;T++)H[T]=_[T];for(var T=2;T<=Y;T++){v.reset(),v.update(_).finish(_);for(var y=0;y<C;y++)H[y]^=_[y]}for(var T=0;T<C&&P*C+T<Q;T++)h[P*C+T]=H[T]}for(var P=0;P<C;P++)H[P]=_[P]=0;for(var P=0;P<4;P++)U[P]=0;return v.clean(),h}u.pbkdf2=X})});var g0=E((FE)=>{Object.defineProperty(FE,"__esModule",{value:!0});FE.Webhook=FE.WebhookVerificationError=void 0;var NJ=nw(),DE=tw(),JJ=uE(),AE=300;class m0 extends Error{constructor(u){super(u);Object.setPrototypeOf(this,m0.prototype),this.name="ExtendableError",this.stack=Error(u).stack}}class u2 extends m0{constructor(u){super(u);Object.setPrototypeOf(this,u2.prototype),this.name="WebhookVerificationError"}}FE.WebhookVerificationError=u2;class U2{constructor(u,D){if(!u)throw Error("Secret can't be empty.");if((D===null||D===void 0?void 0:D.format)==="raw")if(u instanceof Uint8Array)this.key=u;else this.key=Uint8Array.from(u,(A)=>A.charCodeAt(0));else{if(typeof u!=="string")throw Error("Expected secret to be of type string");if(u.startsWith(U2.prefix))u=u.substring(U2.prefix.length);this.key=DE.decode(u)}}verify(u,D){let A={};for(let z of Object.keys(D))A[z.toLowerCase()]=D[z];let F=A["webhook-id"],B=A["webhook-signature"],G=A["webhook-timestamp"];if(!B||!F||!G)throw new u2("Missing required headers");let w=this.verifyTimestamp(G),J=this.sign(F,w,u).split(",")[1],$=B.split(" "),X=new globalThis.TextEncoder;for(let z of $){let[Z,Y]=z.split(",");if(Z!=="v1")continue;if((0,NJ.timingSafeEqual)(X.encode(Y),X.encode(J)))return JSON.parse(u.toString())}throw new u2("No matching signature found")}sign(u,D,A){if(typeof A==="string");else if(A.constructor.name==="Buffer")A=A.toString();else throw Error("Expected payload to be of type string or Buffer.");let F=new TextEncoder,B=Math.floor(D.getTime()/1000),G=F.encode(`${u}.${B}.${A}`);return`v1,${DE.encode(JJ.hmac(this.key,G))}`}verifyTimestamp(u){let D=Math.floor(Date.now()/1000),A=parseInt(u,10);if(isNaN(A))throw new u2("Invalid Signature Headers");if(D-A>AE)throw new u2("Message timestamp too old");if(A>D+AE)throw new u2("Message timestamp too new");return new Date(A*1000)}}FE.Webhook=U2;U2.prefix="whsec_"});var GE=E((b0)=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.Webhook=b0.WebhookVerificationError=void 0;var zJ=g0(),$J=g0();Object.defineProperty(b0,"WebhookVerificationError",{enumerable:!0,get:function(){return $J.WebhookVerificationError}});class wE{constructor(u,D){this.inner=new zJ.Webhook(u,D)}verify(u,D){var A,F,B,G,w,N;let J={};for(let $ of Object.keys(D))J[$.toLowerCase()]=D[$];return J["webhook-id"]=(F=(A=J["svix-id"])!==null&&A!==void 0?A:J["webhook-id"])!==null&&F!==void 0?F:"",J["webhook-signature"]=(G=(B=J["svix-signature"])!==null&&B!==void 0?B:J["webhook-signature"])!==null&&G!==void 0?G:"",J["webhook-timestamp"]=(N=(w=J["svix-timestamp"])!==null&&w!==void 0?w:J["webhook-timestamp"])!==null&&N!==void 0?N:"",this.inner.verify(u,J)}sign(u,D,A){return this.inner.sign(u,D,A)}}b0.Webhook=wE});var zE=E((JE)=>{Object.defineProperty(JE,"__esModule",{value:!0});JE.EndpointDisabledTriggerSerializer=JE.EndpointDisabledTrigger=void 0;var XJ;(function(u){u.Manual="manual",u.Automatic="automatic"})(XJ=JE.EndpointDisabledTrigger||(JE.EndpointDisabledTrigger={}));JE.EndpointDisabledTriggerSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var QE=E((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.OrderingSerializer=XE.Ordering=void 0;var YJ;(function(u){u.Ascending="ascending",u.Descending="descending"})(YJ=XE.Ordering||(XE.Ordering={}));XE.OrderingSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var VE=E((m)=>{Object.defineProperty(m,"__esModule",{value:!0});m.StatusCodeClass=m.SinkStatusIn=m.SinkStatus=m.Ordering=m.MessageStatusText=m.MessageStatus=m.MessageAttemptTriggerType=m.EndpointDisabledTrigger=m.ConnectorProduct=m.ConnectorKind=m.BackgroundTaskType=m.BackgroundTaskStatus=m.AppPortalCapability=void 0;var QJ=F0();Object.defineProperty(m,"AppPortalCapability",{enumerable:!0,get:function(){return QJ.AppPortalCapability}});var VJ=t();Object.defineProperty(m,"BackgroundTaskStatus",{enumerable:!0,get:function(){return VJ.BackgroundTaskStatus}});var WJ=e();Object.defineProperty(m,"BackgroundTaskType",{enumerable:!0,get:function(){return WJ.BackgroundTaskType}});var KJ=w2();Object.defineProperty(m,"ConnectorKind",{enumerable:!0,get:function(){return KJ.ConnectorKind}});var HJ=O2();Object.defineProperty(m,"ConnectorProduct",{enumerable:!0,get:function(){return HJ.ConnectorProduct}});var CJ=zE();Object.defineProperty(m,"EndpointDisabledTrigger",{enumerable:!0,get:function(){return CJ.EndpointDisabledTrigger}});var UJ=U0();Object.defineProperty(m,"MessageAttemptTriggerType",{enumerable:!0,get:function(){return UJ.MessageAttemptTriggerType}});var PJ=E2();Object.defineProperty(m,"MessageStatus",{enumerable:!0,get:function(){return PJ.MessageStatus}});var RJ=H2();Object.defineProperty(m,"MessageStatusText",{enumerable:!0,get:function(){return RJ.MessageStatusText}});var vJ=QE();Object.defineProperty(m,"Ordering",{enumerable:!0,get:function(){return vJ.Ordering}});var LJ=I0();Object.defineProperty(m,"SinkStatus",{enumerable:!0,get:function(){return LJ.SinkStatus}});var MJ=j2();Object.defineProperty(m,"SinkStatusIn",{enumerable:!0,get:function(){return MJ.SinkStatusIn}});var SJ=G0();Object.defineProperty(m,"StatusCodeClass",{enumerable:!0,get:function(){return SJ.StatusCodeClass}})});var HE=E((S)=>{var TJ=S&&S.__createBinding||(Object.create?function(u,D,A,F){if(F===void 0)F=A;var B=Object.getOwnPropertyDescriptor(D,A);if(!B||("get"in B?!D.__esModule:B.writable||B.configurable))B={enumerable:!0,get:function(){return D[A]}};Object.defineProperty(u,F,B)}:function(u,D,A,F){if(F===void 0)F=A;u[F]=D[A]}),WE=S&&S.__exportStar||function(u,D){for(var A in u)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(D,A))TJ(D,u,A)};Object.defineProperty(S,"__esModule",{value:!0});S.Svix=S.messageInRaw=S.ValidationError=S.HttpErrorOut=S.HTTPValidationError=S.ApiException=void 0;var OJ=Vu(),qJ=su(),kJ=YD(),IJ=rD(),xJ=X3(),yJ=q3(),_J=w5(),mJ=Z5(),gJ=R4(),bJ=d4(),jJ=H0(),fJ=WF(),lJ=pF(),dJ=zB(),rJ=lw(),cJ=L0(),iJ=u0();Object.defineProperty(S,"ApiException",{enumerable:!0,get:function(){return iJ.ApiException}});var j0=cw();Object.defineProperty(S,"HTTPValidationError",{enumerable:!0,get:function(){return j0.HTTPValidationError}});Object.defineProperty(S,"HttpErrorOut",{enumerable:!0,get:function(){return j0.HttpErrorOut}});Object.defineProperty(S,"ValidationError",{enumerable:!0,get:function(){return j0.ValidationError}});WE(GE(),S);WE(VE(),S);var aJ=H0();Object.defineProperty(S,"messageInRaw",{enumerable:!0,get:function(){return aJ.messageInRaw}});var pJ=[{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 KE{constructor(u,D={}){var A,F,B;let G=(A=pJ.find((N)=>N.region===u.split(".")[1]))===null||A===void 0?void 0:A.url,w=(B=(F=D.serverUrl)!==null&&F!==void 0?F:G)!==null&&B!==void 0?B:"https://api.svix.com";if(D.retryScheduleInMs){this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,retryScheduleInMs:D.retryScheduleInMs,fetch:D.fetch};return}if(D.numRetries){this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,numRetries:D.numRetries,fetch:D.fetch};return}this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,fetch:D.fetch}}get application(){return new OJ.Application(this.requestCtx)}get authentication(){return new qJ.Authentication(this.requestCtx)}get backgroundTask(){return new kJ.BackgroundTask(this.requestCtx)}get connector(){return new IJ.Connector(this.requestCtx)}get endpoint(){return new xJ.Endpoint(this.requestCtx)}get environment(){return new yJ.Environment(this.requestCtx)}get eventType(){return new _J.EventType(this.requestCtx)}get health(){return new mJ.Health(this.requestCtx)}get ingest(){return new gJ.Ingest(this.requestCtx)}get integration(){return new bJ.Integration(this.requestCtx)}get message(){return new jJ.Message(this.requestCtx)}get messageAttempt(){return new fJ.MessageAttempt(this.requestCtx)}get operationalWebhook(){return new lJ.OperationalWebhook(this.requestCtx)}get statistics(){return new dJ.Statistics(this.requestCtx)}get streaming(){return new rJ.Streaming(this.requestCtx)}get operationalWebhookEndpoint(){return new cJ.OperationalWebhookEndpoint(this.requestCtx)}}S.Svix=KE});class c2{}var s=new TextEncoder;var Y2=new Uint8Array(256);for(let u=0;u<64;u++)Y2["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(u)]=u;function R2(u){let D=Math.ceil(u.length/4)*3,A=u.length,F=0;if(u.length%4===3)D--;else if(u.length%4===2)D-=2;else if(u[u.length-1]==="="){if(D--,u[u.length-2]==="=")D--}let B=new ArrayBuffer(D),G=new Uint8Array(B);for(let w=0;w<A;w+=4){let N=Y2[u.charCodeAt(w)],J=Y2[u.charCodeAt(w+1)],$=Y2[u.charCodeAt(w+2)],X=Y2[u.charCodeAt(w+3)];G[F++]=N<<2|J>>4,G[F++]=(J&15)<<4|$>>2,G[F++]=($&3)<<6|X&63}return B}function F2(u){u=u||"utf8";let D;try{D=new TextDecoder(u)}catch(A){D=new TextDecoder("windows-1252")}return D}async function o(u){if("arrayBuffer"in u)return await u.arrayBuffer();let D=new FileReader;return new Promise((A,F)=>{D.onload=function(B){A(B.target.result)},D.onerror=function(B){F(D.error)},D.readAsArrayBuffer(u)})}function l0(u){if(u>=48&&u<=57||u>=97&&u<=102||u>=65&&u<=70)return String.fromCharCode(u);return!1}function IE(u,D,A){let F=u.indexOf("*");if(F>=0)u=u.substr(0,F);D=D.toUpperCase();let B;if(D==="Q"){A=A.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let G=s.encode(A),w=[];for(let J=0,$=G.length;J<$;J++){let X=G[J];if(J<=$-2&&X===61){let z=l0(G[J+1]),Z=l0(G[J+2]);if(z&&Z){let Y=parseInt(z+Z,16);w.push(Y),J+=2;continue}}w.push(X)}B=new ArrayBuffer(w.length);let N=new DataView(B);for(let J=0,$=w.length;J<$;J++)N.setUint8(J,w[J])}else if(D==="B")B=R2(A.replace(/[^a-zA-Z0-9\+\/=]+/g,""));else B=s.encode(A);return F2(u).decode(B)}function D2(u){let D=!0,A=!1;while(!A){let F=(u||"").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(B,G,w,N,J)=>{if(!D)return B;if(w===J&&N.length%4===0&&!/=$/.test(N))return G+"__\x00JOIN\x00__";return B}).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(B,G,w,N)=>{if(!D)return B;if(w===N)return G+"__\x00JOIN\x00__";return B}).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(B,G,w,N)=>IE(G,w,N));if(D&&F.indexOf("\uFFFD")>=0)D=!1;else return F}}function xE(u,D){D=D||"utf-8";let A=[];for(let G=0;G<u.length;G++){let w=u.charAt(G);if(w==="%"&&/^[a-f0-9]{2}/i.test(u.substr(G+1,2))){let N=u.substr(G+1,2);G+=2,A.push(parseInt(N,16))}else if(w.charCodeAt(0)>126){w=s.encode(w);for(let N=0;N<w.length;N++)A.push(w[N])}else A.push(w.charCodeAt(0))}let F=new ArrayBuffer(A.length),B=new DataView(F);for(let G=0,w=A.length;G<w;G++)B.setUint8(G,A[G]);return F2(D).decode(F)}function d0(u){let D=new Map;Object.keys(u.params).forEach((A)=>{let F=A.match(/\*((\d+)\*?)?$/);if(!F)return;let B=A.substr(0,F.index).toLowerCase(),G=Number(F[2])||0,w;if(!D.has(B))w={charset:!1,values:[]},D.set(B,w);else w=D.get(B);let N=u.params[A];if(G===0&&F[0].charAt(F[0].length-1)==="*"&&(F=N.match(/^([^']*)'[^']*'(.*)$/)))w.charset=F[1]||"utf-8",N=F[2];w.values.push({nr:G,value:N}),delete u.params[A]}),D.forEach((A,F)=>{u.params[F]=xE(A.values.sort((B,G)=>B.nr-G.nr).map((B)=>B.value).join(""),A.charset)})}class v2{constructor(){this.chunks=[]}update(u){this.chunks.push(u),this.chunks.push(`
|
|
4
|
-
`)}finalize(){return o(new Blob(this.chunks,{type:"application/octet-stream"}))}}class
|
|
5
|
-
`;if(D=this.remainder+D,D.length<this.maxChunkSize){this.remainder=D;return}this.remainder="";let A=D.match(
|
|
6
|
-
-- `))if(D)return A.slice(0,-1)+
|
|
7
|
-
`+
|
|
8
|
-
`+D,this.headerLines.splice(u,1)}this.rawHeaderLines=[];for(let u=this.headerLines.length-1;u>=0;u--){let D=this.headerLines[u],A=D.indexOf(":"),
|
|
9
|
-
`,"𝔑":"\uD835\uDD11","⁠":"\u2060"," ":"\xA0","ℕ":"\u2115","⫬":"\u2AEC","≢":"\u2262","≭":"\u226D","∦":"\u2226","∉":"\u2209","≠":"\u2260","≂̸":"\u2242\u0338","∄":"\u2204","≯":"\u226F","≱":"\u2271","≧̸":"\u2267\u0338","≫̸":"\u226B\u0338","≹":"\u2279","⩾̸":"\u2A7E\u0338","≵":"\u2275","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⋪":"\u22EA","⧏̸":"\u29CF\u0338","⋬":"\u22EC","≮":"\u226E","≰":"\u2270","≸":"\u2278","≪̸":"\u226A\u0338","⩽̸":"\u2A7D\u0338","≴":"\u2274","⪢̸":"\u2AA2\u0338","⪡̸":"\u2AA1\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⋠":"\u22E0","∌":"\u220C","⋫":"\u22EB","⧐̸":"\u29D0\u0338","⋭":"\u22ED","⊏̸":"\u228F\u0338","⋢":"\u22E2","⊐̸":"\u2290\u0338","⋣":"\u22E3","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⋡":"\u22E1","≿̸":"\u227F\u0338","⊃⃒":"\u2283\u20D2","⊉":"\u2289","≁":"\u2241","≄":"\u2244","≇":"\u2247","≉":"\u2249","∤":"\u2224","𝒩":"\uD835\uDCA9","Ñ":"\xD1","Ñ":"\xD1","Ν":"\u039D","Œ":"\u0152","Ó":"\xD3","Ó":"\xD3","Ô":"\xD4","Ô":"\xD4","О":"\u041E","Ő":"\u0150","𝔒":"\uD835\uDD12","Ò":"\xD2","Ò":"\xD2","Ō":"\u014C","Ω":"\u03A9","Ο":"\u039F","𝕆":"\uD835\uDD46","“":"\u201C","‘":"\u2018","⩔":"\u2A54","𝒪":"\uD835\uDCAA","Ø":"\xD8","Ø":"\xD8","Õ":"\xD5","Õ":"\xD5","⨷":"\u2A37","Ö":"\xD6","Ö":"\xD6","‾":"\u203E","⏞":"\u23DE","⎴":"\u23B4","⏜":"\u23DC","∂":"\u2202","П":"\u041F","𝔓":"\uD835\uDD13","Φ":"\u03A6","Π":"\u03A0","±":"\xB1","ℌ":"\u210C","ℙ":"\u2119","⪻":"\u2ABB","≺":"\u227A","⪯":"\u2AAF","≼":"\u227C","≾":"\u227E","″":"\u2033","∏":"\u220F","∷":"\u2237","∝":"\u221D","𝒫":"\uD835\uDCAB","Ψ":"\u03A8",""":'"',""":'"',"𝔔":"\uD835\uDD14","ℚ":"\u211A","𝒬":"\uD835\uDCAC","⤐":"\u2910","®":"\xAE","®":"\xAE","Ŕ":"\u0154","⟫":"\u27EB","↠":"\u21A0","⤖":"\u2916","Ř":"\u0158","Ŗ":"\u0156","Р":"\u0420","ℜ":"\u211C","∋":"\u220B","⇋":"\u21CB","⥯":"\u296F","ℜ":"\u211C","Ρ":"\u03A1","⟩":"\u27E9","→":"\u2192","⇥":"\u21E5","⇄":"\u21C4","⌉":"\u2309","⟧":"\u27E7","⥝":"\u295D","⇂":"\u21C2","⥕":"\u2955","⌋":"\u230B","⊢":"\u22A2","↦":"\u21A6","⥛":"\u295B","⊳":"\u22B3","⧐":"\u29D0","⊵":"\u22B5","⥏":"\u294F","⥜":"\u295C","↾":"\u21BE","⥔":"\u2954","⇀":"\u21C0","⥓":"\u2953","⇒":"\u21D2","ℝ":"\u211D","⥰":"\u2970","⇛":"\u21DB","ℛ":"\u211B","↱":"\u21B1","⧴":"\u29F4","Щ":"\u0429","Ш":"\u0428","Ь":"\u042C","Ś":"\u015A","⪼":"\u2ABC","Š":"\u0160","Ş":"\u015E","Ŝ":"\u015C","С":"\u0421","𝔖":"\uD835\uDD16","↓":"\u2193","←":"\u2190","→":"\u2192","↑":"\u2191","Σ":"\u03A3","∘":"\u2218","𝕊":"\uD835\uDD4A","√":"\u221A","□":"\u25A1","⊓":"\u2293","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊔":"\u2294","𝒮":"\uD835\uDCAE","⋆":"\u22C6","⋐":"\u22D0","⋐":"\u22D0","⊆":"\u2286","≻":"\u227B","⪰":"\u2AB0","≽":"\u227D","≿":"\u227F","∋":"\u220B","∑":"\u2211","⋑":"\u22D1","⊃":"\u2283","⊇":"\u2287","⋑":"\u22D1","Þ":"\xDE","Þ":"\xDE","™":"\u2122","Ћ":"\u040B","Ц":"\u0426","	":"\t","Τ":"\u03A4","Ť":"\u0164","Ţ":"\u0162","Т":"\u0422","𝔗":"\uD835\uDD17","∴":"\u2234","Θ":"\u0398","  ":"\u205F\u200A"," ":"\u2009","∼":"\u223C","≃":"\u2243","≅":"\u2245","≈":"\u2248","𝕋":"\uD835\uDD4B","⃛":"\u20DB","𝒯":"\uD835\uDCAF","Ŧ":"\u0166","Ú":"\xDA","Ú":"\xDA","↟":"\u219F","⥉":"\u2949","Ў":"\u040E","Ŭ":"\u016C","Û":"\xDB","Û":"\xDB","У":"\u0423","Ű":"\u0170","𝔘":"\uD835\uDD18","Ù":"\xD9","Ù":"\xD9","Ū":"\u016A","_":"_","⏟":"\u23DF","⎵":"\u23B5","⏝":"\u23DD","⋃":"\u22C3","⊎":"\u228E","Ų":"\u0172","𝕌":"\uD835\uDD4C","↑":"\u2191","⤒":"\u2912","⇅":"\u21C5","↕":"\u2195","⥮":"\u296E","⊥":"\u22A5","↥":"\u21A5","⇑":"\u21D1","⇕":"\u21D5","↖":"\u2196","↗":"\u2197","ϒ":"\u03D2","Υ":"\u03A5","Ů":"\u016E","𝒰":"\uD835\uDCB0","Ũ":"\u0168","Ü":"\xDC","Ü":"\xDC","⊫":"\u22AB","⫫":"\u2AEB","В":"\u0412","⊩":"\u22A9","⫦":"\u2AE6","⋁":"\u22C1","‖":"\u2016","‖":"\u2016","∣":"\u2223","|":"|","❘":"\u2758","≀":"\u2240"," ":"\u200A","𝔙":"\uD835\uDD19","𝕍":"\uD835\uDD4D","𝒱":"\uD835\uDCB1","⊪":"\u22AA","Ŵ":"\u0174","⋀":"\u22C0","𝔚":"\uD835\uDD1A","𝕎":"\uD835\uDD4E","𝒲":"\uD835\uDCB2","𝔛":"\uD835\uDD1B","Ξ":"\u039E","𝕏":"\uD835\uDD4F","𝒳":"\uD835\uDCB3","Я":"\u042F","Ї":"\u0407","Ю":"\u042E","Ý":"\xDD","Ý":"\xDD","Ŷ":"\u0176","Ы":"\u042B","𝔜":"\uD835\uDD1C","𝕐":"\uD835\uDD50","𝒴":"\uD835\uDCB4","Ÿ":"\u0178","Ж":"\u0416","Ź":"\u0179","Ž":"\u017D","З":"\u0417","Ż":"\u017B","​":"\u200B","Ζ":"\u0396","ℨ":"\u2128","ℤ":"\u2124","𝒵":"\uD835\uDCB5","á":"\xE1","á":"\xE1","ă":"\u0103","∾":"\u223E","∾̳":"\u223E\u0333","∿":"\u223F","â":"\xE2","â":"\xE2","´":"\xB4","´":"\xB4","а":"\u0430","æ":"\xE6","æ":"\xE6","⁡":"\u2061","𝔞":"\uD835\uDD1E","à":"\xE0","à":"\xE0","ℵ":"\u2135","ℵ":"\u2135","α":"\u03B1","ā":"\u0101","⨿":"\u2A3F","&":"&","&":"&","∧":"\u2227","⩕":"\u2A55","⩜":"\u2A5C","⩘":"\u2A58","⩚":"\u2A5A","∠":"\u2220","⦤":"\u29A4","∠":"\u2220","∡":"\u2221","⦨":"\u29A8","⦩":"\u29A9","⦪":"\u29AA","⦫":"\u29AB","⦬":"\u29AC","⦭":"\u29AD","⦮":"\u29AE","⦯":"\u29AF","∟":"\u221F","⊾":"\u22BE","⦝":"\u299D","∢":"\u2222","Å":"\xC5","⍼":"\u237C","ą":"\u0105","𝕒":"\uD835\uDD52","≈":"\u2248","⩰":"\u2A70","⩯":"\u2A6F","≊":"\u224A","≋":"\u224B","'":"'","≈":"\u2248","≊":"\u224A","å":"\xE5","å":"\xE5","𝒶":"\uD835\uDCB6","*":"*","≈":"\u2248","≍":"\u224D","ã":"\xE3","ã":"\xE3","ä":"\xE4","ä":"\xE4","∳":"\u2233","⨑":"\u2A11","⫭":"\u2AED","≌":"\u224C","϶":"\u03F6","‵":"\u2035","∽":"\u223D","⋍":"\u22CD","⊽":"\u22BD","⌅":"\u2305","⌅":"\u2305","⎵":"\u23B5","⎶":"\u23B6","≌":"\u224C","б":"\u0431","„":"\u201E","∵":"\u2235","∵":"\u2235","⦰":"\u29B0","϶":"\u03F6","ℬ":"\u212C","β":"\u03B2","ℶ":"\u2136","≬":"\u226C","𝔟":"\uD835\uDD1F","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","⨀":"\u2A00","⨁":"\u2A01","⨂":"\u2A02","⨆":"\u2A06","★":"\u2605","▽":"\u25BD","△":"\u25B3","⨄":"\u2A04","⋁":"\u22C1","⋀":"\u22C0","⤍":"\u290D","⧫":"\u29EB","▪":"\u25AA","▴":"\u25B4","▾":"\u25BE","◂":"\u25C2","▸":"\u25B8","␣":"\u2423","▒":"\u2592","░":"\u2591","▓":"\u2593","█":"\u2588","=⃥":"=\u20E5","≡⃥":"\u2261\u20E5","⌐":"\u2310","𝕓":"\uD835\uDD53","⊥":"\u22A5","⊥":"\u22A5","⋈":"\u22C8","╗":"\u2557","╔":"\u2554","╖":"\u2556","╓":"\u2553","═":"\u2550","╦":"\u2566","╩":"\u2569","╤":"\u2564","╧":"\u2567","╝":"\u255D","╚":"\u255A","╜":"\u255C","╙":"\u2559","║":"\u2551","╬":"\u256C","╣":"\u2563","╠":"\u2560","╫":"\u256B","╢":"\u2562","╟":"\u255F","⧉":"\u29C9","╕":"\u2555","╒":"\u2552","┐":"\u2510","┌":"\u250C","─":"\u2500","╥":"\u2565","╨":"\u2568","┬":"\u252C","┴":"\u2534","⊟":"\u229F","⊞":"\u229E","⊠":"\u22A0","╛":"\u255B","╘":"\u2558","┘":"\u2518","└":"\u2514","│":"\u2502","╪":"\u256A","╡":"\u2561","╞":"\u255E","┼":"\u253C","┤":"\u2524","├":"\u251C","‵":"\u2035","˘":"\u02D8","¦":"\xA6","¦":"\xA6","𝒷":"\uD835\uDCB7","⁏":"\u204F","∽":"\u223D","⋍":"\u22CD","\":"\\","⧅":"\u29C5","⟈":"\u27C8","•":"\u2022","•":"\u2022","≎":"\u224E","⪮":"\u2AAE","≏":"\u224F","≏":"\u224F","ć":"\u0107","∩":"\u2229","⩄":"\u2A44","⩉":"\u2A49","⩋":"\u2A4B","⩇":"\u2A47","⩀":"\u2A40","∩︀":"\u2229\uFE00","⁁":"\u2041","ˇ":"\u02C7","⩍":"\u2A4D","č":"\u010D","ç":"\xE7","ç":"\xE7","ĉ":"\u0109","⩌":"\u2A4C","⩐":"\u2A50","ċ":"\u010B","¸":"\xB8","¸":"\xB8","⦲":"\u29B2","¢":"\xA2","¢":"\xA2","·":"\xB7","𝔠":"\uD835\uDD20","ч":"\u0447","✓":"\u2713","✓":"\u2713","χ":"\u03C7","○":"\u25CB","⧃":"\u29C3","ˆ":"\u02C6","≗":"\u2257","↺":"\u21BA","↻":"\u21BB","®":"\xAE","Ⓢ":"\u24C8","⊛":"\u229B","⊚":"\u229A","⊝":"\u229D","≗":"\u2257","⨐":"\u2A10","⫯":"\u2AEF","⧂":"\u29C2","♣":"\u2663","♣":"\u2663",":":":","≔":"\u2254","≔":"\u2254",",":",","@":"@","∁":"\u2201","∘":"\u2218","∁":"\u2201","ℂ":"\u2102","≅":"\u2245","⩭":"\u2A6D","∮":"\u222E","𝕔":"\uD835\uDD54","∐":"\u2210","©":"\xA9","©":"\xA9","℗":"\u2117","↵":"\u21B5","✗":"\u2717","𝒸":"\uD835\uDCB8","⫏":"\u2ACF","⫑":"\u2AD1","⫐":"\u2AD0","⫒":"\u2AD2","⋯":"\u22EF","⤸":"\u2938","⤵":"\u2935","⋞":"\u22DE","⋟":"\u22DF","↶":"\u21B6","⤽":"\u293D","∪":"\u222A","⩈":"\u2A48","⩆":"\u2A46","⩊":"\u2A4A","⊍":"\u228D","⩅":"\u2A45","∪︀":"\u222A\uFE00","↷":"\u21B7","⤼":"\u293C","⋞":"\u22DE","⋟":"\u22DF","⋎":"\u22CE","⋏":"\u22CF","¤":"\xA4","¤":"\xA4","↶":"\u21B6","↷":"\u21B7","⋎":"\u22CE","⋏":"\u22CF","∲":"\u2232","∱":"\u2231","⌭":"\u232D","⇓":"\u21D3","⥥":"\u2965","†":"\u2020","ℸ":"\u2138","↓":"\u2193","‐":"\u2010","⊣":"\u22A3","⤏":"\u290F","˝":"\u02DD","ď":"\u010F","д":"\u0434","ⅆ":"\u2146","‡":"\u2021","⇊":"\u21CA","⩷":"\u2A77","°":"\xB0","°":"\xB0","δ":"\u03B4","⦱":"\u29B1","⥿":"\u297F","𝔡":"\uD835\uDD21","⇃":"\u21C3","⇂":"\u21C2","⋄":"\u22C4","⋄":"\u22C4","♦":"\u2666","♦":"\u2666","¨":"\xA8","ϝ":"\u03DD","⋲":"\u22F2","÷":"\xF7","÷":"\xF7","÷":"\xF7","⋇":"\u22C7","⋇":"\u22C7","ђ":"\u0452","⌞":"\u231E","⌍":"\u230D","$":"$","𝕕":"\uD835\uDD55","˙":"\u02D9","≐":"\u2250","≑":"\u2251","∸":"\u2238","∔":"\u2214","⊡":"\u22A1","⌆":"\u2306","↓":"\u2193","⇊":"\u21CA","⇃":"\u21C3","⇂":"\u21C2","⤐":"\u2910","⌟":"\u231F","⌌":"\u230C","𝒹":"\uD835\uDCB9","ѕ":"\u0455","⧶":"\u29F6","đ":"\u0111","⋱":"\u22F1","▿":"\u25BF","▾":"\u25BE","⇵":"\u21F5","⥯":"\u296F","⦦":"\u29A6","џ":"\u045F","⟿":"\u27FF","⩷":"\u2A77","≑":"\u2251","é":"\xE9","é":"\xE9","⩮":"\u2A6E","ě":"\u011B","≖":"\u2256","ê":"\xEA","ê":"\xEA","≕":"\u2255","э":"\u044D","ė":"\u0117","ⅇ":"\u2147","≒":"\u2252","𝔢":"\uD835\uDD22","⪚":"\u2A9A","è":"\xE8","è":"\xE8","⪖":"\u2A96","⪘":"\u2A98","⪙":"\u2A99","⏧":"\u23E7","ℓ":"\u2113","⪕":"\u2A95","⪗":"\u2A97","ē":"\u0113","∅":"\u2205","∅":"\u2205","∅":"\u2205"," ":"\u2004"," ":"\u2005"," ":"\u2003","ŋ":"\u014B"," ":"\u2002","ę":"\u0119","𝕖":"\uD835\uDD56","⋕":"\u22D5","⧣":"\u29E3","⩱":"\u2A71","ε":"\u03B5","ε":"\u03B5","ϵ":"\u03F5","≖":"\u2256","≕":"\u2255","≂":"\u2242","⪖":"\u2A96","⪕":"\u2A95","=":"=","≟":"\u225F","≡":"\u2261","⩸":"\u2A78","⧥":"\u29E5","≓":"\u2253","⥱":"\u2971","ℯ":"\u212F","≐":"\u2250","≂":"\u2242","η":"\u03B7","ð":"\xF0","ð":"\xF0","ë":"\xEB","ë":"\xEB","€":"\u20AC","!":"!","∃":"\u2203","ℰ":"\u2130","ⅇ":"\u2147","≒":"\u2252","ф":"\u0444","♀":"\u2640","ffi":"\uFB03","ff":"\uFB00","ffl":"\uFB04","𝔣":"\uD835\uDD23","fi":"\uFB01","fj":"fj","♭":"\u266D","fl":"\uFB02","▱":"\u25B1","ƒ":"\u0192","𝕗":"\uD835\uDD57","∀":"\u2200","⋔":"\u22D4","⫙":"\u2AD9","⨍":"\u2A0D","½":"\xBD","½":"\xBD","⅓":"\u2153","¼":"\xBC","¼":"\xBC","⅕":"\u2155","⅙":"\u2159","⅛":"\u215B","⅔":"\u2154","⅖":"\u2156","¾":"\xBE","¾":"\xBE","⅗":"\u2157","⅜":"\u215C","⅘":"\u2158","⅚":"\u215A","⅝":"\u215D","⅞":"\u215E","⁄":"\u2044","⌢":"\u2322","𝒻":"\uD835\uDCBB","≧":"\u2267","⪌":"\u2A8C","ǵ":"\u01F5","γ":"\u03B3","ϝ":"\u03DD","⪆":"\u2A86","ğ":"\u011F","ĝ":"\u011D","г":"\u0433","ġ":"\u0121","≥":"\u2265","⋛":"\u22DB","≥":"\u2265","≧":"\u2267","⩾":"\u2A7E","⩾":"\u2A7E","⪩":"\u2AA9","⪀":"\u2A80","⪂":"\u2A82","⪄":"\u2A84","⋛︀":"\u22DB\uFE00","⪔":"\u2A94","𝔤":"\uD835\uDD24","≫":"\u226B","⋙":"\u22D9","ℷ":"\u2137","ѓ":"\u0453","≷":"\u2277","⪒":"\u2A92","⪥":"\u2AA5","⪤":"\u2AA4","≩":"\u2269","⪊":"\u2A8A","⪊":"\u2A8A","⪈":"\u2A88","⪈":"\u2A88","≩":"\u2269","⋧":"\u22E7","𝕘":"\uD835\uDD58","`":"`","ℊ":"\u210A","≳":"\u2273","⪎":"\u2A8E","⪐":"\u2A90",">":">",">":">","⪧":"\u2AA7","⩺":"\u2A7A","⋗":"\u22D7","⦕":"\u2995","⩼":"\u2A7C","⪆":"\u2A86","⥸":"\u2978","⋗":"\u22D7","⋛":"\u22DB","⪌":"\u2A8C","≷":"\u2277","≳":"\u2273","≩︀":"\u2269\uFE00","≩︀":"\u2269\uFE00","⇔":"\u21D4"," ":"\u200A","½":"\xBD","ℋ":"\u210B","ъ":"\u044A","↔":"\u2194","⥈":"\u2948","↭":"\u21AD","ℏ":"\u210F","ĥ":"\u0125","♥":"\u2665","♥":"\u2665","…":"\u2026","⊹":"\u22B9","𝔥":"\uD835\uDD25","⤥":"\u2925","⤦":"\u2926","⇿":"\u21FF","∻":"\u223B","↩":"\u21A9","↪":"\u21AA","𝕙":"\uD835\uDD59","―":"\u2015","𝒽":"\uD835\uDCBD","ℏ":"\u210F","ħ":"\u0127","⁃":"\u2043","‐":"\u2010","í":"\xED","í":"\xED","⁣":"\u2063","î":"\xEE","î":"\xEE","и":"\u0438","е":"\u0435","¡":"\xA1","¡":"\xA1","⇔":"\u21D4","𝔦":"\uD835\uDD26","ì":"\xEC","ì":"\xEC","ⅈ":"\u2148","⨌":"\u2A0C","∭":"\u222D","⧜":"\u29DC","℩":"\u2129","ij":"\u0133","ī":"\u012B","ℑ":"\u2111","ℐ":"\u2110","ℑ":"\u2111","ı":"\u0131","⊷":"\u22B7","Ƶ":"\u01B5","∈":"\u2208","℅":"\u2105","∞":"\u221E","⧝":"\u29DD","ı":"\u0131","∫":"\u222B","⊺":"\u22BA","ℤ":"\u2124","⊺":"\u22BA","⨗":"\u2A17","⨼":"\u2A3C","ё":"\u0451","į":"\u012F","𝕚":"\uD835\uDD5A","ι":"\u03B9","⨼":"\u2A3C","¿":"\xBF","¿":"\xBF","𝒾":"\uD835\uDCBE","∈":"\u2208","⋹":"\u22F9","⋵":"\u22F5","⋴":"\u22F4","⋳":"\u22F3","∈":"\u2208","⁢":"\u2062","ĩ":"\u0129","і":"\u0456","ï":"\xEF","ï":"\xEF","ĵ":"\u0135","й":"\u0439","𝔧":"\uD835\uDD27","ȷ":"\u0237","𝕛":"\uD835\uDD5B","𝒿":"\uD835\uDCBF","ј":"\u0458","є":"\u0454","κ":"\u03BA","ϰ":"\u03F0","ķ":"\u0137","к":"\u043A","𝔨":"\uD835\uDD28","ĸ":"\u0138","х":"\u0445","ќ":"\u045C","𝕜":"\uD835\uDD5C","𝓀":"\uD835\uDCC0","⇚":"\u21DA","⇐":"\u21D0","⤛":"\u291B","⤎":"\u290E","≦":"\u2266","⪋":"\u2A8B","⥢":"\u2962","ĺ":"\u013A","⦴":"\u29B4","ℒ":"\u2112","λ":"\u03BB","⟨":"\u27E8","⦑":"\u2991","⟨":"\u27E8","⪅":"\u2A85","«":"\xAB","«":"\xAB","←":"\u2190","⇤":"\u21E4","⤟":"\u291F","⤝":"\u291D","↩":"\u21A9","↫":"\u21AB","⤹":"\u2939","⥳":"\u2973","↢":"\u21A2","⪫":"\u2AAB","⤙":"\u2919","⪭":"\u2AAD","⪭︀":"\u2AAD\uFE00","⤌":"\u290C","❲":"\u2772","{":"{","[":"[","⦋":"\u298B","⦏":"\u298F","⦍":"\u298D","ľ":"\u013E","ļ":"\u013C","⌈":"\u2308","{":"{","л":"\u043B","⤶":"\u2936","“":"\u201C","„":"\u201E","⥧":"\u2967","⥋":"\u294B","↲":"\u21B2","≤":"\u2264","←":"\u2190","↢":"\u21A2","↽":"\u21BD","↼":"\u21BC","⇇":"\u21C7","↔":"\u2194","⇆":"\u21C6","⇋":"\u21CB","↭":"\u21AD","⋋":"\u22CB","⋚":"\u22DA","≤":"\u2264","≦":"\u2266","⩽":"\u2A7D","⩽":"\u2A7D","⪨":"\u2AA8","⩿":"\u2A7F","⪁":"\u2A81","⪃":"\u2A83","⋚︀":"\u22DA\uFE00","⪓":"\u2A93","⪅":"\u2A85","⋖":"\u22D6","⋚":"\u22DA","⪋":"\u2A8B","≶":"\u2276","≲":"\u2272","⥼":"\u297C","⌊":"\u230A","𝔩":"\uD835\uDD29","≶":"\u2276","⪑":"\u2A91","↽":"\u21BD","↼":"\u21BC","⥪":"\u296A","▄":"\u2584","љ":"\u0459","≪":"\u226A","⇇":"\u21C7","⌞":"\u231E","⥫":"\u296B","◺":"\u25FA","ŀ":"\u0140","⎰":"\u23B0","⎰":"\u23B0","≨":"\u2268","⪉":"\u2A89","⪉":"\u2A89","⪇":"\u2A87","⪇":"\u2A87","≨":"\u2268","⋦":"\u22E6","⟬":"\u27EC","⇽":"\u21FD","⟦":"\u27E6","⟵":"\u27F5","⟷":"\u27F7","⟼":"\u27FC","⟶":"\u27F6","↫":"\u21AB","↬":"\u21AC","⦅":"\u2985","𝕝":"\uD835\uDD5D","⨭":"\u2A2D","⨴":"\u2A34","∗":"\u2217","_":"_","◊":"\u25CA","◊":"\u25CA","⧫":"\u29EB","(":"(","⦓":"\u2993","⇆":"\u21C6","⌟":"\u231F","⇋":"\u21CB","⥭":"\u296D","‎":"\u200E","⊿":"\u22BF","‹":"\u2039","𝓁":"\uD835\uDCC1","↰":"\u21B0","≲":"\u2272","⪍":"\u2A8D","⪏":"\u2A8F","[":"[","‘":"\u2018","‚":"\u201A","ł":"\u0142","<":"<","<":"<","⪦":"\u2AA6","⩹":"\u2A79","⋖":"\u22D6","⋋":"\u22CB","⋉":"\u22C9","⥶":"\u2976","⩻":"\u2A7B","⦖":"\u2996","◃":"\u25C3","⊴":"\u22B4","◂":"\u25C2","⥊":"\u294A","⥦":"\u2966","≨︀":"\u2268\uFE00","≨︀":"\u2268\uFE00","∺":"\u223A","¯":"\xAF","¯":"\xAF","♂":"\u2642","✠":"\u2720","✠":"\u2720","↦":"\u21A6","↦":"\u21A6","↧":"\u21A7","↤":"\u21A4","↥":"\u21A5","▮":"\u25AE","⨩":"\u2A29","м":"\u043C","—":"\u2014","∡":"\u2221","𝔪":"\uD835\uDD2A","℧":"\u2127","µ":"\xB5","µ":"\xB5","∣":"\u2223","*":"*","⫰":"\u2AF0","·":"\xB7","·":"\xB7","−":"\u2212","⊟":"\u229F","∸":"\u2238","⨪":"\u2A2A","⫛":"\u2ADB","…":"\u2026","∓":"\u2213","⊧":"\u22A7","𝕞":"\uD835\uDD5E","∓":"\u2213","𝓂":"\uD835\uDCC2","∾":"\u223E","μ":"\u03BC","⊸":"\u22B8","⊸":"\u22B8","⋙̸":"\u22D9\u0338","≫⃒":"\u226B\u20D2","≫̸":"\u226B\u0338","⇍":"\u21CD","⇎":"\u21CE","⋘̸":"\u22D8\u0338","≪⃒":"\u226A\u20D2","≪̸":"\u226A\u0338","⇏":"\u21CF","⊯":"\u22AF","⊮":"\u22AE","∇":"\u2207","ń":"\u0144","∠⃒":"\u2220\u20D2","≉":"\u2249","⩰̸":"\u2A70\u0338","≋̸":"\u224B\u0338","ʼn":"\u0149","≉":"\u2249","♮":"\u266E","♮":"\u266E","ℕ":"\u2115"," ":"\xA0"," ":"\xA0","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⩃":"\u2A43","ň":"\u0148","ņ":"\u0146","≇":"\u2247","⩭̸":"\u2A6D\u0338","⩂":"\u2A42","н":"\u043D","–":"\u2013","≠":"\u2260","⇗":"\u21D7","⤤":"\u2924","↗":"\u2197","↗":"\u2197","≐̸":"\u2250\u0338","≢":"\u2262","⤨":"\u2928","≂̸":"\u2242\u0338","∄":"\u2204","∄":"\u2204","𝔫":"\uD835\uDD2B","≧̸":"\u2267\u0338","≱":"\u2271","≱":"\u2271","≧̸":"\u2267\u0338","⩾̸":"\u2A7E\u0338","⩾̸":"\u2A7E\u0338","≵":"\u2275","≯":"\u226F","≯":"\u226F","⇎":"\u21CE","↮":"\u21AE","⫲":"\u2AF2","∋":"\u220B","⋼":"\u22FC","⋺":"\u22FA","∋":"\u220B","њ":"\u045A","⇍":"\u21CD","≦̸":"\u2266\u0338","↚":"\u219A","‥":"\u2025","≰":"\u2270","↚":"\u219A","↮":"\u21AE","≰":"\u2270","≦̸":"\u2266\u0338","⩽̸":"\u2A7D\u0338","⩽̸":"\u2A7D\u0338","≮":"\u226E","≴":"\u2274","≮":"\u226E","⋪":"\u22EA","⋬":"\u22EC","∤":"\u2224","𝕟":"\uD835\uDD5F","¬":"\xAC","¬":"\xAC","∉":"\u2209","⋹̸":"\u22F9\u0338","⋵̸":"\u22F5\u0338","∉":"\u2209","⋷":"\u22F7","⋶":"\u22F6","∌":"\u220C","∌":"\u220C","⋾":"\u22FE","⋽":"\u22FD","∦":"\u2226","∦":"\u2226","⫽⃥":"\u2AFD\u20E5","∂̸":"\u2202\u0338","⨔":"\u2A14","⊀":"\u2280","⋠":"\u22E0","⪯̸":"\u2AAF\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⇏":"\u21CF","↛":"\u219B","⤳̸":"\u2933\u0338","↝̸":"\u219D\u0338","↛":"\u219B","⋫":"\u22EB","⋭":"\u22ED","⊁":"\u2281","⋡":"\u22E1","⪰̸":"\u2AB0\u0338","𝓃":"\uD835\uDCC3","∤":"\u2224","∦":"\u2226","≁":"\u2241","≄":"\u2244","≄":"\u2244","∤":"\u2224","∦":"\u2226","⋢":"\u22E2","⋣":"\u22E3","⊄":"\u2284","⫅̸":"\u2AC5\u0338","⊈":"\u2288","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⫅̸":"\u2AC5\u0338","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⊅":"\u2285","⫆̸":"\u2AC6\u0338","⊉":"\u2289","⊃⃒":"\u2283\u20D2","⊉":"\u2289","⫆̸":"\u2AC6\u0338","≹":"\u2279","ñ":"\xF1","ñ":"\xF1","≸":"\u2278","⋪":"\u22EA","⋬":"\u22EC","⋫":"\u22EB","⋭":"\u22ED","ν":"\u03BD","#":"#","№":"\u2116"," ":"\u2007","⊭":"\u22AD","⤄":"\u2904","≍⃒":"\u224D\u20D2","⊬":"\u22AC","≥⃒":"\u2265\u20D2",">⃒":">\u20D2","⧞":"\u29DE","⤂":"\u2902","≤⃒":"\u2264\u20D2","<⃒":"<\u20D2","⊴⃒":"\u22B4\u20D2","⤃":"\u2903","⊵⃒":"\u22B5\u20D2","∼⃒":"\u223C\u20D2","⇖":"\u21D6","⤣":"\u2923","↖":"\u2196","↖":"\u2196","⤧":"\u2927","Ⓢ":"\u24C8","ó":"\xF3","ó":"\xF3","⊛":"\u229B","⊚":"\u229A","ô":"\xF4","ô":"\xF4","о":"\u043E","⊝":"\u229D","ő":"\u0151","⨸":"\u2A38","⊙":"\u2299","⦼":"\u29BC","œ":"\u0153","⦿":"\u29BF","𝔬":"\uD835\uDD2C","˛":"\u02DB","ò":"\xF2","ò":"\xF2","⧁":"\u29C1","⦵":"\u29B5","Ω":"\u03A9","∮":"\u222E","↺":"\u21BA","⦾":"\u29BE","⦻":"\u29BB","‾":"\u203E","⧀":"\u29C0","ō":"\u014D","ω":"\u03C9","ο":"\u03BF","⦶":"\u29B6","⊖":"\u2296","𝕠":"\uD835\uDD60","⦷":"\u29B7","⦹":"\u29B9","⊕":"\u2295","∨":"\u2228","↻":"\u21BB","⩝":"\u2A5D","ℴ":"\u2134","ℴ":"\u2134","ª":"\xAA","ª":"\xAA","º":"\xBA","º":"\xBA","⊶":"\u22B6","⩖":"\u2A56","⩗":"\u2A57","⩛":"\u2A5B","ℴ":"\u2134","ø":"\xF8","ø":"\xF8","⊘":"\u2298","õ":"\xF5","õ":"\xF5","⊗":"\u2297","⨶":"\u2A36","ö":"\xF6","ö":"\xF6","⌽":"\u233D","∥":"\u2225","¶":"\xB6","¶":"\xB6","∥":"\u2225","⫳":"\u2AF3","⫽":"\u2AFD","∂":"\u2202","п":"\u043F","%":"%",".":".","‰":"\u2030","⊥":"\u22A5","‱":"\u2031","𝔭":"\uD835\uDD2D","φ":"\u03C6","ϕ":"\u03D5","ℳ":"\u2133","☎":"\u260E","π":"\u03C0","⋔":"\u22D4","ϖ":"\u03D6","ℏ":"\u210F","ℎ":"\u210E","ℏ":"\u210F","+":"+","⨣":"\u2A23","⊞":"\u229E","⨢":"\u2A22","∔":"\u2214","⨥":"\u2A25","⩲":"\u2A72","±":"\xB1","±":"\xB1","⨦":"\u2A26","⨧":"\u2A27","±":"\xB1","⨕":"\u2A15","𝕡":"\uD835\uDD61","£":"\xA3","£":"\xA3","≺":"\u227A","⪳":"\u2AB3","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","≺":"\u227A","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","⪹":"\u2AB9","⪵":"\u2AB5","⋨":"\u22E8","≾":"\u227E","′":"\u2032","ℙ":"\u2119","⪵":"\u2AB5","⪹":"\u2AB9","⋨":"\u22E8","∏":"\u220F","⌮":"\u232E","⌒":"\u2312","⌓":"\u2313","∝":"\u221D","∝":"\u221D","≾":"\u227E","⊰":"\u22B0","𝓅":"\uD835\uDCC5","ψ":"\u03C8"," ":"\u2008","𝔮":"\uD835\uDD2E","⨌":"\u2A0C","𝕢":"\uD835\uDD62","⁗":"\u2057","𝓆":"\uD835\uDCC6","ℍ":"\u210D","⨖":"\u2A16","?":"?","≟":"\u225F",""":'"',""":'"',"⇛":"\u21DB","⇒":"\u21D2","⤜":"\u291C","⤏":"\u290F","⥤":"\u2964","∽̱":"\u223D\u0331","ŕ":"\u0155","√":"\u221A","⦳":"\u29B3","⟩":"\u27E9","⦒":"\u2992","⦥":"\u29A5","⟩":"\u27E9","»":"\xBB","»":"\xBB","→":"\u2192","⥵":"\u2975","⇥":"\u21E5","⤠":"\u2920","⤳":"\u2933","⤞":"\u291E","↪":"\u21AA","↬":"\u21AC","⥅":"\u2945","⥴":"\u2974","↣":"\u21A3","↝":"\u219D","⤚":"\u291A","∶":"\u2236","ℚ":"\u211A","⤍":"\u290D","❳":"\u2773","}":"}","]":"]","⦌":"\u298C","⦎":"\u298E","⦐":"\u2990","ř":"\u0159","ŗ":"\u0157","⌉":"\u2309","}":"}","р":"\u0440","⤷":"\u2937","⥩":"\u2969","”":"\u201D","”":"\u201D","↳":"\u21B3","ℜ":"\u211C","ℛ":"\u211B","ℜ":"\u211C","ℝ":"\u211D","▭":"\u25AD","®":"\xAE","®":"\xAE","⥽":"\u297D","⌋":"\u230B","𝔯":"\uD835\uDD2F","⇁":"\u21C1","⇀":"\u21C0","⥬":"\u296C","ρ":"\u03C1","ϱ":"\u03F1","→":"\u2192","↣":"\u21A3","⇁":"\u21C1","⇀":"\u21C0","⇄":"\u21C4","⇌":"\u21CC","⇉":"\u21C9","↝":"\u219D","⋌":"\u22CC","˚":"\u02DA","≓":"\u2253","⇄":"\u21C4","⇌":"\u21CC","‏":"\u200F","⎱":"\u23B1","⎱":"\u23B1","⫮":"\u2AEE","⟭":"\u27ED","⇾":"\u21FE","⟧":"\u27E7","⦆":"\u2986","𝕣":"\uD835\uDD63","⨮":"\u2A2E","⨵":"\u2A35",")":")","⦔":"\u2994","⨒":"\u2A12","⇉":"\u21C9","›":"\u203A","𝓇":"\uD835\uDCC7","↱":"\u21B1","]":"]","’":"\u2019","’":"\u2019","⋌":"\u22CC","⋊":"\u22CA","▹":"\u25B9","⊵":"\u22B5","▸":"\u25B8","⧎":"\u29CE","⥨":"\u2968","℞":"\u211E","ś":"\u015B","‚":"\u201A","≻":"\u227B","⪴":"\u2AB4","⪸":"\u2AB8","š":"\u0161","≽":"\u227D","⪰":"\u2AB0","ş":"\u015F","ŝ":"\u015D","⪶":"\u2AB6","⪺":"\u2ABA","⋩":"\u22E9","⨓":"\u2A13","≿":"\u227F","с":"\u0441","⋅":"\u22C5","⊡":"\u22A1","⩦":"\u2A66","⇘":"\u21D8","⤥":"\u2925","↘":"\u2198","↘":"\u2198","§":"\xA7","§":"\xA7",";":";","⤩":"\u2929","∖":"\u2216","∖":"\u2216","✶":"\u2736","𝔰":"\uD835\uDD30","⌢":"\u2322","♯":"\u266F","щ":"\u0449","ш":"\u0448","∣":"\u2223","∥":"\u2225","­":"\xAD","­":"\xAD","σ":"\u03C3","ς":"\u03C2","ς":"\u03C2","∼":"\u223C","⩪":"\u2A6A","≃":"\u2243","≃":"\u2243","⪞":"\u2A9E","⪠":"\u2AA0","⪝":"\u2A9D","⪟":"\u2A9F","≆":"\u2246","⨤":"\u2A24","⥲":"\u2972","←":"\u2190","∖":"\u2216","⨳":"\u2A33","⧤":"\u29E4","∣":"\u2223","⌣":"\u2323","⪪":"\u2AAA","⪬":"\u2AAC","⪬︀":"\u2AAC\uFE00","ь":"\u044C","/":"/","⧄":"\u29C4","⌿":"\u233F","𝕤":"\uD835\uDD64","♠":"\u2660","♠":"\u2660","∥":"\u2225","⊓":"\u2293","⊓︀":"\u2293\uFE00","⊔":"\u2294","⊔︀":"\u2294\uFE00","⊏":"\u228F","⊑":"\u2291","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊐":"\u2290","⊒":"\u2292","□":"\u25A1","□":"\u25A1","▪":"\u25AA","▪":"\u25AA","→":"\u2192","𝓈":"\uD835\uDCC8","∖":"\u2216","⌣":"\u2323","⋆":"\u22C6","☆":"\u2606","★":"\u2605","ϵ":"\u03F5","ϕ":"\u03D5","¯":"\xAF","⊂":"\u2282","⫅":"\u2AC5","⪽":"\u2ABD","⊆":"\u2286","⫃":"\u2AC3","⫁":"\u2AC1","⫋":"\u2ACB","⊊":"\u228A","⪿":"\u2ABF","⥹":"\u2979","⊂":"\u2282","⊆":"\u2286","⫅":"\u2AC5","⊊":"\u228A","⫋":"\u2ACB","⫇":"\u2AC7","⫕":"\u2AD5","⫓":"\u2AD3","≻":"\u227B","⪸":"\u2AB8","≽":"\u227D","⪰":"\u2AB0","⪺":"\u2ABA","⪶":"\u2AB6","⋩":"\u22E9","≿":"\u227F","∑":"\u2211","♪":"\u266A","¹":"\xB9","¹":"\xB9","²":"\xB2","²":"\xB2","³":"\xB3","³":"\xB3","⊃":"\u2283","⫆":"\u2AC6","⪾":"\u2ABE","⫘":"\u2AD8","⊇":"\u2287","⫄":"\u2AC4","⟉":"\u27C9","⫗":"\u2AD7","⥻":"\u297B","⫂":"\u2AC2","⫌":"\u2ACC","⊋":"\u228B","⫀":"\u2AC0","⊃":"\u2283","⊇":"\u2287","⫆":"\u2AC6","⊋":"\u228B","⫌":"\u2ACC","⫈":"\u2AC8","⫔":"\u2AD4","⫖":"\u2AD6","⇙":"\u21D9","⤦":"\u2926","↙":"\u2199","↙":"\u2199","⤪":"\u292A","ß":"\xDF","ß":"\xDF","⌖":"\u2316","τ":"\u03C4","⎴":"\u23B4","ť":"\u0165","ţ":"\u0163","т":"\u0442","⃛":"\u20DB","⌕":"\u2315","𝔱":"\uD835\uDD31","∴":"\u2234","∴":"\u2234","θ":"\u03B8","ϑ":"\u03D1","ϑ":"\u03D1","≈":"\u2248","∼":"\u223C"," ":"\u2009","≈":"\u2248","∼":"\u223C","þ":"\xFE","þ":"\xFE","˜":"\u02DC","×":"\xD7","×":"\xD7","⊠":"\u22A0","⨱":"\u2A31","⨰":"\u2A30","∭":"\u222D","⤨":"\u2928","⊤":"\u22A4","⌶":"\u2336","⫱":"\u2AF1","𝕥":"\uD835\uDD65","⫚":"\u2ADA","⤩":"\u2929","‴":"\u2034","™":"\u2122","▵":"\u25B5","▿":"\u25BF","◃":"\u25C3","⊴":"\u22B4","≜":"\u225C","▹":"\u25B9","⊵":"\u22B5","◬":"\u25EC","≜":"\u225C","⨺":"\u2A3A","⨹":"\u2A39","⧍":"\u29CD","⨻":"\u2A3B","⏢":"\u23E2","𝓉":"\uD835\uDCC9","ц":"\u0446","ћ":"\u045B","ŧ":"\u0167","≬":"\u226C","↞":"\u219E","↠":"\u21A0","⇑":"\u21D1","⥣":"\u2963","ú":"\xFA","ú":"\xFA","↑":"\u2191","ў":"\u045E","ŭ":"\u016D","û":"\xFB","û":"\xFB","у":"\u0443","⇅":"\u21C5","ű":"\u0171","⥮":"\u296E","⥾":"\u297E","𝔲":"\uD835\uDD32","ù":"\xF9","ù":"\xF9","↿":"\u21BF","↾":"\u21BE","▀":"\u2580","⌜":"\u231C","⌜":"\u231C","⌏":"\u230F","◸":"\u25F8","ū":"\u016B","¨":"\xA8","¨":"\xA8","ų":"\u0173","𝕦":"\uD835\uDD66","↑":"\u2191","↕":"\u2195","↿":"\u21BF","↾":"\u21BE","⊎":"\u228E","υ":"\u03C5","ϒ":"\u03D2","υ":"\u03C5","⇈":"\u21C8","⌝":"\u231D","⌝":"\u231D","⌎":"\u230E","ů":"\u016F","◹":"\u25F9","𝓊":"\uD835\uDCCA","⋰":"\u22F0","ũ":"\u0169","▵":"\u25B5","▴":"\u25B4","⇈":"\u21C8","ü":"\xFC","ü":"\xFC","⦧":"\u29A7","⇕":"\u21D5","⫨":"\u2AE8","⫩":"\u2AE9","⊨":"\u22A8","⦜":"\u299C","ϵ":"\u03F5","ϰ":"\u03F0","∅":"\u2205","ϕ":"\u03D5","ϖ":"\u03D6","∝":"\u221D","↕":"\u2195","ϱ":"\u03F1","ς":"\u03C2","⊊︀":"\u228A\uFE00","⫋︀":"\u2ACB\uFE00","⊋︀":"\u228B\uFE00","⫌︀":"\u2ACC\uFE00","ϑ":"\u03D1","⊲":"\u22B2","⊳":"\u22B3","в":"\u0432","⊢":"\u22A2","∨":"\u2228","⊻":"\u22BB","≚":"\u225A","⋮":"\u22EE","|":"|","|":"|","𝔳":"\uD835\uDD33","⊲":"\u22B2","⊂⃒":"\u2282\u20D2","⊃⃒":"\u2283\u20D2","𝕧":"\uD835\uDD67","∝":"\u221D","⊳":"\u22B3","𝓋":"\uD835\uDCCB","⫋︀":"\u2ACB\uFE00","⊊︀":"\u228A\uFE00","⫌︀":"\u2ACC\uFE00","⊋︀":"\u228B\uFE00","⦚":"\u299A","ŵ":"\u0175","⩟":"\u2A5F","∧":"\u2227","≙":"\u2259","℘":"\u2118","𝔴":"\uD835\uDD34","𝕨":"\uD835\uDD68","℘":"\u2118","≀":"\u2240","≀":"\u2240","𝓌":"\uD835\uDCCC","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","▽":"\u25BD","𝔵":"\uD835\uDD35","⟺":"\u27FA","⟷":"\u27F7","ξ":"\u03BE","⟸":"\u27F8","⟵":"\u27F5","⟼":"\u27FC","⋻":"\u22FB","⨀":"\u2A00","𝕩":"\uD835\uDD69","⨁":"\u2A01","⨂":"\u2A02","⟹":"\u27F9","⟶":"\u27F6","𝓍":"\uD835\uDCCD","⨆":"\u2A06","⨄":"\u2A04","△":"\u25B3","⋁":"\u22C1","⋀":"\u22C0","ý":"\xFD","ý":"\xFD","я":"\u044F","ŷ":"\u0177","ы":"\u044B","¥":"\xA5","¥":"\xA5","𝔶":"\uD835\uDD36","ї":"\u0457","𝕪":"\uD835\uDD6A","𝓎":"\uD835\uDCCE","ю":"\u044E","ÿ":"\xFF","ÿ":"\xFF","ź":"\u017A","ž":"\u017E","з":"\u0437","ż":"\u017C","ℨ":"\u2128","ζ":"\u03B6","𝔷":"\uD835\uDD37","ж":"\u0436","⇝":"\u21DD","𝕫":"\uD835\uDD6B","𝓏":"\uD835\uDCCF","‍":"\u200D","‌":"\u200C"},i2=bE;function jE(u){return u.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(D,A)=>{if(typeof i2[D]==="string")return i2[D];if(A.charAt(0)!=="#"||D.charAt(D.length-1)!==";")return D;let F;if(A.charAt(1)==="x")F=parseInt(A.substr(2),16);else F=parseInt(A.substr(1),10);let B="";if(F>=55296&&F<=57343||F>1114111)return"\uFFFD";if(F>65535)F-=65536,B+=String.fromCharCode(F>>>10&1023|55296),F=56320|F&1023;return B+=String.fromCharCode(F),B})}function A2(u){return u.trim().replace(/[<>"'?&]/g,(D)=>{let A=D.charCodeAt(0).toString(16);if(A.length<2)A="0"+A;return"&#x"+A.toUpperCase()+";"})}function c0(u){return"<div>"+A2(u).replace(/\n/g,"<br />")+"</div>"}function i0(u){return u=u.replace(/\r?\n/g,"\x01").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,`
|
|
2
|
+
import{df as cJ,ef as E,hf as LE}from"./chunk-7f5ad759.js";var T2=E((n0)=>{Object.defineProperty(n0,"__esModule",{value:!0});n0.ApplicationInSerializer=void 0;n0.ApplicationInSerializer={_fromJsonObject(u){return{metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid}},_toJsonObject(u){return{metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid}}}});var t2=E((o0)=>{Object.defineProperty(o0,"__esModule",{value:!0});o0.ApplicationOutSerializer=void 0;o0.ApplicationOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),id:u.id,metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{createdAt:u.createdAt,id:u.id,metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:u.updatedAt}}}});var Du=E((e0)=>{Object.defineProperty(e0,"__esModule",{value:!0});e0.ApplicationPatchSerializer=void 0;e0.ApplicationPatchSerializer={_fromJsonObject(u){return{metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,uid:u.uid}},_toJsonObject(u){return{metadata:u.metadata,name:u.name,rateLimit:u.rateLimit,uid:u.uid}}}});var wu=E((Bu)=>{Object.defineProperty(Bu,"__esModule",{value:!0});Bu.ListResponseApplicationOutSerializer=void 0;var Au=t2();Bu.ListResponseApplicationOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>Au.ApplicationOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>Au.ApplicationOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var e2=E((Gu)=>{Object.defineProperty(Gu,"__esModule",{value:!0});Gu.ApiException=void 0;class Eu extends Error{constructor(u,D,A){super(`HTTP-Code: ${u}
|
|
3
|
+
Headers: ${JSON.stringify(A)}`);this.code=u,this.body=D,this.headers={},A.forEach((B,F)=>{this.headers[F]=B})}}Gu.ApiException=Eu});var R=E((d)=>{var V2=d&&d.__awaiter||function(u,D,A,B){function F(G){return G instanceof A?G:new A(function(w){w(G)})}return new(A||(A=Promise))(function(G,w){function N(X){try{$(B.next(X))}catch(z){w(z)}}function J(X){try{$(B.throw(X))}catch(z){w(z)}}function $(X){X.done?G(X.value):F(X.value).then(N,J)}$((B=B.apply(u,D||[])).next())})};Object.defineProperty(d,"__esModule",{value:!0});d.SvixRequest=d.HttpMethod=d.LIB_VERSION=void 0;var u0=e2();d.LIB_VERSION="1.92.2";var lE=`svix-libs/${d.LIB_VERSION}/javascript`,dE;(function(u){u.GET="GET",u.HEAD="HEAD",u.POST="POST",u.PUT="PUT",u.DELETE="DELETE",u.CONNECT="CONNECT",u.OPTIONS="OPTIONS",u.TRACE="TRACE",u.PATCH="PATCH"})(dE=d.HttpMethod||(d.HttpMethod={}));class Ju{constructor(u,D){this.method=u,this.path=D,this.queryParams={},this.headerParams={}}setPathParam(u,D){let A=this.path.replace(`{${u}}`,encodeURIComponent(D));if(this.path===A)throw Error(`path parameter ${u} not found`);this.path=A}setQueryParams(u){for(let[D,A]of Object.entries(u))this.setQueryParam(D,A)}setQueryParam(u,D){if(D===void 0||D===null)return;if(typeof D==="string")this.queryParams[u]=D;else if(typeof D==="boolean"||typeof D==="number")this.queryParams[u]=D.toString();else if(D instanceof Date)this.queryParams[u]=D.toISOString();else if(Array.isArray(D)){if(D.length>0)this.queryParams[u]=D.join(",")}else{let A=D;throw Error(`query parameter ${u} has unsupported type`)}}setHeaderParam(u,D){if(D===void 0)return;this.headerParams[u]=D}setBody(u){this.body=JSON.stringify(u)}send(u,D){return V2(this,void 0,void 0,function*(){let A=yield this.sendInner(u);if(A.status===204)return null;let B=yield A.text();return D(JSON.parse(B))})}sendNoResponseBody(u){return V2(this,void 0,void 0,function*(){yield this.sendInner(u)})}sendInner(u){var D,A;return V2(this,void 0,void 0,function*(){let B=new URL(u.baseUrl+this.path);for(let[N,J]of Object.entries(this.queryParams))B.searchParams.set(N,J);if(this.headerParams["idempotency-key"]===void 0&&this.method.toUpperCase()==="POST")this.headerParams["idempotency-key"]=`auto_${crypto.randomUUID()}`;let F=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);if(this.body!=null)this.headerParams["content-type"]="application/json";let G="credentials"in Request.prototype,w=yield Zu(B,{method:this.method.toString(),body:this.body,headers:Object.assign({accept:"application/json, */*;q=0.8",authorization:`Bearer ${u.token}`,"user-agent":lE,"svix-req-id":F.toString()},this.headerParams),credentials:G?"same-origin":void 0,signal:u.timeout!==void 0?AbortSignal.timeout(u.timeout):void 0},u.retryScheduleInMs,(D=u.retryScheduleInMs)===null||D===void 0?void 0:D[0],((A=u.retryScheduleInMs)===null||A===void 0?void 0:A.length)||u.numRetries,u.fetch);return rE(w)})}}d.SvixRequest=Ju;function rE(u){return V2(this,void 0,void 0,function*(){if(u.status<300)return u;let D=yield u.text();if(u.status===422)throw new u0.ApiException(u.status,JSON.parse(D),u.headers);if(u.status>=400&&u.status<=499)throw new u0.ApiException(u.status,JSON.parse(D),u.headers);throw new u0.ApiException(u.status,D,u.headers)})}function Zu(u,D,A,B=50,F=2,G=fetch,w=1){return V2(this,void 0,void 0,function*(){let N=(J)=>new Promise(($)=>setTimeout($,J));try{let J=yield G(u,D);if(F<=0||J.status<500)return J}catch(J){if(F<=0)throw J}return yield N(B),D.headers["svix-retry-count"]=w.toString(),B=(A===null||A===void 0?void 0:A[w])||B*2,yield Zu(u,D,A,B,--F,G,++w)})}});var Yu=E(($u)=>{Object.defineProperty($u,"__esModule",{value:!0});$u.Application=void 0;var D0=T2(),W2=t2(),cE=Du(),iE=wu(),g=R();class zu{constructor(u){this.requestCtx=u}list(u){let D=new g.SvixRequest(g.HttpMethod.GET,"/api/v1/app");return D.setQueryParams({exclude_apps_with_no_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithNoEndpoints,exclude_apps_with_disabled_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithDisabledEndpoints,exclude_apps_with_svix_play_endpoints:u===null||u===void 0?void 0:u.excludeAppsWithSvixPlayEndpoints,limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,iE.ListResponseApplicationOutSerializer._fromJsonObject)}create(u,D){let A=new g.SvixRequest(g.HttpMethod.POST,"/api/v1/app");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(D0.ApplicationInSerializer._toJsonObject(u)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}getOrCreate(u,D){let A=new g.SvixRequest(g.HttpMethod.POST,"/api/v1/app");return A.setQueryParam("get_if_exists",!0),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(D0.ApplicationInSerializer._toJsonObject(u)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}get(u){let D=new g.SvixRequest(g.HttpMethod.GET,"/api/v1/app/{app_id}");return D.setPathParam("app_id",u),D.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}update(u,D){let A=new g.SvixRequest(g.HttpMethod.PUT,"/api/v1/app/{app_id}");return A.setPathParam("app_id",u),A.setBody(D0.ApplicationInSerializer._toJsonObject(D)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}delete(u){let D=new g.SvixRequest(g.HttpMethod.DELETE,"/api/v1/app/{app_id}");return D.setPathParam("app_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new g.SvixRequest(g.HttpMethod.PATCH,"/api/v1/app/{app_id}");return A.setPathParam("app_id",u),A.setBody(cE.ApplicationPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,W2.ApplicationOutSerializer._fromJsonObject)}}$u.Application=zu});var Wu=E((Qu)=>{Object.defineProperty(Qu,"__esModule",{value:!0});Qu.ApiTokenOutSerializer=void 0;Qu.ApiTokenOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),expiresAt:u.expiresAt?new Date(u.expiresAt):null,id:u.id,name:u.name,scopes:u.scopes,token:u.token}},_toJsonObject(u){return{createdAt:u.createdAt,expiresAt:u.expiresAt,id:u.id,name:u.name,scopes:u.scopes,token:u.token}}}});var A0=E((Hu)=>{Object.defineProperty(Hu,"__esModule",{value:!0});Hu.AppPortalCapabilitySerializer=Hu.AppPortalCapability=void 0;var aE;(function(u){u.ViewBase="ViewBase",u.ViewEndpointSecret="ViewEndpointSecret",u.ManageEndpointSecret="ManageEndpointSecret",u.ManageTransformations="ManageTransformations",u.CreateAttempts="CreateAttempts",u.ManageEndpoint="ManageEndpoint"})(aE=Hu.AppPortalCapability||(Hu.AppPortalCapability={}));Hu.AppPortalCapabilitySerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var vu=E((Ru)=>{Object.defineProperty(Ru,"__esModule",{value:!0});Ru.AppPortalAccessInSerializer=void 0;var Uu=A0(),Pu=T2();Ru.AppPortalAccessInSerializer={_fromJsonObject(u){var D;return{application:u.application!=null?Pu.ApplicationInSerializer._fromJsonObject(u.application):void 0,capabilities:(D=u.capabilities)===null||D===void 0?void 0:D.map((A)=>Uu.AppPortalCapabilitySerializer._fromJsonObject(A)),expiry:u.expiry,featureFlags:u.featureFlags,readOnly:u.readOnly,sessionId:u.sessionId}},_toJsonObject(u){var D;return{application:u.application!=null?Pu.ApplicationInSerializer._toJsonObject(u.application):void 0,capabilities:(D=u.capabilities)===null||D===void 0?void 0:D.map((A)=>Uu.AppPortalCapabilitySerializer._toJsonObject(A)),expiry:u.expiry,featureFlags:u.featureFlags,readOnly:u.readOnly,sessionId:u.sessionId}}}});var Tu=E((Mu)=>{Object.defineProperty(Mu,"__esModule",{value:!0});Mu.AppPortalAccessOutSerializer=void 0;Mu.AppPortalAccessOutSerializer={_fromJsonObject(u){return{token:u.token,url:u.url}},_toJsonObject(u){return{token:u.token,url:u.url}}}});var qu=E((hu)=>{Object.defineProperty(hu,"__esModule",{value:!0});hu.ApplicationTokenExpireInSerializer=void 0;hu.ApplicationTokenExpireInSerializer={_fromJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}},_toJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}}}});var xu=E((ku)=>{Object.defineProperty(ku,"__esModule",{value:!0});ku.RotatePollerTokenInSerializer=void 0;ku.RotatePollerTokenInSerializer={_fromJsonObject(u){return{expiry:u.expiry,oldTokenExpiry:u.oldTokenExpiry}},_toJsonObject(u){return{expiry:u.expiry,oldTokenExpiry:u.oldTokenExpiry}}}});var mu=E((yu)=>{Object.defineProperty(yu,"__esModule",{value:!0});yu.StreamPortalAccessInSerializer=void 0;yu.StreamPortalAccessInSerializer={_fromJsonObject(u){return{expiry:u.expiry,featureFlags:u.featureFlags,sessionId:u.sessionId}},_toJsonObject(u){return{expiry:u.expiry,featureFlags:u.featureFlags,sessionId:u.sessionId}}}});var ju=E((gu)=>{Object.defineProperty(gu,"__esModule",{value:!0});gu.StreamTokenExpireInSerializer=void 0;gu.StreamTokenExpireInSerializer={_fromJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}},_toJsonObject(u){return{expiry:u.expiry,sessionIds:u.sessionIds}}}});var B0=E((fu)=>{Object.defineProperty(fu,"__esModule",{value:!0});fu.DashboardAccessOutSerializer=void 0;fu.DashboardAccessOutSerializer={_fromJsonObject(u){return{token:u.token,url:u.url}},_toJsonObject(u){return{token:u.token,url:u.url}}}});var pu=E((iu)=>{Object.defineProperty(iu,"__esModule",{value:!0});iu.Authentication=void 0;var du=Wu(),pE=vu(),ru=Tu(),nE=qu(),sE=xu(),oE=mu(),tE=ju(),eE=B0(),q=R();class cu{constructor(u){this.requestCtx=u}appPortalAccess(u,D,A){let B=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/app-portal-access/{app_id}");return B.setPathParam("app_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(pE.AppPortalAccessInSerializer._toJsonObject(D)),B.send(this.requestCtx,ru.AppPortalAccessOutSerializer._fromJsonObject)}expireAll(u,D,A){let B=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/app/{app_id}/expire-all");return B.setPathParam("app_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(nE.ApplicationTokenExpireInSerializer._toJsonObject(D)),B.sendNoResponseBody(this.requestCtx)}dashboardAccess(u,D){let A=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/dashboard-access/{app_id}");return A.setPathParam("app_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,eE.DashboardAccessOutSerializer._fromJsonObject)}logout(u){let D=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/logout");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.sendNoResponseBody(this.requestCtx)}streamLogout(u){let D=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream-logout");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.sendNoResponseBody(this.requestCtx)}streamPortalAccess(u,D,A){let B=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream-portal-access/{stream_id}");return B.setPathParam("stream_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(oE.StreamPortalAccessInSerializer._toJsonObject(D)),B.send(this.requestCtx,ru.AppPortalAccessOutSerializer._fromJsonObject)}streamExpireAll(u,D,A){let B=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream/{stream_id}/expire-all");return B.setPathParam("stream_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(tE.StreamTokenExpireInSerializer._toJsonObject(D)),B.sendNoResponseBody(this.requestCtx)}getStreamPollerToken(u,D){let A=new q.SvixRequest(q.HttpMethod.GET,"/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,du.ApiTokenOutSerializer._fromJsonObject)}rotateStreamPollerToken(u,D,A,B){let F=new q.SvixRequest(q.HttpMethod.POST,"/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token/rotate");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(sE.RotatePollerTokenInSerializer._toJsonObject(A)),F.send(this.requestCtx,du.ApiTokenOutSerializer._fromJsonObject)}}iu.Authentication=cu});var t=E((su)=>{Object.defineProperty(su,"__esModule",{value:!0});su.BackgroundTaskStatusSerializer=su.BackgroundTaskStatus=void 0;var uG;(function(u){u.Running="running",u.Finished="finished",u.Failed="failed"})(uG=su.BackgroundTaskStatus||(su.BackgroundTaskStatus={}));su.BackgroundTaskStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var e=E((eu)=>{Object.defineProperty(eu,"__esModule",{value:!0});eu.BackgroundTaskTypeSerializer=eu.BackgroundTaskType=void 0;var DG;(function(u){u.EndpointReplay="endpoint.replay",u.EndpointRecover="endpoint.recover",u.ApplicationStats="application.stats",u.MessageBroadcast="message.broadcast",u.SdkGenerate="sdk.generate",u.EventTypeAggregate="event-type.aggregate",u.ApplicationPurgeContent="application.purge_content",u.EndpointBulkReplay="endpoint.bulk-replay"})(DG=eu.BackgroundTaskType||(eu.BackgroundTaskType={}));eu.BackgroundTaskTypeSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var F0=E((BD)=>{Object.defineProperty(BD,"__esModule",{value:!0});BD.BackgroundTaskOutSerializer=void 0;var DD=t(),AD=e();BD.BackgroundTaskOutSerializer={_fromJsonObject(u){return{data:u.data,id:u.id,status:DD.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:AD.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{data:u.data,id:u.id,status:DD.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:AD.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var ND=E((ED)=>{Object.defineProperty(ED,"__esModule",{value:!0});ED.ListResponseBackgroundTaskOutSerializer=void 0;var wD=F0();ED.ListResponseBackgroundTaskOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>wD.BackgroundTaskOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>wD.BackgroundTaskOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var $D=E((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.BackgroundTask=void 0;var AG=F0(),BG=ND(),h2=R();class JD{constructor(u){this.requestCtx=u}list(u){let D=new h2.SvixRequest(h2.HttpMethod.GET,"/api/v1/background-task");return D.setQueryParams({status:u===null||u===void 0?void 0:u.status,task:u===null||u===void 0?void 0:u.task,limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,BG.ListResponseBackgroundTaskOutSerializer._fromJsonObject)}listByEndpoint(u){return this.list(u)}get(u){let D=new h2.SvixRequest(h2.HttpMethod.GET,"/api/v1/background-task/{task_id}");return D.setPathParam("task_id",u),D.send(this.requestCtx,AG.BackgroundTaskOutSerializer._fromJsonObject)}}ZD.BackgroundTask=JD});var w2=E((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});YD.ConnectorKindSerializer=YD.ConnectorKind=void 0;var FG;(function(u){u.Custom="Custom",u.AgenticCommerceProtocol="AgenticCommerceProtocol",u.CloseCrm="CloseCRM",u.CustomerIo="CustomerIO",u.Discord="Discord",u.Hubspot="Hubspot",u.Inngest="Inngest",u.Loops="Loops",u.Otel="Otel",u.Resend="Resend",u.Salesforce="Salesforce",u.Segment="Segment",u.Sendgrid="Sendgrid",u.Slack="Slack",u.Teams="Teams",u.TriggerDev="TriggerDev",u.Windmill="Windmill",u.Zapier="Zapier"})(FG=YD.ConnectorKind||(YD.ConnectorKind={}));YD.ConnectorKindSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var O2=E((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.ConnectorProductSerializer=WD.ConnectorProduct=void 0;var wG;(function(u){u.Dispatch="Dispatch",u.Stream="Stream"})(wG=WD.ConnectorProduct||(WD.ConnectorProduct={}));WD.ConnectorProductSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var w0=E((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.ConnectorInSerializer=void 0;var HD=w2(),CD=O2();UD.ConnectorInSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?HD.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,productType:u.productType!=null?CD.ConnectorProductSerializer._fromJsonObject(u.productType):void 0,transformation:u.transformation,uid:u.uid}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?HD.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,productType:u.productType!=null?CD.ConnectorProductSerializer._toJsonObject(u.productType):void 0,transformation:u.transformation,uid:u.uid}}}});var q2=E((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.ConnectorOutSerializer=void 0;var RD=w2(),LD=O2();vD.ConnectorOutSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,createdAt:new Date(u.createdAt),description:u.description,featureFlags:u.featureFlags,id:u.id,instructions:u.instructions,kind:RD.ConnectorKindSerializer._fromJsonObject(u.kind),logo:u.logo,name:u.name,orgId:u.orgId,productType:LD.ConnectorProductSerializer._fromJsonObject(u.productType),transformation:u.transformation,transformationUpdatedAt:new Date(u.transformationUpdatedAt),uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,createdAt:u.createdAt,description:u.description,featureFlags:u.featureFlags,id:u.id,instructions:u.instructions,kind:RD.ConnectorKindSerializer._toJsonObject(u.kind),logo:u.logo,name:u.name,orgId:u.orgId,productType:LD.ConnectorProductSerializer._toJsonObject(u.productType),transformation:u.transformation,transformationUpdatedAt:u.transformationUpdatedAt,uid:u.uid,updatedAt:u.updatedAt}}}});var OD=E((TD)=>{Object.defineProperty(TD,"__esModule",{value:!0});TD.ConnectorPatchSerializer=void 0;var SD=w2();TD.ConnectorPatchSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?SD.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?SD.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}}}});var xD=E((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.ConnectorUpdateSerializer=void 0;var qD=w2();kD.ConnectorUpdateSerializer={_fromJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?qD.ConnectorKindSerializer._fromJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}},_toJsonObject(u){return{allowedEventTypes:u.allowedEventTypes,description:u.description,featureFlags:u.featureFlags,instructions:u.instructions,kind:u.kind!=null?qD.ConnectorKindSerializer._toJsonObject(u.kind):void 0,logo:u.logo,name:u.name,transformation:u.transformation}}}});var gD=E((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.ListResponseConnectorOutSerializer=void 0;var yD=q2();_D.ListResponseConnectorOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>yD.ConnectorOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>yD.ConnectorOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var lD=E((jD)=>{Object.defineProperty(jD,"__esModule",{value:!0});jD.Connector=void 0;var EG=w0(),k2=q2(),GG=OD(),NG=xD(),JG=gD(),r=R();class bD{constructor(u){this.requestCtx=u}list(u){let D=new r.SvixRequest(r.HttpMethod.GET,"/api/v1/connector");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,product_type:u===null||u===void 0?void 0:u.productType}),D.send(this.requestCtx,JG.ListResponseConnectorOutSerializer._fromJsonObject)}create(u,D){let A=new r.SvixRequest(r.HttpMethod.POST,"/api/v1/connector");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(EG.ConnectorInSerializer._toJsonObject(u)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}get(u){let D=new r.SvixRequest(r.HttpMethod.GET,"/api/v1/connector/{connector_id}");return D.setPathParam("connector_id",u),D.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}update(u,D){let A=new r.SvixRequest(r.HttpMethod.PUT,"/api/v1/connector/{connector_id}");return A.setPathParam("connector_id",u),A.setBody(NG.ConnectorUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}delete(u){let D=new r.SvixRequest(r.HttpMethod.DELETE,"/api/v1/connector/{connector_id}");return D.setPathParam("connector_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new r.SvixRequest(r.HttpMethod.PATCH,"/api/v1/connector/{connector_id}");return A.setPathParam("connector_id",u),A.setBody(GG.ConnectorPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,k2.ConnectorOutSerializer._fromJsonObject)}}jD.Connector=bD});var E2=E((rD)=>{Object.defineProperty(rD,"__esModule",{value:!0});rD.MessageStatusSerializer=rD.MessageStatus=void 0;var ZG;(function(u){u[u.Success=0]="Success",u[u.Pending=1]="Pending",u[u.Fail=2]="Fail",u[u.Sending=3]="Sending"})(ZG=rD.MessageStatus||(rD.MessageStatus={}));rD.MessageStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var E0=E((aD)=>{Object.defineProperty(aD,"__esModule",{value:!0});aD.StatusCodeClassSerializer=aD.StatusCodeClass=void 0;var zG;(function(u){u[u.CodeNone=0]="CodeNone",u[u.Code1xx=100]="Code1xx",u[u.Code2xx=200]="Code2xx",u[u.Code3xx=300]="Code3xx",u[u.Code4xx=400]="Code4xx",u[u.Code5xx=500]="Code5xx"})(zG=aD.StatusCodeClass||(aD.StatusCodeClass={}));aD.StatusCodeClassSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var eD=E((oD)=>{Object.defineProperty(oD,"__esModule",{value:!0});oD.BulkReplayInSerializer=void 0;var nD=E2(),sD=E0();oD.BulkReplayInSerializer={_fromJsonObject(u){return{channel:u.channel,eventTypes:u.eventTypes,since:new Date(u.since),status:u.status!=null?nD.MessageStatusSerializer._fromJsonObject(u.status):void 0,statusCodeClass:u.statusCodeClass!=null?sD.StatusCodeClassSerializer._fromJsonObject(u.statusCodeClass):void 0,tag:u.tag,until:u.until?new Date(u.until):null}},_toJsonObject(u){return{channel:u.channel,eventTypes:u.eventTypes,since:u.since,status:u.status!=null?nD.MessageStatusSerializer._toJsonObject(u.status):void 0,statusCodeClass:u.statusCodeClass!=null?sD.StatusCodeClassSerializer._toJsonObject(u.statusCodeClass):void 0,tag:u.tag,until:u.until}}}});var A1=E((u1)=>{Object.defineProperty(u1,"__esModule",{value:!0});u1.EndpointHeadersInSerializer=void 0;u1.EndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var G0=E((B1)=>{Object.defineProperty(B1,"__esModule",{value:!0});B1.EndpointHeadersOutSerializer=void 0;B1.EndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var G1=E((w1)=>{Object.defineProperty(w1,"__esModule",{value:!0});w1.EndpointHeadersPatchInSerializer=void 0;w1.EndpointHeadersPatchInSerializer={_fromJsonObject(u){return{deleteHeaders:u.deleteHeaders,headers:u.headers}},_toJsonObject(u){return{deleteHeaders:u.deleteHeaders,headers:u.headers}}}});var Z1=E((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});N1.EndpointInSerializer=void 0;N1.EndpointInSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,headers:u.headers,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,headers:u.headers,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var N0=E((z1)=>{Object.defineProperty(z1,"__esModule",{value:!0});z1.EndpointOutSerializer=void 0;z1.EndpointOutSerializer={_fromJsonObject(u){return{channels:u.channels,createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,updatedAt:u.updatedAt,url:u.url,version:u.version}}}});var Q1=E((X1)=>{Object.defineProperty(X1,"__esModule",{value:!0});X1.EndpointPatchSerializer=void 0;X1.EndpointPatchSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var K1=E((V1)=>{Object.defineProperty(V1,"__esModule",{value:!0});V1.EndpointSecretOutSerializer=void 0;V1.EndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var J0=E((H1)=>{Object.defineProperty(H1,"__esModule",{value:!0});H1.EndpointSecretRotateInSerializer=void 0;H1.EndpointSecretRotateInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var R1=E((U1)=>{Object.defineProperty(U1,"__esModule",{value:!0});U1.EndpointStatsSerializer=void 0;U1.EndpointStatsSerializer={_fromJsonObject(u){return{fail:u.fail,pending:u.pending,sending:u.sending,success:u.success}},_toJsonObject(u){return{fail:u.fail,pending:u.pending,sending:u.sending,success:u.success}}}});var M1=E((L1)=>{Object.defineProperty(L1,"__esModule",{value:!0});L1.EndpointTransformationInSerializer=void 0;L1.EndpointTransformationInSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var h1=E((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});S1.EndpointTransformationOutSerializer=void 0;S1.EndpointTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled,updatedAt:u.updatedAt?new Date(u.updatedAt):null}},_toJsonObject(u){return{code:u.code,enabled:u.enabled,updatedAt:u.updatedAt}}}});var k1=E((O1)=>{Object.defineProperty(O1,"__esModule",{value:!0});O1.EndpointTransformationPatchSerializer=void 0;O1.EndpointTransformationPatchSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var y1=E((I1)=>{Object.defineProperty(I1,"__esModule",{value:!0});I1.EndpointUpdateSerializer=void 0;I1.EndpointUpdateSerializer={_fromJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,throttleRate:u.throttleRate,uid:u.uid,url:u.url,version:u.version}}}});var g1=E((_1)=>{Object.defineProperty(_1,"__esModule",{value:!0});_1.EventExampleInSerializer=void 0;_1.EventExampleInSerializer={_fromJsonObject(u){return{eventType:u.eventType,exampleIndex:u.exampleIndex}},_toJsonObject(u){return{eventType:u.eventType,exampleIndex:u.exampleIndex}}}});var l1=E((j1)=>{Object.defineProperty(j1,"__esModule",{value:!0});j1.ListResponseEndpointOutSerializer=void 0;var b1=N0();j1.ListResponseEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>b1.EndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>b1.EndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var K2=E((d1)=>{Object.defineProperty(d1,"__esModule",{value:!0});d1.MessageOutSerializer=void 0;d1.MessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,id:u.id,payload:u.payload,tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,id:u.id,payload:u.payload,tags:u.tags,timestamp:u.timestamp}}}});var a1=E((c1)=>{Object.defineProperty(c1,"__esModule",{value:!0});c1.RecoverInSerializer=void 0;c1.RecoverInSerializer={_fromJsonObject(u){return{since:new Date(u.since),until:u.until?new Date(u.until):null}},_toJsonObject(u){return{since:u.since,until:u.until}}}});var t1=E((s1)=>{Object.defineProperty(s1,"__esModule",{value:!0});s1.RecoverOutSerializer=void 0;var p1=t(),n1=e();s1.RecoverOutSerializer={_fromJsonObject(u){return{id:u.id,status:p1.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:n1.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:p1.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:n1.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var D3=E((e1)=>{Object.defineProperty(e1,"__esModule",{value:!0});e1.ReplayInSerializer=void 0;e1.ReplayInSerializer={_fromJsonObject(u){return{since:new Date(u.since),until:u.until?new Date(u.until):null}},_toJsonObject(u){return{since:u.since,until:u.until}}}});var E3=E((F3)=>{Object.defineProperty(F3,"__esModule",{value:!0});F3.ReplayOutSerializer=void 0;var A3=t(),B3=e();F3.ReplayOutSerializer={_fromJsonObject(u){return{id:u.id,status:A3.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:B3.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:A3.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:B3.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var z3=E((J3)=>{Object.defineProperty(J3,"__esModule",{value:!0});J3.Endpoint=void 0;var $G=eD(),XG=A1(),YG=G0(),QG=G1(),VG=Z1(),I2=N0(),WG=Q1(),KG=K1(),HG=J0(),CG=R1(),UG=M1(),PG=h1(),RG=k1(),LG=y1(),vG=g1(),MG=l1(),SG=K2(),TG=a1(),hG=t1(),OG=D3(),G3=E3(),V=R();class N3{constructor(u){this.requestCtx=u}list(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,MG.ListResponseEndpointOutSerializer._fromJsonObject)}create(u,D,A){let B=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint");return B.setPathParam("app_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(VG.EndpointInSerializer._toJsonObject(D)),B.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}get(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}update(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(LG.EndpointUpdateSerializer._toJsonObject(A)),B.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}delete(u,D){let A=new V.SvixRequest(V.HttpMethod.DELETE,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.sendNoResponseBody(this.requestCtx)}patch(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(WG.EndpointPatchSerializer._toJsonObject(A)),B.send(this.requestCtx,I2.EndpointOutSerializer._fromJsonObject)}bulkReplay(u,D,A,B){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/bulk-replay");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody($G.BulkReplayInSerializer._toJsonObject(A)),F.send(this.requestCtx,G3.ReplayOutSerializer._fromJsonObject)}getHeaders(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,YG.EndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PUT,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(XG.EndpointHeadersInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}headersUpdate(u,D,A){return this.updateHeaders(u,D,A)}patchHeaders(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(QG.EndpointHeadersPatchInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}headersPatch(u,D,A){return this.patchHeaders(u,D,A)}recover(u,D,A,B){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(TG.RecoverInSerializer._toJsonObject(A)),F.send(this.requestCtx,hG.RecoverOutSerializer._fromJsonObject)}replayMissing(u,D,A,B){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(OG.ReplayInSerializer._toJsonObject(A)),F.send(this.requestCtx,G3.ReplayOutSerializer._fromJsonObject)}getSecret(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,KG.EndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,B){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(HG.EndpointSecretRotateInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}sendExample(u,D,A,B){let F=new V.SvixRequest(V.HttpMethod.POST,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example");return F.setPathParam("app_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(vG.EventExampleInSerializer._toJsonObject(A)),F.send(this.requestCtx,SG.MessageOutSerializer._fromJsonObject)}getStats(u,D,A){let B=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setQueryParams({since:A===null||A===void 0?void 0:A.since,until:A===null||A===void 0?void 0:A.until}),B.send(this.requestCtx,CG.EndpointStatsSerializer._fromJsonObject)}transformationGet(u,D){let A=new V.SvixRequest(V.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return A.setPathParam("app_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,PG.EndpointTransformationOutSerializer._fromJsonObject)}patchTransformation(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(RG.EndpointTransformationPatchSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}transformationPartialUpdate(u,D,A){let B=new V.SvixRequest(V.HttpMethod.PATCH,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setBody(UG.EndpointTransformationInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}}J3.Endpoint=N3});var Z0=E(($3)=>{Object.defineProperty($3,"__esModule",{value:!0});$3.EventTypeInSerializer=void 0;$3.EventTypeInSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}}}});var K3=E((V3)=>{Object.defineProperty(V3,"__esModule",{value:!0});V3.EnvironmentInSerializer=void 0;var Y3=w0(),Q3=Z0();V3.EnvironmentInSerializer={_fromJsonObject(u){var D,A;return{connectors:(D=u.connectors)===null||D===void 0?void 0:D.map((B)=>Y3.ConnectorInSerializer._fromJsonObject(B)),eventTypes:(A=u.eventTypes)===null||A===void 0?void 0:A.map((B)=>Q3.EventTypeInSerializer._fromJsonObject(B)),settings:u.settings}},_toJsonObject(u){var D,A;return{connectors:(D=u.connectors)===null||D===void 0?void 0:D.map((B)=>Y3.ConnectorInSerializer._toJsonObject(B)),eventTypes:(A=u.eventTypes)===null||A===void 0?void 0:A.map((B)=>Q3.EventTypeInSerializer._toJsonObject(B)),settings:u.settings}}}});var x2=E((H3)=>{Object.defineProperty(H3,"__esModule",{value:!0});H3.EventTypeOutSerializer=void 0;H3.EventTypeOutSerializer={_fromJsonObject(u){return{archived:u.archived,createdAt:new Date(u.createdAt),deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{archived:u.archived,createdAt:u.createdAt,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas,updatedAt:u.updatedAt}}}});var v3=E((R3)=>{Object.defineProperty(R3,"__esModule",{value:!0});R3.EnvironmentOutSerializer=void 0;var U3=q2(),P3=x2();R3.EnvironmentOutSerializer={_fromJsonObject(u){return{connectors:u.connectors.map((D)=>U3.ConnectorOutSerializer._fromJsonObject(D)),createdAt:new Date(u.createdAt),eventTypes:u.eventTypes.map((D)=>P3.EventTypeOutSerializer._fromJsonObject(D)),settings:u.settings,version:u.version}},_toJsonObject(u){return{connectors:u.connectors.map((D)=>U3.ConnectorOutSerializer._toJsonObject(D)),createdAt:u.createdAt,eventTypes:u.eventTypes.map((D)=>P3.EventTypeOutSerializer._toJsonObject(D)),settings:u.settings,version:u.version}}}});var h3=E((S3)=>{Object.defineProperty(S3,"__esModule",{value:!0});S3.Environment=void 0;var qG=K3(),kG=v3(),y2=R();class M3{constructor(u){this.requestCtx=u}export(u){let D=new y2.SvixRequest(y2.HttpMethod.POST,"/api/v1/environment/export");return D.setHeaderParam("idempotency-key",u===null||u===void 0?void 0:u.idempotencyKey),D.send(this.requestCtx,kG.EnvironmentOutSerializer._fromJsonObject)}import(u,D){let A=new y2.SvixRequest(y2.HttpMethod.POST,"/api/v1/environment/import");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(qG.EnvironmentInSerializer._toJsonObject(u)),A.sendNoResponseBody(this.requestCtx)}}S3.Environment=M3});var k3=E((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.EventTypeImportOpenApiInSerializer=void 0;O3.EventTypeImportOpenApiInSerializer={_fromJsonObject(u){return{dryRun:u.dryRun,replaceAll:u.replaceAll,spec:u.spec,specRaw:u.specRaw}},_toJsonObject(u){return{dryRun:u.dryRun,replaceAll:u.replaceAll,spec:u.spec,specRaw:u.specRaw}}}});var y3=E((I3)=>{Object.defineProperty(I3,"__esModule",{value:!0});I3.EventTypeFromOpenApiSerializer=void 0;I3.EventTypeFromOpenApiSerializer={_fromJsonObject(u){return{deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}},_toJsonObject(u){return{deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,name:u.name,schemas:u.schemas}}}});var b3=E((m3)=>{Object.defineProperty(m3,"__esModule",{value:!0});m3.EventTypeImportOpenApiOutDataSerializer=void 0;var _3=y3();m3.EventTypeImportOpenApiOutDataSerializer={_fromJsonObject(u){var D;return{modified:u.modified,toModify:(D=u.to_modify)===null||D===void 0?void 0:D.map((A)=>_3.EventTypeFromOpenApiSerializer._fromJsonObject(A))}},_toJsonObject(u){var D;return{modified:u.modified,to_modify:(D=u.toModify)===null||D===void 0?void 0:D.map((A)=>_3.EventTypeFromOpenApiSerializer._toJsonObject(A))}}}});var d3=E((f3)=>{Object.defineProperty(f3,"__esModule",{value:!0});f3.EventTypeImportOpenApiOutSerializer=void 0;var j3=b3();f3.EventTypeImportOpenApiOutSerializer={_fromJsonObject(u){return{data:j3.EventTypeImportOpenApiOutDataSerializer._fromJsonObject(u.data)}},_toJsonObject(u){return{data:j3.EventTypeImportOpenApiOutDataSerializer._toJsonObject(u.data)}}}});var i3=E((r3)=>{Object.defineProperty(r3,"__esModule",{value:!0});r3.EventTypePatchSerializer=void 0;r3.EventTypePatchSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}}}});var n3=E((a3)=>{Object.defineProperty(a3,"__esModule",{value:!0});a3.EventTypeUpdateSerializer=void 0;a3.EventTypeUpdateSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlag:u.featureFlag,featureFlags:u.featureFlags,groupName:u.groupName,schemas:u.schemas}}}});var e3=E((o3)=>{Object.defineProperty(o3,"__esModule",{value:!0});o3.ListResponseEventTypeOutSerializer=void 0;var s3=x2();o3.ListResponseEventTypeOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>s3.EventTypeOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>s3.EventTypeOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var B5=E((D5)=>{Object.defineProperty(D5,"__esModule",{value:!0});D5.EventType=void 0;var IG=k3(),xG=d3(),yG=Z0(),_2=x2(),_G=i3(),mG=n3(),gG=e3(),b=R();class u5{constructor(u){this.requestCtx=u}list(u){let D=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/event-type");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,include_archived:u===null||u===void 0?void 0:u.includeArchived,with_content:u===null||u===void 0?void 0:u.withContent}),D.send(this.requestCtx,gG.ListResponseEventTypeOutSerializer._fromJsonObject)}create(u,D){let A=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/event-type");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(yG.EventTypeInSerializer._toJsonObject(u)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}importOpenapi(u,D){let A=new b.SvixRequest(b.HttpMethod.POST,"/api/v1/event-type/import/openapi");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(IG.EventTypeImportOpenApiInSerializer._toJsonObject(u)),A.send(this.requestCtx,xG.EventTypeImportOpenApiOutSerializer._fromJsonObject)}get(u){let D=new b.SvixRequest(b.HttpMethod.GET,"/api/v1/event-type/{event_type_name}");return D.setPathParam("event_type_name",u),D.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}update(u,D){let A=new b.SvixRequest(b.HttpMethod.PUT,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setBody(mG.EventTypeUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}delete(u,D){let A=new b.SvixRequest(b.HttpMethod.DELETE,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setQueryParams({expunge:D===null||D===void 0?void 0:D.expunge}),A.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new b.SvixRequest(b.HttpMethod.PATCH,"/api/v1/event-type/{event_type_name}");return A.setPathParam("event_type_name",u),A.setBody(_G.EventTypePatchSerializer._toJsonObject(D)),A.send(this.requestCtx,_2.EventTypeOutSerializer._fromJsonObject)}}D5.EventType=u5});var N5=E((E5)=>{Object.defineProperty(E5,"__esModule",{value:!0});E5.Health=void 0;var F5=R();class w5{constructor(u){this.requestCtx=u}get(){return new F5.SvixRequest(F5.HttpMethod.GET,"/api/v1/health").sendNoResponseBody(this.requestCtx)}}E5.Health=w5});var z5=E((J5)=>{Object.defineProperty(J5,"__esModule",{value:!0});J5.IngestSourceConsumerPortalAccessInSerializer=void 0;J5.IngestSourceConsumerPortalAccessInSerializer={_fromJsonObject(u){return{expiry:u.expiry,readOnly:u.readOnly}},_toJsonObject(u){return{expiry:u.expiry,readOnly:u.readOnly}}}});var Y5=E(($5)=>{Object.defineProperty($5,"__esModule",{value:!0});$5.IngestEndpointHeadersInSerializer=void 0;$5.IngestEndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var W5=E((Q5)=>{Object.defineProperty(Q5,"__esModule",{value:!0});Q5.IngestEndpointHeadersOutSerializer=void 0;Q5.IngestEndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var C5=E((K5)=>{Object.defineProperty(K5,"__esModule",{value:!0});K5.IngestEndpointInSerializer=void 0;K5.IngestEndpointInSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}}}});var z0=E((U5)=>{Object.defineProperty(U5,"__esModule",{value:!0});U5.IngestEndpointOutSerializer=void 0;U5.IngestEndpointOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url}},_toJsonObject(u){return{createdAt:u.createdAt,description:u.description,disabled:u.disabled,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:u.updatedAt,url:u.url}}}});var v5=E((R5)=>{Object.defineProperty(R5,"__esModule",{value:!0});R5.IngestEndpointSecretInSerializer=void 0;R5.IngestEndpointSecretInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var T5=E((M5)=>{Object.defineProperty(M5,"__esModule",{value:!0});M5.IngestEndpointSecretOutSerializer=void 0;M5.IngestEndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var q5=E((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});h5.IngestEndpointTransformationOutSerializer=void 0;h5.IngestEndpointTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var x5=E((k5)=>{Object.defineProperty(k5,"__esModule",{value:!0});k5.IngestEndpointTransformationPatchSerializer=void 0;k5.IngestEndpointTransformationPatchSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var m5=E((y5)=>{Object.defineProperty(y5,"__esModule",{value:!0});y5.IngestEndpointUpdateSerializer=void 0;y5.IngestEndpointUpdateSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}}}});var f5=E((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.ListResponseIngestEndpointOutSerializer=void 0;var g5=z0();b5.ListResponseIngestEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>g5.IngestEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>g5.IngestEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var c5=E((d5)=>{Object.defineProperty(d5,"__esModule",{value:!0});d5.IngestEndpoint=void 0;var bG=Y5(),jG=W5(),fG=C5(),$0=z0(),lG=v5(),dG=T5(),rG=q5(),cG=x5(),iG=m5(),aG=f5(),v=R();class l5{constructor(u){this.requestCtx=u}list(u,D){let A=new v.SvixRequest(v.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint");return A.setPathParam("source_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,aG.ListResponseIngestEndpointOutSerializer._fromJsonObject)}create(u,D,A){let B=new v.SvixRequest(v.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint");return B.setPathParam("source_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(fG.IngestEndpointInSerializer._toJsonObject(D)),B.send(this.requestCtx,$0.IngestEndpointOutSerializer._fromJsonObject)}get(u,D){let A=new v.SvixRequest(v.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,$0.IngestEndpointOutSerializer._fromJsonObject)}update(u,D,A){let B=new v.SvixRequest(v.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return B.setPathParam("source_id",u),B.setPathParam("endpoint_id",D),B.setBody(iG.IngestEndpointUpdateSerializer._toJsonObject(A)),B.send(this.requestCtx,$0.IngestEndpointOutSerializer._fromJsonObject)}delete(u,D){let A=new v.SvixRequest(v.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.sendNoResponseBody(this.requestCtx)}getHeaders(u,D){let A=new v.SvixRequest(v.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,jG.IngestEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D,A){let B=new v.SvixRequest(v.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");return B.setPathParam("source_id",u),B.setPathParam("endpoint_id",D),B.setBody(bG.IngestEndpointHeadersInSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}getSecret(u,D){let A=new v.SvixRequest(v.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,dG.IngestEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,B){let F=new v.SvixRequest(v.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate");return F.setPathParam("source_id",u),F.setPathParam("endpoint_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(lG.IngestEndpointSecretInSerializer._toJsonObject(A)),F.sendNoResponseBody(this.requestCtx)}getTransformation(u,D){let A=new v.SvixRequest(v.HttpMethod.GET,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");return A.setPathParam("source_id",u),A.setPathParam("endpoint_id",D),A.send(this.requestCtx,rG.IngestEndpointTransformationOutSerializer._fromJsonObject)}setTransformation(u,D,A){let B=new v.SvixRequest(v.HttpMethod.PATCH,"/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");return B.setPathParam("source_id",u),B.setPathParam("endpoint_id",D),B.setBody(cG.IngestEndpointTransformationPatchSerializer._toJsonObject(A)),B.sendNoResponseBody(this.requestCtx)}}d5.IngestEndpoint=l5});var p5=E((i5)=>{Object.defineProperty(i5,"__esModule",{value:!0});i5.AdobeSignConfigSerializer=void 0;i5.AdobeSignConfigSerializer={_fromJsonObject(u){return{clientId:u.clientId}},_toJsonObject(u){return{clientId:u.clientId}}}});var o5=E((n5)=>{Object.defineProperty(n5,"__esModule",{value:!0});n5.AirwallexConfigSerializer=void 0;n5.AirwallexConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var uA=E((t5)=>{Object.defineProperty(t5,"__esModule",{value:!0});t5.CheckbookConfigSerializer=void 0;t5.CheckbookConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var X0=E((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.CronConfigSerializer=void 0;DA.CronConfigSerializer={_fromJsonObject(u){return{contentType:u.contentType,payload:u.payload,schedule:u.schedule}},_toJsonObject(u){return{contentType:u.contentType,payload:u.payload,schedule:u.schedule}}}});var wA=E((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.DocusignConfigSerializer=void 0;BA.DocusignConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var NA=E((EA)=>{Object.defineProperty(EA,"__esModule",{value:!0});EA.EasypostConfigSerializer=void 0;EA.EasypostConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var zA=E((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.GithubConfigSerializer=void 0;JA.GithubConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var YA=E(($A)=>{Object.defineProperty($A,"__esModule",{value:!0});$A.HubspotConfigSerializer=void 0;$A.HubspotConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var WA=E((QA)=>{Object.defineProperty(QA,"__esModule",{value:!0});QA.MetaConfigSerializer=void 0;QA.MetaConfigSerializer={_fromJsonObject(u){return{secret:u.secret,verifyToken:u.verifyToken}},_toJsonObject(u){return{secret:u.secret,verifyToken:u.verifyToken}}}});var CA=E((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.OrumIoConfigSerializer=void 0;KA.OrumIoConfigSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var RA=E((UA)=>{Object.defineProperty(UA,"__esModule",{value:!0});UA.PandaDocConfigSerializer=void 0;UA.PandaDocConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var MA=E((LA)=>{Object.defineProperty(LA,"__esModule",{value:!0});LA.PortIoConfigSerializer=void 0;LA.PortIoConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var hA=E((SA)=>{Object.defineProperty(SA,"__esModule",{value:!0});SA.RutterConfigSerializer=void 0;SA.RutterConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var kA=E((OA)=>{Object.defineProperty(OA,"__esModule",{value:!0});OA.SegmentConfigSerializer=void 0;OA.SegmentConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var yA=E((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.ShopifyConfigSerializer=void 0;IA.ShopifyConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var gA=E((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.SlackConfigSerializer=void 0;_A.SlackConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var fA=E((bA)=>{Object.defineProperty(bA,"__esModule",{value:!0});bA.StripeConfigSerializer=void 0;bA.StripeConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var rA=E((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});lA.SvixConfigSerializer=void 0;lA.SvixConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var aA=E((cA)=>{Object.defineProperty(cA,"__esModule",{value:!0});cA.TelnyxConfigSerializer=void 0;cA.TelnyxConfigSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var sA=E((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.VapiConfigSerializer=void 0;pA.VapiConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var eA=E((oA)=>{Object.defineProperty(oA,"__esModule",{value:!0});oA.VeriffConfigSerializer=void 0;oA.VeriffConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var A9=E((u9)=>{Object.defineProperty(u9,"__esModule",{value:!0});u9.ZoomConfigSerializer=void 0;u9.ZoomConfigSerializer={_fromJsonObject(u){return{secret:u.secret}},_toJsonObject(u){return{secret:u.secret}}}});var M9=E((L9)=>{Object.defineProperty(L9,"__esModule",{value:!0});L9.IngestSourceInSerializer=void 0;var B9=p5(),F9=o5(),w9=uA(),E9=X0(),G9=wA(),N9=NA(),J9=zA(),Z9=YA(),z9=WA(),$9=CA(),X9=RA(),Y9=MA(),Q9=hA(),V9=kA(),W9=yA(),K9=gA(),H9=fA(),W=rA(),C9=aA(),U9=sA(),P9=eA(),R9=A9();L9.IngestSourceInSerializer={_fromJsonObject(u){let D=u.type;function A(B){switch(B){case"generic-webhook":return{};case"cron":return E9.CronConfigSerializer._fromJsonObject(u.config);case"adobe-sign":return B9.AdobeSignConfigSerializer._fromJsonObject(u.config);case"beehiiv":return W.SvixConfigSerializer._fromJsonObject(u.config);case"brex":return W.SvixConfigSerializer._fromJsonObject(u.config);case"checkbook":return w9.CheckbookConfigSerializer._fromJsonObject(u.config);case"clerk":return W.SvixConfigSerializer._fromJsonObject(u.config);case"docusign":return G9.DocusignConfigSerializer._fromJsonObject(u.config);case"easypost":return N9.EasypostConfigSerializer._fromJsonObject(u.config);case"github":return J9.GithubConfigSerializer._fromJsonObject(u.config);case"guesty":return W.SvixConfigSerializer._fromJsonObject(u.config);case"hubspot":return Z9.HubspotConfigSerializer._fromJsonObject(u.config);case"incident-io":return W.SvixConfigSerializer._fromJsonObject(u.config);case"lithic":return W.SvixConfigSerializer._fromJsonObject(u.config);case"meta":return z9.MetaConfigSerializer._fromJsonObject(u.config);case"nash":return W.SvixConfigSerializer._fromJsonObject(u.config);case"orum-io":return $9.OrumIoConfigSerializer._fromJsonObject(u.config);case"panda-doc":return X9.PandaDocConfigSerializer._fromJsonObject(u.config);case"port-io":return Y9.PortIoConfigSerializer._fromJsonObject(u.config);case"pleo":return W.SvixConfigSerializer._fromJsonObject(u.config);case"psi-fi":return W.SvixConfigSerializer._fromJsonObject(u.config);case"replicate":return W.SvixConfigSerializer._fromJsonObject(u.config);case"resend":return W.SvixConfigSerializer._fromJsonObject(u.config);case"rutter":return Q9.RutterConfigSerializer._fromJsonObject(u.config);case"safebase":return W.SvixConfigSerializer._fromJsonObject(u.config);case"sardine":return W.SvixConfigSerializer._fromJsonObject(u.config);case"segment":return V9.SegmentConfigSerializer._fromJsonObject(u.config);case"shopify":return W9.ShopifyConfigSerializer._fromJsonObject(u.config);case"slack":return K9.SlackConfigSerializer._fromJsonObject(u.config);case"stripe":return H9.StripeConfigSerializer._fromJsonObject(u.config);case"stych":return W.SvixConfigSerializer._fromJsonObject(u.config);case"svix":return W.SvixConfigSerializer._fromJsonObject(u.config);case"zoom":return R9.ZoomConfigSerializer._fromJsonObject(u.config);case"telnyx":return C9.TelnyxConfigSerializer._fromJsonObject(u.config);case"vapi":return U9.VapiConfigSerializer._fromJsonObject(u.config);case"open-ai":return W.SvixConfigSerializer._fromJsonObject(u.config);case"render":return W.SvixConfigSerializer._fromJsonObject(u.config);case"veriff":return P9.VeriffConfigSerializer._fromJsonObject(u.config);case"airwallex":return F9.AirwallexConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${B}`)}}return{type:D,config:A(D),metadata:u.metadata,name:u.name,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"generic-webhook":D={};break;case"cron":D=E9.CronConfigSerializer._toJsonObject(u.config);break;case"adobe-sign":D=B9.AdobeSignConfigSerializer._toJsonObject(u.config);break;case"beehiiv":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"brex":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"checkbook":D=w9.CheckbookConfigSerializer._toJsonObject(u.config);break;case"clerk":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"docusign":D=G9.DocusignConfigSerializer._toJsonObject(u.config);break;case"easypost":D=N9.EasypostConfigSerializer._toJsonObject(u.config);break;case"github":D=J9.GithubConfigSerializer._toJsonObject(u.config);break;case"guesty":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"hubspot":D=Z9.HubspotConfigSerializer._toJsonObject(u.config);break;case"incident-io":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"lithic":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"meta":D=z9.MetaConfigSerializer._toJsonObject(u.config);break;case"nash":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"orum-io":D=$9.OrumIoConfigSerializer._toJsonObject(u.config);break;case"panda-doc":D=X9.PandaDocConfigSerializer._toJsonObject(u.config);break;case"port-io":D=Y9.PortIoConfigSerializer._toJsonObject(u.config);break;case"pleo":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"psi-fi":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"replicate":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"resend":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"rutter":D=Q9.RutterConfigSerializer._toJsonObject(u.config);break;case"safebase":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"sardine":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"segment":D=V9.SegmentConfigSerializer._toJsonObject(u.config);break;case"shopify":D=W9.ShopifyConfigSerializer._toJsonObject(u.config);break;case"slack":D=K9.SlackConfigSerializer._toJsonObject(u.config);break;case"stripe":D=H9.StripeConfigSerializer._toJsonObject(u.config);break;case"stych":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"svix":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"zoom":D=R9.ZoomConfigSerializer._toJsonObject(u.config);break;case"telnyx":D=C9.TelnyxConfigSerializer._toJsonObject(u.config);break;case"vapi":D=U9.VapiConfigSerializer._toJsonObject(u.config);break;case"open-ai":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"render":D=W.SvixConfigSerializer._toJsonObject(u.config);break;case"veriff":D=P9.VeriffConfigSerializer._toJsonObject(u.config);break;case"airwallex":D=F9.AirwallexConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,metadata:u.metadata,name:u.name,uid:u.uid}}}});var h9=E((S9)=>{Object.defineProperty(S9,"__esModule",{value:!0});S9.AdobeSignConfigOutSerializer=void 0;S9.AdobeSignConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var k9=E((O9)=>{Object.defineProperty(O9,"__esModule",{value:!0});O9.AirwallexConfigOutSerializer=void 0;O9.AirwallexConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var y9=E((I9)=>{Object.defineProperty(I9,"__esModule",{value:!0});I9.CheckbookConfigOutSerializer=void 0;I9.CheckbookConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var g9=E((_9)=>{Object.defineProperty(_9,"__esModule",{value:!0});_9.DocusignConfigOutSerializer=void 0;_9.DocusignConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var f9=E((b9)=>{Object.defineProperty(b9,"__esModule",{value:!0});b9.EasypostConfigOutSerializer=void 0;b9.EasypostConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var r9=E((l9)=>{Object.defineProperty(l9,"__esModule",{value:!0});l9.GithubConfigOutSerializer=void 0;l9.GithubConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var a9=E((c9)=>{Object.defineProperty(c9,"__esModule",{value:!0});c9.HubspotConfigOutSerializer=void 0;c9.HubspotConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var s9=E((p9)=>{Object.defineProperty(p9,"__esModule",{value:!0});p9.MetaConfigOutSerializer=void 0;p9.MetaConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var e9=E((o9)=>{Object.defineProperty(o9,"__esModule",{value:!0});o9.OrumIoConfigOutSerializer=void 0;o9.OrumIoConfigOutSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var A8=E((u8)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.PandaDocConfigOutSerializer=void 0;u8.PandaDocConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var w8=E((B8)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.PortIoConfigOutSerializer=void 0;B8.PortIoConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var N8=E((E8)=>{Object.defineProperty(E8,"__esModule",{value:!0});E8.RutterConfigOutSerializer=void 0;E8.RutterConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var z8=E((J8)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.SegmentConfigOutSerializer=void 0;J8.SegmentConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var Y8=E(($8)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.ShopifyConfigOutSerializer=void 0;$8.ShopifyConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var W8=E((Q8)=>{Object.defineProperty(Q8,"__esModule",{value:!0});Q8.SlackConfigOutSerializer=void 0;Q8.SlackConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var C8=E((K8)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.StripeConfigOutSerializer=void 0;K8.StripeConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var R8=E((U8)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.SvixConfigOutSerializer=void 0;U8.SvixConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var M8=E((L8)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.TelnyxConfigOutSerializer=void 0;L8.TelnyxConfigOutSerializer={_fromJsonObject(u){return{publicKey:u.publicKey}},_toJsonObject(u){return{publicKey:u.publicKey}}}});var h8=E((S8)=>{Object.defineProperty(S8,"__esModule",{value:!0});S8.VapiConfigOutSerializer=void 0;S8.VapiConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var k8=E((O8)=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.VeriffConfigOutSerializer=void 0;O8.VeriffConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var y8=E((I8)=>{Object.defineProperty(I8,"__esModule",{value:!0});I8.ZoomConfigOutSerializer=void 0;I8.ZoomConfigOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var Y0=E((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.IngestSourceOutSerializer=void 0;var _8=h9(),m8=k9(),g8=y9(),b8=X0(),j8=g9(),f8=f9(),l8=r9(),d8=a9(),r8=s9(),c8=e9(),i8=A8(),a8=w8(),p8=N8(),n8=z8(),s8=Y8(),o8=W8(),t8=C8(),K=R8(),e8=M8(),u4=h8(),D4=k8(),A4=y8();B4.IngestSourceOutSerializer={_fromJsonObject(u){let D=u.type;function A(B){switch(B){case"generic-webhook":return{};case"cron":return b8.CronConfigSerializer._fromJsonObject(u.config);case"adobe-sign":return _8.AdobeSignConfigOutSerializer._fromJsonObject(u.config);case"beehiiv":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"brex":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"checkbook":return g8.CheckbookConfigOutSerializer._fromJsonObject(u.config);case"clerk":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"docusign":return j8.DocusignConfigOutSerializer._fromJsonObject(u.config);case"easypost":return f8.EasypostConfigOutSerializer._fromJsonObject(u.config);case"github":return l8.GithubConfigOutSerializer._fromJsonObject(u.config);case"guesty":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"hubspot":return d8.HubspotConfigOutSerializer._fromJsonObject(u.config);case"incident-io":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"lithic":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"meta":return r8.MetaConfigOutSerializer._fromJsonObject(u.config);case"nash":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"orum-io":return c8.OrumIoConfigOutSerializer._fromJsonObject(u.config);case"panda-doc":return i8.PandaDocConfigOutSerializer._fromJsonObject(u.config);case"port-io":return a8.PortIoConfigOutSerializer._fromJsonObject(u.config);case"psi-fi":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"pleo":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"replicate":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"resend":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"rutter":return p8.RutterConfigOutSerializer._fromJsonObject(u.config);case"safebase":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"sardine":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"segment":return n8.SegmentConfigOutSerializer._fromJsonObject(u.config);case"shopify":return s8.ShopifyConfigOutSerializer._fromJsonObject(u.config);case"slack":return o8.SlackConfigOutSerializer._fromJsonObject(u.config);case"stripe":return t8.StripeConfigOutSerializer._fromJsonObject(u.config);case"stych":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"svix":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"zoom":return A4.ZoomConfigOutSerializer._fromJsonObject(u.config);case"telnyx":return e8.TelnyxConfigOutSerializer._fromJsonObject(u.config);case"vapi":return u4.VapiConfigOutSerializer._fromJsonObject(u.config);case"open-ai":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"render":return K.SvixConfigOutSerializer._fromJsonObject(u.config);case"veriff":return D4.VeriffConfigOutSerializer._fromJsonObject(u.config);case"airwallex":return m8.AirwallexConfigOutSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${B}`)}}return{type:D,config:A(D),createdAt:new Date(u.createdAt),id:u.id,ingestUrl:u.ingestUrl,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){let D;switch(u.type){case"generic-webhook":D={};break;case"cron":D=b8.CronConfigSerializer._toJsonObject(u.config);break;case"adobe-sign":D=_8.AdobeSignConfigOutSerializer._toJsonObject(u.config);break;case"beehiiv":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"brex":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"checkbook":D=g8.CheckbookConfigOutSerializer._toJsonObject(u.config);break;case"clerk":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"docusign":D=j8.DocusignConfigOutSerializer._toJsonObject(u.config);break;case"easypost":D=f8.EasypostConfigOutSerializer._toJsonObject(u.config);break;case"github":D=l8.GithubConfigOutSerializer._toJsonObject(u.config);break;case"guesty":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"hubspot":D=d8.HubspotConfigOutSerializer._toJsonObject(u.config);break;case"incident-io":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"lithic":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"meta":D=r8.MetaConfigOutSerializer._toJsonObject(u.config);break;case"nash":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"orum-io":D=c8.OrumIoConfigOutSerializer._toJsonObject(u.config);break;case"panda-doc":D=i8.PandaDocConfigOutSerializer._toJsonObject(u.config);break;case"port-io":D=a8.PortIoConfigOutSerializer._toJsonObject(u.config);break;case"psi-fi":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"pleo":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"replicate":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"resend":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"rutter":D=p8.RutterConfigOutSerializer._toJsonObject(u.config);break;case"safebase":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"sardine":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"segment":D=n8.SegmentConfigOutSerializer._toJsonObject(u.config);break;case"shopify":D=s8.ShopifyConfigOutSerializer._toJsonObject(u.config);break;case"slack":D=o8.SlackConfigOutSerializer._toJsonObject(u.config);break;case"stripe":D=t8.StripeConfigOutSerializer._toJsonObject(u.config);break;case"stych":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"svix":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"zoom":D=A4.ZoomConfigOutSerializer._toJsonObject(u.config);break;case"telnyx":D=e8.TelnyxConfigOutSerializer._toJsonObject(u.config);break;case"vapi":D=u4.VapiConfigOutSerializer._toJsonObject(u.config);break;case"open-ai":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"render":D=K.SvixConfigOutSerializer._toJsonObject(u.config);break;case"veriff":D=D4.VeriffConfigOutSerializer._toJsonObject(u.config);break;case"airwallex":D=m8.AirwallexConfigOutSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,createdAt:u.createdAt,id:u.id,ingestUrl:u.ingestUrl,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:u.updatedAt}}}});var N4=E((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.ListResponseIngestSourceOutSerializer=void 0;var w4=Y0();E4.ListResponseIngestSourceOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>w4.IngestSourceOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>w4.IngestSourceOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var z4=E((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.RotateTokenOutSerializer=void 0;J4.RotateTokenOutSerializer={_fromJsonObject(u){return{ingestUrl:u.ingestUrl}},_toJsonObject(u){return{ingestUrl:u.ingestUrl}}}});var V4=E((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.IngestSource=void 0;var $4=M9(),Q0=Y0(),pG=N4(),nG=z4(),c=R();class X4{constructor(u){this.requestCtx=u}list(u){let D=new c.SvixRequest(c.HttpMethod.GET,"/ingest/api/v1/source");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,pG.ListResponseIngestSourceOutSerializer._fromJsonObject)}create(u,D){let A=new c.SvixRequest(c.HttpMethod.POST,"/ingest/api/v1/source");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody($4.IngestSourceInSerializer._toJsonObject(u)),A.send(this.requestCtx,Q0.IngestSourceOutSerializer._fromJsonObject)}get(u){let D=new c.SvixRequest(c.HttpMethod.GET,"/ingest/api/v1/source/{source_id}");return D.setPathParam("source_id",u),D.send(this.requestCtx,Q0.IngestSourceOutSerializer._fromJsonObject)}update(u,D){let A=new c.SvixRequest(c.HttpMethod.PUT,"/ingest/api/v1/source/{source_id}");return A.setPathParam("source_id",u),A.setBody($4.IngestSourceInSerializer._toJsonObject(D)),A.send(this.requestCtx,Q0.IngestSourceOutSerializer._fromJsonObject)}delete(u){let D=new c.SvixRequest(c.HttpMethod.DELETE,"/ingest/api/v1/source/{source_id}");return D.setPathParam("source_id",u),D.sendNoResponseBody(this.requestCtx)}rotateToken(u,D){let A=new c.SvixRequest(c.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/token/rotate");return A.setPathParam("source_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,nG.RotateTokenOutSerializer._fromJsonObject)}}Y4.IngestSource=X4});var U4=E((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.Ingest=void 0;var sG=B0(),oG=z5(),tG=c5(),eG=V4(),W4=R();class K4{constructor(u){this.requestCtx=u}get endpoint(){return new tG.IngestEndpoint(this.requestCtx)}get source(){return new eG.IngestSource(this.requestCtx)}dashboard(u,D,A){let B=new W4.SvixRequest(W4.HttpMethod.POST,"/ingest/api/v1/source/{source_id}/dashboard");return B.setPathParam("source_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(oG.IngestSourceConsumerPortalAccessInSerializer._toJsonObject(D)),B.send(this.requestCtx,sG.DashboardAccessOutSerializer._fromJsonObject)}}H4.Ingest=K4});var L4=E((P4)=>{Object.defineProperty(P4,"__esModule",{value:!0});P4.IntegrationInSerializer=void 0;P4.IntegrationInSerializer={_fromJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}}}});var S4=E((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.IntegrationKeyOutSerializer=void 0;v4.IntegrationKeyOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var V0=E((T4)=>{Object.defineProperty(T4,"__esModule",{value:!0});T4.IntegrationOutSerializer=void 0;T4.IntegrationOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),featureFlags:u.featureFlags,id:u.id,name:u.name,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{createdAt:u.createdAt,featureFlags:u.featureFlags,id:u.id,name:u.name,updatedAt:u.updatedAt}}}});var k4=E((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.IntegrationUpdateSerializer=void 0;O4.IntegrationUpdateSerializer={_fromJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{featureFlags:u.featureFlags,name:u.name}}}});var _4=E((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.ListResponseIntegrationOutSerializer=void 0;var I4=V0();x4.ListResponseIntegrationOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>I4.IntegrationOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>I4.IntegrationOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var f4=E((b4)=>{Object.defineProperty(b4,"__esModule",{value:!0});b4.Integration=void 0;var uN=L4(),m4=S4(),W0=V0(),DN=k4(),AN=_4(),j=R();class g4{constructor(u){this.requestCtx=u}list(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,AN.ListResponseIntegrationOutSerializer._fromJsonObject)}create(u,D,A){let B=new j.SvixRequest(j.HttpMethod.POST,"/api/v1/app/{app_id}/integration");return B.setPathParam("app_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(uN.IntegrationInSerializer._toJsonObject(D)),B.send(this.requestCtx,W0.IntegrationOutSerializer._fromJsonObject)}get(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.send(this.requestCtx,W0.IntegrationOutSerializer._fromJsonObject)}update(u,D,A){let B=new j.SvixRequest(j.HttpMethod.PUT,"/api/v1/app/{app_id}/integration/{integ_id}");return B.setPathParam("app_id",u),B.setPathParam("integ_id",D),B.setBody(DN.IntegrationUpdateSerializer._toJsonObject(A)),B.send(this.requestCtx,W0.IntegrationOutSerializer._fromJsonObject)}delete(u,D){let A=new j.SvixRequest(j.HttpMethod.DELETE,"/api/v1/app/{app_id}/integration/{integ_id}");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.sendNoResponseBody(this.requestCtx)}getKey(u,D){let A=new j.SvixRequest(j.HttpMethod.GET,"/api/v1/app/{app_id}/integration/{integ_id}/key");return A.setPathParam("app_id",u),A.setPathParam("integ_id",D),A.send(this.requestCtx,m4.IntegrationKeyOutSerializer._fromJsonObject)}rotateKey(u,D,A){let B=new j.SvixRequest(j.HttpMethod.POST,"/api/v1/app/{app_id}/integration/{integ_id}/key/rotate");return B.setPathParam("app_id",u),B.setPathParam("integ_id",D),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.send(this.requestCtx,m4.IntegrationKeyOutSerializer._fromJsonObject)}}b4.Integration=g4});var i4=E((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.ExpungeAllContentsOutSerializer=void 0;var l4=t(),d4=e();r4.ExpungeAllContentsOutSerializer={_fromJsonObject(u){return{id:u.id,status:l4.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:d4.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:l4.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:d4.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var s4=E((p4)=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.ListResponseMessageOutSerializer=void 0;var a4=K2();p4.ListResponseMessageOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>a4.MessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>a4.MessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var e4=E((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.MessagePrecheckInSerializer=void 0;o4.MessagePrecheckInSerializer={_fromJsonObject(u){return{channels:u.channels,eventType:u.eventType}},_toJsonObject(u){return{channels:u.channels,eventType:u.eventType}}}});var A6=E((u6)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.MessagePrecheckOutSerializer=void 0;u6.MessagePrecheckOutSerializer={_fromJsonObject(u){return{active:u.active}},_toJsonObject(u){return{active:u.active}}}});var w6=E((B6)=>{Object.defineProperty(B6,"__esModule",{value:!0});B6.PollingEndpointConsumerSeekInSerializer=void 0;B6.PollingEndpointConsumerSeekInSerializer={_fromJsonObject(u){return{after:new Date(u.after)}},_toJsonObject(u){return{after:u.after}}}});var N6=E((E6)=>{Object.defineProperty(E6,"__esModule",{value:!0});E6.PollingEndpointConsumerSeekOutSerializer=void 0;E6.PollingEndpointConsumerSeekOutSerializer={_fromJsonObject(u){return{iterator:u.iterator}},_toJsonObject(u){return{iterator:u.iterator}}}});var z6=E((J6)=>{Object.defineProperty(J6,"__esModule",{value:!0});J6.PollingEndpointMessageOutSerializer=void 0;J6.PollingEndpointMessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,headers:u.headers,id:u.id,payload:u.payload,tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,headers:u.headers,id:u.id,payload:u.payload,tags:u.tags,timestamp:u.timestamp}}}});var Q6=E((X6)=>{Object.defineProperty(X6,"__esModule",{value:!0});X6.PollingEndpointOutSerializer=void 0;var $6=z6();X6.PollingEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>$6.PollingEndpointMessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator}},_toJsonObject(u){return{data:u.data.map((D)=>$6.PollingEndpointMessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator}}}});var C6=E((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.MessagePoller=void 0;var BN=w6(),FN=N6(),V6=Q6(),G2=R();class W6{constructor(u){this.requestCtx=u}poll(u,D,A){let B=new G2.SvixRequest(G2.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}");return B.setPathParam("app_id",u),B.setPathParam("sink_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,event_type:A===null||A===void 0?void 0:A.eventType,channel:A===null||A===void 0?void 0:A.channel,after:A===null||A===void 0?void 0:A.after}),B.send(this.requestCtx,V6.PollingEndpointOutSerializer._fromJsonObject)}consumerPoll(u,D,A,B){let F=new G2.SvixRequest(G2.HttpMethod.GET,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}");return F.setPathParam("app_id",u),F.setPathParam("sink_id",D),F.setPathParam("consumer_id",A),F.setQueryParams({limit:B===null||B===void 0?void 0:B.limit,iterator:B===null||B===void 0?void 0:B.iterator}),F.send(this.requestCtx,V6.PollingEndpointOutSerializer._fromJsonObject)}consumerSeek(u,D,A,B,F){let G=new G2.SvixRequest(G2.HttpMethod.POST,"/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}/seek");return G.setPathParam("app_id",u),G.setPathParam("sink_id",D),G.setPathParam("consumer_id",A),G.setHeaderParam("idempotency-key",F===null||F===void 0?void 0:F.idempotencyKey),G.setBody(BN.PollingEndpointConsumerSeekInSerializer._toJsonObject(B)),G.send(this.requestCtx,FN.PollingEndpointConsumerSeekOutSerializer._fromJsonObject)}}K6.MessagePoller=W6});var L6=E((P6)=>{Object.defineProperty(P6,"__esModule",{value:!0});P6.MessageInSerializer=void 0;var U6=T2();P6.MessageInSerializer={_fromJsonObject(u){return{application:u.application!=null?U6.ApplicationInSerializer._fromJsonObject(u.application):void 0,channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,payload:u.payload,payloadRetentionHours:u.payloadRetentionHours,payloadRetentionPeriod:u.payloadRetentionPeriod,tags:u.tags,transformationsParams:u.transformationsParams}},_toJsonObject(u){return{application:u.application!=null?U6.ApplicationInSerializer._toJsonObject(u.application):void 0,channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,payload:u.payload,payloadRetentionHours:u.payloadRetentionHours,payloadRetentionPeriod:u.payloadRetentionPeriod,tags:u.tags,transformationsParams:u.transformationsParams}}}});var K0=E((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.messageInRaw=S6.Message=void 0;var wN=i4(),EN=s4(),v6=K2(),GN=e4(),NN=A6(),JN=C6(),i=R(),ZN=L6();class M6{constructor(u){this.requestCtx=u}get poller(){return new JN.MessagePoller(this.requestCtx)}list(u,D){let A=new i.SvixRequest(i.HttpMethod.GET,"/api/v1/app/{app_id}/msg");return A.setPathParam("app_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,channel:D===null||D===void 0?void 0:D.channel,before:D===null||D===void 0?void 0:D.before,after:D===null||D===void 0?void 0:D.after,with_content:D===null||D===void 0?void 0:D.withContent,tag:D===null||D===void 0?void 0:D.tag,event_types:D===null||D===void 0?void 0:D.eventTypes}),A.send(this.requestCtx,EN.ListResponseMessageOutSerializer._fromJsonObject)}create(u,D,A){let B=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg");return B.setPathParam("app_id",u),B.setQueryParams({with_content:A===null||A===void 0?void 0:A.withContent}),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(ZN.MessageInSerializer._toJsonObject(D)),B.send(this.requestCtx,v6.MessageOutSerializer._fromJsonObject)}expungeAllContents(u,D){let A=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg/expunge-all-contents");return A.setPathParam("app_id",u),A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.send(this.requestCtx,wN.ExpungeAllContentsOutSerializer._fromJsonObject)}precheck(u,D,A){let B=new i.SvixRequest(i.HttpMethod.POST,"/api/v1/app/{app_id}/msg/precheck/active");return B.setPathParam("app_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(GN.MessagePrecheckInSerializer._toJsonObject(D)),B.send(this.requestCtx,NN.MessagePrecheckOutSerializer._fromJsonObject)}get(u,D,A){let B=new i.SvixRequest(i.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setQueryParams({with_content:A===null||A===void 0?void 0:A.withContent}),B.send(this.requestCtx,v6.MessageOutSerializer._fromJsonObject)}expungeContent(u,D){let A=new i.SvixRequest(i.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/content");return A.setPathParam("app_id",u),A.setPathParam("msg_id",D),A.sendNoResponseBody(this.requestCtx)}}S6.Message=M6;function zN(u,D,A){return{eventType:u,payload:{},transformationsParams:{rawPayload:D,headers:A?{"content-type":A}:void 0}}}S6.messageInRaw=zN});var H0=E((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.EmptyResponseSerializer=void 0;h6.EmptyResponseSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var H2=E((k6)=>{Object.defineProperty(k6,"__esModule",{value:!0});k6.MessageStatusTextSerializer=k6.MessageStatusText=void 0;var XN;(function(u){u.Success="success",u.Pending="pending",u.Fail="fail",u.Sending="sending"})(XN=k6.MessageStatusText||(k6.MessageStatusText={}));k6.MessageStatusTextSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var g6=E((_6)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.EndpointMessageOutSerializer=void 0;var x6=E2(),y6=H2();_6.EndpointMessageOutSerializer={_fromJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt?new Date(u.deliverAt):null,eventId:u.eventId,eventType:u.eventType,id:u.id,nextAttempt:u.nextAttempt?new Date(u.nextAttempt):null,payload:u.payload,status:x6.MessageStatusSerializer._fromJsonObject(u.status),statusText:y6.MessageStatusTextSerializer._fromJsonObject(u.statusText),tags:u.tags,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{channels:u.channels,deliverAt:u.deliverAt,eventId:u.eventId,eventType:u.eventType,id:u.id,nextAttempt:u.nextAttempt,payload:u.payload,status:x6.MessageStatusSerializer._toJsonObject(u.status),statusText:y6.MessageStatusTextSerializer._toJsonObject(u.statusText),tags:u.tags,timestamp:u.timestamp}}}});var l6=E((j6)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.ListResponseEndpointMessageOutSerializer=void 0;var b6=g6();j6.ListResponseEndpointMessageOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>b6.EndpointMessageOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>b6.EndpointMessageOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var C0=E((r6)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.MessageAttemptTriggerTypeSerializer=r6.MessageAttemptTriggerType=void 0;var YN;(function(u){u[u.Scheduled=0]="Scheduled",u[u.Manual=1]="Manual"})(YN=r6.MessageAttemptTriggerType||(r6.MessageAttemptTriggerType={}));r6.MessageAttemptTriggerTypeSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var U0=E((s6)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.MessageAttemptOutSerializer=void 0;var i6=C0(),a6=K2(),p6=E2(),n6=H2();s6.MessageAttemptOutSerializer={_fromJsonObject(u){return{endpointId:u.endpointId,id:u.id,msg:u.msg!=null?a6.MessageOutSerializer._fromJsonObject(u.msg):void 0,msgId:u.msgId,response:u.response,responseDurationMs:u.responseDurationMs,responseStatusCode:u.responseStatusCode,status:p6.MessageStatusSerializer._fromJsonObject(u.status),statusText:n6.MessageStatusTextSerializer._fromJsonObject(u.statusText),timestamp:new Date(u.timestamp),triggerType:i6.MessageAttemptTriggerTypeSerializer._fromJsonObject(u.triggerType),url:u.url}},_toJsonObject(u){return{endpointId:u.endpointId,id:u.id,msg:u.msg!=null?a6.MessageOutSerializer._toJsonObject(u.msg):void 0,msgId:u.msgId,response:u.response,responseDurationMs:u.responseDurationMs,responseStatusCode:u.responseStatusCode,status:p6.MessageStatusSerializer._toJsonObject(u.status),statusText:n6.MessageStatusTextSerializer._toJsonObject(u.statusText),timestamp:u.timestamp,triggerType:i6.MessageAttemptTriggerTypeSerializer._toJsonObject(u.triggerType),url:u.url}}}});var DB=E((e6)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.ListResponseMessageAttemptOutSerializer=void 0;var t6=U0();e6.ListResponseMessageAttemptOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>t6.MessageAttemptOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>t6.MessageAttemptOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var EB=E((FB)=>{Object.defineProperty(FB,"__esModule",{value:!0});FB.MessageEndpointOutSerializer=void 0;var AB=E2(),BB=H2();FB.MessageEndpointOutSerializer={_fromJsonObject(u){return{channels:u.channels,createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,nextAttempt:u.nextAttempt?new Date(u.nextAttempt):null,rateLimit:u.rateLimit,status:AB.MessageStatusSerializer._fromJsonObject(u.status),statusText:BB.MessageStatusTextSerializer._fromJsonObject(u.statusText),throttleRate:u.throttleRate,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url,version:u.version}},_toJsonObject(u){return{channels:u.channels,createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,nextAttempt:u.nextAttempt,rateLimit:u.rateLimit,status:AB.MessageStatusSerializer._toJsonObject(u.status),statusText:BB.MessageStatusTextSerializer._toJsonObject(u.statusText),throttleRate:u.throttleRate,uid:u.uid,updatedAt:u.updatedAt,url:u.url,version:u.version}}}});var ZB=E((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.ListResponseMessageEndpointOutSerializer=void 0;var GB=EB();NB.ListResponseMessageEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>GB.MessageEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>GB.MessageEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var QB=E((XB)=>{Object.defineProperty(XB,"__esModule",{value:!0});XB.MessageAttempt=void 0;var QN=H0(),VN=l6(),zB=DB(),WN=ZB(),KN=U0(),f=R();class $B{constructor(u){this.requestCtx=u}listByEndpoint(u,D,A){let B=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,status:A===null||A===void 0?void 0:A.status,status_code_class:A===null||A===void 0?void 0:A.statusCodeClass,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,with_msg:A===null||A===void 0?void 0:A.withMsg,event_types:A===null||A===void 0?void 0:A.eventTypes}),B.send(this.requestCtx,zB.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listByMsg(u,D,A){let B=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/attempt/msg/{msg_id}");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,status:A===null||A===void 0?void 0:A.status,status_code_class:A===null||A===void 0?void 0:A.statusCodeClass,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,endpoint_id:A===null||A===void 0?void 0:A.endpointId,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,event_types:A===null||A===void 0?void 0:A.eventTypes}),B.send(this.requestCtx,zB.ListResponseMessageAttemptOutSerializer._fromJsonObject)}listAttemptedMessages(u,D,A){let B=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg");return B.setPathParam("app_id",u),B.setPathParam("endpoint_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,channel:A===null||A===void 0?void 0:A.channel,tag:A===null||A===void 0?void 0:A.tag,status:A===null||A===void 0?void 0:A.status,before:A===null||A===void 0?void 0:A.before,after:A===null||A===void 0?void 0:A.after,with_content:A===null||A===void 0?void 0:A.withContent,event_types:A===null||A===void 0?void 0:A.eventTypes}),B.send(this.requestCtx,VN.ListResponseEndpointMessageOutSerializer._fromJsonObject)}get(u,D,A){let B=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setPathParam("attempt_id",A),B.send(this.requestCtx,KN.MessageAttemptOutSerializer._fromJsonObject)}expungeContent(u,D,A){let B=new f.SvixRequest(f.HttpMethod.DELETE,"/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setPathParam("attempt_id",A),B.sendNoResponseBody(this.requestCtx)}listAttemptedDestinations(u,D,A){let B=new f.SvixRequest(f.HttpMethod.GET,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint");return B.setPathParam("app_id",u),B.setPathParam("msg_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator}),B.send(this.requestCtx,WN.ListResponseMessageEndpointOutSerializer._fromJsonObject)}resend(u,D,A,B){let F=new f.SvixRequest(f.HttpMethod.POST,"/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend");return F.setPathParam("app_id",u),F.setPathParam("msg_id",D),F.setPathParam("endpoint_id",A),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.send(this.requestCtx,QN.EmptyResponseSerializer._fromJsonObject)}}XB.MessageAttempt=$B});var P0=E((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.OperationalWebhookEndpointOutSerializer=void 0;VB.OperationalWebhookEndpointOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:new Date(u.updatedAt),url:u.url}},_toJsonObject(u){return{createdAt:u.createdAt,description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,id:u.id,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,updatedAt:u.updatedAt,url:u.url}}}});var UB=E((HB)=>{Object.defineProperty(HB,"__esModule",{value:!0});HB.ListResponseOperationalWebhookEndpointOutSerializer=void 0;var KB=P0();HB.ListResponseOperationalWebhookEndpointOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>KB.OperationalWebhookEndpointOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>KB.OperationalWebhookEndpointOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var LB=E((PB)=>{Object.defineProperty(PB,"__esModule",{value:!0});PB.OperationalWebhookEndpointHeadersInSerializer=void 0;PB.OperationalWebhookEndpointHeadersInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var SB=E((vB)=>{Object.defineProperty(vB,"__esModule",{value:!0});vB.OperationalWebhookEndpointHeadersOutSerializer=void 0;vB.OperationalWebhookEndpointHeadersOutSerializer={_fromJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}},_toJsonObject(u){return{headers:u.headers,sensitive:u.sensitive}}}});var OB=E((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.OperationalWebhookEndpointInSerializer=void 0;TB.OperationalWebhookEndpointInSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,secret:u.secret,uid:u.uid,url:u.url}}}});var IB=E((qB)=>{Object.defineProperty(qB,"__esModule",{value:!0});qB.OperationalWebhookEndpointSecretInSerializer=void 0;qB.OperationalWebhookEndpointSecretInSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var _B=E((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.OperationalWebhookEndpointSecretOutSerializer=void 0;xB.OperationalWebhookEndpointSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var bB=E((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.OperationalWebhookEndpointUpdateSerializer=void 0;mB.OperationalWebhookEndpointUpdateSerializer={_fromJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}},_toJsonObject(u){return{description:u.description,disabled:u.disabled,filterTypes:u.filterTypes,metadata:u.metadata,rateLimit:u.rateLimit,uid:u.uid,url:u.url}}}});var L0=E((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.OperationalWebhookEndpoint=void 0;var HN=UB(),CN=LB(),UN=SB(),PN=OB(),R0=P0(),RN=IB(),LN=_B(),vN=bB(),k=R();class jB{constructor(u){this.requestCtx=u}list(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,HN.ListResponseOperationalWebhookEndpointOutSerializer._fromJsonObject)}create(u,D){let A=new k.SvixRequest(k.HttpMethod.POST,"/api/v1/operational-webhook/endpoint");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(PN.OperationalWebhookEndpointInSerializer._toJsonObject(u)),A.send(this.requestCtx,R0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}get(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,R0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}update(u,D){let A=new k.SvixRequest(k.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return A.setPathParam("endpoint_id",u),A.setBody(vN.OperationalWebhookEndpointUpdateSerializer._toJsonObject(D)),A.send(this.requestCtx,R0.OperationalWebhookEndpointOutSerializer._fromJsonObject)}delete(u){let D=new k.SvixRequest(k.HttpMethod.DELETE,"/api/v1/operational-webhook/endpoint/{endpoint_id}");return D.setPathParam("endpoint_id",u),D.sendNoResponseBody(this.requestCtx)}getHeaders(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,UN.OperationalWebhookEndpointHeadersOutSerializer._fromJsonObject)}updateHeaders(u,D){let A=new k.SvixRequest(k.HttpMethod.PUT,"/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");return A.setPathParam("endpoint_id",u),A.setBody(CN.OperationalWebhookEndpointHeadersInSerializer._toJsonObject(D)),A.sendNoResponseBody(this.requestCtx)}getSecret(u){let D=new k.SvixRequest(k.HttpMethod.GET,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret");return D.setPathParam("endpoint_id",u),D.send(this.requestCtx,LN.OperationalWebhookEndpointSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A){let B=new k.SvixRequest(k.HttpMethod.POST,"/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate");return B.setPathParam("endpoint_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(RN.OperationalWebhookEndpointSecretInSerializer._toJsonObject(D)),B.sendNoResponseBody(this.requestCtx)}}fB.OperationalWebhookEndpoint=jB});var iB=E((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.OperationalWebhook=void 0;var MN=L0();class dB{constructor(u){this.requestCtx=u}get endpoint(){return new MN.OperationalWebhookEndpoint(this.requestCtx)}}rB.OperationalWebhook=dB});var oB=E((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.AggregateEventTypesOutSerializer=void 0;var aB=t(),pB=e();nB.AggregateEventTypesOutSerializer={_fromJsonObject(u){return{id:u.id,status:aB.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:pB.BackgroundTaskTypeSerializer._fromJsonObject(u.task),updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:aB.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:pB.BackgroundTaskTypeSerializer._toJsonObject(u.task),updatedAt:u.updatedAt}}}});var uF=E((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.AppUsageStatsInSerializer=void 0;tB.AppUsageStatsInSerializer={_fromJsonObject(u){return{appIds:u.appIds,since:new Date(u.since),until:new Date(u.until)}},_toJsonObject(u){return{appIds:u.appIds,since:u.since,until:u.until}}}});var wF=E((BF)=>{Object.defineProperty(BF,"__esModule",{value:!0});BF.AppUsageStatsOutSerializer=void 0;var DF=t(),AF=e();BF.AppUsageStatsOutSerializer={_fromJsonObject(u){return{id:u.id,status:DF.BackgroundTaskStatusSerializer._fromJsonObject(u.status),task:AF.BackgroundTaskTypeSerializer._fromJsonObject(u.task),unresolvedAppIds:u.unresolvedAppIds,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{id:u.id,status:DF.BackgroundTaskStatusSerializer._toJsonObject(u.status),task:AF.BackgroundTaskTypeSerializer._toJsonObject(u.task),unresolvedAppIds:u.unresolvedAppIds,updatedAt:u.updatedAt}}}});var JF=E((GF)=>{Object.defineProperty(GF,"__esModule",{value:!0});GF.Statistics=void 0;var SN=oB(),TN=uF(),hN=wF(),m2=R();class EF{constructor(u){this.requestCtx=u}aggregateAppStats(u,D){let A=new m2.SvixRequest(m2.HttpMethod.POST,"/api/v1/stats/usage/app");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(TN.AppUsageStatsInSerializer._toJsonObject(u)),A.send(this.requestCtx,hN.AppUsageStatsOutSerializer._fromJsonObject)}aggregateEventTypes(){return new m2.SvixRequest(m2.HttpMethod.PUT,"/api/v1/stats/usage/event-types").send(this.requestCtx,SN.AggregateEventTypesOutSerializer._fromJsonObject)}}GF.Statistics=EF});var $F=E((ZF)=>{Object.defineProperty(ZF,"__esModule",{value:!0});ZF.HttpSinkHeadersPatchInSerializer=void 0;ZF.HttpSinkHeadersPatchInSerializer={_fromJsonObject(u){return{headers:u.headers}},_toJsonObject(u){return{headers:u.headers}}}});var QF=E((XF)=>{Object.defineProperty(XF,"__esModule",{value:!0});XF.SinkTransformationOutSerializer=void 0;XF.SinkTransformationOutSerializer={_fromJsonObject(u){return{code:u.code,enabled:u.enabled}},_toJsonObject(u){return{code:u.code,enabled:u.enabled}}}});var v0=E((VF)=>{Object.defineProperty(VF,"__esModule",{value:!0});VF.StreamEventTypeOutSerializer=void 0;VF.StreamEventTypeOutSerializer={_fromJsonObject(u){return{archived:u.archived,createdAt:new Date(u.createdAt),deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{archived:u.archived,createdAt:u.createdAt,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name,updatedAt:u.updatedAt}}}});var UF=E((HF)=>{Object.defineProperty(HF,"__esModule",{value:!0});HF.ListResponseStreamEventTypeOutSerializer=void 0;var KF=v0();HF.ListResponseStreamEventTypeOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>KF.StreamEventTypeOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>KF.StreamEventTypeOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var LF=E((PF)=>{Object.defineProperty(PF,"__esModule",{value:!0});PF.StreamEventTypeInSerializer=void 0;PF.StreamEventTypeInSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}}}});var SF=E((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.StreamEventTypePatchSerializer=void 0;vF.StreamEventTypePatchSerializer={_fromJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}},_toJsonObject(u){return{archived:u.archived,deprecated:u.deprecated,description:u.description,featureFlags:u.featureFlags,name:u.name}}}});var kF=E((OF)=>{Object.defineProperty(OF,"__esModule",{value:!0});OF.StreamingEventType=void 0;var ON=UF(),TF=LF(),g2=v0(),qN=SF(),a=R();class hF{constructor(u){this.requestCtx=u}list(u){let D=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/stream/event-type");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order,include_archived:u===null||u===void 0?void 0:u.includeArchived}),D.send(this.requestCtx,ON.ListResponseStreamEventTypeOutSerializer._fromJsonObject)}create(u,D){let A=new a.SvixRequest(a.HttpMethod.POST,"/api/v1/stream/event-type");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(TF.StreamEventTypeInSerializer._toJsonObject(u)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}get(u){let D=new a.SvixRequest(a.HttpMethod.GET,"/api/v1/stream/event-type/{name}");return D.setPathParam("name",u),D.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}update(u,D){let A=new a.SvixRequest(a.HttpMethod.PUT,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setBody(TF.StreamEventTypeInSerializer._toJsonObject(D)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}delete(u,D){let A=new a.SvixRequest(a.HttpMethod.DELETE,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setQueryParams({expunge:D===null||D===void 0?void 0:D.expunge}),A.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new a.SvixRequest(a.HttpMethod.PATCH,"/api/v1/stream/event-type/{name}");return A.setPathParam("name",u),A.setBody(qN.StreamEventTypePatchSerializer._toJsonObject(D)),A.send(this.requestCtx,g2.StreamEventTypeOutSerializer._fromJsonObject)}}OF.StreamingEventType=hF});var yF=E((IF)=>{Object.defineProperty(IF,"__esModule",{value:!0});IF.EventInSerializer=void 0;IF.EventInSerializer={_fromJsonObject(u){return{eventType:u.eventType,payload:u.payload}},_toJsonObject(u){return{eventType:u.eventType,payload:u.payload}}}});var M0=E((_F)=>{Object.defineProperty(_F,"__esModule",{value:!0});_F.StreamInSerializer=void 0;_F.StreamInSerializer={_fromJsonObject(u){return{metadata:u.metadata,name:u.name,uid:u.uid}},_toJsonObject(u){return{metadata:u.metadata,name:u.name,uid:u.uid}}}});var lF=E((jF)=>{Object.defineProperty(jF,"__esModule",{value:!0});jF.CreateStreamEventsInSerializer=void 0;var gF=yF(),bF=M0();jF.CreateStreamEventsInSerializer={_fromJsonObject(u){return{events:u.events.map((D)=>gF.EventInSerializer._fromJsonObject(D)),stream:u.stream!=null?bF.StreamInSerializer._fromJsonObject(u.stream):void 0}},_toJsonObject(u){return{events:u.events.map((D)=>gF.EventInSerializer._toJsonObject(D)),stream:u.stream!=null?bF.StreamInSerializer._toJsonObject(u.stream):void 0}}}});var cF=E((dF)=>{Object.defineProperty(dF,"__esModule",{value:!0});dF.CreateStreamEventsOutSerializer=void 0;dF.CreateStreamEventsOutSerializer={_fromJsonObject(u){return{}},_toJsonObject(u){return{}}}});var pF=E((iF)=>{Object.defineProperty(iF,"__esModule",{value:!0});iF.EventOutSerializer=void 0;iF.EventOutSerializer={_fromJsonObject(u){return{eventType:u.eventType,payload:u.payload,timestamp:new Date(u.timestamp)}},_toJsonObject(u){return{eventType:u.eventType,payload:u.payload,timestamp:u.timestamp}}}});var tF=E((sF)=>{Object.defineProperty(sF,"__esModule",{value:!0});sF.EventStreamOutSerializer=void 0;var nF=pF();sF.EventStreamOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>nF.EventOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator}},_toJsonObject(u){return{data:u.data.map((D)=>nF.EventOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator}}}});var A7=E((u7)=>{Object.defineProperty(u7,"__esModule",{value:!0});u7.StreamingEvents=void 0;var kN=lF(),IN=cF(),xN=tF(),b2=R();class eF{constructor(u){this.requestCtx=u}create(u,D,A){let B=new b2.SvixRequest(b2.HttpMethod.POST,"/api/v1/stream/{stream_id}/events");return B.setPathParam("stream_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(kN.CreateStreamEventsInSerializer._toJsonObject(D)),B.send(this.requestCtx,IN.CreateStreamEventsOutSerializer._fromJsonObject)}get(u,D,A){let B=new b2.SvixRequest(b2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/events");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setQueryParams({limit:A===null||A===void 0?void 0:A.limit,iterator:A===null||A===void 0?void 0:A.iterator,after:A===null||A===void 0?void 0:A.after}),B.send(this.requestCtx,xN.EventStreamOutSerializer._fromJsonObject)}}u7.StreamingEvents=eF});var S0=E((B7)=>{Object.defineProperty(B7,"__esModule",{value:!0});B7.AzureBlobStorageConfigSerializer=void 0;B7.AzureBlobStorageConfigSerializer={_fromJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}},_toJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}}}});var T0=E((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});w7.GoogleCloudStorageConfigSerializer=void 0;w7.GoogleCloudStorageConfigSerializer={_fromJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}},_toJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}}}});var h0=E((G7)=>{Object.defineProperty(G7,"__esModule",{value:!0});G7.S3ConfigSerializer=void 0;G7.S3ConfigSerializer={_fromJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}},_toJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}}}});var O0=E((J7)=>{Object.defineProperty(J7,"__esModule",{value:!0});J7.SinkHttpConfigSerializer=void 0;J7.SinkHttpConfigSerializer={_fromJsonObject(u){return{headers:u.headers,key:u.key,url:u.url}},_toJsonObject(u){return{headers:u.headers,key:u.key,url:u.url}}}});var q0=E((z7)=>{Object.defineProperty(z7,"__esModule",{value:!0});z7.SinkOtelV1ConfigSerializer=void 0;z7.SinkOtelV1ConfigSerializer={_fromJsonObject(u){return{headers:u.headers,url:u.url}},_toJsonObject(u){return{headers:u.headers,url:u.url}}}});var k0=E((Y7)=>{Object.defineProperty(Y7,"__esModule",{value:!0});Y7.SinkStatusSerializer=Y7.SinkStatus=void 0;var yN;(function(u){u.Enabled="enabled",u.Paused="paused",u.Disabled="disabled",u.Retrying="retrying"})(yN=Y7.SinkStatus||(Y7.SinkStatus={}));Y7.SinkStatusSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var I0=E((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});P7.StreamSinkOutSerializer=void 0;var V7=S0(),W7=T0(),K7=h0(),H7=O0(),C7=q0(),U7=k0();P7.StreamSinkOutSerializer={_fromJsonObject(u){let D=u.type;function A(B){switch(B){case"poller":return{};case"azureBlobStorage":return V7.AzureBlobStorageConfigSerializer._fromJsonObject(u.config);case"otelTracing":return C7.SinkOtelV1ConfigSerializer._fromJsonObject(u.config);case"http":return H7.SinkHttpConfigSerializer._fromJsonObject(u.config);case"amazonS3":return K7.S3ConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return W7.GoogleCloudStorageConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${B}`)}}return{type:D,config:A(D),batchSize:u.batchSize,createdAt:new Date(u.createdAt),currentIterator:u.currentIterator,eventTypes:u.eventTypes,failureReason:u.failureReason,id:u.id,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,nextRetryAt:u.nextRetryAt?new Date(u.nextRetryAt):null,status:U7.SinkStatusSerializer._fromJsonObject(u.status),uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=V7.AzureBlobStorageConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=C7.SinkOtelV1ConfigSerializer._toJsonObject(u.config);break;case"http":D=H7.SinkHttpConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=K7.S3ConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=W7.GoogleCloudStorageConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,createdAt:u.createdAt,currentIterator:u.currentIterator,eventTypes:u.eventTypes,failureReason:u.failureReason,id:u.id,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,nextRetryAt:u.nextRetryAt,status:U7.SinkStatusSerializer._toJsonObject(u.status),uid:u.uid,updatedAt:u.updatedAt}}}});var S7=E((v7)=>{Object.defineProperty(v7,"__esModule",{value:!0});v7.ListResponseStreamSinkOutSerializer=void 0;var L7=I0();v7.ListResponseStreamSinkOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>L7.StreamSinkOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>L7.StreamSinkOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var O7=E((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});T7.SinkSecretOutSerializer=void 0;T7.SinkSecretOutSerializer={_fromJsonObject(u){return{key:u.key}},_toJsonObject(u){return{key:u.key}}}});var I7=E((q7)=>{Object.defineProperty(q7,"__esModule",{value:!0});q7.SinkTransformInSerializer=void 0;q7.SinkTransformInSerializer={_fromJsonObject(u){return{code:u.code}},_toJsonObject(u){return{code:u.code}}}});var j2=E((y7)=>{Object.defineProperty(y7,"__esModule",{value:!0});y7.SinkStatusInSerializer=y7.SinkStatusIn=void 0;var _N;(function(u){u.Enabled="enabled",u.Disabled="disabled"})(_N=y7.SinkStatusIn||(y7.SinkStatusIn={}));y7.SinkStatusInSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var c7=E((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.StreamSinkInSerializer=void 0;var m7=S0(),g7=T0(),b7=h0(),j7=O0(),f7=q0(),l7=j2();d7.StreamSinkInSerializer={_fromJsonObject(u){let D=u.type;function A(B){switch(B){case"poller":return{};case"azureBlobStorage":return m7.AzureBlobStorageConfigSerializer._fromJsonObject(u.config);case"otelTracing":return f7.SinkOtelV1ConfigSerializer._fromJsonObject(u.config);case"http":return j7.SinkHttpConfigSerializer._fromJsonObject(u.config);case"amazonS3":return b7.S3ConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return g7.GoogleCloudStorageConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${B}`)}}return{type:D,config:A(D),batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?l7.SinkStatusInSerializer._fromJsonObject(u.status):void 0,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=m7.AzureBlobStorageConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=f7.SinkOtelV1ConfigSerializer._toJsonObject(u.config);break;case"http":D=j7.SinkHttpConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=b7.S3ConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=g7.GoogleCloudStorageConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?l7.SinkStatusInSerializer._toJsonObject(u.status):void 0,uid:u.uid}}}});var p7=E((i7)=>{Object.defineProperty(i7,"__esModule",{value:!0});i7.AmazonS3PatchConfigSerializer=void 0;i7.AmazonS3PatchConfigSerializer={_fromJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}},_toJsonObject(u){return{accessKeyId:u.accessKeyId,bucket:u.bucket,endpointUrl:u.endpointUrl,region:u.region,secretAccessKey:u.secretAccessKey}}}});var o7=E((n7)=>{Object.defineProperty(n7,"__esModule",{value:!0});n7.AzureBlobStoragePatchConfigSerializer=void 0;n7.AzureBlobStoragePatchConfigSerializer={_fromJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}},_toJsonObject(u){return{accessKey:u.accessKey,account:u.account,container:u.container}}}});var uw=E((t7)=>{Object.defineProperty(t7,"__esModule",{value:!0});t7.GoogleCloudStoragePatchConfigSerializer=void 0;t7.GoogleCloudStoragePatchConfigSerializer={_fromJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}},_toJsonObject(u){return{bucket:u.bucket,credentials:u.credentials}}}});var Bw=E((Dw)=>{Object.defineProperty(Dw,"__esModule",{value:!0});Dw.HttpPatchConfigSerializer=void 0;Dw.HttpPatchConfigSerializer={_fromJsonObject(u){return{url:u.url}},_toJsonObject(u){return{url:u.url}}}});var Ew=E((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.OtelTracingPatchConfigSerializer=void 0;Fw.OtelTracingPatchConfigSerializer={_fromJsonObject(u){return{url:u.url}},_toJsonObject(u){return{url:u.url}}}});var Qw=E((Xw)=>{Object.defineProperty(Xw,"__esModule",{value:!0});Xw.StreamSinkPatchSerializer=void 0;var Gw=p7(),Nw=o7(),Jw=uw(),Zw=Bw(),zw=Ew(),$w=j2();Xw.StreamSinkPatchSerializer={_fromJsonObject(u){let D=u.type;function A(B){switch(B){case"poller":return{};case"azureBlobStorage":return Nw.AzureBlobStoragePatchConfigSerializer._fromJsonObject(u.config);case"otelTracing":return zw.OtelTracingPatchConfigSerializer._fromJsonObject(u.config);case"http":return Zw.HttpPatchConfigSerializer._fromJsonObject(u.config);case"amazonS3":return Gw.AmazonS3PatchConfigSerializer._fromJsonObject(u.config);case"googleCloudStorage":return Jw.GoogleCloudStoragePatchConfigSerializer._fromJsonObject(u.config);default:throw Error(`Unexpected type: ${B}`)}}return{type:D,config:A(D),batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?$w.SinkStatusInSerializer._fromJsonObject(u.status):void 0,uid:u.uid}},_toJsonObject(u){let D;switch(u.type){case"poller":D={};break;case"azureBlobStorage":D=Nw.AzureBlobStoragePatchConfigSerializer._toJsonObject(u.config);break;case"otelTracing":D=zw.OtelTracingPatchConfigSerializer._toJsonObject(u.config);break;case"http":D=Zw.HttpPatchConfigSerializer._toJsonObject(u.config);break;case"amazonS3":D=Gw.AmazonS3PatchConfigSerializer._toJsonObject(u.config);break;case"googleCloudStorage":D=Jw.GoogleCloudStoragePatchConfigSerializer._toJsonObject(u.config);break}return{type:u.type,config:D,batchSize:u.batchSize,eventTypes:u.eventTypes,maxWaitSecs:u.maxWaitSecs,metadata:u.metadata,status:u.status!=null?$w.SinkStatusInSerializer._toJsonObject(u.status):void 0,uid:u.uid}}}});var Uw=E((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.StreamingSink=void 0;var Vw=H0(),mN=J0(),gN=S7(),bN=O7(),jN=I7(),Ww=c7(),f2=I0(),fN=Qw(),I=R();class Kw{constructor(u){this.requestCtx=u}list(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink");return A.setPathParam("stream_id",u),A.setQueryParams({limit:D===null||D===void 0?void 0:D.limit,iterator:D===null||D===void 0?void 0:D.iterator,order:D===null||D===void 0?void 0:D.order}),A.send(this.requestCtx,gN.ListResponseStreamSinkOutSerializer._fromJsonObject)}create(u,D,A){let B=new I.SvixRequest(I.HttpMethod.POST,"/api/v1/stream/{stream_id}/sink");return B.setPathParam("stream_id",u),B.setHeaderParam("idempotency-key",A===null||A===void 0?void 0:A.idempotencyKey),B.setBody(Ww.StreamSinkInSerializer._toJsonObject(D)),B.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}get(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}update(u,D,A){let B=new I.SvixRequest(I.HttpMethod.PUT,"/api/v1/stream/{stream_id}/sink/{sink_id}");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setBody(Ww.StreamSinkInSerializer._toJsonObject(A)),B.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}delete(u,D){let A=new I.SvixRequest(I.HttpMethod.DELETE,"/api/v1/stream/{stream_id}/sink/{sink_id}");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.sendNoResponseBody(this.requestCtx)}patch(u,D,A){let B=new I.SvixRequest(I.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setBody(fN.StreamSinkPatchSerializer._toJsonObject(A)),B.send(this.requestCtx,f2.StreamSinkOutSerializer._fromJsonObject)}getSecret(u,D){let A=new I.SvixRequest(I.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/secret");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,bN.SinkSecretOutSerializer._fromJsonObject)}rotateSecret(u,D,A,B){let F=new I.SvixRequest(I.HttpMethod.POST,"/api/v1/stream/{stream_id}/sink/{sink_id}/secret/rotate");return F.setPathParam("stream_id",u),F.setPathParam("sink_id",D),F.setHeaderParam("idempotency-key",B===null||B===void 0?void 0:B.idempotencyKey),F.setBody(mN.EndpointSecretRotateInSerializer._toJsonObject(A)),F.send(this.requestCtx,Vw.EmptyResponseSerializer._fromJsonObject)}transformationPartialUpdate(u,D,A){let B=new I.SvixRequest(I.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setBody(jN.SinkTransformInSerializer._toJsonObject(A)),B.send(this.requestCtx,Vw.EmptyResponseSerializer._fromJsonObject)}}Hw.StreamingSink=Kw});var x0=E((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.StreamOutSerializer=void 0;Pw.StreamOutSerializer={_fromJsonObject(u){return{createdAt:new Date(u.createdAt),id:u.id,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:new Date(u.updatedAt)}},_toJsonObject(u){return{createdAt:u.createdAt,id:u.id,metadata:u.metadata,name:u.name,uid:u.uid,updatedAt:u.updatedAt}}}});var Sw=E((vw)=>{Object.defineProperty(vw,"__esModule",{value:!0});vw.ListResponseStreamOutSerializer=void 0;var Lw=x0();vw.ListResponseStreamOutSerializer={_fromJsonObject(u){return{data:u.data.map((D)=>Lw.StreamOutSerializer._fromJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}},_toJsonObject(u){return{data:u.data.map((D)=>Lw.StreamOutSerializer._toJsonObject(D)),done:u.done,iterator:u.iterator,prevIterator:u.prevIterator}}}});var Ow=E((Tw)=>{Object.defineProperty(Tw,"__esModule",{value:!0});Tw.StreamPatchSerializer=void 0;Tw.StreamPatchSerializer={_fromJsonObject(u){return{description:u.description,metadata:u.metadata,uid:u.uid}},_toJsonObject(u){return{description:u.description,metadata:u.metadata,uid:u.uid}}}});var yw=E((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.StreamingStream=void 0;var lN=Sw(),qw=M0(),l2=x0(),dN=Ow(),p=R();class kw{constructor(u){this.requestCtx=u}list(u){let D=new p.SvixRequest(p.HttpMethod.GET,"/api/v1/stream");return D.setQueryParams({limit:u===null||u===void 0?void 0:u.limit,iterator:u===null||u===void 0?void 0:u.iterator,order:u===null||u===void 0?void 0:u.order}),D.send(this.requestCtx,lN.ListResponseStreamOutSerializer._fromJsonObject)}create(u,D){let A=new p.SvixRequest(p.HttpMethod.POST,"/api/v1/stream");return A.setHeaderParam("idempotency-key",D===null||D===void 0?void 0:D.idempotencyKey),A.setBody(qw.StreamInSerializer._toJsonObject(u)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}get(u){let D=new p.SvixRequest(p.HttpMethod.GET,"/api/v1/stream/{stream_id}");return D.setPathParam("stream_id",u),D.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}update(u,D){let A=new p.SvixRequest(p.HttpMethod.PUT,"/api/v1/stream/{stream_id}");return A.setPathParam("stream_id",u),A.setBody(qw.StreamInSerializer._toJsonObject(D)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}delete(u){let D=new p.SvixRequest(p.HttpMethod.DELETE,"/api/v1/stream/{stream_id}");return D.setPathParam("stream_id",u),D.sendNoResponseBody(this.requestCtx)}patch(u,D){let A=new p.SvixRequest(p.HttpMethod.PATCH,"/api/v1/stream/{stream_id}");return A.setPathParam("stream_id",u),A.setBody(dN.StreamPatchSerializer._toJsonObject(D)),A.send(this.requestCtx,l2.StreamOutSerializer._fromJsonObject)}}Iw.StreamingStream=kw});var jw=E((gw)=>{Object.defineProperty(gw,"__esModule",{value:!0});gw.Streaming=void 0;var _w=G0(),rN=$F(),cN=QF(),iN=kF(),aN=A7(),pN=Uw(),nN=yw(),N2=R();class mw{constructor(u){this.requestCtx=u}get event_type(){return new iN.StreamingEventType(this.requestCtx)}get events(){return new aN.StreamingEvents(this.requestCtx)}get sink(){return new pN.StreamingSink(this.requestCtx)}get stream(){return new nN.StreamingStream(this.requestCtx)}sinkHeadersGet(u,D){let A=new N2.SvixRequest(N2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/headers");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,_w.EndpointHeadersOutSerializer._fromJsonObject)}sinkHeadersPatch(u,D,A){let B=new N2.SvixRequest(N2.HttpMethod.PATCH,"/api/v1/stream/{stream_id}/sink/{sink_id}/headers");return B.setPathParam("stream_id",u),B.setPathParam("sink_id",D),B.setBody(rN.HttpSinkHeadersPatchInSerializer._toJsonObject(A)),B.send(this.requestCtx,_w.EndpointHeadersOutSerializer._fromJsonObject)}sinkTransformationGet(u,D){let A=new N2.SvixRequest(N2.HttpMethod.GET,"/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");return A.setPathParam("stream_id",u),A.setPathParam("sink_id",D),A.send(this.requestCtx,cN.SinkTransformationOutSerializer._fromJsonObject)}}gw.Streaming=mw});var dw=E((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.HTTPValidationError=fw.ValidationError=fw.HttpErrorOut=void 0;class J2{static getAttributeTypeMap(){return J2.attributeTypeMap}}fw.HttpErrorOut=J2;J2.discriminator=void 0;J2.mapping=void 0;J2.attributeTypeMap=[{name:"code",baseName:"code",type:"string",format:""},{name:"detail",baseName:"detail",type:"string",format:""}];class Z2{static getAttributeTypeMap(){return Z2.attributeTypeMap}}fw.ValidationError=Z2;Z2.discriminator=void 0;Z2.mapping=void 0;Z2.attributeTypeMap=[{name:"loc",baseName:"loc",type:"Array<string>",format:""},{name:"msg",baseName:"msg",type:"string",format:""},{name:"type",baseName:"type",type:"string",format:""}];class z2{static getAttributeTypeMap(){return z2.attributeTypeMap}}fw.HTTPValidationError=z2;z2.discriminator=void 0;z2.mapping=void 0;z2.attributeTypeMap=[{name:"detail",baseName:"detail",type:"Array<ValidationError>",format:""}]});var aw=E((cw)=>{Object.defineProperty(cw,"__esModule",{value:!0});cw.timingSafeEqual=void 0;function rw(u,D=""){if(!u)throw Error(D)}function tN(u,D){if(u.byteLength!==D.byteLength)return!1;if(!(u instanceof DataView))u=new DataView(ArrayBuffer.isView(u)?u.buffer:u);if(!(D instanceof DataView))D=new DataView(ArrayBuffer.isView(D)?D.buffer:D);rw(u instanceof DataView),rw(D instanceof DataView);let A=u.byteLength,B=0,F=-1;while(++F<A)B|=u.getUint8(F)^D.getUint8(F);return B===0}cw.timingSafeEqual=tN});var sw=E((l)=>{var eN=l&&l.__extends||function(){var u=function(D,A){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,F){B.__proto__=F}||function(B,F){for(var G in F)if(F.hasOwnProperty(G))B[G]=F[G]},u(D,A)};return function(D,A){u(D,A);function B(){this.constructor=D}D.prototype=A===null?Object.create(A):(B.prototype=A.prototype,new B)}}();Object.defineProperty(l,"__esModule",{value:!0});var M=256,y0=function(){function u(D){if(D===void 0)D="=";this._paddingCharacter=D}return u.prototype.encodedLength=function(D){if(!this._paddingCharacter)return(D*8+5)/6|0;return(D+2)/3*4|0},u.prototype.encode=function(D){var A="",B=0;for(;B<D.length-2;B+=3){var F=D[B]<<16|D[B+1]<<8|D[B+2];A+=this._encodeByte(F>>>18&63),A+=this._encodeByte(F>>>12&63),A+=this._encodeByte(F>>>6&63),A+=this._encodeByte(F>>>0&63)}var G=D.length-B;if(G>0){var F=D[B]<<16|(G===2?D[B+1]<<8:0);if(A+=this._encodeByte(F>>>18&63),A+=this._encodeByte(F>>>12&63),G===2)A+=this._encodeByte(F>>>6&63);else A+=this._paddingCharacter||"";A+=this._paddingCharacter||""}return A},u.prototype.maxDecodedLength=function(D){if(!this._paddingCharacter)return(D*6+7)/8|0;return D/4*3|0},u.prototype.decodedLength=function(D){return this.maxDecodedLength(D.length-this._getPaddingLength(D))},u.prototype.decode=function(D){if(D.length===0)return new Uint8Array(0);var A=this._getPaddingLength(D),B=D.length-A,F=new Uint8Array(this.maxDecodedLength(B)),G=0,w=0,N=0,J=0,$=0,X=0,z=0;for(;w<B-4;w+=4)J=this._decodeChar(D.charCodeAt(w+0)),$=this._decodeChar(D.charCodeAt(w+1)),X=this._decodeChar(D.charCodeAt(w+2)),z=this._decodeChar(D.charCodeAt(w+3)),F[G++]=J<<2|$>>>4,F[G++]=$<<4|X>>>2,F[G++]=X<<6|z,N|=J&M,N|=$&M,N|=X&M,N|=z&M;if(w<B-1)J=this._decodeChar(D.charCodeAt(w)),$=this._decodeChar(D.charCodeAt(w+1)),F[G++]=J<<2|$>>>4,N|=J&M,N|=$&M;if(w<B-2)X=this._decodeChar(D.charCodeAt(w+2)),F[G++]=$<<4|X>>>2,N|=X&M;if(w<B-3)z=this._decodeChar(D.charCodeAt(w+3)),F[G++]=X<<6|z,N|=z&M;if(N!==0)throw Error("Base64Coder: incorrect characters for decoding");return F},u.prototype._encodeByte=function(D){var A=D;return A+=65,A+=25-D>>>8&6,A+=51-D>>>8&-75,A+=61-D>>>8&-15,A+=62-D>>>8&3,String.fromCharCode(A)},u.prototype._decodeChar=function(D){var A=M;return A+=(42-D&D-44)>>>8&-M+D-43+62,A+=(46-D&D-48)>>>8&-M+D-47+63,A+=(47-D&D-58)>>>8&-M+D-48+52,A+=(64-D&D-91)>>>8&-M+D-65+0,A+=(96-D&D-123)>>>8&-M+D-97+26,A},u.prototype._getPaddingLength=function(D){var A=0;if(this._paddingCharacter){for(var B=D.length-1;B>=0;B--){if(D[B]!==this._paddingCharacter)break;A++}if(D.length<4||A>2)throw Error("Base64Coder: incorrect padding")}return A},u}();l.Coder=y0;var C2=new y0;function uJ(u){return C2.encode(u)}l.encode=uJ;function DJ(u){return C2.decode(u)}l.decode=DJ;var pw=function(u){eN(D,u);function D(){return u!==null&&u.apply(this,arguments)||this}return D.prototype._encodeByte=function(A){var B=A;return B+=65,B+=25-A>>>8&6,B+=51-A>>>8&-75,B+=61-A>>>8&-13,B+=62-A>>>8&49,String.fromCharCode(B)},D.prototype._decodeChar=function(A){var B=M;return B+=(44-A&A-46)>>>8&-M+A-45+62,B+=(94-A&A-96)>>>8&-M+A-95+63,B+=(47-A&A-58)>>>8&-M+A-48+52,B+=(64-A&A-91)>>>8&-M+A-65+0,B+=(96-A&A-123)>>>8&-M+A-97+26,B},D}(y0);l.URLSafeCoder=pw;var nw=new pw;function AJ(u){return nw.encode(u)}l.encodeURLSafe=AJ;function BJ(u){return nw.decode(u)}l.decodeURLSafe=BJ;l.encodedLength=function(u){return C2.encodedLength(u)};l.maxDecodedLength=function(u){return C2.maxDecodedLength(u)};l.decodedLength=function(u){return C2.decodedLength(u)}});var tw=E((ow,d2)=>{(function(u,D){var A={};D(A);var B=A.default;for(var F in A)B[F]=A[F];if(typeof d2==="object"&&typeof d2.exports==="object")d2.exports=B;else if(typeof define==="function"&&define.amd)define(function(){return B});else u.sha256=B})(ow,function(u){u.__esModule=!0,u.digestLength=32,u.blockSize=64;var D=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,2756734187,3204031479,3329325298]);function A(z,Z,Y,Q,L){var C,U,H,_,T,P,n,h,y,O,$2,X2,P2;while(L>=64){C=Z[0],U=Z[1],H=Z[2],_=Z[3],T=Z[4],P=Z[5],n=Z[6],h=Z[7];for(O=0;O<16;O++)$2=Q+O*4,z[O]=(Y[$2]&255)<<24|(Y[$2+1]&255)<<16|(Y[$2+2]&255)<<8|Y[$2+3]&255;for(O=16;O<64;O++)y=z[O-2],X2=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,y=z[O-15],P2=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3,z[O]=(X2+z[O-7]|0)+(P2+z[O-16]|0);for(O=0;O<64;O++)X2=(((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&P^~T&n)|0)+(h+(D[O]+z[O]|0)|0)|0,P2=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&U^C&H^U&H)|0,h=n,n=P,P=T,T=_+X2|0,_=H,H=U,U=C,C=X2+P2|0;Z[0]+=C,Z[1]+=U,Z[2]+=H,Z[3]+=_,Z[4]+=T,Z[5]+=P,Z[6]+=n,Z[7]+=h,Q+=64,L-=64}return Q}var B=function(){function z(){this.digestLength=u.digestLength,this.blockSize=u.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 z.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},z.prototype.clean=function(){for(var Z=0;Z<this.buffer.length;Z++)this.buffer[Z]=0;for(var Z=0;Z<this.temp.length;Z++)this.temp[Z]=0;this.reset()},z.prototype.update=function(Z,Y){if(Y===void 0)Y=Z.length;if(this.finished)throw Error("SHA256: can't update because hash was finished.");var Q=0;if(this.bytesHashed+=Y,this.bufferLength>0){while(this.bufferLength<64&&Y>0)this.buffer[this.bufferLength++]=Z[Q++],Y--;if(this.bufferLength===64)A(this.temp,this.state,this.buffer,0,64),this.bufferLength=0}if(Y>=64)Q=A(this.temp,this.state,Z,Q,Y),Y%=64;while(Y>0)this.buffer[this.bufferLength++]=Z[Q++],Y--;return this},z.prototype.finish=function(Z){if(!this.finished){var Y=this.bytesHashed,Q=this.bufferLength,L=Y/536870912|0,C=Y<<3,U=Y%64<56?64:128;this.buffer[Q]=128;for(var H=Q+1;H<U-8;H++)this.buffer[H]=0;this.buffer[U-8]=L>>>24&255,this.buffer[U-7]=L>>>16&255,this.buffer[U-6]=L>>>8&255,this.buffer[U-5]=L>>>0&255,this.buffer[U-4]=C>>>24&255,this.buffer[U-3]=C>>>16&255,this.buffer[U-2]=C>>>8&255,this.buffer[U-1]=C>>>0&255,A(this.temp,this.state,this.buffer,0,U),this.finished=!0}for(var H=0;H<8;H++)Z[H*4+0]=this.state[H]>>>24&255,Z[H*4+1]=this.state[H]>>>16&255,Z[H*4+2]=this.state[H]>>>8&255,Z[H*4+3]=this.state[H]>>>0&255;return this},z.prototype.digest=function(){var Z=new Uint8Array(this.digestLength);return this.finish(Z),Z},z.prototype._saveState=function(Z){for(var Y=0;Y<this.state.length;Y++)Z[Y]=this.state[Y]},z.prototype._restoreState=function(Z,Y){for(var Q=0;Q<this.state.length;Q++)this.state[Q]=Z[Q];this.bytesHashed=Y,this.finished=!1,this.bufferLength=0},z}();u.Hash=B;var F=function(){function z(Z){this.inner=new B,this.outer=new B,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var Y=new Uint8Array(this.blockSize);if(Z.length>this.blockSize)new B().update(Z).finish(Y).clean();else for(var Q=0;Q<Z.length;Q++)Y[Q]=Z[Q];for(var Q=0;Q<Y.length;Q++)Y[Q]^=54;this.inner.update(Y);for(var Q=0;Q<Y.length;Q++)Y[Q]^=106;this.outer.update(Y),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var Q=0;Q<Y.length;Q++)Y[Q]=0}return z.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},z.prototype.clean=function(){for(var Z=0;Z<this.istate.length;Z++)this.ostate[Z]=this.istate[Z]=0;this.inner.clean(),this.outer.clean()},z.prototype.update=function(Z){return this.inner.update(Z),this},z.prototype.finish=function(Z){if(this.outer.finished)this.outer.finish(Z);else this.inner.finish(Z),this.outer.update(Z,this.digestLength).finish(Z);return this},z.prototype.digest=function(){var Z=new Uint8Array(this.digestLength);return this.finish(Z),Z},z}();u.HMAC=F;function G(z){var Z=new B().update(z),Y=Z.digest();return Z.clean(),Y}u.hash=G,u.default=G;function w(z,Z){var Y=new F(z).update(Z),Q=Y.digest();return Y.clean(),Q}u.hmac=w;function N(z,Z,Y,Q){var L=Q[0];if(L===0)throw Error("hkdf: cannot expand more");if(Z.reset(),L>1)Z.update(z);if(Y)Z.update(Y);Z.update(Q),Z.finish(z),Q[0]++}var J=new Uint8Array(u.digestLength);function $(z,Z,Y,Q){if(Z===void 0)Z=J;if(Q===void 0)Q=32;var L=new Uint8Array([1]),C=w(Z,z),U=new F(C),H=new Uint8Array(U.digestLength),_=H.length,T=new Uint8Array(Q);for(var P=0;P<Q;P++){if(_===H.length)N(H,U,Y,L),_=0;T[P]=H[_++]}return U.clean(),H.fill(0),L.fill(0),T}u.hkdf=$;function X(z,Z,Y,Q){var L=new F(z),C=L.digestLength,U=new Uint8Array(4),H=new Uint8Array(C),_=new Uint8Array(C),T=new Uint8Array(Q);for(var P=0;P*C<Q;P++){var n=P+1;U[0]=n>>>24&255,U[1]=n>>>16&255,U[2]=n>>>8&255,U[3]=n>>>0&255,L.reset(),L.update(Z),L.update(U),L.finish(_);for(var h=0;h<C;h++)H[h]=_[h];for(var h=2;h<=Y;h++){L.reset(),L.update(_).finish(_);for(var y=0;y<C;y++)H[y]^=_[y]}for(var h=0;h<C&&P*C+h<Q;h++)T[P*C+h]=H[h]}for(var P=0;P<C;P++)H[P]=_[P]=0;for(var P=0;P<4;P++)U[P]=0;return L.clean(),T}u.pbkdf2=X})});var m0=E((DE)=>{Object.defineProperty(DE,"__esModule",{value:!0});DE.Webhook=DE.WebhookVerificationError=void 0;var FJ=aw(),ew=sw(),wJ=tw(),uE=300;class _0 extends Error{constructor(u){super(u);Object.setPrototypeOf(this,_0.prototype),this.name="ExtendableError",this.stack=Error(u).stack}}class u2 extends _0{constructor(u){super(u);Object.setPrototypeOf(this,u2.prototype),this.name="WebhookVerificationError"}}DE.WebhookVerificationError=u2;class U2{constructor(u,D){if(!u)throw Error("Secret can't be empty.");if((D===null||D===void 0?void 0:D.format)==="raw")if(u instanceof Uint8Array)this.key=u;else this.key=Uint8Array.from(u,(A)=>A.charCodeAt(0));else{if(typeof u!=="string")throw Error("Expected secret to be of type string");if(u.startsWith(U2.prefix))u=u.substring(U2.prefix.length);this.key=ew.decode(u)}}verify(u,D){let A={};for(let z of Object.keys(D))A[z.toLowerCase()]=D[z];let B=A["webhook-id"],F=A["webhook-signature"],G=A["webhook-timestamp"];if(!F||!B||!G)throw new u2("Missing required headers");let w=this.verifyTimestamp(G),J=this.sign(B,w,u).split(",")[1],$=F.split(" "),X=new globalThis.TextEncoder;for(let z of $){let[Z,Y]=z.split(",");if(Z!=="v1")continue;if((0,FJ.timingSafeEqual)(X.encode(Y),X.encode(J)))return JSON.parse(u.toString())}throw new u2("No matching signature found")}sign(u,D,A){if(typeof A==="string");else if(A.constructor.name==="Buffer")A=A.toString();else throw Error("Expected payload to be of type string or Buffer.");let B=new TextEncoder,F=Math.floor(D.getTime()/1000),G=B.encode(`${u}.${F}.${A}`);return`v1,${ew.encode(wJ.hmac(this.key,G))}`}verifyTimestamp(u){let D=Math.floor(Date.now()/1000),A=parseInt(u,10);if(isNaN(A))throw new u2("Invalid Signature Headers");if(D-A>uE)throw new u2("Message timestamp too old");if(A>D+uE)throw new u2("Message timestamp too new");return new Date(A*1000)}}DE.Webhook=U2;U2.prefix="whsec_"});var wE=E((g0)=>{Object.defineProperty(g0,"__esModule",{value:!0});g0.Webhook=g0.WebhookVerificationError=void 0;var GJ=m0(),NJ=m0();Object.defineProperty(g0,"WebhookVerificationError",{enumerable:!0,get:function(){return NJ.WebhookVerificationError}});class BE{constructor(u,D){this.inner=new GJ.Webhook(u,D)}verify(u,D){var A,B,F,G,w,N;let J={};for(let $ of Object.keys(D))J[$.toLowerCase()]=D[$];return J["webhook-id"]=(B=(A=J["svix-id"])!==null&&A!==void 0?A:J["webhook-id"])!==null&&B!==void 0?B:"",J["webhook-signature"]=(G=(F=J["svix-signature"])!==null&&F!==void 0?F:J["webhook-signature"])!==null&&G!==void 0?G:"",J["webhook-timestamp"]=(N=(w=J["svix-timestamp"])!==null&&w!==void 0?w:J["webhook-timestamp"])!==null&&N!==void 0?N:"",this.inner.verify(u,J)}sign(u,D,A){return this.inner.sign(u,D,A)}}g0.Webhook=BE});var JE=E((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.EndpointDisabledTriggerSerializer=GE.EndpointDisabledTrigger=void 0;var JJ;(function(u){u.Manual="manual",u.Automatic="automatic"})(JJ=GE.EndpointDisabledTrigger||(GE.EndpointDisabledTrigger={}));GE.EndpointDisabledTriggerSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var XE=E((zE)=>{Object.defineProperty(zE,"__esModule",{value:!0});zE.OrderingSerializer=zE.Ordering=void 0;var ZJ;(function(u){u.Ascending="ascending",u.Descending="descending"})(ZJ=zE.Ordering||(zE.Ordering={}));zE.OrderingSerializer={_fromJsonObject(u){return u},_toJsonObject(u){return u}}});var YE=E((m)=>{Object.defineProperty(m,"__esModule",{value:!0});m.StatusCodeClass=m.SinkStatusIn=m.SinkStatus=m.Ordering=m.MessageStatusText=m.MessageStatus=m.MessageAttemptTriggerType=m.EndpointDisabledTrigger=m.ConnectorProduct=m.ConnectorKind=m.BackgroundTaskType=m.BackgroundTaskStatus=m.AppPortalCapability=void 0;var zJ=A0();Object.defineProperty(m,"AppPortalCapability",{enumerable:!0,get:function(){return zJ.AppPortalCapability}});var $J=t();Object.defineProperty(m,"BackgroundTaskStatus",{enumerable:!0,get:function(){return $J.BackgroundTaskStatus}});var XJ=e();Object.defineProperty(m,"BackgroundTaskType",{enumerable:!0,get:function(){return XJ.BackgroundTaskType}});var YJ=w2();Object.defineProperty(m,"ConnectorKind",{enumerable:!0,get:function(){return YJ.ConnectorKind}});var QJ=O2();Object.defineProperty(m,"ConnectorProduct",{enumerable:!0,get:function(){return QJ.ConnectorProduct}});var VJ=JE();Object.defineProperty(m,"EndpointDisabledTrigger",{enumerable:!0,get:function(){return VJ.EndpointDisabledTrigger}});var WJ=C0();Object.defineProperty(m,"MessageAttemptTriggerType",{enumerable:!0,get:function(){return WJ.MessageAttemptTriggerType}});var KJ=E2();Object.defineProperty(m,"MessageStatus",{enumerable:!0,get:function(){return KJ.MessageStatus}});var HJ=H2();Object.defineProperty(m,"MessageStatusText",{enumerable:!0,get:function(){return HJ.MessageStatusText}});var CJ=XE();Object.defineProperty(m,"Ordering",{enumerable:!0,get:function(){return CJ.Ordering}});var UJ=k0();Object.defineProperty(m,"SinkStatus",{enumerable:!0,get:function(){return UJ.SinkStatus}});var PJ=j2();Object.defineProperty(m,"SinkStatusIn",{enumerable:!0,get:function(){return PJ.SinkStatusIn}});var RJ=E0();Object.defineProperty(m,"StatusCodeClass",{enumerable:!0,get:function(){return RJ.StatusCodeClass}})});var WE=E((S)=>{var vJ=S&&S.__createBinding||(Object.create?function(u,D,A,B){if(B===void 0)B=A;var F=Object.getOwnPropertyDescriptor(D,A);if(!F||("get"in F?!D.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return D[A]}};Object.defineProperty(u,B,F)}:function(u,D,A,B){if(B===void 0)B=A;u[B]=D[A]}),QE=S&&S.__exportStar||function(u,D){for(var A in u)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(D,A))vJ(D,u,A)};Object.defineProperty(S,"__esModule",{value:!0});S.Svix=S.messageInRaw=S.ValidationError=S.HttpErrorOut=S.HTTPValidationError=S.ApiException=void 0;var MJ=Yu(),SJ=pu(),TJ=$D(),hJ=lD(),OJ=z3(),qJ=h3(),kJ=B5(),IJ=N5(),xJ=U4(),yJ=f4(),_J=K0(),mJ=QB(),gJ=iB(),bJ=JF(),jJ=jw(),fJ=L0(),lJ=e2();Object.defineProperty(S,"ApiException",{enumerable:!0,get:function(){return lJ.ApiException}});var b0=dw();Object.defineProperty(S,"HTTPValidationError",{enumerable:!0,get:function(){return b0.HTTPValidationError}});Object.defineProperty(S,"HttpErrorOut",{enumerable:!0,get:function(){return b0.HttpErrorOut}});Object.defineProperty(S,"ValidationError",{enumerable:!0,get:function(){return b0.ValidationError}});QE(wE(),S);QE(YE(),S);var dJ=K0();Object.defineProperty(S,"messageInRaw",{enumerable:!0,get:function(){return dJ.messageInRaw}});var rJ=[{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 VE{constructor(u,D={}){var A,B,F;let G=(A=rJ.find((N)=>N.region===u.split(".")[1]))===null||A===void 0?void 0:A.url,w=(F=(B=D.serverUrl)!==null&&B!==void 0?B:G)!==null&&F!==void 0?F:"https://api.svix.com";if(D.retryScheduleInMs){this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,retryScheduleInMs:D.retryScheduleInMs,fetch:D.fetch};return}if(D.numRetries){this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,numRetries:D.numRetries,fetch:D.fetch};return}this.requestCtx={baseUrl:w,token:u,timeout:D.requestTimeout,fetch:D.fetch}}get application(){return new MJ.Application(this.requestCtx)}get authentication(){return new SJ.Authentication(this.requestCtx)}get backgroundTask(){return new TJ.BackgroundTask(this.requestCtx)}get connector(){return new hJ.Connector(this.requestCtx)}get endpoint(){return new OJ.Endpoint(this.requestCtx)}get environment(){return new qJ.Environment(this.requestCtx)}get eventType(){return new kJ.EventType(this.requestCtx)}get health(){return new IJ.Health(this.requestCtx)}get ingest(){return new xJ.Ingest(this.requestCtx)}get integration(){return new yJ.Integration(this.requestCtx)}get message(){return new _J.Message(this.requestCtx)}get messageAttempt(){return new mJ.MessageAttempt(this.requestCtx)}get operationalWebhook(){return new gJ.OperationalWebhook(this.requestCtx)}get statistics(){return new bJ.Statistics(this.requestCtx)}get streaming(){return new jJ.Streaming(this.requestCtx)}get operationalWebhookEndpoint(){return new fJ.OperationalWebhookEndpoint(this.requestCtx)}}S.Svix=VE});var s=new TextEncoder;var Y2=new Uint8Array(256);for(let u=0;u<64;u++)Y2["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(u)]=u;function R2(u){let D=Math.ceil(u.length/4)*3,A=u.length,B=0;if(u.length%4===3)D--;else if(u.length%4===2)D-=2;else if(u[u.length-1]==="="){if(D--,u[u.length-2]==="=")D--}let F=new ArrayBuffer(D),G=new Uint8Array(F);for(let w=0;w<A;w+=4){let N=Y2[u.charCodeAt(w)],J=Y2[u.charCodeAt(w+1)],$=Y2[u.charCodeAt(w+2)],X=Y2[u.charCodeAt(w+3)];G[B++]=N<<2|J>>4,G[B++]=(J&15)<<4|$>>2,G[B++]=($&3)<<6|X&63}return F}function B2(u){u=u||"utf8";let D;try{D=new TextDecoder(u)}catch(A){D=new TextDecoder("windows-1252")}return D}async function o(u){if("arrayBuffer"in u)return await u.arrayBuffer();let D=new FileReader;return new Promise((A,B)=>{D.onload=function(F){A(F.target.result)},D.onerror=function(F){B(D.error)},D.readAsArrayBuffer(u)})}function j0(u){if(u>=48&&u<=57||u>=97&&u<=102||u>=65&&u<=70)return String.fromCharCode(u);return!1}function hE(u,D,A){let B=u.indexOf("*");if(B>=0)u=u.substr(0,B);D=D.toUpperCase();let F;if(D==="Q"){A=A.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let G=s.encode(A),w=[];for(let J=0,$=G.length;J<$;J++){let X=G[J];if(J<=$-2&&X===61){let z=j0(G[J+1]),Z=j0(G[J+2]);if(z&&Z){let Y=parseInt(z+Z,16);w.push(Y),J+=2;continue}}w.push(X)}F=new ArrayBuffer(w.length);let N=new DataView(F);for(let J=0,$=w.length;J<$;J++)N.setUint8(J,w[J])}else if(D==="B")F=R2(A.replace(/[^a-zA-Z0-9\+\/=]+/g,""));else F=s.encode(A);return B2(u).decode(F)}function D2(u){let D=!0,A=!1;while(!A){let B=(u||"").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(F,G,w,N,J)=>{if(!D)return F;if(w===J&&N.length%4===0&&!/=$/.test(N))return G+"__\x00JOIN\x00__";return F}).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(F,G,w,N)=>{if(!D)return F;if(w===N)return G+"__\x00JOIN\x00__";return F}).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(F,G,w,N)=>hE(G,w,N));if(D&&B.indexOf("\uFFFD")>=0)D=!1;else return B}}function OE(u,D){D=D||"utf-8";let A=[];for(let G=0;G<u.length;G++){let w=u.charAt(G);if(w==="%"&&/^[a-f0-9]{2}/i.test(u.substr(G+1,2))){let N=u.substr(G+1,2);G+=2,A.push(parseInt(N,16))}else if(w.charCodeAt(0)>126){w=s.encode(w);for(let N=0;N<w.length;N++)A.push(w[N])}else A.push(w.charCodeAt(0))}let B=new ArrayBuffer(A.length),F=new DataView(B);for(let G=0,w=A.length;G<w;G++)F.setUint8(G,A[G]);return B2(D).decode(B)}function f0(u){let D=new Map;Object.keys(u.params).forEach((A)=>{let B=A.match(/\*((\d+)\*?)?$/);if(!B)return;let F=A.substr(0,B.index).toLowerCase(),G=Number(B[2])||0,w;if(!D.has(F))w={charset:!1,values:[]},D.set(F,w);else w=D.get(F);let N=u.params[A];if(G===0&&B[0].charAt(B[0].length-1)==="*"&&(B=N.match(/^([^']*)'[^']*'(.*)$/)))w.charset=B[1]||"utf-8",N=B[2];w.values.push({nr:G,value:N}),delete u.params[A]}),D.forEach((A,B)=>{u.params[B]=OE(A.values.sort((F,G)=>F.nr-G.nr).map((F)=>F.value).join(""),A.charset)})}class L2{constructor(){this.chunks=[]}update(u){this.chunks.push(u),this.chunks.push(`
|
|
4
|
+
`)}finalize(){return o(new Blob(this.chunks,{type:"application/octet-stream"}))}}class v2{constructor(u){u=u||{},this.decoder=u.decoder||new TextDecoder,this.maxChunkSize=102400,this.chunks=[],this.remainder=""}update(u){let D=this.decoder.decode(u);if(D=D.replace(/[^a-zA-Z0-9+\/]+/g,""),this.remainder+=D,this.remainder.length>=this.maxChunkSize){let A=Math.floor(this.remainder.length/4)*4,B;if(A===this.remainder.length)B=this.remainder,this.remainder="";else B=this.remainder.substr(0,A),this.remainder=this.remainder.substr(A);if(B.length)this.chunks.push(R2(B))}}finalize(){if(this.remainder&&!/^=+$/.test(this.remainder))this.chunks.push(R2(this.remainder));return o(new Blob(this.chunks,{type:"application/octet-stream"}))}}var l0=/^=[a-f0-9]{2}$/i,qE=/(?==[a-f0-9]{2})/i,kE=/=\r?\n/g,IE=/=[a-fA-F0-9]?$/;class M2{constructor(u){u=u||{},this.decoder=u.decoder||new TextDecoder,this.maxChunkSize=102400,this.remainder="",this.chunks=[]}decodeQPBytes(u){let D=new ArrayBuffer(u.length),A=new DataView(D);for(let B=0,F=u.length;B<F;B++)A.setUint8(B,parseInt(u[B],16));return D}decodeChunks(u){u=u.replace(kE,"");let D=u.split(qE),A=[];for(let B of D){if(B.charAt(0)!=="="){if(A.length)this.chunks.push(this.decodeQPBytes(A)),A=[];this.chunks.push(B);continue}if(B.length===3){if(l0.test(B))A.push(B.substr(1));else{if(A.length)this.chunks.push(this.decodeQPBytes(A)),A=[];this.chunks.push(B)}continue}if(B.length>3){let F=B.substr(0,3);if(l0.test(F))A.push(B.substr(1,2)),this.chunks.push(this.decodeQPBytes(A)),A=[],B=B.substr(3),this.chunks.push(B);else{if(A.length)this.chunks.push(this.decodeQPBytes(A)),A=[];this.chunks.push(B)}}}if(A.length)this.chunks.push(this.decodeQPBytes(A))}update(u){let D=this.decoder.decode(u)+`
|
|
5
|
+
`;if(D=this.remainder+D,D.length<this.maxChunkSize){this.remainder=D;return}this.remainder="";let A=D.match(IE);if(A){if(A.index===0){this.remainder=D;return}this.remainder=D.substr(A.index),D=D.substr(0,A.index)}this.decodeChunks(D)}finalize(){if(this.remainder.length)this.decodeChunks(this.remainder),this.remainder="";return o(new Blob(this.chunks,{type:"application/octet-stream"}))}}var xE=B2();class Q2{constructor(u){if(this.options=u||{},this.postalMime=this.options.postalMime,this.root=!!this.options.parentNode,this.childNodes=[],this.options.parentNode){if(this.parentNode=this.options.parentNode,this.depth=this.parentNode.depth+1,this.depth>this.options.maxNestingDepth)throw Error(`Maximum MIME nesting depth of ${this.options.maxNestingDepth} levels exceeded`);this.options.parentNode.childNodes.push(this)}else this.depth=0;this.state="header",this.headerLines=[],this.headerSize=0;let A=(this.options.parentMultipartType||null)==="digest"?"message/rfc822":"text/plain";this.contentType={value:A,default:!0},this.contentTransferEncoding={value:"8bit"},this.contentDisposition={value:""},this.headers=[],this.contentDecoder=!1}setupContentDecoder(u){if(/base64/i.test(u))this.contentDecoder=new v2;else if(/quoted-printable/i.test(u))this.contentDecoder=new M2({decoder:B2(this.contentType.parsed.params.charset)});else this.contentDecoder=new L2}async finalize(){if(this.state==="finished")return;if(this.state==="header")this.processHeaders();let u=this.postalMime.boundaries;for(let D=u.length-1;D>=0;D--)if(u[D].node===this){u.splice(D,1);break}await this.finalizeChildNodes(),this.content=this.contentDecoder?await this.contentDecoder.finalize():null,this.state="finished"}async finalizeChildNodes(){for(let u of this.childNodes)await u.finalize()}stripComments(u){let D="",A=0,B=!1,F=!1;for(let G=0;G<u.length;G++){let w=u.charAt(G);if(B){if(A===0)D+=w;B=!1;continue}if(w==="\\"){if(B=!0,A===0)D+=w;continue}if(w==='"'&&A===0){F=!F,D+=w;continue}if(!F){if(w==="("){A++;continue}if(w===")"&&A>0){A--;continue}}if(A===0)D+=w}return D}parseStructuredHeader(u){u=this.stripComments(u);let D={value:!1,params:{}},A=!1,B="",F="value",G=!1,w=!1,N;for(let J=0,$=u.length;J<$;J++)switch(N=u.charAt(J),F){case"key":if(N==="="){A=B.trim().toLowerCase(),F="value",B="";break}B+=N;break;case"value":if(w)B+=N;else if(N==="\\"){w=!0;continue}else if(G&&N===G)G=!1;else if(!G&&N==='"')G=N;else if(!G&&N===";"){if(A===!1)D.value=B.trim();else D.params[A]=B.trim();F="key",B=""}else B+=N;w=!1;break}if(B=B.trim(),F==="value")if(A===!1)D.value=B;else D.params[A]=B;else if(B)D.params[B.toLowerCase()]="";if(D.value)D.value=D.value.toLowerCase();return f0(D),D}decodeFlowedText(u,D){return u.split(/\r?\n/).reduce((A,B)=>{if(A.endsWith(" ")&&A!=="-- "&&!A.endsWith(`
|
|
6
|
+
-- `))if(D)return A.slice(0,-1)+B;else return A+B;else return A+`
|
|
7
|
+
`+B}).replace(/^ /gm,"")}getTextContent(){if(!this.content)return"";let u=B2(this.contentType.parsed.params.charset).decode(this.content);if(/^flowed$/i.test(this.contentType.parsed.params.format))u=this.decodeFlowedText(u,/^yes$/i.test(this.contentType.parsed.params.delsp));return u}processHeaders(){for(let u=this.headerLines.length-1;u>=0;u--){let D=this.headerLines[u];if(u&&/^\s/.test(D))this.headerLines[u-1]+=`
|
|
8
|
+
`+D,this.headerLines.splice(u,1)}this.rawHeaderLines=[];for(let u=this.headerLines.length-1;u>=0;u--){let D=this.headerLines[u],A=D.indexOf(":"),B=A<0?D.trim():D.substr(0,A).trim();this.rawHeaderLines.push({key:B.toLowerCase(),line:D});let F=D.replace(/\s+/g," ");A=F.indexOf(":");let G=A<0?F.trim():F.substr(0,A).trim(),w=A<0?"":F.substr(A+1).trim();switch(this.headers.push({key:G.toLowerCase(),originalKey:G,value:w}),G.toLowerCase()){case"content-type":if(this.contentType.default)this.contentType={value:w,parsed:{}};break;case"content-transfer-encoding":this.contentTransferEncoding={value:w,parsed:{}};break;case"content-disposition":this.contentDisposition={value:w,parsed:{}};break;case"content-id":this.contentId=w;break;case"content-description":this.contentDescription=w;break}}if(this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=/^multipart\//i.test(this.contentType.parsed.value)?this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/")+1):!1,this.contentType.multipart&&this.contentType.parsed.params.boundary)this.postalMime.boundaries.push({value:s.encode(this.contentType.parsed.params.boundary),node:this});this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(),this.setupContentDecoder(this.contentTransferEncoding.encoding)}feed(u){switch(this.state){case"header":if(!u.length)return this.state="body",this.processHeaders();if(this.headerSize+=u.length,this.headerSize>this.options.maxHeadersSize)throw Error(`Maximum header size of ${this.options.maxHeadersSize} bytes exceeded`);this.headerLines.push(xE.decode(u));break;case"body":this.contentDecoder.update(u)}}}var yE={"Æ":"\xC6","Æ":"\xC6","&":"&","&":"&","Á":"\xC1","Á":"\xC1","Ă":"\u0102","Â":"\xC2","Â":"\xC2","А":"\u0410","𝔄":"\uD835\uDD04","À":"\xC0","À":"\xC0","Α":"\u0391","Ā":"\u0100","⩓":"\u2A53","Ą":"\u0104","𝔸":"\uD835\uDD38","⁡":"\u2061","Å":"\xC5","Å":"\xC5","𝒜":"\uD835\uDC9C","≔":"\u2254","Ã":"\xC3","Ã":"\xC3","Ä":"\xC4","Ä":"\xC4","∖":"\u2216","⫧":"\u2AE7","⌆":"\u2306","Б":"\u0411","∵":"\u2235","ℬ":"\u212C","Β":"\u0392","𝔅":"\uD835\uDD05","𝔹":"\uD835\uDD39","˘":"\u02D8","ℬ":"\u212C","≎":"\u224E","Ч":"\u0427","©":"\xA9","©":"\xA9","Ć":"\u0106","⋒":"\u22D2","ⅅ":"\u2145","ℭ":"\u212D","Č":"\u010C","Ç":"\xC7","Ç":"\xC7","Ĉ":"\u0108","∰":"\u2230","Ċ":"\u010A","¸":"\xB8","·":"\xB7","ℭ":"\u212D","Χ":"\u03A7","⊙":"\u2299","⊖":"\u2296","⊕":"\u2295","⊗":"\u2297","∲":"\u2232","”":"\u201D","’":"\u2019","∷":"\u2237","⩴":"\u2A74","≡":"\u2261","∯":"\u222F","∮":"\u222E","ℂ":"\u2102","∐":"\u2210","∳":"\u2233","⨯":"\u2A2F","𝒞":"\uD835\uDC9E","⋓":"\u22D3","≍":"\u224D","ⅅ":"\u2145","⤑":"\u2911","Ђ":"\u0402","Ѕ":"\u0405","Џ":"\u040F","‡":"\u2021","↡":"\u21A1","⫤":"\u2AE4","Ď":"\u010E","Д":"\u0414","∇":"\u2207","Δ":"\u0394","𝔇":"\uD835\uDD07","´":"\xB4","˙":"\u02D9","˝":"\u02DD","`":"`","˜":"\u02DC","⋄":"\u22C4","ⅆ":"\u2146","𝔻":"\uD835\uDD3B","¨":"\xA8","⃜":"\u20DC","≐":"\u2250","∯":"\u222F","¨":"\xA8","⇓":"\u21D3","⇐":"\u21D0","⇔":"\u21D4","⫤":"\u2AE4","⟸":"\u27F8","⟺":"\u27FA","⟹":"\u27F9","⇒":"\u21D2","⊨":"\u22A8","⇑":"\u21D1","⇕":"\u21D5","∥":"\u2225","↓":"\u2193","⤓":"\u2913","⇵":"\u21F5","̑":"\u0311","⥐":"\u2950","⥞":"\u295E","↽":"\u21BD","⥖":"\u2956","⥟":"\u295F","⇁":"\u21C1","⥗":"\u2957","⊤":"\u22A4","↧":"\u21A7","⇓":"\u21D3","𝒟":"\uD835\uDC9F","Đ":"\u0110","Ŋ":"\u014A","Ð":"\xD0","Ð":"\xD0","É":"\xC9","É":"\xC9","Ě":"\u011A","Ê":"\xCA","Ê":"\xCA","Э":"\u042D","Ė":"\u0116","𝔈":"\uD835\uDD08","È":"\xC8","È":"\xC8","∈":"\u2208","Ē":"\u0112","◻":"\u25FB","▫":"\u25AB","Ę":"\u0118","𝔼":"\uD835\uDD3C","Ε":"\u0395","⩵":"\u2A75","≂":"\u2242","⇌":"\u21CC","ℰ":"\u2130","⩳":"\u2A73","Η":"\u0397","Ë":"\xCB","Ë":"\xCB","∃":"\u2203","ⅇ":"\u2147","Ф":"\u0424","𝔉":"\uD835\uDD09","◼":"\u25FC","▪":"\u25AA","𝔽":"\uD835\uDD3D","∀":"\u2200","ℱ":"\u2131","ℱ":"\u2131","Ѓ":"\u0403",">":">",">":">","Γ":"\u0393","Ϝ":"\u03DC","Ğ":"\u011E","Ģ":"\u0122","Ĝ":"\u011C","Г":"\u0413","Ġ":"\u0120","𝔊":"\uD835\uDD0A","⋙":"\u22D9","𝔾":"\uD835\uDD3E","≥":"\u2265","⋛":"\u22DB","≧":"\u2267","⪢":"\u2AA2","≷":"\u2277","⩾":"\u2A7E","≳":"\u2273","𝒢":"\uD835\uDCA2","≫":"\u226B","Ъ":"\u042A","ˇ":"\u02C7","^":"^","Ĥ":"\u0124","ℌ":"\u210C","ℋ":"\u210B","ℍ":"\u210D","─":"\u2500","ℋ":"\u210B","Ħ":"\u0126","≎":"\u224E","≏":"\u224F","Е":"\u0415","IJ":"\u0132","Ё":"\u0401","Í":"\xCD","Í":"\xCD","Î":"\xCE","Î":"\xCE","И":"\u0418","İ":"\u0130","ℑ":"\u2111","Ì":"\xCC","Ì":"\xCC","ℑ":"\u2111","Ī":"\u012A","ⅈ":"\u2148","⇒":"\u21D2","∬":"\u222C","∫":"\u222B","⋂":"\u22C2","⁣":"\u2063","⁢":"\u2062","Į":"\u012E","𝕀":"\uD835\uDD40","Ι":"\u0399","ℐ":"\u2110","Ĩ":"\u0128","І":"\u0406","Ï":"\xCF","Ï":"\xCF","Ĵ":"\u0134","Й":"\u0419","𝔍":"\uD835\uDD0D","𝕁":"\uD835\uDD41","𝒥":"\uD835\uDCA5","Ј":"\u0408","Є":"\u0404","Х":"\u0425","Ќ":"\u040C","Κ":"\u039A","Ķ":"\u0136","К":"\u041A","𝔎":"\uD835\uDD0E","𝕂":"\uD835\uDD42","𝒦":"\uD835\uDCA6","Љ":"\u0409","<":"<","<":"<","Ĺ":"\u0139","Λ":"\u039B","⟪":"\u27EA","ℒ":"\u2112","↞":"\u219E","Ľ":"\u013D","Ļ":"\u013B","Л":"\u041B","⟨":"\u27E8","←":"\u2190","⇤":"\u21E4","⇆":"\u21C6","⌈":"\u2308","⟦":"\u27E6","⥡":"\u2961","⇃":"\u21C3","⥙":"\u2959","⌊":"\u230A","↔":"\u2194","⥎":"\u294E","⊣":"\u22A3","↤":"\u21A4","⥚":"\u295A","⊲":"\u22B2","⧏":"\u29CF","⊴":"\u22B4","⥑":"\u2951","⥠":"\u2960","↿":"\u21BF","⥘":"\u2958","↼":"\u21BC","⥒":"\u2952","⇐":"\u21D0","⇔":"\u21D4","⋚":"\u22DA","≦":"\u2266","≶":"\u2276","⪡":"\u2AA1","⩽":"\u2A7D","≲":"\u2272","𝔏":"\uD835\uDD0F","⋘":"\u22D8","⇚":"\u21DA","Ŀ":"\u013F","⟵":"\u27F5","⟷":"\u27F7","⟶":"\u27F6","⟸":"\u27F8","⟺":"\u27FA","⟹":"\u27F9","𝕃":"\uD835\uDD43","↙":"\u2199","↘":"\u2198","ℒ":"\u2112","↰":"\u21B0","Ł":"\u0141","≪":"\u226A","⤅":"\u2905","М":"\u041C"," ":"\u205F","ℳ":"\u2133","𝔐":"\uD835\uDD10","∓":"\u2213","𝕄":"\uD835\uDD44","ℳ":"\u2133","Μ":"\u039C","Њ":"\u040A","Ń":"\u0143","Ň":"\u0147","Ņ":"\u0145","Н":"\u041D","​":"\u200B","​":"\u200B","​":"\u200B","​":"\u200B","≫":"\u226B","≪":"\u226A","
":`
|
|
9
|
+
`,"𝔑":"\uD835\uDD11","⁠":"\u2060"," ":"\xA0","ℕ":"\u2115","⫬":"\u2AEC","≢":"\u2262","≭":"\u226D","∦":"\u2226","∉":"\u2209","≠":"\u2260","≂̸":"\u2242\u0338","∄":"\u2204","≯":"\u226F","≱":"\u2271","≧̸":"\u2267\u0338","≫̸":"\u226B\u0338","≹":"\u2279","⩾̸":"\u2A7E\u0338","≵":"\u2275","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⋪":"\u22EA","⧏̸":"\u29CF\u0338","⋬":"\u22EC","≮":"\u226E","≰":"\u2270","≸":"\u2278","≪̸":"\u226A\u0338","⩽̸":"\u2A7D\u0338","≴":"\u2274","⪢̸":"\u2AA2\u0338","⪡̸":"\u2AA1\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⋠":"\u22E0","∌":"\u220C","⋫":"\u22EB","⧐̸":"\u29D0\u0338","⋭":"\u22ED","⊏̸":"\u228F\u0338","⋢":"\u22E2","⊐̸":"\u2290\u0338","⋣":"\u22E3","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⋡":"\u22E1","≿̸":"\u227F\u0338","⊃⃒":"\u2283\u20D2","⊉":"\u2289","≁":"\u2241","≄":"\u2244","≇":"\u2247","≉":"\u2249","∤":"\u2224","𝒩":"\uD835\uDCA9","Ñ":"\xD1","Ñ":"\xD1","Ν":"\u039D","Œ":"\u0152","Ó":"\xD3","Ó":"\xD3","Ô":"\xD4","Ô":"\xD4","О":"\u041E","Ő":"\u0150","𝔒":"\uD835\uDD12","Ò":"\xD2","Ò":"\xD2","Ō":"\u014C","Ω":"\u03A9","Ο":"\u039F","𝕆":"\uD835\uDD46","“":"\u201C","‘":"\u2018","⩔":"\u2A54","𝒪":"\uD835\uDCAA","Ø":"\xD8","Ø":"\xD8","Õ":"\xD5","Õ":"\xD5","⨷":"\u2A37","Ö":"\xD6","Ö":"\xD6","‾":"\u203E","⏞":"\u23DE","⎴":"\u23B4","⏜":"\u23DC","∂":"\u2202","П":"\u041F","𝔓":"\uD835\uDD13","Φ":"\u03A6","Π":"\u03A0","±":"\xB1","ℌ":"\u210C","ℙ":"\u2119","⪻":"\u2ABB","≺":"\u227A","⪯":"\u2AAF","≼":"\u227C","≾":"\u227E","″":"\u2033","∏":"\u220F","∷":"\u2237","∝":"\u221D","𝒫":"\uD835\uDCAB","Ψ":"\u03A8",""":'"',""":'"',"𝔔":"\uD835\uDD14","ℚ":"\u211A","𝒬":"\uD835\uDCAC","⤐":"\u2910","®":"\xAE","®":"\xAE","Ŕ":"\u0154","⟫":"\u27EB","↠":"\u21A0","⤖":"\u2916","Ř":"\u0158","Ŗ":"\u0156","Р":"\u0420","ℜ":"\u211C","∋":"\u220B","⇋":"\u21CB","⥯":"\u296F","ℜ":"\u211C","Ρ":"\u03A1","⟩":"\u27E9","→":"\u2192","⇥":"\u21E5","⇄":"\u21C4","⌉":"\u2309","⟧":"\u27E7","⥝":"\u295D","⇂":"\u21C2","⥕":"\u2955","⌋":"\u230B","⊢":"\u22A2","↦":"\u21A6","⥛":"\u295B","⊳":"\u22B3","⧐":"\u29D0","⊵":"\u22B5","⥏":"\u294F","⥜":"\u295C","↾":"\u21BE","⥔":"\u2954","⇀":"\u21C0","⥓":"\u2953","⇒":"\u21D2","ℝ":"\u211D","⥰":"\u2970","⇛":"\u21DB","ℛ":"\u211B","↱":"\u21B1","⧴":"\u29F4","Щ":"\u0429","Ш":"\u0428","Ь":"\u042C","Ś":"\u015A","⪼":"\u2ABC","Š":"\u0160","Ş":"\u015E","Ŝ":"\u015C","С":"\u0421","𝔖":"\uD835\uDD16","↓":"\u2193","←":"\u2190","→":"\u2192","↑":"\u2191","Σ":"\u03A3","∘":"\u2218","𝕊":"\uD835\uDD4A","√":"\u221A","□":"\u25A1","⊓":"\u2293","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊔":"\u2294","𝒮":"\uD835\uDCAE","⋆":"\u22C6","⋐":"\u22D0","⋐":"\u22D0","⊆":"\u2286","≻":"\u227B","⪰":"\u2AB0","≽":"\u227D","≿":"\u227F","∋":"\u220B","∑":"\u2211","⋑":"\u22D1","⊃":"\u2283","⊇":"\u2287","⋑":"\u22D1","Þ":"\xDE","Þ":"\xDE","™":"\u2122","Ћ":"\u040B","Ц":"\u0426","	":"\t","Τ":"\u03A4","Ť":"\u0164","Ţ":"\u0162","Т":"\u0422","𝔗":"\uD835\uDD17","∴":"\u2234","Θ":"\u0398","  ":"\u205F\u200A"," ":"\u2009","∼":"\u223C","≃":"\u2243","≅":"\u2245","≈":"\u2248","𝕋":"\uD835\uDD4B","⃛":"\u20DB","𝒯":"\uD835\uDCAF","Ŧ":"\u0166","Ú":"\xDA","Ú":"\xDA","↟":"\u219F","⥉":"\u2949","Ў":"\u040E","Ŭ":"\u016C","Û":"\xDB","Û":"\xDB","У":"\u0423","Ű":"\u0170","𝔘":"\uD835\uDD18","Ù":"\xD9","Ù":"\xD9","Ū":"\u016A","_":"_","⏟":"\u23DF","⎵":"\u23B5","⏝":"\u23DD","⋃":"\u22C3","⊎":"\u228E","Ų":"\u0172","𝕌":"\uD835\uDD4C","↑":"\u2191","⤒":"\u2912","⇅":"\u21C5","↕":"\u2195","⥮":"\u296E","⊥":"\u22A5","↥":"\u21A5","⇑":"\u21D1","⇕":"\u21D5","↖":"\u2196","↗":"\u2197","ϒ":"\u03D2","Υ":"\u03A5","Ů":"\u016E","𝒰":"\uD835\uDCB0","Ũ":"\u0168","Ü":"\xDC","Ü":"\xDC","⊫":"\u22AB","⫫":"\u2AEB","В":"\u0412","⊩":"\u22A9","⫦":"\u2AE6","⋁":"\u22C1","‖":"\u2016","‖":"\u2016","∣":"\u2223","|":"|","❘":"\u2758","≀":"\u2240"," ":"\u200A","𝔙":"\uD835\uDD19","𝕍":"\uD835\uDD4D","𝒱":"\uD835\uDCB1","⊪":"\u22AA","Ŵ":"\u0174","⋀":"\u22C0","𝔚":"\uD835\uDD1A","𝕎":"\uD835\uDD4E","𝒲":"\uD835\uDCB2","𝔛":"\uD835\uDD1B","Ξ":"\u039E","𝕏":"\uD835\uDD4F","𝒳":"\uD835\uDCB3","Я":"\u042F","Ї":"\u0407","Ю":"\u042E","Ý":"\xDD","Ý":"\xDD","Ŷ":"\u0176","Ы":"\u042B","𝔜":"\uD835\uDD1C","𝕐":"\uD835\uDD50","𝒴":"\uD835\uDCB4","Ÿ":"\u0178","Ж":"\u0416","Ź":"\u0179","Ž":"\u017D","З":"\u0417","Ż":"\u017B","​":"\u200B","Ζ":"\u0396","ℨ":"\u2128","ℤ":"\u2124","𝒵":"\uD835\uDCB5","á":"\xE1","á":"\xE1","ă":"\u0103","∾":"\u223E","∾̳":"\u223E\u0333","∿":"\u223F","â":"\xE2","â":"\xE2","´":"\xB4","´":"\xB4","а":"\u0430","æ":"\xE6","æ":"\xE6","⁡":"\u2061","𝔞":"\uD835\uDD1E","à":"\xE0","à":"\xE0","ℵ":"\u2135","ℵ":"\u2135","α":"\u03B1","ā":"\u0101","⨿":"\u2A3F","&":"&","&":"&","∧":"\u2227","⩕":"\u2A55","⩜":"\u2A5C","⩘":"\u2A58","⩚":"\u2A5A","∠":"\u2220","⦤":"\u29A4","∠":"\u2220","∡":"\u2221","⦨":"\u29A8","⦩":"\u29A9","⦪":"\u29AA","⦫":"\u29AB","⦬":"\u29AC","⦭":"\u29AD","⦮":"\u29AE","⦯":"\u29AF","∟":"\u221F","⊾":"\u22BE","⦝":"\u299D","∢":"\u2222","Å":"\xC5","⍼":"\u237C","ą":"\u0105","𝕒":"\uD835\uDD52","≈":"\u2248","⩰":"\u2A70","⩯":"\u2A6F","≊":"\u224A","≋":"\u224B","'":"'","≈":"\u2248","≊":"\u224A","å":"\xE5","å":"\xE5","𝒶":"\uD835\uDCB6","*":"*","≈":"\u2248","≍":"\u224D","ã":"\xE3","ã":"\xE3","ä":"\xE4","ä":"\xE4","∳":"\u2233","⨑":"\u2A11","⫭":"\u2AED","≌":"\u224C","϶":"\u03F6","‵":"\u2035","∽":"\u223D","⋍":"\u22CD","⊽":"\u22BD","⌅":"\u2305","⌅":"\u2305","⎵":"\u23B5","⎶":"\u23B6","≌":"\u224C","б":"\u0431","„":"\u201E","∵":"\u2235","∵":"\u2235","⦰":"\u29B0","϶":"\u03F6","ℬ":"\u212C","β":"\u03B2","ℶ":"\u2136","≬":"\u226C","𝔟":"\uD835\uDD1F","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","⨀":"\u2A00","⨁":"\u2A01","⨂":"\u2A02","⨆":"\u2A06","★":"\u2605","▽":"\u25BD","△":"\u25B3","⨄":"\u2A04","⋁":"\u22C1","⋀":"\u22C0","⤍":"\u290D","⧫":"\u29EB","▪":"\u25AA","▴":"\u25B4","▾":"\u25BE","◂":"\u25C2","▸":"\u25B8","␣":"\u2423","▒":"\u2592","░":"\u2591","▓":"\u2593","█":"\u2588","=⃥":"=\u20E5","≡⃥":"\u2261\u20E5","⌐":"\u2310","𝕓":"\uD835\uDD53","⊥":"\u22A5","⊥":"\u22A5","⋈":"\u22C8","╗":"\u2557","╔":"\u2554","╖":"\u2556","╓":"\u2553","═":"\u2550","╦":"\u2566","╩":"\u2569","╤":"\u2564","╧":"\u2567","╝":"\u255D","╚":"\u255A","╜":"\u255C","╙":"\u2559","║":"\u2551","╬":"\u256C","╣":"\u2563","╠":"\u2560","╫":"\u256B","╢":"\u2562","╟":"\u255F","⧉":"\u29C9","╕":"\u2555","╒":"\u2552","┐":"\u2510","┌":"\u250C","─":"\u2500","╥":"\u2565","╨":"\u2568","┬":"\u252C","┴":"\u2534","⊟":"\u229F","⊞":"\u229E","⊠":"\u22A0","╛":"\u255B","╘":"\u2558","┘":"\u2518","└":"\u2514","│":"\u2502","╪":"\u256A","╡":"\u2561","╞":"\u255E","┼":"\u253C","┤":"\u2524","├":"\u251C","‵":"\u2035","˘":"\u02D8","¦":"\xA6","¦":"\xA6","𝒷":"\uD835\uDCB7","⁏":"\u204F","∽":"\u223D","⋍":"\u22CD","\":"\\","⧅":"\u29C5","⟈":"\u27C8","•":"\u2022","•":"\u2022","≎":"\u224E","⪮":"\u2AAE","≏":"\u224F","≏":"\u224F","ć":"\u0107","∩":"\u2229","⩄":"\u2A44","⩉":"\u2A49","⩋":"\u2A4B","⩇":"\u2A47","⩀":"\u2A40","∩︀":"\u2229\uFE00","⁁":"\u2041","ˇ":"\u02C7","⩍":"\u2A4D","č":"\u010D","ç":"\xE7","ç":"\xE7","ĉ":"\u0109","⩌":"\u2A4C","⩐":"\u2A50","ċ":"\u010B","¸":"\xB8","¸":"\xB8","⦲":"\u29B2","¢":"\xA2","¢":"\xA2","·":"\xB7","𝔠":"\uD835\uDD20","ч":"\u0447","✓":"\u2713","✓":"\u2713","χ":"\u03C7","○":"\u25CB","⧃":"\u29C3","ˆ":"\u02C6","≗":"\u2257","↺":"\u21BA","↻":"\u21BB","®":"\xAE","Ⓢ":"\u24C8","⊛":"\u229B","⊚":"\u229A","⊝":"\u229D","≗":"\u2257","⨐":"\u2A10","⫯":"\u2AEF","⧂":"\u29C2","♣":"\u2663","♣":"\u2663",":":":","≔":"\u2254","≔":"\u2254",",":",","@":"@","∁":"\u2201","∘":"\u2218","∁":"\u2201","ℂ":"\u2102","≅":"\u2245","⩭":"\u2A6D","∮":"\u222E","𝕔":"\uD835\uDD54","∐":"\u2210","©":"\xA9","©":"\xA9","℗":"\u2117","↵":"\u21B5","✗":"\u2717","𝒸":"\uD835\uDCB8","⫏":"\u2ACF","⫑":"\u2AD1","⫐":"\u2AD0","⫒":"\u2AD2","⋯":"\u22EF","⤸":"\u2938","⤵":"\u2935","⋞":"\u22DE","⋟":"\u22DF","↶":"\u21B6","⤽":"\u293D","∪":"\u222A","⩈":"\u2A48","⩆":"\u2A46","⩊":"\u2A4A","⊍":"\u228D","⩅":"\u2A45","∪︀":"\u222A\uFE00","↷":"\u21B7","⤼":"\u293C","⋞":"\u22DE","⋟":"\u22DF","⋎":"\u22CE","⋏":"\u22CF","¤":"\xA4","¤":"\xA4","↶":"\u21B6","↷":"\u21B7","⋎":"\u22CE","⋏":"\u22CF","∲":"\u2232","∱":"\u2231","⌭":"\u232D","⇓":"\u21D3","⥥":"\u2965","†":"\u2020","ℸ":"\u2138","↓":"\u2193","‐":"\u2010","⊣":"\u22A3","⤏":"\u290F","˝":"\u02DD","ď":"\u010F","д":"\u0434","ⅆ":"\u2146","‡":"\u2021","⇊":"\u21CA","⩷":"\u2A77","°":"\xB0","°":"\xB0","δ":"\u03B4","⦱":"\u29B1","⥿":"\u297F","𝔡":"\uD835\uDD21","⇃":"\u21C3","⇂":"\u21C2","⋄":"\u22C4","⋄":"\u22C4","♦":"\u2666","♦":"\u2666","¨":"\xA8","ϝ":"\u03DD","⋲":"\u22F2","÷":"\xF7","÷":"\xF7","÷":"\xF7","⋇":"\u22C7","⋇":"\u22C7","ђ":"\u0452","⌞":"\u231E","⌍":"\u230D","$":"$","𝕕":"\uD835\uDD55","˙":"\u02D9","≐":"\u2250","≑":"\u2251","∸":"\u2238","∔":"\u2214","⊡":"\u22A1","⌆":"\u2306","↓":"\u2193","⇊":"\u21CA","⇃":"\u21C3","⇂":"\u21C2","⤐":"\u2910","⌟":"\u231F","⌌":"\u230C","𝒹":"\uD835\uDCB9","ѕ":"\u0455","⧶":"\u29F6","đ":"\u0111","⋱":"\u22F1","▿":"\u25BF","▾":"\u25BE","⇵":"\u21F5","⥯":"\u296F","⦦":"\u29A6","џ":"\u045F","⟿":"\u27FF","⩷":"\u2A77","≑":"\u2251","é":"\xE9","é":"\xE9","⩮":"\u2A6E","ě":"\u011B","≖":"\u2256","ê":"\xEA","ê":"\xEA","≕":"\u2255","э":"\u044D","ė":"\u0117","ⅇ":"\u2147","≒":"\u2252","𝔢":"\uD835\uDD22","⪚":"\u2A9A","è":"\xE8","è":"\xE8","⪖":"\u2A96","⪘":"\u2A98","⪙":"\u2A99","⏧":"\u23E7","ℓ":"\u2113","⪕":"\u2A95","⪗":"\u2A97","ē":"\u0113","∅":"\u2205","∅":"\u2205","∅":"\u2205"," ":"\u2004"," ":"\u2005"," ":"\u2003","ŋ":"\u014B"," ":"\u2002","ę":"\u0119","𝕖":"\uD835\uDD56","⋕":"\u22D5","⧣":"\u29E3","⩱":"\u2A71","ε":"\u03B5","ε":"\u03B5","ϵ":"\u03F5","≖":"\u2256","≕":"\u2255","≂":"\u2242","⪖":"\u2A96","⪕":"\u2A95","=":"=","≟":"\u225F","≡":"\u2261","⩸":"\u2A78","⧥":"\u29E5","≓":"\u2253","⥱":"\u2971","ℯ":"\u212F","≐":"\u2250","≂":"\u2242","η":"\u03B7","ð":"\xF0","ð":"\xF0","ë":"\xEB","ë":"\xEB","€":"\u20AC","!":"!","∃":"\u2203","ℰ":"\u2130","ⅇ":"\u2147","≒":"\u2252","ф":"\u0444","♀":"\u2640","ffi":"\uFB03","ff":"\uFB00","ffl":"\uFB04","𝔣":"\uD835\uDD23","fi":"\uFB01","fj":"fj","♭":"\u266D","fl":"\uFB02","▱":"\u25B1","ƒ":"\u0192","𝕗":"\uD835\uDD57","∀":"\u2200","⋔":"\u22D4","⫙":"\u2AD9","⨍":"\u2A0D","½":"\xBD","½":"\xBD","⅓":"\u2153","¼":"\xBC","¼":"\xBC","⅕":"\u2155","⅙":"\u2159","⅛":"\u215B","⅔":"\u2154","⅖":"\u2156","¾":"\xBE","¾":"\xBE","⅗":"\u2157","⅜":"\u215C","⅘":"\u2158","⅚":"\u215A","⅝":"\u215D","⅞":"\u215E","⁄":"\u2044","⌢":"\u2322","𝒻":"\uD835\uDCBB","≧":"\u2267","⪌":"\u2A8C","ǵ":"\u01F5","γ":"\u03B3","ϝ":"\u03DD","⪆":"\u2A86","ğ":"\u011F","ĝ":"\u011D","г":"\u0433","ġ":"\u0121","≥":"\u2265","⋛":"\u22DB","≥":"\u2265","≧":"\u2267","⩾":"\u2A7E","⩾":"\u2A7E","⪩":"\u2AA9","⪀":"\u2A80","⪂":"\u2A82","⪄":"\u2A84","⋛︀":"\u22DB\uFE00","⪔":"\u2A94","𝔤":"\uD835\uDD24","≫":"\u226B","⋙":"\u22D9","ℷ":"\u2137","ѓ":"\u0453","≷":"\u2277","⪒":"\u2A92","⪥":"\u2AA5","⪤":"\u2AA4","≩":"\u2269","⪊":"\u2A8A","⪊":"\u2A8A","⪈":"\u2A88","⪈":"\u2A88","≩":"\u2269","⋧":"\u22E7","𝕘":"\uD835\uDD58","`":"`","ℊ":"\u210A","≳":"\u2273","⪎":"\u2A8E","⪐":"\u2A90",">":">",">":">","⪧":"\u2AA7","⩺":"\u2A7A","⋗":"\u22D7","⦕":"\u2995","⩼":"\u2A7C","⪆":"\u2A86","⥸":"\u2978","⋗":"\u22D7","⋛":"\u22DB","⪌":"\u2A8C","≷":"\u2277","≳":"\u2273","≩︀":"\u2269\uFE00","≩︀":"\u2269\uFE00","⇔":"\u21D4"," ":"\u200A","½":"\xBD","ℋ":"\u210B","ъ":"\u044A","↔":"\u2194","⥈":"\u2948","↭":"\u21AD","ℏ":"\u210F","ĥ":"\u0125","♥":"\u2665","♥":"\u2665","…":"\u2026","⊹":"\u22B9","𝔥":"\uD835\uDD25","⤥":"\u2925","⤦":"\u2926","⇿":"\u21FF","∻":"\u223B","↩":"\u21A9","↪":"\u21AA","𝕙":"\uD835\uDD59","―":"\u2015","𝒽":"\uD835\uDCBD","ℏ":"\u210F","ħ":"\u0127","⁃":"\u2043","‐":"\u2010","í":"\xED","í":"\xED","⁣":"\u2063","î":"\xEE","î":"\xEE","и":"\u0438","е":"\u0435","¡":"\xA1","¡":"\xA1","⇔":"\u21D4","𝔦":"\uD835\uDD26","ì":"\xEC","ì":"\xEC","ⅈ":"\u2148","⨌":"\u2A0C","∭":"\u222D","⧜":"\u29DC","℩":"\u2129","ij":"\u0133","ī":"\u012B","ℑ":"\u2111","ℐ":"\u2110","ℑ":"\u2111","ı":"\u0131","⊷":"\u22B7","Ƶ":"\u01B5","∈":"\u2208","℅":"\u2105","∞":"\u221E","⧝":"\u29DD","ı":"\u0131","∫":"\u222B","⊺":"\u22BA","ℤ":"\u2124","⊺":"\u22BA","⨗":"\u2A17","⨼":"\u2A3C","ё":"\u0451","į":"\u012F","𝕚":"\uD835\uDD5A","ι":"\u03B9","⨼":"\u2A3C","¿":"\xBF","¿":"\xBF","𝒾":"\uD835\uDCBE","∈":"\u2208","⋹":"\u22F9","⋵":"\u22F5","⋴":"\u22F4","⋳":"\u22F3","∈":"\u2208","⁢":"\u2062","ĩ":"\u0129","і":"\u0456","ï":"\xEF","ï":"\xEF","ĵ":"\u0135","й":"\u0439","𝔧":"\uD835\uDD27","ȷ":"\u0237","𝕛":"\uD835\uDD5B","𝒿":"\uD835\uDCBF","ј":"\u0458","є":"\u0454","κ":"\u03BA","ϰ":"\u03F0","ķ":"\u0137","к":"\u043A","𝔨":"\uD835\uDD28","ĸ":"\u0138","х":"\u0445","ќ":"\u045C","𝕜":"\uD835\uDD5C","𝓀":"\uD835\uDCC0","⇚":"\u21DA","⇐":"\u21D0","⤛":"\u291B","⤎":"\u290E","≦":"\u2266","⪋":"\u2A8B","⥢":"\u2962","ĺ":"\u013A","⦴":"\u29B4","ℒ":"\u2112","λ":"\u03BB","⟨":"\u27E8","⦑":"\u2991","⟨":"\u27E8","⪅":"\u2A85","«":"\xAB","«":"\xAB","←":"\u2190","⇤":"\u21E4","⤟":"\u291F","⤝":"\u291D","↩":"\u21A9","↫":"\u21AB","⤹":"\u2939","⥳":"\u2973","↢":"\u21A2","⪫":"\u2AAB","⤙":"\u2919","⪭":"\u2AAD","⪭︀":"\u2AAD\uFE00","⤌":"\u290C","❲":"\u2772","{":"{","[":"[","⦋":"\u298B","⦏":"\u298F","⦍":"\u298D","ľ":"\u013E","ļ":"\u013C","⌈":"\u2308","{":"{","л":"\u043B","⤶":"\u2936","“":"\u201C","„":"\u201E","⥧":"\u2967","⥋":"\u294B","↲":"\u21B2","≤":"\u2264","←":"\u2190","↢":"\u21A2","↽":"\u21BD","↼":"\u21BC","⇇":"\u21C7","↔":"\u2194","⇆":"\u21C6","⇋":"\u21CB","↭":"\u21AD","⋋":"\u22CB","⋚":"\u22DA","≤":"\u2264","≦":"\u2266","⩽":"\u2A7D","⩽":"\u2A7D","⪨":"\u2AA8","⩿":"\u2A7F","⪁":"\u2A81","⪃":"\u2A83","⋚︀":"\u22DA\uFE00","⪓":"\u2A93","⪅":"\u2A85","⋖":"\u22D6","⋚":"\u22DA","⪋":"\u2A8B","≶":"\u2276","≲":"\u2272","⥼":"\u297C","⌊":"\u230A","𝔩":"\uD835\uDD29","≶":"\u2276","⪑":"\u2A91","↽":"\u21BD","↼":"\u21BC","⥪":"\u296A","▄":"\u2584","љ":"\u0459","≪":"\u226A","⇇":"\u21C7","⌞":"\u231E","⥫":"\u296B","◺":"\u25FA","ŀ":"\u0140","⎰":"\u23B0","⎰":"\u23B0","≨":"\u2268","⪉":"\u2A89","⪉":"\u2A89","⪇":"\u2A87","⪇":"\u2A87","≨":"\u2268","⋦":"\u22E6","⟬":"\u27EC","⇽":"\u21FD","⟦":"\u27E6","⟵":"\u27F5","⟷":"\u27F7","⟼":"\u27FC","⟶":"\u27F6","↫":"\u21AB","↬":"\u21AC","⦅":"\u2985","𝕝":"\uD835\uDD5D","⨭":"\u2A2D","⨴":"\u2A34","∗":"\u2217","_":"_","◊":"\u25CA","◊":"\u25CA","⧫":"\u29EB","(":"(","⦓":"\u2993","⇆":"\u21C6","⌟":"\u231F","⇋":"\u21CB","⥭":"\u296D","‎":"\u200E","⊿":"\u22BF","‹":"\u2039","𝓁":"\uD835\uDCC1","↰":"\u21B0","≲":"\u2272","⪍":"\u2A8D","⪏":"\u2A8F","[":"[","‘":"\u2018","‚":"\u201A","ł":"\u0142","<":"<","<":"<","⪦":"\u2AA6","⩹":"\u2A79","⋖":"\u22D6","⋋":"\u22CB","⋉":"\u22C9","⥶":"\u2976","⩻":"\u2A7B","⦖":"\u2996","◃":"\u25C3","⊴":"\u22B4","◂":"\u25C2","⥊":"\u294A","⥦":"\u2966","≨︀":"\u2268\uFE00","≨︀":"\u2268\uFE00","∺":"\u223A","¯":"\xAF","¯":"\xAF","♂":"\u2642","✠":"\u2720","✠":"\u2720","↦":"\u21A6","↦":"\u21A6","↧":"\u21A7","↤":"\u21A4","↥":"\u21A5","▮":"\u25AE","⨩":"\u2A29","м":"\u043C","—":"\u2014","∡":"\u2221","𝔪":"\uD835\uDD2A","℧":"\u2127","µ":"\xB5","µ":"\xB5","∣":"\u2223","*":"*","⫰":"\u2AF0","·":"\xB7","·":"\xB7","−":"\u2212","⊟":"\u229F","∸":"\u2238","⨪":"\u2A2A","⫛":"\u2ADB","…":"\u2026","∓":"\u2213","⊧":"\u22A7","𝕞":"\uD835\uDD5E","∓":"\u2213","𝓂":"\uD835\uDCC2","∾":"\u223E","μ":"\u03BC","⊸":"\u22B8","⊸":"\u22B8","⋙̸":"\u22D9\u0338","≫⃒":"\u226B\u20D2","≫̸":"\u226B\u0338","⇍":"\u21CD","⇎":"\u21CE","⋘̸":"\u22D8\u0338","≪⃒":"\u226A\u20D2","≪̸":"\u226A\u0338","⇏":"\u21CF","⊯":"\u22AF","⊮":"\u22AE","∇":"\u2207","ń":"\u0144","∠⃒":"\u2220\u20D2","≉":"\u2249","⩰̸":"\u2A70\u0338","≋̸":"\u224B\u0338","ʼn":"\u0149","≉":"\u2249","♮":"\u266E","♮":"\u266E","ℕ":"\u2115"," ":"\xA0"," ":"\xA0","≎̸":"\u224E\u0338","≏̸":"\u224F\u0338","⩃":"\u2A43","ň":"\u0148","ņ":"\u0146","≇":"\u2247","⩭̸":"\u2A6D\u0338","⩂":"\u2A42","н":"\u043D","–":"\u2013","≠":"\u2260","⇗":"\u21D7","⤤":"\u2924","↗":"\u2197","↗":"\u2197","≐̸":"\u2250\u0338","≢":"\u2262","⤨":"\u2928","≂̸":"\u2242\u0338","∄":"\u2204","∄":"\u2204","𝔫":"\uD835\uDD2B","≧̸":"\u2267\u0338","≱":"\u2271","≱":"\u2271","≧̸":"\u2267\u0338","⩾̸":"\u2A7E\u0338","⩾̸":"\u2A7E\u0338","≵":"\u2275","≯":"\u226F","≯":"\u226F","⇎":"\u21CE","↮":"\u21AE","⫲":"\u2AF2","∋":"\u220B","⋼":"\u22FC","⋺":"\u22FA","∋":"\u220B","њ":"\u045A","⇍":"\u21CD","≦̸":"\u2266\u0338","↚":"\u219A","‥":"\u2025","≰":"\u2270","↚":"\u219A","↮":"\u21AE","≰":"\u2270","≦̸":"\u2266\u0338","⩽̸":"\u2A7D\u0338","⩽̸":"\u2A7D\u0338","≮":"\u226E","≴":"\u2274","≮":"\u226E","⋪":"\u22EA","⋬":"\u22EC","∤":"\u2224","𝕟":"\uD835\uDD5F","¬":"\xAC","¬":"\xAC","∉":"\u2209","⋹̸":"\u22F9\u0338","⋵̸":"\u22F5\u0338","∉":"\u2209","⋷":"\u22F7","⋶":"\u22F6","∌":"\u220C","∌":"\u220C","⋾":"\u22FE","⋽":"\u22FD","∦":"\u2226","∦":"\u2226","⫽⃥":"\u2AFD\u20E5","∂̸":"\u2202\u0338","⨔":"\u2A14","⊀":"\u2280","⋠":"\u22E0","⪯̸":"\u2AAF\u0338","⊀":"\u2280","⪯̸":"\u2AAF\u0338","⇏":"\u21CF","↛":"\u219B","⤳̸":"\u2933\u0338","↝̸":"\u219D\u0338","↛":"\u219B","⋫":"\u22EB","⋭":"\u22ED","⊁":"\u2281","⋡":"\u22E1","⪰̸":"\u2AB0\u0338","𝓃":"\uD835\uDCC3","∤":"\u2224","∦":"\u2226","≁":"\u2241","≄":"\u2244","≄":"\u2244","∤":"\u2224","∦":"\u2226","⋢":"\u22E2","⋣":"\u22E3","⊄":"\u2284","⫅̸":"\u2AC5\u0338","⊈":"\u2288","⊂⃒":"\u2282\u20D2","⊈":"\u2288","⫅̸":"\u2AC5\u0338","⊁":"\u2281","⪰̸":"\u2AB0\u0338","⊅":"\u2285","⫆̸":"\u2AC6\u0338","⊉":"\u2289","⊃⃒":"\u2283\u20D2","⊉":"\u2289","⫆̸":"\u2AC6\u0338","≹":"\u2279","ñ":"\xF1","ñ":"\xF1","≸":"\u2278","⋪":"\u22EA","⋬":"\u22EC","⋫":"\u22EB","⋭":"\u22ED","ν":"\u03BD","#":"#","№":"\u2116"," ":"\u2007","⊭":"\u22AD","⤄":"\u2904","≍⃒":"\u224D\u20D2","⊬":"\u22AC","≥⃒":"\u2265\u20D2",">⃒":">\u20D2","⧞":"\u29DE","⤂":"\u2902","≤⃒":"\u2264\u20D2","<⃒":"<\u20D2","⊴⃒":"\u22B4\u20D2","⤃":"\u2903","⊵⃒":"\u22B5\u20D2","∼⃒":"\u223C\u20D2","⇖":"\u21D6","⤣":"\u2923","↖":"\u2196","↖":"\u2196","⤧":"\u2927","Ⓢ":"\u24C8","ó":"\xF3","ó":"\xF3","⊛":"\u229B","⊚":"\u229A","ô":"\xF4","ô":"\xF4","о":"\u043E","⊝":"\u229D","ő":"\u0151","⨸":"\u2A38","⊙":"\u2299","⦼":"\u29BC","œ":"\u0153","⦿":"\u29BF","𝔬":"\uD835\uDD2C","˛":"\u02DB","ò":"\xF2","ò":"\xF2","⧁":"\u29C1","⦵":"\u29B5","Ω":"\u03A9","∮":"\u222E","↺":"\u21BA","⦾":"\u29BE","⦻":"\u29BB","‾":"\u203E","⧀":"\u29C0","ō":"\u014D","ω":"\u03C9","ο":"\u03BF","⦶":"\u29B6","⊖":"\u2296","𝕠":"\uD835\uDD60","⦷":"\u29B7","⦹":"\u29B9","⊕":"\u2295","∨":"\u2228","↻":"\u21BB","⩝":"\u2A5D","ℴ":"\u2134","ℴ":"\u2134","ª":"\xAA","ª":"\xAA","º":"\xBA","º":"\xBA","⊶":"\u22B6","⩖":"\u2A56","⩗":"\u2A57","⩛":"\u2A5B","ℴ":"\u2134","ø":"\xF8","ø":"\xF8","⊘":"\u2298","õ":"\xF5","õ":"\xF5","⊗":"\u2297","⨶":"\u2A36","ö":"\xF6","ö":"\xF6","⌽":"\u233D","∥":"\u2225","¶":"\xB6","¶":"\xB6","∥":"\u2225","⫳":"\u2AF3","⫽":"\u2AFD","∂":"\u2202","п":"\u043F","%":"%",".":".","‰":"\u2030","⊥":"\u22A5","‱":"\u2031","𝔭":"\uD835\uDD2D","φ":"\u03C6","ϕ":"\u03D5","ℳ":"\u2133","☎":"\u260E","π":"\u03C0","⋔":"\u22D4","ϖ":"\u03D6","ℏ":"\u210F","ℎ":"\u210E","ℏ":"\u210F","+":"+","⨣":"\u2A23","⊞":"\u229E","⨢":"\u2A22","∔":"\u2214","⨥":"\u2A25","⩲":"\u2A72","±":"\xB1","±":"\xB1","⨦":"\u2A26","⨧":"\u2A27","±":"\xB1","⨕":"\u2A15","𝕡":"\uD835\uDD61","£":"\xA3","£":"\xA3","≺":"\u227A","⪳":"\u2AB3","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","≺":"\u227A","⪷":"\u2AB7","≼":"\u227C","⪯":"\u2AAF","⪹":"\u2AB9","⪵":"\u2AB5","⋨":"\u22E8","≾":"\u227E","′":"\u2032","ℙ":"\u2119","⪵":"\u2AB5","⪹":"\u2AB9","⋨":"\u22E8","∏":"\u220F","⌮":"\u232E","⌒":"\u2312","⌓":"\u2313","∝":"\u221D","∝":"\u221D","≾":"\u227E","⊰":"\u22B0","𝓅":"\uD835\uDCC5","ψ":"\u03C8"," ":"\u2008","𝔮":"\uD835\uDD2E","⨌":"\u2A0C","𝕢":"\uD835\uDD62","⁗":"\u2057","𝓆":"\uD835\uDCC6","ℍ":"\u210D","⨖":"\u2A16","?":"?","≟":"\u225F",""":'"',""":'"',"⇛":"\u21DB","⇒":"\u21D2","⤜":"\u291C","⤏":"\u290F","⥤":"\u2964","∽̱":"\u223D\u0331","ŕ":"\u0155","√":"\u221A","⦳":"\u29B3","⟩":"\u27E9","⦒":"\u2992","⦥":"\u29A5","⟩":"\u27E9","»":"\xBB","»":"\xBB","→":"\u2192","⥵":"\u2975","⇥":"\u21E5","⤠":"\u2920","⤳":"\u2933","⤞":"\u291E","↪":"\u21AA","↬":"\u21AC","⥅":"\u2945","⥴":"\u2974","↣":"\u21A3","↝":"\u219D","⤚":"\u291A","∶":"\u2236","ℚ":"\u211A","⤍":"\u290D","❳":"\u2773","}":"}","]":"]","⦌":"\u298C","⦎":"\u298E","⦐":"\u2990","ř":"\u0159","ŗ":"\u0157","⌉":"\u2309","}":"}","р":"\u0440","⤷":"\u2937","⥩":"\u2969","”":"\u201D","”":"\u201D","↳":"\u21B3","ℜ":"\u211C","ℛ":"\u211B","ℜ":"\u211C","ℝ":"\u211D","▭":"\u25AD","®":"\xAE","®":"\xAE","⥽":"\u297D","⌋":"\u230B","𝔯":"\uD835\uDD2F","⇁":"\u21C1","⇀":"\u21C0","⥬":"\u296C","ρ":"\u03C1","ϱ":"\u03F1","→":"\u2192","↣":"\u21A3","⇁":"\u21C1","⇀":"\u21C0","⇄":"\u21C4","⇌":"\u21CC","⇉":"\u21C9","↝":"\u219D","⋌":"\u22CC","˚":"\u02DA","≓":"\u2253","⇄":"\u21C4","⇌":"\u21CC","‏":"\u200F","⎱":"\u23B1","⎱":"\u23B1","⫮":"\u2AEE","⟭":"\u27ED","⇾":"\u21FE","⟧":"\u27E7","⦆":"\u2986","𝕣":"\uD835\uDD63","⨮":"\u2A2E","⨵":"\u2A35",")":")","⦔":"\u2994","⨒":"\u2A12","⇉":"\u21C9","›":"\u203A","𝓇":"\uD835\uDCC7","↱":"\u21B1","]":"]","’":"\u2019","’":"\u2019","⋌":"\u22CC","⋊":"\u22CA","▹":"\u25B9","⊵":"\u22B5","▸":"\u25B8","⧎":"\u29CE","⥨":"\u2968","℞":"\u211E","ś":"\u015B","‚":"\u201A","≻":"\u227B","⪴":"\u2AB4","⪸":"\u2AB8","š":"\u0161","≽":"\u227D","⪰":"\u2AB0","ş":"\u015F","ŝ":"\u015D","⪶":"\u2AB6","⪺":"\u2ABA","⋩":"\u22E9","⨓":"\u2A13","≿":"\u227F","с":"\u0441","⋅":"\u22C5","⊡":"\u22A1","⩦":"\u2A66","⇘":"\u21D8","⤥":"\u2925","↘":"\u2198","↘":"\u2198","§":"\xA7","§":"\xA7",";":";","⤩":"\u2929","∖":"\u2216","∖":"\u2216","✶":"\u2736","𝔰":"\uD835\uDD30","⌢":"\u2322","♯":"\u266F","щ":"\u0449","ш":"\u0448","∣":"\u2223","∥":"\u2225","­":"\xAD","­":"\xAD","σ":"\u03C3","ς":"\u03C2","ς":"\u03C2","∼":"\u223C","⩪":"\u2A6A","≃":"\u2243","≃":"\u2243","⪞":"\u2A9E","⪠":"\u2AA0","⪝":"\u2A9D","⪟":"\u2A9F","≆":"\u2246","⨤":"\u2A24","⥲":"\u2972","←":"\u2190","∖":"\u2216","⨳":"\u2A33","⧤":"\u29E4","∣":"\u2223","⌣":"\u2323","⪪":"\u2AAA","⪬":"\u2AAC","⪬︀":"\u2AAC\uFE00","ь":"\u044C","/":"/","⧄":"\u29C4","⌿":"\u233F","𝕤":"\uD835\uDD64","♠":"\u2660","♠":"\u2660","∥":"\u2225","⊓":"\u2293","⊓︀":"\u2293\uFE00","⊔":"\u2294","⊔︀":"\u2294\uFE00","⊏":"\u228F","⊑":"\u2291","⊏":"\u228F","⊑":"\u2291","⊐":"\u2290","⊒":"\u2292","⊐":"\u2290","⊒":"\u2292","□":"\u25A1","□":"\u25A1","▪":"\u25AA","▪":"\u25AA","→":"\u2192","𝓈":"\uD835\uDCC8","∖":"\u2216","⌣":"\u2323","⋆":"\u22C6","☆":"\u2606","★":"\u2605","ϵ":"\u03F5","ϕ":"\u03D5","¯":"\xAF","⊂":"\u2282","⫅":"\u2AC5","⪽":"\u2ABD","⊆":"\u2286","⫃":"\u2AC3","⫁":"\u2AC1","⫋":"\u2ACB","⊊":"\u228A","⪿":"\u2ABF","⥹":"\u2979","⊂":"\u2282","⊆":"\u2286","⫅":"\u2AC5","⊊":"\u228A","⫋":"\u2ACB","⫇":"\u2AC7","⫕":"\u2AD5","⫓":"\u2AD3","≻":"\u227B","⪸":"\u2AB8","≽":"\u227D","⪰":"\u2AB0","⪺":"\u2ABA","⪶":"\u2AB6","⋩":"\u22E9","≿":"\u227F","∑":"\u2211","♪":"\u266A","¹":"\xB9","¹":"\xB9","²":"\xB2","²":"\xB2","³":"\xB3","³":"\xB3","⊃":"\u2283","⫆":"\u2AC6","⪾":"\u2ABE","⫘":"\u2AD8","⊇":"\u2287","⫄":"\u2AC4","⟉":"\u27C9","⫗":"\u2AD7","⥻":"\u297B","⫂":"\u2AC2","⫌":"\u2ACC","⊋":"\u228B","⫀":"\u2AC0","⊃":"\u2283","⊇":"\u2287","⫆":"\u2AC6","⊋":"\u228B","⫌":"\u2ACC","⫈":"\u2AC8","⫔":"\u2AD4","⫖":"\u2AD6","⇙":"\u21D9","⤦":"\u2926","↙":"\u2199","↙":"\u2199","⤪":"\u292A","ß":"\xDF","ß":"\xDF","⌖":"\u2316","τ":"\u03C4","⎴":"\u23B4","ť":"\u0165","ţ":"\u0163","т":"\u0442","⃛":"\u20DB","⌕":"\u2315","𝔱":"\uD835\uDD31","∴":"\u2234","∴":"\u2234","θ":"\u03B8","ϑ":"\u03D1","ϑ":"\u03D1","≈":"\u2248","∼":"\u223C"," ":"\u2009","≈":"\u2248","∼":"\u223C","þ":"\xFE","þ":"\xFE","˜":"\u02DC","×":"\xD7","×":"\xD7","⊠":"\u22A0","⨱":"\u2A31","⨰":"\u2A30","∭":"\u222D","⤨":"\u2928","⊤":"\u22A4","⌶":"\u2336","⫱":"\u2AF1","𝕥":"\uD835\uDD65","⫚":"\u2ADA","⤩":"\u2929","‴":"\u2034","™":"\u2122","▵":"\u25B5","▿":"\u25BF","◃":"\u25C3","⊴":"\u22B4","≜":"\u225C","▹":"\u25B9","⊵":"\u22B5","◬":"\u25EC","≜":"\u225C","⨺":"\u2A3A","⨹":"\u2A39","⧍":"\u29CD","⨻":"\u2A3B","⏢":"\u23E2","𝓉":"\uD835\uDCC9","ц":"\u0446","ћ":"\u045B","ŧ":"\u0167","≬":"\u226C","↞":"\u219E","↠":"\u21A0","⇑":"\u21D1","⥣":"\u2963","ú":"\xFA","ú":"\xFA","↑":"\u2191","ў":"\u045E","ŭ":"\u016D","û":"\xFB","û":"\xFB","у":"\u0443","⇅":"\u21C5","ű":"\u0171","⥮":"\u296E","⥾":"\u297E","𝔲":"\uD835\uDD32","ù":"\xF9","ù":"\xF9","↿":"\u21BF","↾":"\u21BE","▀":"\u2580","⌜":"\u231C","⌜":"\u231C","⌏":"\u230F","◸":"\u25F8","ū":"\u016B","¨":"\xA8","¨":"\xA8","ų":"\u0173","𝕦":"\uD835\uDD66","↑":"\u2191","↕":"\u2195","↿":"\u21BF","↾":"\u21BE","⊎":"\u228E","υ":"\u03C5","ϒ":"\u03D2","υ":"\u03C5","⇈":"\u21C8","⌝":"\u231D","⌝":"\u231D","⌎":"\u230E","ů":"\u016F","◹":"\u25F9","𝓊":"\uD835\uDCCA","⋰":"\u22F0","ũ":"\u0169","▵":"\u25B5","▴":"\u25B4","⇈":"\u21C8","ü":"\xFC","ü":"\xFC","⦧":"\u29A7","⇕":"\u21D5","⫨":"\u2AE8","⫩":"\u2AE9","⊨":"\u22A8","⦜":"\u299C","ϵ":"\u03F5","ϰ":"\u03F0","∅":"\u2205","ϕ":"\u03D5","ϖ":"\u03D6","∝":"\u221D","↕":"\u2195","ϱ":"\u03F1","ς":"\u03C2","⊊︀":"\u228A\uFE00","⫋︀":"\u2ACB\uFE00","⊋︀":"\u228B\uFE00","⫌︀":"\u2ACC\uFE00","ϑ":"\u03D1","⊲":"\u22B2","⊳":"\u22B3","в":"\u0432","⊢":"\u22A2","∨":"\u2228","⊻":"\u22BB","≚":"\u225A","⋮":"\u22EE","|":"|","|":"|","𝔳":"\uD835\uDD33","⊲":"\u22B2","⊂⃒":"\u2282\u20D2","⊃⃒":"\u2283\u20D2","𝕧":"\uD835\uDD67","∝":"\u221D","⊳":"\u22B3","𝓋":"\uD835\uDCCB","⫋︀":"\u2ACB\uFE00","⊊︀":"\u228A\uFE00","⫌︀":"\u2ACC\uFE00","⊋︀":"\u228B\uFE00","⦚":"\u299A","ŵ":"\u0175","⩟":"\u2A5F","∧":"\u2227","≙":"\u2259","℘":"\u2118","𝔴":"\uD835\uDD34","𝕨":"\uD835\uDD68","℘":"\u2118","≀":"\u2240","≀":"\u2240","𝓌":"\uD835\uDCCC","⋂":"\u22C2","◯":"\u25EF","⋃":"\u22C3","▽":"\u25BD","𝔵":"\uD835\uDD35","⟺":"\u27FA","⟷":"\u27F7","ξ":"\u03BE","⟸":"\u27F8","⟵":"\u27F5","⟼":"\u27FC","⋻":"\u22FB","⨀":"\u2A00","𝕩":"\uD835\uDD69","⨁":"\u2A01","⨂":"\u2A02","⟹":"\u27F9","⟶":"\u27F6","𝓍":"\uD835\uDCCD","⨆":"\u2A06","⨄":"\u2A04","△":"\u25B3","⋁":"\u22C1","⋀":"\u22C0","ý":"\xFD","ý":"\xFD","я":"\u044F","ŷ":"\u0177","ы":"\u044B","¥":"\xA5","¥":"\xA5","𝔶":"\uD835\uDD36","ї":"\u0457","𝕪":"\uD835\uDD6A","𝓎":"\uD835\uDCCE","ю":"\u044E","ÿ":"\xFF","ÿ":"\xFF","ź":"\u017A","ž":"\u017E","з":"\u0437","ż":"\u017C","ℨ":"\u2128","ζ":"\u03B6","𝔷":"\uD835\uDD37","ж":"\u0436","⇝":"\u21DD","𝕫":"\uD835\uDD6B","𝓏":"\uD835\uDCCF","‍":"\u200D","‌":"\u200C"},c2=yE;function _E(u){return u.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(D,A)=>{if(typeof c2[D]==="string")return c2[D];if(A.charAt(0)!=="#"||D.charAt(D.length-1)!==";")return D;let B;if(A.charAt(1)==="x")B=parseInt(A.substr(2),16);else B=parseInt(A.substr(1),10);let F="";if(B>=55296&&B<=57343||B>1114111)return"\uFFFD";if(B>65535)B-=65536,F+=String.fromCharCode(B>>>10&1023|55296),B=56320|B&1023;return F+=String.fromCharCode(B),F})}function A2(u){return u.trim().replace(/[<>"'?&]/g,(D)=>{let A=D.charCodeAt(0).toString(16);if(A.length<2)A="0"+A;return"&#x"+A.toUpperCase()+";"})}function d0(u){return"<div>"+A2(u).replace(/\n/g,"<br />")+"</div>"}function r0(u){return u=u.replace(/\r?\n/g,"\x01").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,`
|
|
10
10
|
`).replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,`
|
|
11
11
|
|
|
12
12
|
`).replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi," ").replace(/^.*<body\b[^>]*>/i,"").replace(/^.*<\/head\b[^>]*>/i,"").replace(/^.*<\!doctype\b[^>]*>/i,"").replace(/<\/body\b[^>]*>.*$/i,"").replace(/<\/html\b[^>]*>.*$/i,"").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi," ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,"").replace(/<li\b[^>]*>[\n\u0001\s]*/gi,"* ").replace(/<hr\b[^>]*>/g,`
|
|
@@ -16,19 +16,18 @@ Headers: ${JSON.stringify(A)}`);this.code=u,this.body=D,this.headers={},A.forEac
|
|
|
16
16
|
|
|
17
17
|
`).replace(/^\n+/,`
|
|
18
18
|
`).replace(/\n+$/,`
|
|
19
|
-
`),u=
|
|
20
|
-
`}return G}function
|
|
21
|
-
${
|
|
19
|
+
`),u=_E(u),u}function c0(u){return[].concat(u.name||[]).concat(u.name?`<${u.address}>`:u.address).join(" ")}function i2(u){let D=[],A=(B,F)=>{if(F)D.push(", ");if(B.group){let G=`${B.name}:`,w=";";D.push(G),B.group.forEach(A),D.push(w)}else D.push(c0(B))};return u.forEach(A),D.join("")}function i0(u){return`<a href="mailto:${A2(u.address)}" class="postal-email-address">${A2(u.name||`<${u.address}>`)}</a>`}function a2(u){let D=[],A=(B,F)=>{if(F)D.push('<span class="postal-email-address-separator">, </span>');if(B.group){let G=`<span class="postal-email-address-group">${A2(B.name)}:</span>`,w='<span class="postal-email-address-group">;</span>';D.push(G),B.group.forEach(A),D.push(w)}else D.push(i0(B))};return u.forEach(A),D.join(" ")}function mE(u,D,A){u=(u||"").toString(),D=D||76;let B=0,F=u.length,G="",w,N;while(B<F){if(w=u.substr(B,D),w.length<D){G+=w;break}if(N=w.match(/^[^\n\r]*(\r?\n|\r)/)){w=N[0],G+=w,B+=w.length;continue}else if((N=w.match(/(\s+)[^\s]*$/))&&N[0].length-(A?(N[1]||"").length:0)<w.length)w=w.substr(0,w.length-(N[0].length-(A?(N[1]||"").length:0)));else if(N=u.substr(B+w.length).match(/^[^\s]+(\s*)/))w=w+N[0].substr(0,N[0].length-(!A?(N[1]||"").length:0));if(G+=w,B+=w.length,B<F)G+=`\r
|
|
20
|
+
`}return G}function p2(u){let D=[];if(u.from)D.push({key:"From",val:c0(u.from)});if(u.subject)D.push({key:"Subject",val:u.subject});if(u.date){let w={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},N=typeof Intl>"u"?u.date:new Intl.DateTimeFormat("default",w).format(new Date(u.date));D.push({key:"Date",val:N})}if(u.to&&u.to.length)D.push({key:"To",val:i2(u.to)});if(u.cc&&u.cc.length)D.push({key:"Cc",val:i2(u.cc)});if(u.bcc&&u.bcc.length)D.push({key:"Bcc",val:i2(u.bcc)});let A=D.map((w)=>w.key.length).reduce((w,N)=>{return N>w?N:w},0);D=D.flatMap((w)=>{let N=A-w.key.length,J=`${w.key}: ${" ".repeat(N)}`,$=`${" ".repeat(w.key.length+1)} ${" ".repeat(N)}`;return mE(w.val,80,!0).split(/\r?\n/).map((z)=>z.trim()).map((z,Z)=>`${Z?$:J}${z}`)});let B=D.map((w)=>w.length).reduce((w,N)=>{return N>w?N:w},0),F="-".repeat(B);return`
|
|
21
|
+
${F}
|
|
22
22
|
${D.join(`
|
|
23
23
|
`)}
|
|
24
|
-
${
|
|
25
|
-
`}function
|
|
26
|
-
<div class="postal-email-header-row">`)}${D.length?"</div>":""}</div>`}function
|
|
24
|
+
${F}
|
|
25
|
+
`}function n2(u){let D=[];if(u.from)D.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${i0(u.from)}</div>`);if(u.subject)D.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${A2(u.subject)}</div>`);if(u.date){let B={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},F=typeof Intl>"u"?u.date:new Intl.DateTimeFormat("default",B).format(new Date(u.date));D.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${A2(u.date)}">${A2(F)}</div>`)}if(u.to&&u.to.length)D.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${a2(u.to)}</div>`);if(u.cc&&u.cc.length)D.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${a2(u.cc)}</div>`);if(u.bcc&&u.bcc.length)D.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${a2(u.bcc)}</div>`);return`<div class="postal-email-header">${D.length?'<div class="postal-email-header-row">':""}${D.join(`</div>
|
|
26
|
+
<div class="postal-email-header-row">`)}${D.length?"</div>":""}</div>`}function gE(u,D){let A=!1,B="text",F,G=[],w={address:[],comment:[],group:[],text:[],textWasQuoted:[]},N,J,$=!1;for(N=0,J=u.length;N<J;N++){let X=u[N],z=N?u[N-1]:null;if(X.type==="operator")switch(X.value){case"<":B="address",$=!1;break;case"(":B="comment",$=!1;break;case":":B="group",A=!0,$=!1;break;case'"':$=!$,B="text";break;default:B="text",$=!1;break}else if(X.value){if(B==="address")X.value=X.value.replace(/^[^<]*<\s*/,"");if(z&&z.noBreak&&w[B].length){if(w[B][w[B].length-1]+=X.value,B==="text"&&$)w.textWasQuoted[w.textWasQuoted.length-1]=!0}else if(w[B].push(X.value),B==="text")w.textWasQuoted.push($)}}if(!w.text.length&&w.comment.length)w.text=w.comment,w.comment=[];if(A){w.text=w.text.join(" ");let X=[];if(w.group.length)s2(w.group.join(","),{_depth:D+1}).forEach((Z)=>{if(Z.group)X=X.concat(Z.group);else X.push(Z)});G.push({name:D2(w.text||F&&F.name),group:X})}else{if(!w.address.length&&w.text.length){for(N=w.text.length-1;N>=0;N--)if(!w.textWasQuoted[N]&&w.text[N].match(/^[^@\s]+@[^@\s]+$/)){w.address=w.text.splice(N,1),w.textWasQuoted.splice(N,1);break}let X=function(z){if(!w.address.length)return w.address=[z.trim()]," ";else return z};if(!w.address.length){for(N=w.text.length-1;N>=0;N--)if(!w.textWasQuoted[N]){if(w.text[N]=w.text[N].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,X).trim(),w.address.length)break}}}if(!w.text.length&&w.comment.length)w.text=w.comment,w.comment=[];if(w.address.length>1)w.text=w.text.concat(w.address.splice(1));if(w.text=w.text.join(" "),w.address=w.address.join(" "),!w.address&&/^=\?[^=]+?=$/.test(w.text.trim())){let X=D2(w.text);if(/<[^<>]+@[^<>]+>/.test(X)){let z=s2(X);if(z&&z.length)return z}return[{address:"",name:X}]}if(F={address:w.address||w.text||"",name:D2(w.text||w.address||"")},F.address===F.name)if((F.address||"").match(/@/))F.name="";else F.address="";G.push(F)}return G}class a0{constructor(u){this.str=(u||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let u=[];for(let D=0,A=this.str.length;D<A;D++){let B=this.str.charAt(D),F=D<A-1?this.str.charAt(D+1):null;this.checkChar(B,F)}return this.list.forEach((D)=>{if(D.value=(D.value||"").toString().trim(),D.value)u.push(D)}),u}checkChar(u,D){if(this.escaped);else if(u===this.operatorExpecting){if(this.node={type:"operator",value:u},D&&![" ","\t","\r",`
|
|
27
27
|
`,",",";"].includes(D))this.node.noBreak=!0;this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;return}else if(!this.operatorExpecting&&u in this.operators){this.node={type:"operator",value:u},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[u],this.escaped=!1;return}else if(this.operatorExpecting==='"'&&u==="\\"){this.escaped=!0;return}if(!this.node)this.node={type:"text",value:""},this.list.push(this.node);if(u===`
|
|
28
|
-
`)u=" ";if(u.charCodeAt(0)>=33||[" ","\t"].includes(u))this.node.value+=u;this.escaped=!1}}var
|
|
28
|
+
`)u=" ";if(u.charCodeAt(0)>=33||[" ","\t"].includes(u))this.node.value+=u;this.escaped=!1}}var bE=50;function s2(u,D){D=D||{};let A=D._depth||0;if(A>bE)return[];let F=new a0(u).tokenize(),G=[],w=[],N=[];if(F.forEach((J)=>{if(J.type==="operator"&&(J.value===","||J.value===";")){if(w.length)G.push(w);w=[]}else w.push(J)}),w.length)G.push(w);if(G.forEach((J)=>{if(J=gE(J,A),J.length)N=N.concat(J)}),D.flatten){let J=[],$=(X)=>{X.forEach((z)=>{if(z.group)return $(z.group);else J.push(z)})};return $(N),J}return N}var S2=s2;function p0(u){var D="",A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=new Uint8Array(u),F=B.byteLength,G=F%3,w=F-G,N,J,$,X,z;for(var Z=0;Z<w;Z=Z+3)z=B[Z]<<16|B[Z+1]<<8|B[Z+2],N=(z&16515072)>>18,J=(z&258048)>>12,$=(z&4032)>>6,X=z&63,D+=A[N]+A[J]+A[$]+A[X];if(G==1)z=B[w],N=(z&252)>>2,J=(z&3)<<4,D+=A[N]+A[J]+"==";else if(G==2)z=B[w]<<8|B[w+1],N=(z&64512)>>10,J=(z&1008)>>4,$=(z&15)<<2,D+=A[N]+A[J]+A[$]+"=";return D}var jE=256,fE=2097152;function o2(u){return u.replace(/-(.)/g,(D,A)=>A.toUpperCase())}class F2{static parse(u,D){return new F2(D).parse(u)}constructor(u){this.options=u||{},this.mimeOptions={maxNestingDepth:this.options.maxNestingDepth||jE,maxHeadersSize:this.options.maxHeadersSize||fE},this.root=this.currentNode=new Q2({postalMime:this,...this.mimeOptions}),this.boundaries=[],this.textContent={},this.attachments=[],this.attachmentEncoding=(this.options.attachmentEncoding||"").toString().replace(/[-_\s]/g,"").trim().toLowerCase()||"arraybuffer",this.started=!1}async finalize(){await this.root.finalize()}async processLine(u,D){let A=this.boundaries;if(A.length&&u.length>2&&u[0]===45&&u[1]===45)for(let B=A.length-1;B>=0;B--){let F=A[B];if(u.length<F.value.length+2)continue;let G=!0;for(let $=0;$<F.value.length;$++)if(u[$+2]!==F.value[$]){G=!1;break}if(!G)continue;let w=F.value.length+2,N=!1;if(u.length>=F.value.length+4&&u[F.value.length+2]===45&&u[F.value.length+3]===45)N=!0,w=F.value.length+4;let J=!0;for(let $=w;$<u.length;$++)if(u[$]!==32&&u[$]!==9){J=!1;break}if(!J)continue;if(N)await F.node.finalize(),this.currentNode=F.node.parentNode||this.root;else await F.node.finalizeChildNodes(),this.currentNode=new Q2({postalMime:this,parentNode:F.node,parentMultipartType:F.node.contentType.multipart,...this.mimeOptions});if(D)return this.finalize();return}if(this.currentNode.feed(u),D)return this.finalize()}readLine(){let u=this.readPos,D=this.readPos;while(this.readPos<this.av.length){let A=this.av[this.readPos++];if(A!==13&&A!==10)D=this.readPos;if(A===10)return{bytes:new Uint8Array(this.buf,u,D-u),done:this.readPos>=this.av.length}}return{bytes:new Uint8Array(this.buf,u,D-u),done:this.readPos>=this.av.length}}async processNodeTree(){let u={},D=new Set,A=this.textMap=new Map,B=this.forceRfc822Attachments(),F=async(G,w,N)=>{if(w=w||!1,N=N||!1,!G.contentType.multipart){if(this.isInlineMessageRfc822(G)&&!B){let J=new F2;if(G.subMessage=await J.parse(G.content),!A.has(G))A.set(G,{});let $=A.get(G);if(G.subMessage.text||!G.subMessage.html)$.plain=$.plain||[],$.plain.push({type:"subMessage",value:G.subMessage}),D.add("plain");if(G.subMessage.html)$.html=$.html||[],$.html.push({type:"subMessage",value:G.subMessage}),D.add("html");if(J.textMap)J.textMap.forEach((X,z)=>{A.set(z,X)});for(let X of G.subMessage.attachments||[])this.attachments.push(X)}else if(this.isInlineTextNode(G)){let J=G.contentType.parsed.value.substr(G.contentType.parsed.value.indexOf("/")+1),$=w||G;if(!A.has($))A.set($,{});let X=A.get($);X[J]=X[J]||[],X[J].push({type:"text",value:G.getTextContent()}),D.add(J)}else if(G.content){let J=G.contentDisposition?.parsed?.params?.filename||G.contentType.parsed.params.name||null,$={filename:J?D2(J):null,mimeType:G.contentType.parsed.value,disposition:G.contentDisposition?.parsed?.value||null};if(N&&G.contentId)$.related=!0;if(G.contentDescription)$.description=G.contentDescription;if(G.contentId)$.contentId=G.contentId;switch(G.contentType.parsed.value){case"text/calendar":case"application/ics":{if(G.contentType.parsed.params.method)$.method=G.contentType.parsed.params.method.toString().toUpperCase().trim();let X=G.getTextContent().replace(/\r?\n/g,`
|
|
29
29
|
`).replace(/\n*$/,`
|
|
30
|
-
`);$.content=s.encode(X);break}default:$.content=G.content}this.attachments.push($)}}else if(G.contentType.multipart==="alternative")w=G;else if(G.contentType.multipart==="related")N=G;for(let J of G.childNodes)await
|
|
31
|
-
`)}),this.textContent=u}isInlineTextNode(u){if(u.contentDisposition?.parsed?.value==="attachment")return!1;switch(u.contentType.parsed?.value){case"text/html":case"text/plain":return!0;case"text/calendar":case"text/csv":default:return!1}}isInlineMessageRfc822(u){if(u.contentType.parsed?.value!=="message/rfc822")return!1;return(u.contentDisposition?.parsed?.value||(this.options.rfc822Attachments?"attachment":"inline"))==="inline"}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let u=!1,D=(A)=>{if(!A.contentType.multipart){if(A.contentType.parsed&&["message/delivery-status","message/feedback-report"].includes(A.contentType.parsed.value))u=!0}for(let F of A.childNodes)D(F)};return D(this.root),u}async resolveStream(u){let D=0,A=[],F=u.getReader();while(!0){let{done:w,value:N}=await F.read();if(w)break;A.push(N),D+=N.length}let B=new Uint8Array(D),G=0;for(let w of A)B.set(w,G),G+=w.length;return B}async parse(u){if(this.started)throw Error("Can not reuse parser, create a new PostalMime object");if(this.started=!0,u&&typeof u.getReader==="function")u=await this.resolveStream(u);if(u=u||new ArrayBuffer(0),typeof u==="string")u=s.encode(u);if(u instanceof Blob||Object.prototype.toString.call(u)==="[object Blob]")u=await o(u);if(u.buffer instanceof ArrayBuffer)u=new Uint8Array(u).buffer;this.buf=u,this.av=new Uint8Array(u),this.readPos=0;while(this.readPos<this.av.length){let F=this.readLine();await this.processLine(F.bytes,F.done)}await this.processNodeTree();let D={headers:this.root.headers.map((F)=>({key:F.key,originalKey:F.originalKey,value:F.value})).reverse()};for(let F of["from","sender"]){let B=this.root.headers.find((G)=>G.key===F);if(B&&B.value){let G=S2(B.value);if(G&&G.length)D[F]=G[0]}}for(let F of["delivered-to","return-path"]){let B=this.root.headers.find((G)=>G.key===F);if(B&&B.value){let G=S2(B.value);if(G&&G.length&&G[0].address){let w=t2(F);D[w]=G[0].address}}}for(let F of["to","cc","bcc","reply-to"]){let B=this.root.headers.filter((w)=>w.key===F),G=[];if(B.filter((w)=>w&&w.value).map((w)=>S2(w.value)).forEach((w)=>G=G.concat(w||[])),G&&G.length){let w=t2(F);D[w]=G}}for(let F of["subject","message-id","in-reply-to","references"]){let B=this.root.headers.find((G)=>G.key===F);if(B&&B.value){let G=t2(F);D[G]=D2(B.value)}}let A=this.root.headers.find((F)=>F.key==="date");if(A){let F=new Date(A.value);if(F.toString()==="Invalid Date")F=A.value;else F=F.toISOString();D.date=F}if(this.textContent?.html)D.html=this.textContent.html;if(this.textContent?.plain)D.text=this.textContent.plain;switch(D.attachments=this.attachments,D.headerLines=(this.root.rawHeaderLines||[]).slice().reverse(),this.attachmentEncoding){case"arraybuffer":break;case"base64":for(let B of D.attachments||[])if(B?.content)B.content=s0(B.content),B.encoding="base64";break;case"utf8":let F=new TextDecoder("utf8");for(let B of D.attachments||[])if(B?.content)B.content=F.decode(B.content),B.encoding="utf8";break;default:throw Error("Unknown attachment encoding")}return D}}var SE=nJ(HE(),1),sJ="6.12.3";function x(u){let D=new URLSearchParams;if(u.limit!==void 0)D.set("limit",u.limit.toString());if("after"in u&&u.after!==void 0)D.set("after",u.after);if("before"in u&&u.before!==void 0)D.set("before",u.before);return D.toString()}var oJ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/api-keys",u,D)}async list(u={}){let D=x(u),A=D?`/api-keys?${D}`:"/api-keys";return await this.resend.get(A)}async remove(u){return await this.resend.delete(`/api-keys/${u}`)}},tJ=class{constructor(u){this.resend=u}async get(u){return await this.resend.get(`/automations/${u.automationId}/runs/${u.runId}`)}async list(u){let D=x(u),A=new URLSearchParams(D);if(u.status){let G=Array.isArray(u.status)?u.status.join(","):u.status;A.set("status",G)}let F=A.toString(),B=F?`/automations/${u.automationId}/runs?${F}`:`/automations/${u.automationId}/runs`;return await this.resend.get(B)}};function hE(u){switch(u.type){case"trigger":return{key:u.key,type:u.type,config:{event_name:u.config.eventName}};case"delay":return{key:u.key,type:u.type,config:u.config};case"send_email":return{key:u.key,type:u.type,config:{template:u.config.template,subject:u.config.subject,from:u.config.from,reply_to:u.config.replyTo}};case"wait_for_event":return{key:u.key,type:u.type,config:{event_name:u.config.eventName,timeout:u.config.timeout,filter_rule:u.config.filterRule}};case"condition":return{key:u.key,type:u.type,config:u.config};case"contact_update":return{key:u.key,type:u.type,config:{first_name:u.config.firstName,last_name:u.config.lastName,unsubscribed:u.config.unsubscribed,properties:u.config.properties}};case"contact_delete":return{key:u.key,type:u.type,config:u.config};case"add_to_segment":return{key:u.key,type:u.type,config:{segment_id:u.config.segmentId}}}}function TE(u){return{from:u.from,to:u.to,type:u.type}}function eJ(u){return{name:u.name,status:u.status,steps:u.steps.map(hE),connections:u.connections.map(TE)}}function uZ(u){return{event:u.event,contact_id:u.contactId,email:u.email,payload:u.payload}}var DZ=class{constructor(u){this.resend=u,this.runs=new tJ(this.resend)}async create(u){return await this.resend.post("/automations",eJ(u))}async list(u={}){let D=[x(u)];if(u.status)D.push(`status=${encodeURIComponent(u.status)}`);let A=D.filter(Boolean).join("&"),F=A?`/automations?${A}`:"/automations";return await this.resend.get(F)}async get(u){return await this.resend.get(`/automations/${u}`)}async remove(u){return await this.resend.delete(`/automations/${u}`)}async update(u,D){let A={};if(D.name!==void 0)A.name=D.name;if(D.status!==void 0)A.status=D.status;if(D.steps!==void 0)A.steps=D.steps.map(hE);if(D.connections!==void 0)A.connections=D.connections.map(TE);return await this.resend.patch(`/automations/${u}`,A)}async stop(u){return await this.resend.post(`/automations/${u}/stop`)}};function AZ(u){return u?.map((D)=>({content:D.content,filename:D.filename,path:D.path,content_type:D.contentType,content_id:D.contentId}))}function OE(u){return{attachments:AZ(u.attachments),bcc:u.bcc,cc:u.cc,from:u.from,headers:u.headers,html:u.html,reply_to:u.replyTo,scheduled_at:u.scheduledAt,subject:u.subject,tags:u.tags,text:u.text,to:u.to,template:u.template?{id:u.template.id,variables:u.template.variables}:void 0,topic_id:u.topicId}}async function r2(u){let D;try{({render:D}=await import("@react-email/render"))}catch{throw Error("Failed to render React component. Make sure to install `@react-email/render` or `@react-email/components`.")}return D(u)}var FZ=class{constructor(u){this.resend=u}async send(u,D){return this.create(u,D)}async create(u,D){let A=[];for(let F of u){if(F.react)F.html=await r2(F.react),F.react=void 0;A.push(OE(F))}return await this.resend.post("/emails/batch",A,{...D,headers:{"x-batch-validation":D?.batchValidation??"strict",...D?.headers}})}},BZ=class{constructor(u){this.resend=u}async create(u,D={}){if(u.react)u.html=await r2(u.react);return await this.resend.post("/broadcasts",{name:u.name,segment_id:u.segmentId,audience_id:u.audienceId,preview_text:u.previewText,from:u.from,html:u.html,reply_to:u.replyTo,subject:u.subject,text:u.text,topic_id:u.topicId,send:u.send,scheduled_at:u.scheduledAt},D)}async send(u,D){return await this.resend.post(`/broadcasts/${u}/send`,{scheduled_at:D?.scheduledAt})}async list(u={}){let D=x(u),A=D?`/broadcasts?${D}`:"/broadcasts";return await this.resend.get(A)}async get(u){return await this.resend.get(`/broadcasts/${u}`)}async remove(u){return await this.resend.delete(`/broadcasts/${u}`)}async update(u,D){if(D.react)D.html=await r2(D.react);return await this.resend.patch(`/broadcasts/${u}`,{name:D.name,segment_id:D.segmentId,audience_id:D.audienceId,from:D.from,html:D.html,text:D.text,subject:D.subject,reply_to:D.replyTo,preview_text:D.previewText,topic_id:D.topicId})}};function CE(u){return{id:u.id,key:u.key,createdAt:u.created_at,type:u.type,fallbackValue:u.fallback_value}}function UE(u){if("key"in u)return{key:u.key,type:u.type,fallback_value:u.fallbackValue};return{fallback_value:u.fallbackValue}}var wZ=class{constructor(u){this.resend=u}async create(u){let D=UE(u);return await this.resend.post("/contact-properties",D)}async list(u={}){let D=x(u),A=D?`/contact-properties?${D}`:"/contact-properties",F=await this.resend.get(A);if(F.data)return{data:{...F.data,data:F.data.data.map((B)=>CE(B))},headers:F.headers,error:null};return F}async get(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let D=await this.resend.get(`/contact-properties/${u}`);if(D.data)return{data:{object:"contact_property",...CE(D.data)},headers:D.headers,error:null};return D}async update(u){if(!u.id)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let D=UE(u);return await this.resend.patch(`/contact-properties/${u.id}`,D)}async remove(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.delete(`/contact-properties/${u}`)}},EZ=class{constructor(u){this.resend=u}async list(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId,A=x(u),F=A?`/contacts/${D}/segments?${A}`:`/contacts/${D}/segments`;return await this.resend.get(F)}async add(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId;return this.resend.post(`/contacts/${D}/segments/${u.segmentId}`)}async remove(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId;return this.resend.delete(`/contacts/${D}/segments/${u.segmentId}`)}},GZ=class{constructor(u){this.resend=u}async update(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.id;return this.resend.patch(`/contacts/${D}/topics`,u.topics)}async list(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.id,A=x(u),F=A?`/contacts/${D}/topics?${A}`:`/contacts/${D}/topics`;return this.resend.get(F)}},NZ=class{constructor(u){this.resend=u,this.topics=new GZ(this.resend),this.segments=new EZ(this.resend)}async create(u,D={}){if("audienceId"in u){if("segments"in u||"topics"in u)return{data:null,headers:null,error:{message:"`audienceId` is deprecated, and cannot be used together with `segments` or `topics`. Use `segments` instead to add one or more segments to the new contact.",statusCode:null,name:"invalid_parameter"}};return await this.resend.post(`/audiences/${u.audienceId}/contacts`,{unsubscribed:u.unsubscribed,email:u.email,first_name:u.firstName,last_name:u.lastName,properties:u.properties},D)}return await this.resend.post("/contacts",{unsubscribed:u.unsubscribed,email:u.email,first_name:u.firstName,last_name:u.lastName,properties:u.properties,segments:u.segments,topics:u.topics},D)}async list(u={}){let D=u.segmentId??u.audienceId;if(!D){let B=x(u),G=B?`/contacts?${B}`:"/contacts";return await this.resend.get(G)}let A=x(u),F=A?`/segments/${D}/contacts?${A}`:`/segments/${D}/contacts`;return await this.resend.get(F)}async get(u){if(typeof u==="string")return this.resend.get(`/contacts/${u}`);if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return this.resend.get(`/contacts/${u?.email?u?.email:u?.id}`);return this.resend.get(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`)}async update(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return await this.resend.patch(`/contacts/${u?.email?u?.email:u?.id}`,{unsubscribed:u.unsubscribed,first_name:u.firstName,last_name:u.lastName,properties:u.properties});return await this.resend.patch(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`,{unsubscribed:u.unsubscribed,first_name:u.firstName,last_name:u.lastName,properties:u.properties})}async remove(u){if(typeof u==="string")return this.resend.delete(`/contacts/${u}`);if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return this.resend.delete(`/contacts/${u?.email?u?.email:u?.id}`);return this.resend.delete(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`)}};function JZ(u){return{name:u.name,region:u.region,custom_return_path:u.customReturnPath,capabilities:u.capabilities,open_tracking:u.openTracking,click_tracking:u.clickTracking,tls:u.tls,tracking_subdomain:u.trackingSubdomain}}var ZZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/domains",JZ(u),D)}async list(u={}){let D=x(u),A=D?`/domains?${D}`:"/domains";return await this.resend.get(A)}async get(u){return await this.resend.get(`/domains/${u}`)}async update(u){return await this.resend.patch(`/domains/${u.id}`,{click_tracking:u.clickTracking,open_tracking:u.openTracking,tls:u.tls,capabilities:u.capabilities,tracking_subdomain:u.trackingSubdomain})}async remove(u){return await this.resend.delete(`/domains/${u}`)}async verify(u){return await this.resend.post(`/domains/${u}/verify`)}},zZ=class{constructor(u){this.resend=u}async get(u){let{emailId:D,id:A}=u;return await this.resend.get(`/emails/${D}/attachments/${A}`)}async list(u){let{emailId:D}=u,A=x(u),F=A?`/emails/${D}/attachments?${A}`:`/emails/${D}/attachments`;return await this.resend.get(F)}},$Z=class{constructor(u){this.resend=u}async get(u){let{emailId:D,id:A}=u;return await this.resend.get(`/emails/receiving/${D}/attachments/${A}`)}async list(u){let{emailId:D}=u,A=x(u),F=A?`/emails/receiving/${D}/attachments?${A}`:`/emails/receiving/${D}/attachments`;return await this.resend.get(F)}},XZ=class{constructor(u){this.resend=u,this.attachments=new $Z(u)}async get(u){return await this.resend.get(`/emails/receiving/${u}`)}async list(u={}){let D=x(u),A=D?`/emails/receiving?${D}`:"/emails/receiving";return await this.resend.get(A)}async forward(u){let{emailId:D,to:A,from:F}=u,B=u.passthrough!==!1,G=await this.get(D);if(G.error)return{data:null,error:G.error,headers:G.headers};let w=G.data,N=w.subject||"(no subject)";if(B)return this.forwardPassthrough(w,{to:A,from:F,subject:N});let J=N.startsWith("Fwd:")?N:`Fwd: ${N}`;return this.forwardWrapped(w,{to:A,from:F,subject:J,text:"text"in u?u.text:void 0,html:"html"in u?u.html:void 0})}async forwardPassthrough(u,D){let{to:A,from:F,subject:B}=D;if(!u.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let G=await fetch(u.raw.download_url);if(!G.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:G.status},headers:null};let w=await G.text(),N=await B2.parse(w,{attachmentEncoding:"base64"}),J=N.attachments.map(($)=>{let X=$.contentId?$.contentId.replace(/^<|>$/g,""):void 0;return{filename:$.filename,content:$.content.toString(),content_type:$.mimeType,content_id:X||void 0}});return await this.resend.post("/emails",{from:F,to:A,subject:B,text:N.text||void 0,html:N.html||void 0,attachments:J.length>0?J:void 0})}async forwardWrapped(u,D){let{to:A,from:F,subject:B,text:G,html:w}=D;if(!u.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let N=await fetch(u.raw.download_url);if(!N.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:N.status},headers:null};let J=await N.text();return await this.resend.post("/emails",{from:F,to:A,subject:B,text:G,html:w,attachments:[{filename:"forwarded_message.eml",content:Buffer.from(J).toString("base64"),content_type:"message/rfc822"}]})}},YZ=class{constructor(u){this.resend=u,this.attachments=new zZ(u),this.receiving=new XZ(u)}async send(u,D={}){return this.create(u,D)}async create(u,D={}){if(u.react)u.html=await r2(u.react);return await this.resend.post("/emails",OE(u),D)}async get(u){return await this.resend.get(`/emails/${u}`)}async list(u={}){let D=x(u),A=D?`/emails?${D}`:"/emails";return await this.resend.get(A)}async update(u){return await this.resend.patch(`/emails/${u.id}`,{scheduled_at:u.scheduledAt})}async cancel(u){return await this.resend.post(`/emails/${u}/cancel`)}},QZ=class{constructor(u){this.resend=u}async send(u){return await this.resend.post("/events/send",uZ(u))}async create(u){return await this.resend.post("/events",u)}async get(u){return await this.resend.get(`/events/${encodeURIComponent(u)}`)}async list(u={}){let D=x(u),A=D?`/events?${D}`:"/events";return await this.resend.get(A)}async update(u,D){return await this.resend.patch(`/events/${encodeURIComponent(u)}`,D)}async remove(u){return await this.resend.delete(`/events/${encodeURIComponent(u)}`)}},VZ=class{constructor(u){this.resend=u}async list(u={}){let D=x(u),A=D?`/logs?${D}`:"/logs";return await this.resend.get(A)}async get(u){return await this.resend.get(`/logs/${u}`)}},WZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/segments",u,D)}async list(u={}){let D=x(u),A=D?`/segments?${D}`:"/segments";return await this.resend.get(A)}async get(u){return await this.resend.get(`/segments/${u}`)}async remove(u){return await this.resend.delete(`/segments/${u}`)}};function KZ(u={}){let D=new URLSearchParams;if(u.before)D.set("before",u.before);if(u.after)D.set("after",u.after);if(u.limit)D.set("limit",u.limit.toString());return D.size>0?`?${D.toString()}`:""}function HZ(u){return u?.map((D)=>({key:D.key,type:D.type,fallback_value:D.fallbackValue}))}function PE(u){return{name:"name"in u?u.name:void 0,subject:u.subject,html:u.html,text:u.text,alias:u.alias,from:u.from,reply_to:u.replyTo,variables:HZ(u.variables)}}var RE=class{constructor(u,D){this.promise=u,this.publishFn=D}then(u,D){return this.promise.then(u,D)}async publish(){let{data:u,error:D}=await this.promise;if(D)return{data:null,headers:null,error:D};return this.publishFn(u.id)}},CZ=class{constructor(u){this.resend=u}create(u){return new RE(this.performCreate(u),this.publish.bind(this))}async performCreate(u){if(u.react){if(!this.renderAsync)try{let{renderAsync:D}=await import("@react-email/render");this.renderAsync=D}catch{throw Error("Failed to render React component. Make sure to install `@react-email/render`")}u.html=await this.renderAsync(u.react)}return this.resend.post("/templates",PE(u))}async remove(u){return await this.resend.delete(`/templates/${u}`)}async get(u){return await this.resend.get(`/templates/${u}`)}async list(u={}){return this.resend.get(`/templates${KZ(u)}`)}duplicate(u){return new RE(this.resend.post(`/templates/${u}/duplicate`),this.publish.bind(this))}async publish(u){return await this.resend.post(`/templates/${u}/publish`)}async update(u,D){return await this.resend.patch(`/templates/${u}`,PE(D))}},UZ=class{constructor(u){this.resend=u}async create(u){let{defaultSubscription:D,...A}=u;return await this.resend.post("/topics",{...A,default_subscription:D})}async list(){return await this.resend.get("/topics")}async get(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.get(`/topics/${u}`)}async update(u){if(!u.id)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.patch(`/topics/${u.id}`,u)}async remove(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.delete(`/topics/${u}`)}},PZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/webhooks",u,D)}async get(u){return await this.resend.get(`/webhooks/${u}`)}async list(u={}){let D=x(u),A=D?`/webhooks?${D}`:"/webhooks";return await this.resend.get(A)}async update(u,D){return await this.resend.patch(`/webhooks/${u}`,D)}async remove(u){return await this.resend.delete(`/webhooks/${u}`)}verify(u){return new SE.Webhook(u.webhookSecret).verify(u.payload,{"svix-id":u.headers.id,"svix-timestamp":u.headers.timestamp,"svix-signature":u.headers.signature})}},vE="https://api.resend.com",LE=`resend-node:${sJ}`,RZ=typeof process<"u"&&process.env?process.env.RESEND_BASE_URL||vE:vE,vZ=typeof process<"u"&&process.env?process.env.RESEND_USER_AGENT||LE:LE,qE=class{constructor(u){if(this.key=u,this.segments=new WZ(this),this.apiKeys=new oJ(this),this.audiences=this.segments,this.automations=new DZ(this),this.batch=new FZ(this),this.broadcasts=new BZ(this),this.contactProperties=new wZ(this),this.contacts=new NZ(this),this.domains=new ZZ(this),this.emails=new YZ(this),this.events=new QZ(this),this.logs=new VZ(this),this.templates=new CZ(this),this.topics=new UZ(this),this.webhooks=new PZ(this),!u){if(typeof process<"u"&&process.env)this.key=process.env.RESEND_API_KEY;if(!this.key)throw Error('Missing API key. Pass it to the constructor `new Resend("re_123")`')}this.headers=new Headers({Authorization:`Bearer ${this.key}`,"User-Agent":vZ,"Content-Type":"application/json"})}async fetchRequest(u,D={}){try{let A=await fetch(`${RZ}${u}`,D);if(!A.ok)try{let F=await A.text();return{data:null,error:JSON.parse(F),headers:Object.fromEntries(A.headers.entries())}}catch(F){if(F instanceof SyntaxError)return{data:null,error:{name:"application_error",statusCode:A.status,message:"Internal server error. We are unable to process your request right now, please try again later."},headers:Object.fromEntries(A.headers.entries())};let B={message:A.statusText,statusCode:A.status,name:"application_error"};if(F instanceof Error)return{data:null,error:{...B,message:F.message},headers:Object.fromEntries(A.headers.entries())};return{data:null,error:B,headers:Object.fromEntries(A.headers.entries())}}return{data:await A.json(),error:null,headers:Object.fromEntries(A.headers.entries())}}catch{return{data:null,error:{name:"application_error",statusCode:null,message:"Unable to fetch data. The request could not be resolved."},headers:null}}}async post(u,D,A={}){let F=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())F.set(G,w);if(A.idempotencyKey)F.set("Idempotency-Key",A.idempotencyKey);let B={method:"POST",body:JSON.stringify(D),...A,headers:F};return this.fetchRequest(u,B)}async get(u,D={}){let A=new Headers(this.headers);if(D.headers)for(let[B,G]of new Headers(D.headers).entries())A.set(B,G);let F={method:"GET",...D,headers:A};return this.fetchRequest(u,F)}async put(u,D,A={}){let F=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())F.set(G,w);let B={method:"PUT",body:JSON.stringify(D),...A,headers:F};return this.fetchRequest(u,B)}async patch(u,D,A={}){let F=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())F.set(G,w);let B={method:"PATCH",body:JSON.stringify(D),...A,headers:F};return this.fetchRequest(u,B)}async delete(u,D){let A={method:"DELETE",body:JSON.stringify(D),headers:this.headers};return this.fetchRequest(u,A)}};class f0 extends c2{apiKey;constructor(u=process.env.RESEND_API_KEY){super();this.apiKey=u}async send(u){let D=new qE(this.apiKey),{data:A,error:F}=await D.emails.send({...u});if(F)return console.error(F),!1;if(A)return!0;return!1}}function bQ(u){return u}function kE(){return{driver:new f0,headers:{},filterRecipients:(u)=>u}}class LZ{static token="mail";driver;headers;recipientFilter;constructor(u={}){let D=kE();this.driver=u.driver??D.driver,this.headers=u.headers??D.headers,this.recipientFilter=u.filterRecipients??D.filterRecipients}filterRecipients(u){return this.recipientFilter(u)}send(u){return this.driver.send(u)}}
|
|
32
|
-
export{c2 as Te,f0 as Ue,bQ as Ve,kE as We,LZ as Xe};
|
|
30
|
+
`);$.content=s.encode(X);break}default:$.content=G.content}this.attachments.push($)}}else if(G.contentType.multipart==="alternative")w=G;else if(G.contentType.multipart==="related")N=G;for(let J of G.childNodes)await F(J,w,N)};await F(this.root,!1,!1),A.forEach((G)=>{D.forEach((w)=>{if(!u[w])u[w]=[];if(G[w])G[w].forEach((N)=>{switch(N.type){case"text":u[w].push(N.value);break;case"subMessage":switch(w){case"html":u[w].push(n2(N.value));break;case"plain":u[w].push(p2(N.value));break}break}});else{let N;switch(w){case"html":N="plain";break;case"plain":N="html";break}(G[N]||[]).forEach((J)=>{switch(J.type){case"text":switch(w){case"html":u[w].push(d0(J.value));break;case"plain":u[w].push(r0(J.value));break}break;case"subMessage":switch(w){case"html":u[w].push(n2(J.value));break;case"plain":u[w].push(p2(J.value));break}break}})}})}),Object.keys(u).forEach((G)=>{u[G]=u[G].join(`
|
|
31
|
+
`)}),this.textContent=u}isInlineTextNode(u){if(u.contentDisposition?.parsed?.value==="attachment")return!1;switch(u.contentType.parsed?.value){case"text/html":case"text/plain":return!0;case"text/calendar":case"text/csv":default:return!1}}isInlineMessageRfc822(u){if(u.contentType.parsed?.value!=="message/rfc822")return!1;return(u.contentDisposition?.parsed?.value||(this.options.rfc822Attachments?"attachment":"inline"))==="inline"}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let u=!1,D=(A)=>{if(!A.contentType.multipart){if(A.contentType.parsed&&["message/delivery-status","message/feedback-report"].includes(A.contentType.parsed.value))u=!0}for(let B of A.childNodes)D(B)};return D(this.root),u}async resolveStream(u){let D=0,A=[],B=u.getReader();while(!0){let{done:w,value:N}=await B.read();if(w)break;A.push(N),D+=N.length}let F=new Uint8Array(D),G=0;for(let w of A)F.set(w,G),G+=w.length;return F}async parse(u){if(this.started)throw Error("Can not reuse parser, create a new PostalMime object");if(this.started=!0,u&&typeof u.getReader==="function")u=await this.resolveStream(u);if(u=u||new ArrayBuffer(0),typeof u==="string")u=s.encode(u);if(u instanceof Blob||Object.prototype.toString.call(u)==="[object Blob]")u=await o(u);if(u.buffer instanceof ArrayBuffer)u=new Uint8Array(u).buffer;this.buf=u,this.av=new Uint8Array(u),this.readPos=0;while(this.readPos<this.av.length){let B=this.readLine();await this.processLine(B.bytes,B.done)}await this.processNodeTree();let D={headers:this.root.headers.map((B)=>({key:B.key,originalKey:B.originalKey,value:B.value})).reverse()};for(let B of["from","sender"]){let F=this.root.headers.find((G)=>G.key===B);if(F&&F.value){let G=S2(F.value);if(G&&G.length)D[B]=G[0]}}for(let B of["delivered-to","return-path"]){let F=this.root.headers.find((G)=>G.key===B);if(F&&F.value){let G=S2(F.value);if(G&&G.length&&G[0].address){let w=o2(B);D[w]=G[0].address}}}for(let B of["to","cc","bcc","reply-to"]){let F=this.root.headers.filter((w)=>w.key===B),G=[];if(F.filter((w)=>w&&w.value).map((w)=>S2(w.value)).forEach((w)=>G=G.concat(w||[])),G&&G.length){let w=o2(B);D[w]=G}}for(let B of["subject","message-id","in-reply-to","references"]){let F=this.root.headers.find((G)=>G.key===B);if(F&&F.value){let G=o2(B);D[G]=D2(F.value)}}let A=this.root.headers.find((B)=>B.key==="date");if(A){let B=new Date(A.value);if(B.toString()==="Invalid Date")B=A.value;else B=B.toISOString();D.date=B}if(this.textContent?.html)D.html=this.textContent.html;if(this.textContent?.plain)D.text=this.textContent.plain;switch(D.attachments=this.attachments,D.headerLines=(this.root.rawHeaderLines||[]).slice().reverse(),this.attachmentEncoding){case"arraybuffer":break;case"base64":for(let F of D.attachments||[])if(F?.content)F.content=p0(F.content),F.encoding="base64";break;case"utf8":let B=new TextDecoder("utf8");for(let F of D.attachments||[])if(F?.content)F.content=B.decode(F.content),F.encoding="utf8";break;default:throw Error("Unknown attachment encoding")}return D}}var vE=cJ(WE(),1),iJ="6.12.3";function x(u){let D=new URLSearchParams;if(u.limit!==void 0)D.set("limit",u.limit.toString());if("after"in u&&u.after!==void 0)D.set("after",u.after);if("before"in u&&u.before!==void 0)D.set("before",u.before);return D.toString()}var aJ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/api-keys",u,D)}async list(u={}){let D=x(u),A=D?`/api-keys?${D}`:"/api-keys";return await this.resend.get(A)}async remove(u){return await this.resend.delete(`/api-keys/${u}`)}},pJ=class{constructor(u){this.resend=u}async get(u){return await this.resend.get(`/automations/${u.automationId}/runs/${u.runId}`)}async list(u){let D=x(u),A=new URLSearchParams(D);if(u.status){let G=Array.isArray(u.status)?u.status.join(","):u.status;A.set("status",G)}let B=A.toString(),F=B?`/automations/${u.automationId}/runs?${B}`:`/automations/${u.automationId}/runs`;return await this.resend.get(F)}};function ME(u){switch(u.type){case"trigger":return{key:u.key,type:u.type,config:{event_name:u.config.eventName}};case"delay":return{key:u.key,type:u.type,config:u.config};case"send_email":return{key:u.key,type:u.type,config:{template:u.config.template,subject:u.config.subject,from:u.config.from,reply_to:u.config.replyTo}};case"wait_for_event":return{key:u.key,type:u.type,config:{event_name:u.config.eventName,timeout:u.config.timeout,filter_rule:u.config.filterRule}};case"condition":return{key:u.key,type:u.type,config:u.config};case"contact_update":return{key:u.key,type:u.type,config:{first_name:u.config.firstName,last_name:u.config.lastName,unsubscribed:u.config.unsubscribed,properties:u.config.properties}};case"contact_delete":return{key:u.key,type:u.type,config:u.config};case"add_to_segment":return{key:u.key,type:u.type,config:{segment_id:u.config.segmentId}}}}function SE(u){return{from:u.from,to:u.to,type:u.type}}function nJ(u){return{name:u.name,status:u.status,steps:u.steps.map(ME),connections:u.connections.map(SE)}}function sJ(u){return{event:u.event,contact_id:u.contactId,email:u.email,payload:u.payload}}var oJ=class{constructor(u){this.resend=u,this.runs=new pJ(this.resend)}async create(u){return await this.resend.post("/automations",nJ(u))}async list(u={}){let D=[x(u)];if(u.status)D.push(`status=${encodeURIComponent(u.status)}`);let A=D.filter(Boolean).join("&"),B=A?`/automations?${A}`:"/automations";return await this.resend.get(B)}async get(u){return await this.resend.get(`/automations/${u}`)}async remove(u){return await this.resend.delete(`/automations/${u}`)}async update(u,D){let A={};if(D.name!==void 0)A.name=D.name;if(D.status!==void 0)A.status=D.status;if(D.steps!==void 0)A.steps=D.steps.map(ME);if(D.connections!==void 0)A.connections=D.connections.map(SE);return await this.resend.patch(`/automations/${u}`,A)}async stop(u){return await this.resend.post(`/automations/${u}/stop`)}};function tJ(u){return u?.map((D)=>({content:D.content,filename:D.filename,path:D.path,content_type:D.contentType,content_id:D.contentId}))}function TE(u){return{attachments:tJ(u.attachments),bcc:u.bcc,cc:u.cc,from:u.from,headers:u.headers,html:u.html,reply_to:u.replyTo,scheduled_at:u.scheduledAt,subject:u.subject,tags:u.tags,text:u.text,to:u.to,template:u.template?{id:u.template.id,variables:u.template.variables}:void 0,topic_id:u.topicId}}async function r2(u){let D;try{({render:D}=await import("@react-email/render"))}catch{throw Error("Failed to render React component. Make sure to install `@react-email/render` or `@react-email/components`.")}return D(u)}var eJ=class{constructor(u){this.resend=u}async send(u,D){return this.create(u,D)}async create(u,D){let A=[];for(let B of u){if(B.react)B.html=await r2(B.react),B.react=void 0;A.push(TE(B))}return await this.resend.post("/emails/batch",A,{...D,headers:{"x-batch-validation":D?.batchValidation??"strict",...D?.headers}})}},uZ=class{constructor(u){this.resend=u}async create(u,D={}){if(u.react)u.html=await r2(u.react);return await this.resend.post("/broadcasts",{name:u.name,segment_id:u.segmentId,audience_id:u.audienceId,preview_text:u.previewText,from:u.from,html:u.html,reply_to:u.replyTo,subject:u.subject,text:u.text,topic_id:u.topicId,send:u.send,scheduled_at:u.scheduledAt},D)}async send(u,D){return await this.resend.post(`/broadcasts/${u}/send`,{scheduled_at:D?.scheduledAt})}async list(u={}){let D=x(u),A=D?`/broadcasts?${D}`:"/broadcasts";return await this.resend.get(A)}async get(u){return await this.resend.get(`/broadcasts/${u}`)}async remove(u){return await this.resend.delete(`/broadcasts/${u}`)}async update(u,D){if(D.react)D.html=await r2(D.react);return await this.resend.patch(`/broadcasts/${u}`,{name:D.name,segment_id:D.segmentId,audience_id:D.audienceId,from:D.from,html:D.html,text:D.text,subject:D.subject,reply_to:D.replyTo,preview_text:D.previewText,topic_id:D.topicId})}};function KE(u){return{id:u.id,key:u.key,createdAt:u.created_at,type:u.type,fallbackValue:u.fallback_value}}function HE(u){if("key"in u)return{key:u.key,type:u.type,fallback_value:u.fallbackValue};return{fallback_value:u.fallbackValue}}var DZ=class{constructor(u){this.resend=u}async create(u){let D=HE(u);return await this.resend.post("/contact-properties",D)}async list(u={}){let D=x(u),A=D?`/contact-properties?${D}`:"/contact-properties",B=await this.resend.get(A);if(B.data)return{data:{...B.data,data:B.data.data.map((F)=>KE(F))},headers:B.headers,error:null};return B}async get(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let D=await this.resend.get(`/contact-properties/${u}`);if(D.data)return{data:{object:"contact_property",...KE(D.data)},headers:D.headers,error:null};return D}async update(u){if(!u.id)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let D=HE(u);return await this.resend.patch(`/contact-properties/${u.id}`,D)}async remove(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.delete(`/contact-properties/${u}`)}},AZ=class{constructor(u){this.resend=u}async list(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId,A=x(u),B=A?`/contacts/${D}/segments?${A}`:`/contacts/${D}/segments`;return await this.resend.get(B)}async add(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId;return this.resend.post(`/contacts/${D}/segments/${u.segmentId}`)}async remove(u){if(!u.contactId&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.contactId;return this.resend.delete(`/contacts/${D}/segments/${u.segmentId}`)}},BZ=class{constructor(u){this.resend=u}async update(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.id;return this.resend.patch(`/contacts/${D}/topics`,u.topics)}async list(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let D=u.email?u.email:u.id,A=x(u),B=A?`/contacts/${D}/topics?${A}`:`/contacts/${D}/topics`;return this.resend.get(B)}},FZ=class{constructor(u){this.resend=u,this.topics=new BZ(this.resend),this.segments=new AZ(this.resend)}async create(u,D={}){if("audienceId"in u){if("segments"in u||"topics"in u)return{data:null,headers:null,error:{message:"`audienceId` is deprecated, and cannot be used together with `segments` or `topics`. Use `segments` instead to add one or more segments to the new contact.",statusCode:null,name:"invalid_parameter"}};return await this.resend.post(`/audiences/${u.audienceId}/contacts`,{unsubscribed:u.unsubscribed,email:u.email,first_name:u.firstName,last_name:u.lastName,properties:u.properties},D)}return await this.resend.post("/contacts",{unsubscribed:u.unsubscribed,email:u.email,first_name:u.firstName,last_name:u.lastName,properties:u.properties,segments:u.segments,topics:u.topics},D)}async list(u={}){let D=u.segmentId??u.audienceId;if(!D){let F=x(u),G=F?`/contacts?${F}`:"/contacts";return await this.resend.get(G)}let A=x(u),B=A?`/segments/${D}/contacts?${A}`:`/segments/${D}/contacts`;return await this.resend.get(B)}async get(u){if(typeof u==="string")return this.resend.get(`/contacts/${u}`);if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return this.resend.get(`/contacts/${u?.email?u?.email:u?.id}`);return this.resend.get(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`)}async update(u){if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return await this.resend.patch(`/contacts/${u?.email?u?.email:u?.id}`,{unsubscribed:u.unsubscribed,first_name:u.firstName,last_name:u.lastName,properties:u.properties});return await this.resend.patch(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`,{unsubscribed:u.unsubscribed,first_name:u.firstName,last_name:u.lastName,properties:u.properties})}async remove(u){if(typeof u==="string")return this.resend.delete(`/contacts/${u}`);if(!u.id&&!u.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};if(!u.audienceId)return this.resend.delete(`/contacts/${u?.email?u?.email:u?.id}`);return this.resend.delete(`/audiences/${u.audienceId}/contacts/${u?.email?u?.email:u?.id}`)}};function wZ(u){return{name:u.name,region:u.region,custom_return_path:u.customReturnPath,capabilities:u.capabilities,open_tracking:u.openTracking,click_tracking:u.clickTracking,tls:u.tls,tracking_subdomain:u.trackingSubdomain}}var EZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/domains",wZ(u),D)}async list(u={}){let D=x(u),A=D?`/domains?${D}`:"/domains";return await this.resend.get(A)}async get(u){return await this.resend.get(`/domains/${u}`)}async update(u){return await this.resend.patch(`/domains/${u.id}`,{click_tracking:u.clickTracking,open_tracking:u.openTracking,tls:u.tls,capabilities:u.capabilities,tracking_subdomain:u.trackingSubdomain})}async remove(u){return await this.resend.delete(`/domains/${u}`)}async verify(u){return await this.resend.post(`/domains/${u}/verify`)}},GZ=class{constructor(u){this.resend=u}async get(u){let{emailId:D,id:A}=u;return await this.resend.get(`/emails/${D}/attachments/${A}`)}async list(u){let{emailId:D}=u,A=x(u),B=A?`/emails/${D}/attachments?${A}`:`/emails/${D}/attachments`;return await this.resend.get(B)}},NZ=class{constructor(u){this.resend=u}async get(u){let{emailId:D,id:A}=u;return await this.resend.get(`/emails/receiving/${D}/attachments/${A}`)}async list(u){let{emailId:D}=u,A=x(u),B=A?`/emails/receiving/${D}/attachments?${A}`:`/emails/receiving/${D}/attachments`;return await this.resend.get(B)}},JZ=class{constructor(u){this.resend=u,this.attachments=new NZ(u)}async get(u){return await this.resend.get(`/emails/receiving/${u}`)}async list(u={}){let D=x(u),A=D?`/emails/receiving?${D}`:"/emails/receiving";return await this.resend.get(A)}async forward(u){let{emailId:D,to:A,from:B}=u,F=u.passthrough!==!1,G=await this.get(D);if(G.error)return{data:null,error:G.error,headers:G.headers};let w=G.data,N=w.subject||"(no subject)";if(F)return this.forwardPassthrough(w,{to:A,from:B,subject:N});let J=N.startsWith("Fwd:")?N:`Fwd: ${N}`;return this.forwardWrapped(w,{to:A,from:B,subject:J,text:"text"in u?u.text:void 0,html:"html"in u?u.html:void 0})}async forwardPassthrough(u,D){let{to:A,from:B,subject:F}=D;if(!u.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let G=await fetch(u.raw.download_url);if(!G.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:G.status},headers:null};let w=await G.text(),N=await F2.parse(w,{attachmentEncoding:"base64"}),J=N.attachments.map(($)=>{let X=$.contentId?$.contentId.replace(/^<|>$/g,""):void 0;return{filename:$.filename,content:$.content.toString(),content_type:$.mimeType,content_id:X||void 0}});return await this.resend.post("/emails",{from:B,to:A,subject:F,text:N.text||void 0,html:N.html||void 0,attachments:J.length>0?J:void 0})}async forwardWrapped(u,D){let{to:A,from:B,subject:F,text:G,html:w}=D;if(!u.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let N=await fetch(u.raw.download_url);if(!N.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:N.status},headers:null};let J=await N.text();return await this.resend.post("/emails",{from:B,to:A,subject:F,text:G,html:w,attachments:[{filename:"forwarded_message.eml",content:Buffer.from(J).toString("base64"),content_type:"message/rfc822"}]})}},ZZ=class{constructor(u){this.resend=u,this.attachments=new GZ(u),this.receiving=new JZ(u)}async send(u,D={}){return this.create(u,D)}async create(u,D={}){if(u.react)u.html=await r2(u.react);return await this.resend.post("/emails",TE(u),D)}async get(u){return await this.resend.get(`/emails/${u}`)}async list(u={}){let D=x(u),A=D?`/emails?${D}`:"/emails";return await this.resend.get(A)}async update(u){return await this.resend.patch(`/emails/${u.id}`,{scheduled_at:u.scheduledAt})}async cancel(u){return await this.resend.post(`/emails/${u}/cancel`)}},zZ=class{constructor(u){this.resend=u}async send(u){return await this.resend.post("/events/send",sJ(u))}async create(u){return await this.resend.post("/events",u)}async get(u){return await this.resend.get(`/events/${encodeURIComponent(u)}`)}async list(u={}){let D=x(u),A=D?`/events?${D}`:"/events";return await this.resend.get(A)}async update(u,D){return await this.resend.patch(`/events/${encodeURIComponent(u)}`,D)}async remove(u){return await this.resend.delete(`/events/${encodeURIComponent(u)}`)}},$Z=class{constructor(u){this.resend=u}async list(u={}){let D=x(u),A=D?`/logs?${D}`:"/logs";return await this.resend.get(A)}async get(u){return await this.resend.get(`/logs/${u}`)}},XZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/segments",u,D)}async list(u={}){let D=x(u),A=D?`/segments?${D}`:"/segments";return await this.resend.get(A)}async get(u){return await this.resend.get(`/segments/${u}`)}async remove(u){return await this.resend.delete(`/segments/${u}`)}};function YZ(u={}){let D=new URLSearchParams;if(u.before)D.set("before",u.before);if(u.after)D.set("after",u.after);if(u.limit)D.set("limit",u.limit.toString());return D.size>0?`?${D.toString()}`:""}function QZ(u){return u?.map((D)=>({key:D.key,type:D.type,fallback_value:D.fallbackValue}))}function CE(u){return{name:"name"in u?u.name:void 0,subject:u.subject,html:u.html,text:u.text,alias:u.alias,from:u.from,reply_to:u.replyTo,variables:QZ(u.variables)}}var UE=class{constructor(u,D){this.promise=u,this.publishFn=D}then(u,D){return this.promise.then(u,D)}async publish(){let{data:u,error:D}=await this.promise;if(D)return{data:null,headers:null,error:D};return this.publishFn(u.id)}},VZ=class{constructor(u){this.resend=u}create(u){return new UE(this.performCreate(u),this.publish.bind(this))}async performCreate(u){if(u.react){if(!this.renderAsync)try{let{renderAsync:D}=await import("@react-email/render");this.renderAsync=D}catch{throw Error("Failed to render React component. Make sure to install `@react-email/render`")}u.html=await this.renderAsync(u.react)}return this.resend.post("/templates",CE(u))}async remove(u){return await this.resend.delete(`/templates/${u}`)}async get(u){return await this.resend.get(`/templates/${u}`)}async list(u={}){return this.resend.get(`/templates${YZ(u)}`)}duplicate(u){return new UE(this.resend.post(`/templates/${u}/duplicate`),this.publish.bind(this))}async publish(u){return await this.resend.post(`/templates/${u}/publish`)}async update(u,D){return await this.resend.patch(`/templates/${u}`,CE(D))}},WZ=class{constructor(u){this.resend=u}async create(u){let{defaultSubscription:D,...A}=u;return await this.resend.post("/topics",{...A,default_subscription:D})}async list(){return await this.resend.get("/topics")}async get(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.get(`/topics/${u}`)}async update(u){if(!u.id)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.patch(`/topics/${u.id}`,u)}async remove(u){if(!u)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};return await this.resend.delete(`/topics/${u}`)}},KZ=class{constructor(u){this.resend=u}async create(u,D={}){return await this.resend.post("/webhooks",u,D)}async get(u){return await this.resend.get(`/webhooks/${u}`)}async list(u={}){let D=x(u),A=D?`/webhooks?${D}`:"/webhooks";return await this.resend.get(A)}async update(u,D){return await this.resend.patch(`/webhooks/${u}`,D)}async remove(u){return await this.resend.delete(`/webhooks/${u}`)}verify(u){return new vE.Webhook(u.webhookSecret).verify(u.payload,{"svix-id":u.headers.id,"svix-timestamp":u.headers.timestamp,"svix-signature":u.headers.signature})}},PE="https://api.resend.com",RE=`resend-node:${iJ}`,HZ=typeof process<"u"&&process.env?process.env.RESEND_BASE_URL||PE:PE,CZ=typeof process<"u"&&process.env?process.env.RESEND_USER_AGENT||RE:RE,EQ=class{constructor(u){if(this.key=u,this.segments=new XZ(this),this.apiKeys=new aJ(this),this.audiences=this.segments,this.automations=new oJ(this),this.batch=new eJ(this),this.broadcasts=new uZ(this),this.contactProperties=new DZ(this),this.contacts=new FZ(this),this.domains=new EZ(this),this.emails=new ZZ(this),this.events=new zZ(this),this.logs=new $Z(this),this.templates=new VZ(this),this.topics=new WZ(this),this.webhooks=new KZ(this),!u){if(typeof process<"u"&&process.env)this.key=process.env.RESEND_API_KEY;if(!this.key)throw Error('Missing API key. Pass it to the constructor `new Resend("re_123")`')}this.headers=new Headers({Authorization:`Bearer ${this.key}`,"User-Agent":CZ,"Content-Type":"application/json"})}async fetchRequest(u,D={}){try{let A=await fetch(`${HZ}${u}`,D);if(!A.ok)try{let B=await A.text();return{data:null,error:JSON.parse(B),headers:Object.fromEntries(A.headers.entries())}}catch(B){if(B instanceof SyntaxError)return{data:null,error:{name:"application_error",statusCode:A.status,message:"Internal server error. We are unable to process your request right now, please try again later."},headers:Object.fromEntries(A.headers.entries())};let F={message:A.statusText,statusCode:A.status,name:"application_error"};if(B instanceof Error)return{data:null,error:{...F,message:B.message},headers:Object.fromEntries(A.headers.entries())};return{data:null,error:F,headers:Object.fromEntries(A.headers.entries())}}return{data:await A.json(),error:null,headers:Object.fromEntries(A.headers.entries())}}catch{return{data:null,error:{name:"application_error",statusCode:null,message:"Unable to fetch data. The request could not be resolved."},headers:null}}}async post(u,D,A={}){let B=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())B.set(G,w);if(A.idempotencyKey)B.set("Idempotency-Key",A.idempotencyKey);let F={method:"POST",body:JSON.stringify(D),...A,headers:B};return this.fetchRequest(u,F)}async get(u,D={}){let A=new Headers(this.headers);if(D.headers)for(let[F,G]of new Headers(D.headers).entries())A.set(F,G);let B={method:"GET",...D,headers:A};return this.fetchRequest(u,B)}async put(u,D,A={}){let B=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())B.set(G,w);let F={method:"PUT",body:JSON.stringify(D),...A,headers:B};return this.fetchRequest(u,F)}async patch(u,D,A={}){let B=new Headers(this.headers);if(A.headers)for(let[G,w]of new Headers(A.headers).entries())B.set(G,w);let F={method:"PATCH",body:JSON.stringify(D),...A,headers:B};return this.fetchRequest(u,F)}async delete(u,D){let A={method:"DELETE",body:JSON.stringify(D),headers:this.headers};return this.fetchRequest(u,A)}};export{EQ as Resend};
|
|
33
32
|
|
|
34
|
-
//# debugId=
|
|
33
|
+
//# debugId=048CBA1357DBC38264756E2164756E21
|