@aifeatures/backend 0.6.0 → 0.7.0

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/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var W=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var kr=Object.getOwnPropertyNames;var Pr=Object.prototype.hasOwnProperty;var xr=(e,r)=>{for(var s in r)W(e,s,{get:r[s],enumerable:!0})},Ar=(e,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of kr(r))!Pr.call(e,n)&&n!==s&&W(e,n,{get:()=>r[n],enumerable:!(o=Ir(r,n))||o.enumerable});return e};var Gr=e=>Ar(W({},"__esModule",{value:!0}),e);var Nr={};xr(Nr,{accountCancelSubscription:()=>Er,accountCreatePortalSession:()=>vr,accountLogin:()=>pr,accountLogout:()=>lr,accountManageCancel:()=>mr,accountManageGetSubscription:()=>Or,accountManagePortalSession:()=>Dr,accountManageVerify:()=>yr,accountMe:()=>dr,accountReactivateSubscription:()=>Sr,accountSubscribe:()=>hr,accountUpdateSubscriptionAddress:()=>Rr,accountVerify:()=>ur,actOnManageLink:()=>br,adjustVariantInventory:()=>we,attachProductFile:()=>le,cancelRetainer:()=>Ot,cancelSubscription:()=>Ne,createCartCheckout:()=>or,createCheckout:()=>sr,createClient:()=>P,createConfig:()=>f,createCustomer:()=>Ge,createEventDestination:()=>jt,createEventDestinationWithSiteToken:()=>_t,createForm:()=>xt,createFormWithSiteToken:()=>Dt,createInvoice:()=>_e,createMultiItemTestOrder:()=>Se,createOption:()=>De,createPreviewSession:()=>Je,createProduct:()=>ae,createProductWithSiteToken:()=>ne,createRetainer:()=>ht,createSite:()=>bt,createTestOrder:()=>he,createTestSubscription:()=>Ee,createVariant:()=>Re,deleteEventDestination:()=>zt,deleteEventDestinationWithSiteToken:()=>Kt,deleteForm:()=>At,deleteOption:()=>Te,deleteProduct:()=>ce,deleteSite:()=>ft,deleteSubmission:()=>Wt,deleteVariant:()=>Oe,downloadAttachment:()=>Ft,downloadFile:()=>ar,generateVariants:()=>ye,getBusinessSummary:()=>Ve,getCartSummary:()=>nr,getCustomer:()=>Le,getEventDestination:()=>qt,getEventDestinationSecret:()=>$t,getEventDestinationSecretWithSiteToken:()=>Zt,getForm:()=>Gt,getGeo:()=>cr,getInvoice:()=>Ke,getInvoicePreview:()=>Ye,getInvoiceSettings:()=>pt,getInvoiceSettingsWithSiteToken:()=>ct,getNextPayout:()=>ze,getOrder:()=>ge,getOrderSession:()=>ir,getPaymentsStatus:()=>se,getPerson:()=>je,getProduct:()=>pe,getPublicProduct:()=>rr,getRetainer:()=>Et,getSalesSummary:()=>Fe,getSite:()=>wt,getSiteCheckoutPause:()=>gt,getSubmission:()=>Vt,listCustomers:()=>Ae,listEventDeliveries:()=>Ht,listEventDeliveriesWithSiteToken:()=>er,listEventDestinations:()=>Mt,listEventDestinationsWithSiteToken:()=>Qt,listForms:()=>Pt,listFormsWithSiteToken:()=>mt,listInvoices:()=>Qe,listOrdersWithSiteToken:()=>Ce,listPeople:()=>Me,listProducts:()=>ie,listProductsWithSiteToken:()=>oe,listRetainers:()=>dt,listSites:()=>Tt,listSubmissions:()=>Ut,listSubscriptions:()=>Be,markInvoicePaid:()=>ot,markInvoiceUncollectible:()=>nt,pauseRetainer:()=>vt,pauseSiteCheckout:()=>It,previewInvoice:()=>Xe,reactivateSiteSubscriptionsTeardown:()=>He,refundOrder:()=>Ie,remindInvoice:()=>tt,resendInvoice:()=>et,resendOrderReceipt:()=>ke,resetOrderDownloads:()=>Pe,resetWebhookEvent:()=>xe,resolveManageLink:()=>Tr,resumeRetainer:()=>yt,retryEventDelivery:()=>Jt,retryEventDeliveryWithSiteToken:()=>tr,revokeCustomerAccess:()=>We,rotateEventDestinationSecret:()=>Nt,rotateEventDestinationSecretWithSiteToken:()=>Yt,setInvoiceReminders:()=>st,setOrderFulfillment:()=>qe,setProductSubscription:()=>de,setProductVariants:()=>ve,setVariantInventory:()=>fe,skipNextRetainerCycle:()=>Rt,snoozeInvoice:()=>rt,teardownSiteSubscriptions:()=>$e,updateCustomer:()=>Ue,updateCustomerBilling:()=>at,updateEventDestination:()=>Bt,updateEventDestinationWithSiteToken:()=>Xt,updateForm:()=>Lt,updateInvoiceRecipient:()=>it,updateInvoiceSettings:()=>ut,updateOption:()=>be,updateProduct:()=>ue,updateRetainer:()=>St,updateSite:()=>Ct,updateSiteAccountRoute:()=>re,updateSiteDomains:()=>kt,updateSiteInvoicing:()=>lt,updateSitePayments:()=>te,updateVariant:()=>me,voidInvoice:()=>Ze});module.exports=Gr(Nr);var H=(e,r,s)=>{typeof s=="string"?e.append(r,s):e.append(r,JSON.stringify(s))};var V={bodySerializer:e=>JSON.stringify(e,(r,s)=>typeof s=="bigint"?s.toString():s)},F={bodySerializer:e=>{let r=new URLSearchParams;return Object.entries(e).forEach(([s,o])=>{o!=null&&(Array.isArray(o)?o.forEach(n=>H(r,s,n)):H(r,s,o))}),r.toString()}};var Lr={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Jr=Object.entries(Lr);var J=({onRequest:e,onSseError:r,onSseEvent:s,responseTransformer:o,responseValidator:n,sseDefaultRetryDelay:u,sseMaxRetryAttempts:c,sseMaxRetryDelay:a,sseSleepFn:p,url:d,...i})=>{let S,C=p??(l=>new Promise(R=>setTimeout(R,l)));return{stream:async function*(){let l=u??3e3,R=0,D=i.signal??new AbortController().signal;for(;!D.aborted;){R++;let g=i.headers instanceof Headers?i.headers:new Headers(i.headers);S!==void 0&&g.set("Last-Event-ID",S);try{let T={redirect:"follow",...i,body:i.serializedBody,headers:g,signal:D},m=new Request(d,T);e&&(m=await e(d,T));let E=await(i.fetch??globalThis.fetch)(m);if(!E.ok)throw new Error(`SSE failed: ${E.status} ${E.statusText}`);if(!E.body)throw new Error("No body in SSE response");let v=E.body.pipeThrough(new TextDecoderStream).getReader(),I="",z=()=>{try{v.cancel()}catch{}};D.addEventListener("abort",z);try{for(;;){let{done:fr,value:wr}=await v.read();if(fr)break;I+=wr,I=I.replace(/\r\n/g,`
1
+ "use strict";var W=Object.defineProperty;var Pr=Object.getOwnPropertyDescriptor;var xr=Object.getOwnPropertyNames;var Ar=Object.prototype.hasOwnProperty;var Gr=(e,r)=>{for(var s in r)W(e,s,{get:r[s],enumerable:!0})},Ur=(e,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xr(r))!Ar.call(e,n)&&n!==s&&W(e,n,{get:()=>r[n],enumerable:!(o=Pr(r,n))||o.enumerable});return e};var Lr=e=>Ur(W({},"__esModule",{value:!0}),e);var Hr={};Gr(Hr,{accountCancelSubscription:()=>Rr,accountCreatePortalSession:()=>Or,accountLogin:()=>lr,accountLogout:()=>hr,accountManageCancel:()=>Tr,accountManageGetSubscription:()=>Dr,accountManagePortalSession:()=>br,accountManageVerify:()=>mr,accountMe:()=>Er,accountReactivateSubscription:()=>vr,accountSubscribe:()=>Sr,accountUpdateSubscriptionAddress:()=>yr,accountVerify:()=>dr,actOnManageLink:()=>fr,adjustVariantInventory:()=>fe,attachProductFile:()=>le,cancelRetainer:()=>Ot,cancelSubscription:()=>Ne,createCartCheckout:()=>ir,createCheckout:()=>nr,createClient:()=>P,createConfig:()=>w,createCustomer:()=>Ge,createEventDestination:()=>qt,createEventDestinationWithSiteToken:()=>Xt,createForm:()=>Gt,createFormWithSiteToken:()=>Dt,createInvoice:()=>_e,createMultiItemTestOrder:()=>Se,createOption:()=>De,createPreviewSession:()=>Je,createProduct:()=>ae,createProductWithSiteToken:()=>ne,createRetainer:()=>ht,createSite:()=>bt,createTestOrder:()=>he,createTestSubscription:()=>Ee,createVariant:()=>Re,deleteEventDestination:()=>Bt,deleteEventDestinationWithSiteToken:()=>Yt,deleteForm:()=>Ut,deleteOption:()=>Te,deleteProduct:()=>ce,deleteSite:()=>wt,deleteSubmission:()=>Ft,deleteVariant:()=>Oe,downloadAttachment:()=>jt,downloadFile:()=>pr,generateVariants:()=>ye,getBusinessSummary:()=>Ve,getCartSummary:()=>ar,getCustomer:()=>Ue,getEventDestination:()=>Nt,getEventDestinationSecret:()=>Jt,getEventDestinationSecretWithSiteToken:()=>tr,getForm:()=>Lt,getGeo:()=>ur,getInvoice:()=>Ke,getInvoicePreview:()=>Ye,getInvoiceSettings:()=>pt,getInvoiceSettingsWithSiteToken:()=>ct,getNextPayout:()=>ze,getOrder:()=>ge,getOrderSession:()=>cr,getPaymentsStatus:()=>se,getPerson:()=>je,getProduct:()=>pe,getPublicProduct:()=>or,getRetainer:()=>Et,getSalesSummary:()=>Fe,getSite:()=>ft,getSiteAnalytics:()=>Pt,getSiteCheckoutPause:()=>gt,getSubmission:()=>Mt,listCustomers:()=>Ae,listEventDeliveries:()=>Qt,listEventDeliveriesWithSiteToken:()=>rr,listEventDestinations:()=>zt,listEventDestinationsWithSiteToken:()=>Kt,listForms:()=>At,listFormsWithSiteToken:()=>mt,listInvoices:()=>Qe,listOrdersWithSiteToken:()=>Ce,listPeople:()=>Me,listProducts:()=>ie,listProductsWithSiteToken:()=>oe,listRetainers:()=>dt,listSites:()=>Tt,listSubmissions:()=>Vt,listSubscriptions:()=>Be,markInvoicePaid:()=>ot,markInvoiceUncollectible:()=>nt,pauseRetainer:()=>vt,pauseSiteCheckout:()=>It,previewInvoice:()=>Xe,reactivateSiteSubscriptionsTeardown:()=>He,refundOrder:()=>Ie,remindInvoice:()=>tt,resendInvoice:()=>et,resendOrderReceipt:()=>ke,resetOrderDownloads:()=>Pe,resetWebhookEvent:()=>xe,resolveManageLink:()=>wr,resumeRetainer:()=>yt,retryEventDelivery:()=>_t,retryEventDeliveryWithSiteToken:()=>sr,revokeCustomerAccess:()=>We,rotateEventDestinationSecret:()=>Ht,rotateEventDestinationSecretWithSiteToken:()=>er,setInvoiceReminders:()=>st,setOrderFulfillment:()=>qe,setProductSubscription:()=>de,setProductVariants:()=>ve,setVariantInventory:()=>we,skipNextRetainerCycle:()=>Rt,snoozeInvoice:()=>rt,teardownSiteSubscriptions:()=>$e,updateCustomer:()=>Le,updateCustomerBilling:()=>at,updateEventDestination:()=>$t,updateEventDestinationWithSiteToken:()=>Zt,updateForm:()=>Wt,updateInvoiceRecipient:()=>it,updateInvoiceSettings:()=>ut,updateOption:()=>be,updateProduct:()=>ue,updateRetainer:()=>St,updateSite:()=>Ct,updateSiteAccountRoute:()=>re,updateSiteAnalytics:()=>xt,updateSiteDomains:()=>kt,updateSiteInvoicing:()=>lt,updateSitePayments:()=>te,updateVariant:()=>me,voidInvoice:()=>Ze});module.exports=Lr(Hr);var H=(e,r,s)=>{typeof s=="string"?e.append(r,s):e.append(r,JSON.stringify(s))};var V={bodySerializer:e=>JSON.stringify(e,(r,s)=>typeof s=="bigint"?s.toString():s)},F={bodySerializer:e=>{let r=new URLSearchParams;return Object.entries(e).forEach(([s,o])=>{o!=null&&(Array.isArray(o)?o.forEach(n=>H(r,s,n)):H(r,s,o))}),r.toString()}};var Wr={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},_r=Object.entries(Wr);var J=({onRequest:e,onSseError:r,onSseEvent:s,responseTransformer:o,responseValidator:n,sseDefaultRetryDelay:u,sseMaxRetryAttempts:c,sseMaxRetryDelay:a,sseSleepFn:p,url:d,...i})=>{let S,C=p??(l=>new Promise(R=>setTimeout(R,l)));return{stream:async function*(){let l=u??3e3,R=0,D=i.signal??new AbortController().signal;for(;!D.aborted;){R++;let g=i.headers instanceof Headers?i.headers:new Headers(i.headers);S!==void 0&&g.set("Last-Event-ID",S);try{let T={redirect:"follow",...i,body:i.serializedBody,headers:g,signal:D},m=new Request(d,T);e&&(m=await e(d,T));let E=await(i.fetch??globalThis.fetch)(m);if(!E.ok)throw new Error(`SSE failed: ${E.status} ${E.statusText}`);if(!E.body)throw new Error("No body in SSE response");let v=E.body.pipeThrough(new TextDecoderStream).getReader(),I="",z=()=>{try{v.cancel()}catch{}};D.addEventListener("abort",z);try{for(;;){let{done:Cr,value:gr}=await v.read();if(Cr)break;I+=gr,I=I.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let q=I.split(`
4
4
 
5
- `);I=q.pop()??"";for(let Cr of q){let gr=Cr.split(`
6
- `),A=[],B;for(let O of gr)if(O.startsWith("data:"))A.push(O.replace(/^data:\s*/,""));else if(O.startsWith("event:"))B=O.replace(/^event:\s*/,"");else if(O.startsWith("id:"))S=O.replace(/^id:\s*/,"");else if(O.startsWith("retry:")){let $=Number.parseInt(O.replace(/^retry:\s*/,""),10);Number.isNaN($)||(l=$)}let b,N=!1;if(A.length){let O=A.join(`
7
- `);try{b=JSON.parse(O),N=!0}catch{b=O}}N&&(n&&await n(b),o&&(b=await o(b))),s?.({data:b,event:B,id:S,retry:l}),A.length&&(yield b)}}}finally{D.removeEventListener("abort",z),v.releaseLock()}break}catch(T){if(r?.(T),c!==void 0&&R>=c)break;let m=Math.min(l*2**(R-1),a??3e4);await C(m)}}}()}};var Ur=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Wr=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Vr=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},G=({allowReserved:e,explode:r,name:s,style:o,value:n})=>{if(!r){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(Wr(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${s}=${a}`;case"simple":return a;default:return`${s}=${a}`}}let u=Ur(o),c=n.map(a=>o==="label"||o==="simple"?e?a:encodeURIComponent(a):w({allowReserved:e,name:s,value:a})).join(u);return o==="label"||o==="matrix"?u+c:c},w=({allowReserved:e,name:r,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?s:encodeURIComponent(s)}`},L=({allowReserved:e,explode:r,name:s,style:o,value:n,valueOnly:u})=>{if(n instanceof Date)return u?n.toISOString():`${s}=${n.toISOString()}`;if(o!=="deepObject"&&!r){let p=[];Object.entries(n).forEach(([i,S])=>{p=[...p,i,e?S:encodeURIComponent(S)]});let d=p.join(",");switch(o){case"form":return`${s}=${d}`;case"label":return`.${d}`;case"matrix":return`;${s}=${d}`;default:return d}}let c=Vr(o),a=Object.entries(n).map(([p,d])=>w({allowReserved:e,name:o==="deepObject"?`${s}[${p}]`:p,value:d})).join(c);return o==="label"||o==="matrix"?c+a:a};var Fr=/\{[^{}]+\}/g,Mr=({path:e,url:r})=>{let s=r,o=r.match(Fr);if(o)for(let n of o){let u=!1,c=n.substring(1,n.length-1),a="simple";c.endsWith("*")&&(u=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),a="label"):c.startsWith(";")&&(c=c.substring(1),a="matrix");let p=e[c];if(p==null)continue;if(Array.isArray(p)){s=s.replace(n,G({explode:u,name:c,style:a,value:p}));continue}if(typeof p=="object"){s=s.replace(n,L({explode:u,name:c,style:a,value:p,valueOnly:!0}));continue}if(a==="matrix"){s=s.replace(n,`;${w({name:c,value:p})}`);continue}let d=encodeURIComponent(a==="label"?`.${p}`:p);s=s.replace(n,d)}return s},Q=({baseUrl:e,path:r,query:s,querySerializer:o,url:n})=>{let u=n.startsWith("/")?n:`/${n}`,c=(e??"")+u;r&&(c=Mr({path:r,url:c}));let a=s?o(s):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(c+=`?${a}`),c};function _(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var K=async(e,r)=>{let s=typeof r=="function"?await r(e):r;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var X=({parameters:e={},...r}={})=>o=>{let n=[];if(o&&typeof o=="object")for(let u in o){let c=o[u];if(c==null)continue;let a=e[u]||r;if(Array.isArray(c)){let p=G({allowReserved:a.allowReserved,explode:!0,name:u,style:"form",value:c,...a.array});p&&n.push(p)}else if(typeof c=="object"){let p=L({allowReserved:a.allowReserved,explode:!0,name:u,style:"deepObject",value:c,...a.object});p&&n.push(p)}else{let p=w({allowReserved:a.allowReserved,name:u,value:c});p&&n.push(p)}}return n.join("&")},Y=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>r.startsWith(s)))return"blob";if(r.startsWith("text/"))return"text"}},jr=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,Z=async({security:e,...r})=>{for(let s of e){if(jr(r,s.name))continue;let o=await K(s,r.auth);if(!o)continue;let n=s.name??"Authorization";switch(s.in){case"query":r.query||(r.query={}),r.query[n]=o;break;case"cookie":r.headers.append("Cookie",`${n}=${o}`);break;case"header":default:r.headers.set(n,o);break}}},M=e=>Q({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),j=(e,r)=>{let s={...e,...r};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=U(e.headers,r.headers),s},zr=e=>{let r=[];return e.forEach((s,o)=>{r.push([o,s])}),r},U=(...e)=>{let r=new Headers;for(let s of e){if(!s)continue;let o=s instanceof Headers?zr(s):Object.entries(s);for(let[n,u]of o)if(u===null)r.delete(n);else if(Array.isArray(u))for(let c of u)r.append(n,c);else u!==void 0&&r.set(n,typeof u=="object"?JSON.stringify(u):u)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let s=this.getInterceptorIndex(r);this.fns[s]&&(this.fns[s]=null)}exists(r){let s=this.getInterceptorIndex(r);return!!this.fns[s]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,s){let o=this.getInterceptorIndex(r);return this.fns[o]?(this.fns[o]=s,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),qr=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Br={"Content-Type":"application/json"},f=(e={})=>({...V,headers:Br,parseAs:"auto",querySerializer:qr,...e});var P=(e={})=>{let r=j(f(),e),s=()=>({...r}),o=d=>(r=j(r,d),s()),n=ee(),u=async d=>{let i={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:U(r.headers,d.headers),serializedBody:void 0};i.security&&await Z({...i,security:i.security}),i.requestValidator&&await i.requestValidator(i),i.body!==void 0&&i.bodySerializer&&(i.serializedBody=i.bodySerializer(i.body)),(i.body===void 0||i.serializedBody==="")&&i.headers.delete("Content-Type");let S=M(i);return{opts:i,url:S}},c=async d=>{let{opts:i,url:S}=await u(d),C={redirect:"follow",...i,body:_(i)},y=new Request(S,C);for(let h of n.request.fns)h&&(y=await h(y,i));let x=i.fetch,l;try{l=await x(y)}catch(h){let E=h;for(let v of n.error.fns)v&&(E=await v(h,void 0,y,i));if(E=E||{},i.throwOnError)throw E;return i.responseStyle==="data"?void 0:{error:E,request:y,response:void 0}}for(let h of n.response.fns)h&&(l=await h(l,y,i));let R={request:y,response:l};if(l.ok){let h=(i.parseAs==="auto"?Y(l.headers.get("Content-Type")):i.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let v;switch(h){case"arrayBuffer":case"blob":case"text":v=await l[h]();break;case"formData":v=new FormData;break;case"stream":v=l.body;break;case"json":default:v={};break}return i.responseStyle==="data"?v:{data:v,...R}}let E;switch(h){case"arrayBuffer":case"blob":case"formData":case"json":case"text":E=await l[h]();break;case"stream":return i.responseStyle==="data"?l.body:{data:l.body,...R}}return h==="json"&&(i.responseValidator&&await i.responseValidator(E),i.responseTransformer&&(E=await i.responseTransformer(E))),i.responseStyle==="data"?E:{data:E,...R}}let D=await l.text(),g;try{g=JSON.parse(D)}catch{}let T=g??D,m=T;for(let h of n.error.fns)h&&(m=await h(T,l,y,i));if(m=m||{},i.throwOnError)throw m;return i.responseStyle==="data"?void 0:{error:m,...R}},a=d=>i=>c({...i,method:d}),p=d=>async i=>{let{opts:S,url:C}=await u(i);return J({...S,body:S.body,headers:S.headers,method:d,onRequest:async(y,x)=>{let l=new Request(y,x);for(let R of n.request.fns)R&&(l=await R(l,S));return l},url:C})};return{buildUrl:M,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:s,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:c,setConfig:o,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var t=P(f({baseUrl:"https://aifeatures.dev"}));var te=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/payments",...e,headers:{"Content-Type":"application/json",...e.headers}}),re=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/account-route",...e,headers:{"Content-Type":"application/json",...e.headers}}),se=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payments/status",...e}),oe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e}),ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),ie=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e}),ae=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),ce=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),pe=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),ue=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/file",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-order",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/test-orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e}),me=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/options",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e}),be=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory/adjust",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders",...e}),ge=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}",...e}),Ie=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/refund",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/resend-receipt",...e}),Pe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/reset-downloads",...e}),xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/webhook-events/{eventId}/reset",...e}),Ae=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e}),Ge=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e}),Ue=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/revoke-access",...e}),Ve=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/summary",...e}),Fe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sales-summary",...e}),Me=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people",...e}),je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people/{email}",...e}),ze=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payouts/next",...e}),qe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/fulfillment",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions",...e}),Ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions/{subscriptionId}/cancel",...e}),$e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/reactivate-teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/preview-session",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e}),_e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}",...e}),Xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/preview",...e}),Ze=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/void",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/resend",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/remind",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/snooze",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/reminders",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-paid",...e,headers:{"Content-Type":"application/json",...e.headers}}),nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-uncollectible",...e,headers:{"Content-Type":"application/json",...e.headers}}),it=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/recipient",...e,headers:{"Content-Type":"application/json",...e.headers}}),at=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/billing",...e,headers:{"Content-Type":"application/json",...e.headers}}),ct=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoice-settings",...e}),pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e}),ut=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoicing",...e,headers:{"Content-Type":"application/json",...e.headers}}),dt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e}),ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e}),St=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/skip-next",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/resume",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/cancel",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e}),Dt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e}),bt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),wt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Ct=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e}),It=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/domains",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e}),xt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Gt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Lt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}/submissions",...e}),Wt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Vt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Ft=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}/attachments/{attachmentId}",...e}),Mt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e}),jt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),zt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),qt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),Bt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/rotate-secret",...e}),$t=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/secret",...e}),Ht=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries",...e}),Jt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),Qt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e}),_t=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Kt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e}),Xt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/rotate-secret",...e}),Zt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/secret",...e}),er=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries",...e}),tr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),rr=e=>(e.client??t).get({url:"/v1/p/{productId}",...e}),sr=e=>(e.client??t).post({url:"/v1/p/{productId}/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),or=e=>(e.client??t).post({url:"/v1/p/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),nr=e=>(e.client??t).post({url:"/v1/p/checkout/summary",...e,headers:{"Content-Type":"application/json",...e.headers}}),ir=e=>(e.client??t).get({url:"/v1/o/session/{sessionId}",...e}),ar=e=>(e.client??t).get({url:"/v1/d/{token}",...e}),cr=e=>(e?.client??t).get({url:"/v1/geo",...e}),pr=e=>(e.client??t).post({url:"/v1/account/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),ur=e=>(e.client??t).post({url:"/v1/account/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),lr=e=>(e?.client??t).post({url:"/v1/account/logout",...e}),dr=e=>(e?.client??t).get({url:"/v1/account/me",...e}),hr=e=>(e.client??t).post({url:"/v1/account/subscribe",...e,headers:{"Content-Type":"application/json",...e.headers}}),Er=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/cancel",...e}),Sr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/reactivate",...e}),Rr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/address",...e,headers:{"Content-Type":"application/json",...e.headers}}),vr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/portal-session",...e}),yr=e=>(e.client??t).post({url:"/v1/account/manage/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),Or=e=>(e?.client??t).get({url:"/v1/account/manage/subscription",...e}),mr=e=>(e?.client??t).post({url:"/v1/account/manage/cancel",...e}),Dr=e=>(e?.client??t).post({url:"/v1/account/manage/portal-session",...e}),Tr=e=>(e.client??t).get({url:"/v1/m/{token}",...e}),br=e=>(e.client??t).post({...F,url:"/v1/m/{token}",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}});0&&(module.exports={accountCancelSubscription,accountCreatePortalSession,accountLogin,accountLogout,accountManageCancel,accountManageGetSubscription,accountManagePortalSession,accountManageVerify,accountMe,accountReactivateSubscription,accountSubscribe,accountUpdateSubscriptionAddress,accountVerify,actOnManageLink,adjustVariantInventory,attachProductFile,cancelRetainer,cancelSubscription,createCartCheckout,createCheckout,createClient,createConfig,createCustomer,createEventDestination,createEventDestinationWithSiteToken,createForm,createFormWithSiteToken,createInvoice,createMultiItemTestOrder,createOption,createPreviewSession,createProduct,createProductWithSiteToken,createRetainer,createSite,createTestOrder,createTestSubscription,createVariant,deleteEventDestination,deleteEventDestinationWithSiteToken,deleteForm,deleteOption,deleteProduct,deleteSite,deleteSubmission,deleteVariant,downloadAttachment,downloadFile,generateVariants,getBusinessSummary,getCartSummary,getCustomer,getEventDestination,getEventDestinationSecret,getEventDestinationSecretWithSiteToken,getForm,getGeo,getInvoice,getInvoicePreview,getInvoiceSettings,getInvoiceSettingsWithSiteToken,getNextPayout,getOrder,getOrderSession,getPaymentsStatus,getPerson,getProduct,getPublicProduct,getRetainer,getSalesSummary,getSite,getSiteCheckoutPause,getSubmission,listCustomers,listEventDeliveries,listEventDeliveriesWithSiteToken,listEventDestinations,listEventDestinationsWithSiteToken,listForms,listFormsWithSiteToken,listInvoices,listOrdersWithSiteToken,listPeople,listProducts,listProductsWithSiteToken,listRetainers,listSites,listSubmissions,listSubscriptions,markInvoicePaid,markInvoiceUncollectible,pauseRetainer,pauseSiteCheckout,previewInvoice,reactivateSiteSubscriptionsTeardown,refundOrder,remindInvoice,resendInvoice,resendOrderReceipt,resetOrderDownloads,resetWebhookEvent,resolveManageLink,resumeRetainer,retryEventDelivery,retryEventDeliveryWithSiteToken,revokeCustomerAccess,rotateEventDestinationSecret,rotateEventDestinationSecretWithSiteToken,setInvoiceReminders,setOrderFulfillment,setProductSubscription,setProductVariants,setVariantInventory,skipNextRetainerCycle,snoozeInvoice,teardownSiteSubscriptions,updateCustomer,updateCustomerBilling,updateEventDestination,updateEventDestinationWithSiteToken,updateForm,updateInvoiceRecipient,updateInvoiceSettings,updateOption,updateProduct,updateRetainer,updateSite,updateSiteAccountRoute,updateSiteDomains,updateSiteInvoicing,updateSitePayments,updateVariant,voidInvoice});
5
+ `);I=q.pop()??"";for(let Ir of q){let kr=Ir.split(`
6
+ `),A=[],B;for(let O of kr)if(O.startsWith("data:"))A.push(O.replace(/^data:\s*/,""));else if(O.startsWith("event:"))B=O.replace(/^event:\s*/,"");else if(O.startsWith("id:"))S=O.replace(/^id:\s*/,"");else if(O.startsWith("retry:")){let $=Number.parseInt(O.replace(/^retry:\s*/,""),10);Number.isNaN($)||(l=$)}let b,N=!1;if(A.length){let O=A.join(`
7
+ `);try{b=JSON.parse(O),N=!0}catch{b=O}}N&&(n&&await n(b),o&&(b=await o(b))),s?.({data:b,event:B,id:S,retry:l}),A.length&&(yield b)}}}finally{D.removeEventListener("abort",z),v.releaseLock()}break}catch(T){if(r?.(T),c!==void 0&&R>=c)break;let m=Math.min(l*2**(R-1),a??3e4);await C(m)}}}()}};var Vr=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Fr=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Mr=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},G=({allowReserved:e,explode:r,name:s,style:o,value:n})=>{if(!r){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(Fr(o));switch(o){case"label":return`.${a}`;case"matrix":return`;${s}=${a}`;case"simple":return a;default:return`${s}=${a}`}}let u=Vr(o),c=n.map(a=>o==="label"||o==="simple"?e?a:encodeURIComponent(a):f({allowReserved:e,name:s,value:a})).join(u);return o==="label"||o==="matrix"?u+c:c},f=({allowReserved:e,name:r,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?s:encodeURIComponent(s)}`},U=({allowReserved:e,explode:r,name:s,style:o,value:n,valueOnly:u})=>{if(n instanceof Date)return u?n.toISOString():`${s}=${n.toISOString()}`;if(o!=="deepObject"&&!r){let p=[];Object.entries(n).forEach(([i,S])=>{p=[...p,i,e?S:encodeURIComponent(S)]});let d=p.join(",");switch(o){case"form":return`${s}=${d}`;case"label":return`.${d}`;case"matrix":return`;${s}=${d}`;default:return d}}let c=Mr(o),a=Object.entries(n).map(([p,d])=>f({allowReserved:e,name:o==="deepObject"?`${s}[${p}]`:p,value:d})).join(c);return o==="label"||o==="matrix"?c+a:a};var jr=/\{[^{}]+\}/g,zr=({path:e,url:r})=>{let s=r,o=r.match(jr);if(o)for(let n of o){let u=!1,c=n.substring(1,n.length-1),a="simple";c.endsWith("*")&&(u=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),a="label"):c.startsWith(";")&&(c=c.substring(1),a="matrix");let p=e[c];if(p==null)continue;if(Array.isArray(p)){s=s.replace(n,G({explode:u,name:c,style:a,value:p}));continue}if(typeof p=="object"){s=s.replace(n,U({explode:u,name:c,style:a,value:p,valueOnly:!0}));continue}if(a==="matrix"){s=s.replace(n,`;${f({name:c,value:p})}`);continue}let d=encodeURIComponent(a==="label"?`.${p}`:p);s=s.replace(n,d)}return s},Q=({baseUrl:e,path:r,query:s,querySerializer:o,url:n})=>{let u=n.startsWith("/")?n:`/${n}`,c=(e??"")+u;r&&(c=zr({path:r,url:c}));let a=s?o(s):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(c+=`?${a}`),c};function _(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var K=async(e,r)=>{let s=typeof r=="function"?await r(e):r;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var X=({parameters:e={},...r}={})=>o=>{let n=[];if(o&&typeof o=="object")for(let u in o){let c=o[u];if(c==null)continue;let a=e[u]||r;if(Array.isArray(c)){let p=G({allowReserved:a.allowReserved,explode:!0,name:u,style:"form",value:c,...a.array});p&&n.push(p)}else if(typeof c=="object"){let p=U({allowReserved:a.allowReserved,explode:!0,name:u,style:"deepObject",value:c,...a.object});p&&n.push(p)}else{let p=f({allowReserved:a.allowReserved,name:u,value:c});p&&n.push(p)}}return n.join("&")},Y=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>r.startsWith(s)))return"blob";if(r.startsWith("text/"))return"text"}},qr=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,Z=async({security:e,...r})=>{for(let s of e){if(qr(r,s.name))continue;let o=await K(s,r.auth);if(!o)continue;let n=s.name??"Authorization";switch(s.in){case"query":r.query||(r.query={}),r.query[n]=o;break;case"cookie":r.headers.append("Cookie",`${n}=${o}`);break;case"header":default:r.headers.set(n,o);break}}},M=e=>Q({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),j=(e,r)=>{let s={...e,...r};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=L(e.headers,r.headers),s},Br=e=>{let r=[];return e.forEach((s,o)=>{r.push([o,s])}),r},L=(...e)=>{let r=new Headers;for(let s of e){if(!s)continue;let o=s instanceof Headers?Br(s):Object.entries(s);for(let[n,u]of o)if(u===null)r.delete(n);else if(Array.isArray(u))for(let c of u)r.append(n,c);else u!==void 0&&r.set(n,typeof u=="object"?JSON.stringify(u):u)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let s=this.getInterceptorIndex(r);this.fns[s]&&(this.fns[s]=null)}exists(r){let s=this.getInterceptorIndex(r);return!!this.fns[s]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,s){let o=this.getInterceptorIndex(r);return this.fns[o]?(this.fns[o]=s,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),Nr=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),$r={"Content-Type":"application/json"},w=(e={})=>({...V,headers:$r,parseAs:"auto",querySerializer:Nr,...e});var P=(e={})=>{let r=j(w(),e),s=()=>({...r}),o=d=>(r=j(r,d),s()),n=ee(),u=async d=>{let i={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:L(r.headers,d.headers),serializedBody:void 0};i.security&&await Z({...i,security:i.security}),i.requestValidator&&await i.requestValidator(i),i.body!==void 0&&i.bodySerializer&&(i.serializedBody=i.bodySerializer(i.body)),(i.body===void 0||i.serializedBody==="")&&i.headers.delete("Content-Type");let S=M(i);return{opts:i,url:S}},c=async d=>{let{opts:i,url:S}=await u(d),C={redirect:"follow",...i,body:_(i)},y=new Request(S,C);for(let h of n.request.fns)h&&(y=await h(y,i));let x=i.fetch,l;try{l=await x(y)}catch(h){let E=h;for(let v of n.error.fns)v&&(E=await v(h,void 0,y,i));if(E=E||{},i.throwOnError)throw E;return i.responseStyle==="data"?void 0:{error:E,request:y,response:void 0}}for(let h of n.response.fns)h&&(l=await h(l,y,i));let R={request:y,response:l};if(l.ok){let h=(i.parseAs==="auto"?Y(l.headers.get("Content-Type")):i.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let v;switch(h){case"arrayBuffer":case"blob":case"text":v=await l[h]();break;case"formData":v=new FormData;break;case"stream":v=l.body;break;case"json":default:v={};break}return i.responseStyle==="data"?v:{data:v,...R}}let E;switch(h){case"arrayBuffer":case"blob":case"formData":case"json":case"text":E=await l[h]();break;case"stream":return i.responseStyle==="data"?l.body:{data:l.body,...R}}return h==="json"&&(i.responseValidator&&await i.responseValidator(E),i.responseTransformer&&(E=await i.responseTransformer(E))),i.responseStyle==="data"?E:{data:E,...R}}let D=await l.text(),g;try{g=JSON.parse(D)}catch{}let T=g??D,m=T;for(let h of n.error.fns)h&&(m=await h(T,l,y,i));if(m=m||{},i.throwOnError)throw m;return i.responseStyle==="data"?void 0:{error:m,...R}},a=d=>i=>c({...i,method:d}),p=d=>async i=>{let{opts:S,url:C}=await u(i);return J({...S,body:S.body,headers:S.headers,method:d,onRequest:async(y,x)=>{let l=new Request(y,x);for(let R of n.request.fns)R&&(l=await R(l,S));return l},url:C})};return{buildUrl:M,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:s,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:c,setConfig:o,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var t=P(w({baseUrl:"https://aifeatures.dev"}));var te=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/payments",...e,headers:{"Content-Type":"application/json",...e.headers}}),re=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/account-route",...e,headers:{"Content-Type":"application/json",...e.headers}}),se=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payments/status",...e}),oe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e}),ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),ie=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e}),ae=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),ce=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),pe=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),ue=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/file",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-order",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/test-orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e}),me=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/options",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e}),be=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory/adjust",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders",...e}),ge=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}",...e}),Ie=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/refund",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/resend-receipt",...e}),Pe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/reset-downloads",...e}),xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/webhook-events/{eventId}/reset",...e}),Ae=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e}),Ge=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e}),Le=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/revoke-access",...e}),Ve=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/summary",...e}),Fe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sales-summary",...e}),Me=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people",...e}),je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people/{email}",...e}),ze=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payouts/next",...e}),qe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/fulfillment",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions",...e}),Ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions/{subscriptionId}/cancel",...e}),$e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/reactivate-teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/preview-session",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e}),_e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}",...e}),Xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/preview",...e}),Ze=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/void",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/resend",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/remind",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/snooze",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/reminders",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-paid",...e,headers:{"Content-Type":"application/json",...e.headers}}),nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-uncollectible",...e,headers:{"Content-Type":"application/json",...e.headers}}),it=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/recipient",...e,headers:{"Content-Type":"application/json",...e.headers}}),at=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/billing",...e,headers:{"Content-Type":"application/json",...e.headers}}),ct=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoice-settings",...e}),pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e}),ut=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoicing",...e,headers:{"Content-Type":"application/json",...e.headers}}),dt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e}),ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e}),St=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/skip-next",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/resume",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/cancel",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e}),Dt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e}),bt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e,headers:{"Content-Type":"application/json",...e.headers}}),wt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),ft=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Ct=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e}),It=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/domains",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/analytics",...e}),xt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/analytics",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e}),Gt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Lt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Wt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}/submissions",...e}),Ft=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Mt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),jt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}/attachments/{attachmentId}",...e}),zt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e}),qt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),Nt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),$t=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/rotate-secret",...e}),Jt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/secret",...e}),Qt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries",...e}),_t=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),Kt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e}),Xt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e}),Zt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),er=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/rotate-secret",...e}),tr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/secret",...e}),rr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries",...e}),sr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),or=e=>(e.client??t).get({url:"/v1/p/{productId}",...e}),nr=e=>(e.client??t).post({url:"/v1/p/{productId}/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),ir=e=>(e.client??t).post({url:"/v1/p/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),ar=e=>(e.client??t).post({url:"/v1/p/checkout/summary",...e,headers:{"Content-Type":"application/json",...e.headers}}),cr=e=>(e.client??t).get({url:"/v1/o/session/{sessionId}",...e}),pr=e=>(e.client??t).get({url:"/v1/d/{token}",...e}),ur=e=>(e?.client??t).get({url:"/v1/geo",...e}),lr=e=>(e.client??t).post({url:"/v1/account/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),dr=e=>(e.client??t).post({url:"/v1/account/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),hr=e=>(e?.client??t).post({url:"/v1/account/logout",...e}),Er=e=>(e?.client??t).get({url:"/v1/account/me",...e}),Sr=e=>(e.client??t).post({url:"/v1/account/subscribe",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/cancel",...e}),vr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/reactivate",...e}),yr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/address",...e,headers:{"Content-Type":"application/json",...e.headers}}),Or=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/portal-session",...e}),mr=e=>(e.client??t).post({url:"/v1/account/manage/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dr=e=>(e?.client??t).get({url:"/v1/account/manage/subscription",...e}),Tr=e=>(e?.client??t).post({url:"/v1/account/manage/cancel",...e}),br=e=>(e?.client??t).post({url:"/v1/account/manage/portal-session",...e}),wr=e=>(e.client??t).get({url:"/v1/m/{token}",...e}),fr=e=>(e.client??t).post({...F,url:"/v1/m/{token}",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}});0&&(module.exports={accountCancelSubscription,accountCreatePortalSession,accountLogin,accountLogout,accountManageCancel,accountManageGetSubscription,accountManagePortalSession,accountManageVerify,accountMe,accountReactivateSubscription,accountSubscribe,accountUpdateSubscriptionAddress,accountVerify,actOnManageLink,adjustVariantInventory,attachProductFile,cancelRetainer,cancelSubscription,createCartCheckout,createCheckout,createClient,createConfig,createCustomer,createEventDestination,createEventDestinationWithSiteToken,createForm,createFormWithSiteToken,createInvoice,createMultiItemTestOrder,createOption,createPreviewSession,createProduct,createProductWithSiteToken,createRetainer,createSite,createTestOrder,createTestSubscription,createVariant,deleteEventDestination,deleteEventDestinationWithSiteToken,deleteForm,deleteOption,deleteProduct,deleteSite,deleteSubmission,deleteVariant,downloadAttachment,downloadFile,generateVariants,getBusinessSummary,getCartSummary,getCustomer,getEventDestination,getEventDestinationSecret,getEventDestinationSecretWithSiteToken,getForm,getGeo,getInvoice,getInvoicePreview,getInvoiceSettings,getInvoiceSettingsWithSiteToken,getNextPayout,getOrder,getOrderSession,getPaymentsStatus,getPerson,getProduct,getPublicProduct,getRetainer,getSalesSummary,getSite,getSiteAnalytics,getSiteCheckoutPause,getSubmission,listCustomers,listEventDeliveries,listEventDeliveriesWithSiteToken,listEventDestinations,listEventDestinationsWithSiteToken,listForms,listFormsWithSiteToken,listInvoices,listOrdersWithSiteToken,listPeople,listProducts,listProductsWithSiteToken,listRetainers,listSites,listSubmissions,listSubscriptions,markInvoicePaid,markInvoiceUncollectible,pauseRetainer,pauseSiteCheckout,previewInvoice,reactivateSiteSubscriptionsTeardown,refundOrder,remindInvoice,resendInvoice,resendOrderReceipt,resetOrderDownloads,resetWebhookEvent,resolveManageLink,resumeRetainer,retryEventDelivery,retryEventDeliveryWithSiteToken,revokeCustomerAccess,rotateEventDestinationSecret,rotateEventDestinationSecretWithSiteToken,setInvoiceReminders,setOrderFulfillment,setProductSubscription,setProductVariants,setVariantInventory,skipNextRetainerCycle,snoozeInvoice,teardownSiteSubscriptions,updateCustomer,updateCustomerBilling,updateEventDestination,updateEventDestinationWithSiteToken,updateForm,updateInvoiceRecipient,updateInvoiceSettings,updateOption,updateProduct,updateRetainer,updateSite,updateSiteAccountRoute,updateSiteAnalytics,updateSiteDomains,updateSiteInvoicing,updateSitePayments,updateVariant,voidInvoice});
package/dist/index.d.cts CHANGED
@@ -1024,6 +1024,14 @@ type AdjustInventory = {
1024
1024
  */
1025
1025
  delta: number;
1026
1026
  };
1027
+ type EmailDelivery = {
1028
+ id: string;
1029
+ kind: string;
1030
+ recipients: Array<string>;
1031
+ state: "sending" | "sent" | "delivered" | "delivery_delayed" | "bounced" | "complained" | "failed" | "suppressed" | "unknown";
1032
+ created_at: string;
1033
+ updated_at: string;
1034
+ };
1027
1035
  /**
1028
1036
  * The durable Customer record linked to this order, when orders.customerId is set. The order still snapshots buyer email/name immutably.
1029
1037
  */
@@ -1033,6 +1041,10 @@ type OrderCustomer = {
1033
1041
  name: string | null;
1034
1042
  } | null;
1035
1043
  type Order = {
1044
+ /**
1045
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
1046
+ */
1047
+ email_deliveries?: Array<EmailDelivery>;
1036
1048
  id: string;
1037
1049
  /**
1038
1050
  * Human-facing order number, unique per site and rendered '#1042' — what a merchant reads to a buyer and what the receipt shows. Display only: `id` remains the identity for every lookup, URL, and Stripe reference, and two different sites both have a #1042. Numbering starts at 1001 and MAY have gaps (an allocated number whose order then failed to insert is burned). Null when allocation failed — render a short form of `id` instead.
@@ -1257,6 +1269,7 @@ type CustomerAddress = {
1257
1269
  is_default: boolean;
1258
1270
  };
1259
1271
  type CustomerDetail = Customer & {
1272
+ email_deliveries?: Array<EmailDelivery>;
1260
1273
  addresses: Array<CustomerAddress>;
1261
1274
  order_count: number;
1262
1275
  };
@@ -1520,6 +1533,10 @@ type OrderFulfillmentRequest = {
1520
1533
  tracking_number?: string;
1521
1534
  };
1522
1535
  type SubscriptionSummary = {
1536
+ /**
1537
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
1538
+ */
1539
+ email_deliveries?: Array<EmailDelivery>;
1523
1540
  id: string;
1524
1541
  /**
1525
1542
  * Mirrored Stripe status, stored verbatim — full-Dashboard merchants can produce states beyond the modeled set; render unknown values generically ('managed in Stripe').
@@ -2268,6 +2285,14 @@ type CreateSite = {
2268
2285
  * Allowed domains for Turnstile CAPTCHA verification
2269
2286
  */
2270
2287
  domains?: Array<string>;
2288
+ /**
2289
+ * The site's analytics identity, seeded at provision. This is the tenant-isolation key for every analytics read — see PATCH /sites/{siteId}/analytics, the only other place it can be written (org key only, never a site token).
2290
+ */
2291
+ analytics_id?: string;
2292
+ /**
2293
+ * The site's reporting timezone as an IANA zone name (never a fixed offset). Seeded at provision from the creating user's browser zone. Omit to leave it unset — reports then run in UTC and say so.
2294
+ */
2295
+ timezone?: string;
2271
2296
  };
2272
2297
  type CurrencyRestatement = {
2273
2298
  applied: boolean;
@@ -2384,6 +2409,31 @@ type UpdateSiteDomains = {
2384
2409
  */
2385
2410
  domains: Array<string>;
2386
2411
  };
2412
+ type SiteAnalytics = {
2413
+ site_id: string;
2414
+ /**
2415
+ * The site's analytics identity. Null means this site has never been able to collect traffic — analytics reads report 'not collecting' rather than guessing.
2416
+ */
2417
+ analytics_id: string | null;
2418
+ /**
2419
+ * The zone reports are bucketed and bounded in. Always a usable IANA zone: a site with none stored (or an unreadable stored value) reads as 'UTC' here rather than failing, with timezone_defaulted true.
2420
+ */
2421
+ timezone: string;
2422
+ /**
2423
+ * True when the zone above is the UTC fallback rather than a value anyone chose — so the panel can say 'showing UTC' instead of implying the merchant picked it. A merchant who deliberately chooses UTC reads false.
2424
+ */
2425
+ timezone_defaulted: boolean;
2426
+ };
2427
+ type UpdateSiteAnalytics = {
2428
+ /**
2429
+ * Point this site at an analytics identity. Omit to leave the current value alone; null CLEARS it (the operator repair for a site pointed at the wrong identity — a cleared site reports 'not collecting', which is honest, where a wrong one reports another tenant's traffic).
2430
+ */
2431
+ analytics_id?: string | null;
2432
+ /**
2433
+ * SEED-ONLY. The site's reporting timezone as an IANA zone name (never a fixed offset — a 90-day window crosses a daylight-saving change, which an offset would misattribute). This is the SAME column invoicing owns and reads to compute due dates and reminder times, so this endpoint only FILLS it when it is unset: a site that already has a zone keeps it, and null never clears one. Deliberate changes and clears go to PATCH /sites/{siteId}/invoice-settings, where the merchant set it. The response always re-reads the row, so it reports the zone that is actually stored.
2434
+ */
2435
+ timezone?: string | null;
2436
+ };
2387
2437
  type UpdateForm = {
2388
2438
  name?: string;
2389
2439
  email_recipients?: Array<string>;
@@ -2409,6 +2459,10 @@ type SubmissionMetadata = {
2409
2459
  submitted_at: string;
2410
2460
  };
2411
2461
  type Submission = {
2462
+ /**
2463
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
2464
+ */
2465
+ email_deliveries?: Array<EmailDelivery>;
2412
2466
  id: string;
2413
2467
  form_id: string;
2414
2468
  data: {
@@ -5802,6 +5856,10 @@ type CreateSiteData = {
5802
5856
  url: "/api/v1/sites";
5803
5857
  };
5804
5858
  type CreateSiteErrors = {
5859
+ /**
5860
+ * `timezone` is not a usable IANA zone name (code invalid_timezone). Nothing is minted — a rejected create leaves no half-provisioned site for the retry to collide with.
5861
+ */
5862
+ 400: Error;
5805
5863
  /**
5806
5864
  * Unauthorized
5807
5865
  */
@@ -6007,6 +6065,70 @@ type UpdateSiteDomainsResponses = {
6007
6065
  200: SiteDomains;
6008
6066
  };
6009
6067
  type UpdateSiteDomainsResponse = UpdateSiteDomainsResponses[keyof UpdateSiteDomainsResponses];
6068
+ type GetSiteAnalyticsData = {
6069
+ body?: never;
6070
+ path: {
6071
+ siteId: string;
6072
+ };
6073
+ query?: never;
6074
+ url: "/api/v1/sites/{siteId}/analytics";
6075
+ };
6076
+ type GetSiteAnalyticsErrors = {
6077
+ /**
6078
+ * Unauthorized
6079
+ */
6080
+ 401: Error;
6081
+ /**
6082
+ * Forbidden - site tokens cannot read the analytics identity
6083
+ */
6084
+ 403: Error;
6085
+ /**
6086
+ * Site not found
6087
+ */
6088
+ 404: Error;
6089
+ };
6090
+ type GetSiteAnalyticsError = GetSiteAnalyticsErrors[keyof GetSiteAnalyticsErrors];
6091
+ type GetSiteAnalyticsResponses = {
6092
+ /**
6093
+ * The site's analytics identity and resolved reporting zone
6094
+ */
6095
+ 200: SiteAnalytics;
6096
+ };
6097
+ type GetSiteAnalyticsResponse = GetSiteAnalyticsResponses[keyof GetSiteAnalyticsResponses];
6098
+ type UpdateSiteAnalyticsData = {
6099
+ body: UpdateSiteAnalytics;
6100
+ path: {
6101
+ siteId: string;
6102
+ };
6103
+ query?: never;
6104
+ url: "/api/v1/sites/{siteId}/analytics";
6105
+ };
6106
+ type UpdateSiteAnalyticsErrors = {
6107
+ /**
6108
+ * `timezone` is not a usable IANA zone name (code invalid_timezone), or `analytics_id` is blank/over-length. NOTHING from the request lands — a half-applied identity write is how a site ends up pointed at traffic it then reports in the wrong local days.
6109
+ */
6110
+ 400: Error;
6111
+ /**
6112
+ * Unauthorized
6113
+ */
6114
+ 401: Error;
6115
+ /**
6116
+ * Forbidden - site tokens cannot write the analytics identity or the reporting timezone
6117
+ */
6118
+ 403: Error;
6119
+ /**
6120
+ * Site not found
6121
+ */
6122
+ 404: Error;
6123
+ };
6124
+ type UpdateSiteAnalyticsError = UpdateSiteAnalyticsErrors[keyof UpdateSiteAnalyticsErrors];
6125
+ type UpdateSiteAnalyticsResponses = {
6126
+ /**
6127
+ * Analytics identity updated (an empty body is a plain read)
6128
+ */
6129
+ 200: SiteAnalytics;
6130
+ };
6131
+ type UpdateSiteAnalyticsResponse = UpdateSiteAnalyticsResponses[keyof UpdateSiteAnalyticsResponses];
6010
6132
  type ListFormsData = {
6011
6133
  body?: never;
6012
6134
  path: {
@@ -7882,6 +8004,18 @@ declare const pauseSiteCheckout: <ThrowOnError extends boolean = false>(options:
7882
8004
  * Updates the allowed domains for Turnstile CAPTCHA verification and checkout/fulfillment URL validation. This should be called when a custom domain is connected or disconnected from a website. Requires an organization API key (sk_xxx) — site tokens are explicitly rejected because this list is the security allowlist for checkout success/cancel and redirect-fulfillment URLs.
7883
8005
  */
7884
8006
  declare const updateSiteDomains: <ThrowOnError extends boolean = false>(options: Options<UpdateSiteDomainsData, ThrowOnError>) => RequestResult<UpdateSiteDomainsResponses, UpdateSiteDomainsErrors, ThrowOnError, "fields">;
8007
+ /**
8008
+ * Get the site's analytics identity and reporting timezone (org key only)
8009
+ *
8010
+ * Returns the site's analytics identity and the zone its reports are bucketed in. The zone is ALWAYS usable: a site with none stored (or an unreadable stored value) reads as 'UTC' with timezone_defaulted true, so a panel can say 'showing UTC' rather than implying the merchant chose it. Requires an organization API key (sk_xxx); site tokens are rejected.
8011
+ */
8012
+ declare const getSiteAnalytics: <ThrowOnError extends boolean = false>(options: Options<GetSiteAnalyticsData, ThrowOnError>) => RequestResult<GetSiteAnalyticsResponses, GetSiteAnalyticsErrors, ThrowOnError, "fields">;
8013
+ /**
8014
+ * Set the site's analytics identity and reporting timezone (org key only)
8015
+ *
8016
+ * Points an existing site at its analytics identity and/or SEEDS its reporting timezone — the write path landingsite-app's sync and one-time backfill use for sites provisioned before analytics existed. Omitted fields are left alone, so a backfill can patch only what is missing. `timezone` is seed-only: it fills an unset zone and never overwrites or clears one, because invoicing owns that column and reads it for due dates and reminder times — deliberate changes go to PATCH /sites/{siteId}/invoice-settings. `analytics_id` does overwrite (null clears it), and a write that leaves two sites holding one analytics id is alerted rather than refused, so a re-provision or a re-run backfill is never wedged. Requires an organization API key (sk_xxx); site tokens are explicitly rejected, because this endpoint can repoint a merchant's panel at another tenant's traffic.
8017
+ */
8018
+ declare const updateSiteAnalytics: <ThrowOnError extends boolean = false>(options: Options<UpdateSiteAnalyticsData, ThrowOnError>) => RequestResult<UpdateSiteAnalyticsResponses, UpdateSiteAnalyticsErrors, ThrowOnError, "fields">;
7885
8019
  /**
7886
8020
  * List all forms for a site
7887
8021
  *
@@ -8155,4 +8289,4 @@ declare const resolveManageLink: <ThrowOnError extends boolean = false>(options:
8155
8289
  */
8156
8290
  declare const actOnManageLink: <ThrowOnError extends boolean = false>(options: Options<ActOnManageLinkData, ThrowOnError>) => RequestResult<ActOnManageLinkResponses, ActOnManageLinkErrors, ThrowOnError, "fields">;
8157
8291
 
8158
- export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, generateVariants, getBusinessSummary, getCartSummary, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getNextPayout, getOrder, getOrderSession, getPaymentsStatus, getPerson, getProduct, getPublicProduct, getRetainer, getSalesSummary, getSite, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, pauseRetainer, pauseSiteCheckout, previewInvoice, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateSite, updateSiteAccountRoute, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, voidInvoice };
8292
+ export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type EmailDelivery, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteAnalyticsData, type GetSiteAnalyticsError, type GetSiteAnalyticsErrors, type GetSiteAnalyticsResponse, type GetSiteAnalyticsResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteAnalytics, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteAnalytics, type UpdateSiteAnalyticsData, type UpdateSiteAnalyticsError, type UpdateSiteAnalyticsErrors, type UpdateSiteAnalyticsResponse, type UpdateSiteAnalyticsResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, generateVariants, getBusinessSummary, getCartSummary, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getNextPayout, getOrder, getOrderSession, getPaymentsStatus, getPerson, getProduct, getPublicProduct, getRetainer, getSalesSummary, getSite, getSiteAnalytics, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, pauseRetainer, pauseSiteCheckout, previewInvoice, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateSite, updateSiteAccountRoute, updateSiteAnalytics, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, voidInvoice };
package/dist/index.d.ts CHANGED
@@ -1024,6 +1024,14 @@ type AdjustInventory = {
1024
1024
  */
1025
1025
  delta: number;
1026
1026
  };
1027
+ type EmailDelivery = {
1028
+ id: string;
1029
+ kind: string;
1030
+ recipients: Array<string>;
1031
+ state: "sending" | "sent" | "delivered" | "delivery_delayed" | "bounced" | "complained" | "failed" | "suppressed" | "unknown";
1032
+ created_at: string;
1033
+ updated_at: string;
1034
+ };
1027
1035
  /**
1028
1036
  * The durable Customer record linked to this order, when orders.customerId is set. The order still snapshots buyer email/name immutably.
1029
1037
  */
@@ -1033,6 +1041,10 @@ type OrderCustomer = {
1033
1041
  name: string | null;
1034
1042
  } | null;
1035
1043
  type Order = {
1044
+ /**
1045
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
1046
+ */
1047
+ email_deliveries?: Array<EmailDelivery>;
1036
1048
  id: string;
1037
1049
  /**
1038
1050
  * Human-facing order number, unique per site and rendered '#1042' — what a merchant reads to a buyer and what the receipt shows. Display only: `id` remains the identity for every lookup, URL, and Stripe reference, and two different sites both have a #1042. Numbering starts at 1001 and MAY have gaps (an allocated number whose order then failed to insert is burned). Null when allocation failed — render a short form of `id` instead.
@@ -1257,6 +1269,7 @@ type CustomerAddress = {
1257
1269
  is_default: boolean;
1258
1270
  };
1259
1271
  type CustomerDetail = Customer & {
1272
+ email_deliveries?: Array<EmailDelivery>;
1260
1273
  addresses: Array<CustomerAddress>;
1261
1274
  order_count: number;
1262
1275
  };
@@ -1520,6 +1533,10 @@ type OrderFulfillmentRequest = {
1520
1533
  tracking_number?: string;
1521
1534
  };
1522
1535
  type SubscriptionSummary = {
1536
+ /**
1537
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
1538
+ */
1539
+ email_deliveries?: Array<EmailDelivery>;
1523
1540
  id: string;
1524
1541
  /**
1525
1542
  * Mirrored Stripe status, stored verbatim — full-Dashboard merchants can produce states beyond the modeled set; render unknown values generically ('managed in Stripe').
@@ -2268,6 +2285,14 @@ type CreateSite = {
2268
2285
  * Allowed domains for Turnstile CAPTCHA verification
2269
2286
  */
2270
2287
  domains?: Array<string>;
2288
+ /**
2289
+ * The site's analytics identity, seeded at provision. This is the tenant-isolation key for every analytics read — see PATCH /sites/{siteId}/analytics, the only other place it can be written (org key only, never a site token).
2290
+ */
2291
+ analytics_id?: string;
2292
+ /**
2293
+ * The site's reporting timezone as an IANA zone name (never a fixed offset). Seeded at provision from the creating user's browser zone. Omit to leave it unset — reports then run in UTC and say so.
2294
+ */
2295
+ timezone?: string;
2271
2296
  };
2272
2297
  type CurrencyRestatement = {
2273
2298
  applied: boolean;
@@ -2384,6 +2409,31 @@ type UpdateSiteDomains = {
2384
2409
  */
2385
2410
  domains: Array<string>;
2386
2411
  };
2412
+ type SiteAnalytics = {
2413
+ site_id: string;
2414
+ /**
2415
+ * The site's analytics identity. Null means this site has never been able to collect traffic — analytics reads report 'not collecting' rather than guessing.
2416
+ */
2417
+ analytics_id: string | null;
2418
+ /**
2419
+ * The zone reports are bucketed and bounded in. Always a usable IANA zone: a site with none stored (or an unreadable stored value) reads as 'UTC' here rather than failing, with timezone_defaulted true.
2420
+ */
2421
+ timezone: string;
2422
+ /**
2423
+ * True when the zone above is the UTC fallback rather than a value anyone chose — so the panel can say 'showing UTC' instead of implying the merchant picked it. A merchant who deliberately chooses UTC reads false.
2424
+ */
2425
+ timezone_defaulted: boolean;
2426
+ };
2427
+ type UpdateSiteAnalytics = {
2428
+ /**
2429
+ * Point this site at an analytics identity. Omit to leave the current value alone; null CLEARS it (the operator repair for a site pointed at the wrong identity — a cleared site reports 'not collecting', which is honest, where a wrong one reports another tenant's traffic).
2430
+ */
2431
+ analytics_id?: string | null;
2432
+ /**
2433
+ * SEED-ONLY. The site's reporting timezone as an IANA zone name (never a fixed offset — a 90-day window crosses a daylight-saving change, which an offset would misattribute). This is the SAME column invoicing owns and reads to compute due dates and reminder times, so this endpoint only FILLS it when it is unset: a site that already has a zone keeps it, and null never clears one. Deliberate changes and clears go to PATCH /sites/{siteId}/invoice-settings, where the merchant set it. The response always re-reads the row, so it reports the zone that is actually stored.
2434
+ */
2435
+ timezone?: string | null;
2436
+ };
2387
2437
  type UpdateForm = {
2388
2438
  name?: string;
2389
2439
  email_recipients?: Array<string>;
@@ -2409,6 +2459,10 @@ type SubmissionMetadata = {
2409
2459
  submitted_at: string;
2410
2460
  };
2411
2461
  type Submission = {
2462
+ /**
2463
+ * Latest email delivery observation per kind. Independent of payment and send-retry status; absent for older deployments.
2464
+ */
2465
+ email_deliveries?: Array<EmailDelivery>;
2412
2466
  id: string;
2413
2467
  form_id: string;
2414
2468
  data: {
@@ -5802,6 +5856,10 @@ type CreateSiteData = {
5802
5856
  url: "/api/v1/sites";
5803
5857
  };
5804
5858
  type CreateSiteErrors = {
5859
+ /**
5860
+ * `timezone` is not a usable IANA zone name (code invalid_timezone). Nothing is minted — a rejected create leaves no half-provisioned site for the retry to collide with.
5861
+ */
5862
+ 400: Error;
5805
5863
  /**
5806
5864
  * Unauthorized
5807
5865
  */
@@ -6007,6 +6065,70 @@ type UpdateSiteDomainsResponses = {
6007
6065
  200: SiteDomains;
6008
6066
  };
6009
6067
  type UpdateSiteDomainsResponse = UpdateSiteDomainsResponses[keyof UpdateSiteDomainsResponses];
6068
+ type GetSiteAnalyticsData = {
6069
+ body?: never;
6070
+ path: {
6071
+ siteId: string;
6072
+ };
6073
+ query?: never;
6074
+ url: "/api/v1/sites/{siteId}/analytics";
6075
+ };
6076
+ type GetSiteAnalyticsErrors = {
6077
+ /**
6078
+ * Unauthorized
6079
+ */
6080
+ 401: Error;
6081
+ /**
6082
+ * Forbidden - site tokens cannot read the analytics identity
6083
+ */
6084
+ 403: Error;
6085
+ /**
6086
+ * Site not found
6087
+ */
6088
+ 404: Error;
6089
+ };
6090
+ type GetSiteAnalyticsError = GetSiteAnalyticsErrors[keyof GetSiteAnalyticsErrors];
6091
+ type GetSiteAnalyticsResponses = {
6092
+ /**
6093
+ * The site's analytics identity and resolved reporting zone
6094
+ */
6095
+ 200: SiteAnalytics;
6096
+ };
6097
+ type GetSiteAnalyticsResponse = GetSiteAnalyticsResponses[keyof GetSiteAnalyticsResponses];
6098
+ type UpdateSiteAnalyticsData = {
6099
+ body: UpdateSiteAnalytics;
6100
+ path: {
6101
+ siteId: string;
6102
+ };
6103
+ query?: never;
6104
+ url: "/api/v1/sites/{siteId}/analytics";
6105
+ };
6106
+ type UpdateSiteAnalyticsErrors = {
6107
+ /**
6108
+ * `timezone` is not a usable IANA zone name (code invalid_timezone), or `analytics_id` is blank/over-length. NOTHING from the request lands — a half-applied identity write is how a site ends up pointed at traffic it then reports in the wrong local days.
6109
+ */
6110
+ 400: Error;
6111
+ /**
6112
+ * Unauthorized
6113
+ */
6114
+ 401: Error;
6115
+ /**
6116
+ * Forbidden - site tokens cannot write the analytics identity or the reporting timezone
6117
+ */
6118
+ 403: Error;
6119
+ /**
6120
+ * Site not found
6121
+ */
6122
+ 404: Error;
6123
+ };
6124
+ type UpdateSiteAnalyticsError = UpdateSiteAnalyticsErrors[keyof UpdateSiteAnalyticsErrors];
6125
+ type UpdateSiteAnalyticsResponses = {
6126
+ /**
6127
+ * Analytics identity updated (an empty body is a plain read)
6128
+ */
6129
+ 200: SiteAnalytics;
6130
+ };
6131
+ type UpdateSiteAnalyticsResponse = UpdateSiteAnalyticsResponses[keyof UpdateSiteAnalyticsResponses];
6010
6132
  type ListFormsData = {
6011
6133
  body?: never;
6012
6134
  path: {
@@ -7882,6 +8004,18 @@ declare const pauseSiteCheckout: <ThrowOnError extends boolean = false>(options:
7882
8004
  * Updates the allowed domains for Turnstile CAPTCHA verification and checkout/fulfillment URL validation. This should be called when a custom domain is connected or disconnected from a website. Requires an organization API key (sk_xxx) — site tokens are explicitly rejected because this list is the security allowlist for checkout success/cancel and redirect-fulfillment URLs.
7883
8005
  */
7884
8006
  declare const updateSiteDomains: <ThrowOnError extends boolean = false>(options: Options<UpdateSiteDomainsData, ThrowOnError>) => RequestResult<UpdateSiteDomainsResponses, UpdateSiteDomainsErrors, ThrowOnError, "fields">;
8007
+ /**
8008
+ * Get the site's analytics identity and reporting timezone (org key only)
8009
+ *
8010
+ * Returns the site's analytics identity and the zone its reports are bucketed in. The zone is ALWAYS usable: a site with none stored (or an unreadable stored value) reads as 'UTC' with timezone_defaulted true, so a panel can say 'showing UTC' rather than implying the merchant chose it. Requires an organization API key (sk_xxx); site tokens are rejected.
8011
+ */
8012
+ declare const getSiteAnalytics: <ThrowOnError extends boolean = false>(options: Options<GetSiteAnalyticsData, ThrowOnError>) => RequestResult<GetSiteAnalyticsResponses, GetSiteAnalyticsErrors, ThrowOnError, "fields">;
8013
+ /**
8014
+ * Set the site's analytics identity and reporting timezone (org key only)
8015
+ *
8016
+ * Points an existing site at its analytics identity and/or SEEDS its reporting timezone — the write path landingsite-app's sync and one-time backfill use for sites provisioned before analytics existed. Omitted fields are left alone, so a backfill can patch only what is missing. `timezone` is seed-only: it fills an unset zone and never overwrites or clears one, because invoicing owns that column and reads it for due dates and reminder times — deliberate changes go to PATCH /sites/{siteId}/invoice-settings. `analytics_id` does overwrite (null clears it), and a write that leaves two sites holding one analytics id is alerted rather than refused, so a re-provision or a re-run backfill is never wedged. Requires an organization API key (sk_xxx); site tokens are explicitly rejected, because this endpoint can repoint a merchant's panel at another tenant's traffic.
8017
+ */
8018
+ declare const updateSiteAnalytics: <ThrowOnError extends boolean = false>(options: Options<UpdateSiteAnalyticsData, ThrowOnError>) => RequestResult<UpdateSiteAnalyticsResponses, UpdateSiteAnalyticsErrors, ThrowOnError, "fields">;
7885
8019
  /**
7886
8020
  * List all forms for a site
7887
8021
  *
@@ -8155,4 +8289,4 @@ declare const resolveManageLink: <ThrowOnError extends boolean = false>(options:
8155
8289
  */
8156
8290
  declare const actOnManageLink: <ThrowOnError extends boolean = false>(options: Options<ActOnManageLinkData, ThrowOnError>) => RequestResult<ActOnManageLinkResponses, ActOnManageLinkErrors, ThrowOnError, "fields">;
8157
8291
 
8158
- export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, generateVariants, getBusinessSummary, getCartSummary, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getNextPayout, getOrder, getOrderSession, getPaymentsStatus, getPerson, getProduct, getPublicProduct, getRetainer, getSalesSummary, getSite, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, pauseRetainer, pauseSiteCheckout, previewInvoice, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateSite, updateSiteAccountRoute, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, voidInvoice };
8292
+ export { type AccountCancelSubscriptionData, type AccountCancelSubscriptionError, type AccountCancelSubscriptionErrors, type AccountCancelSubscriptionResponse, type AccountCancelSubscriptionResponses, type AccountCreatePortalSessionData, type AccountCreatePortalSessionError, type AccountCreatePortalSessionErrors, type AccountCreatePortalSessionResponse, type AccountCreatePortalSessionResponses, type AccountLoginData, type AccountLoginError, type AccountLoginErrors, type AccountLoginRequest, type AccountLoginResponse, type AccountLoginResponses, type AccountLoginResult, type AccountLogoutData, type AccountLogoutError, type AccountLogoutErrors, type AccountLogoutResponse, type AccountLogoutResponses, type AccountLogoutResult, type AccountManageCancelData, type AccountManageCancelError, type AccountManageCancelErrors, type AccountManageCancelResponse, type AccountManageCancelResponses, type AccountManageGetSubscriptionData, type AccountManageGetSubscriptionError, type AccountManageGetSubscriptionErrors, type AccountManageGetSubscriptionResponse, type AccountManageGetSubscriptionResponses, type AccountManagePortalSessionData, type AccountManagePortalSessionError, type AccountManagePortalSessionErrors, type AccountManagePortalSessionResponse, type AccountManagePortalSessionResponses, type AccountManageVerifyData, type AccountManageVerifyError, type AccountManageVerifyErrors, type AccountManageVerifyResponse, type AccountManageVerifyResponses, type AccountMeData, type AccountMeError, type AccountMeErrors, type AccountMeResponse, type AccountMeResponses, type AccountMeResult, type AccountReactivateSubscriptionData, type AccountReactivateSubscriptionError, type AccountReactivateSubscriptionErrors, type AccountReactivateSubscriptionResponse, type AccountReactivateSubscriptionResponses, type AccountSubscribeData, type AccountSubscribeError, type AccountSubscribeErrors, type AccountSubscribeRequest, type AccountSubscribeResponse, type AccountSubscribeResponses, type AccountUpdateSubscriptionAddressData, type AccountUpdateSubscriptionAddressError, type AccountUpdateSubscriptionAddressErrors, type AccountUpdateSubscriptionAddressResponse, type AccountUpdateSubscriptionAddressResponses, type AccountVerifyData, type AccountVerifyError, type AccountVerifyErrors, type AccountVerifyRequest, type AccountVerifyResponse, type AccountVerifyResponses, type AccountVerifyResult, type ActOnManageLinkData, type ActOnManageLinkError, type ActOnManageLinkErrors, type ActOnManageLinkResponse, type ActOnManageLinkResponses, type AdjustInventory, type AdjustVariantInventoryData, type AdjustVariantInventoryError, type AdjustVariantInventoryErrors, type AdjustVariantInventoryResponse, type AdjustVariantInventoryResponses, type AttachProductFileData, type AttachProductFileError, type AttachProductFileErrors, type AttachProductFileFromUrl, type AttachProductFileMultipart, type AttachProductFileResponse, type AttachProductFileResponses, type Attachment, type BusinessSummary, type CancelRetainerData, type CancelRetainerError, type CancelRetainerErrors, type CancelRetainerResponse, type CancelRetainerResponses, type CancelSubscriptionData, type CancelSubscriptionErrors, type CancelSubscriptionResponse, type CancelSubscriptionResponses, type CartCheckoutRequest, type CartConflict, type CartConflictItem, type CartSummaryRequest, type CartSummaryResult, type ChangedField, type CheckoutPauseRequest, type CheckoutPauseState, type CheckoutRequest, type CheckoutResult, type Client, type ClientOptions$1 as ClientConfig, type ClientOptions, type Config, type CreateCartCheckoutData, type CreateCartCheckoutError, type CreateCartCheckoutErrors, type CreateCartCheckoutResponse, type CreateCartCheckoutResponses, type CreateCheckoutData, type CreateCheckoutError, type CreateCheckoutErrors, type CreateCheckoutResponse, type CreateCheckoutResponses, type CreateCustomer, type CreateCustomerData, type CreateCustomerError, type CreateCustomerErrors, type CreateCustomerResponse, type CreateCustomerResponses, type CreateEventDestination, type CreateEventDestinationData, type CreateEventDestinationError, type CreateEventDestinationErrors, type CreateEventDestinationResponse, type CreateEventDestinationResponses, type CreateEventDestinationWithSiteTokenData, type CreateEventDestinationWithSiteTokenError, type CreateEventDestinationWithSiteTokenErrors, type CreateEventDestinationWithSiteTokenResponse, type CreateEventDestinationWithSiteTokenResponses, type CreateForm, type CreateFormData, type CreateFormError, type CreateFormErrors, type CreateFormResponse, type CreateFormResponses, type CreateFormWithSiteTokenData, type CreateFormWithSiteTokenError, type CreateFormWithSiteTokenErrors, type CreateFormWithSiteTokenResponse, type CreateFormWithSiteTokenResponses, type CreateInvoice, type CreateInvoiceData, type CreateInvoiceError, type CreateInvoiceErrors, type CreateInvoiceLine, type CreateInvoiceResponse, type CreateInvoiceResponses, type CreateInvoiceResult, type CreateMultiItemTestOrder, type CreateMultiItemTestOrderData, type CreateMultiItemTestOrderError, type CreateMultiItemTestOrderErrors, type CreateMultiItemTestOrderResponse, type CreateMultiItemTestOrderResponses, type CreateOption, type CreateOptionData, type CreateOptionError, type CreateOptionErrors, type CreateOptionResponse, type CreateOptionResponses, type CreatePreviewSession, type CreatePreviewSessionData, type CreatePreviewSessionError, type CreatePreviewSessionErrors, type CreatePreviewSessionResponse, type CreatePreviewSessionResponses, type CreateProduct, type CreateProductData, type CreateProductError, type CreateProductErrors, type CreateProductResponse, type CreateProductResponses, type CreateProductWithSiteTokenData, type CreateProductWithSiteTokenError, type CreateProductWithSiteTokenErrors, type CreateProductWithSiteTokenResponse, type CreateProductWithSiteTokenResponses, type CreateRetainer, type CreateRetainerData, type CreateRetainerError, type CreateRetainerErrors, type CreateRetainerResponse, type CreateRetainerResponses, type CreateRetainerResult, type CreateSite, type CreateSiteData, type CreateSiteError, type CreateSiteErrors, type CreateSiteResponse, type CreateSiteResponses, type CreateTestOrder, type CreateTestOrderData, type CreateTestOrderError, type CreateTestOrderErrors, type CreateTestOrderResponse, type CreateTestOrderResponses, type CreateTestSubscription, type CreateTestSubscriptionData, type CreateTestSubscriptionError, type CreateTestSubscriptionErrors, type CreateTestSubscriptionResponse, type CreateTestSubscriptionResponses, type CreateVariant, type CreateVariantData, type CreateVariantError, type CreateVariantErrors, type CreateVariantResponse, type CreateVariantResponses, type CurrencyRestatement, type CurrencyTotals, type Customer, type CustomerAddress, type CustomerBilling, type CustomerDetail, type CustomersList, type DeleteEventDestinationData, type DeleteEventDestinationError, type DeleteEventDestinationErrors, type DeleteEventDestinationResponse, type DeleteEventDestinationResponses, type DeleteEventDestinationWithSiteTokenData, type DeleteEventDestinationWithSiteTokenError, type DeleteEventDestinationWithSiteTokenErrors, type DeleteEventDestinationWithSiteTokenResponse, type DeleteEventDestinationWithSiteTokenResponses, type DeleteFormData, type DeleteFormError, type DeleteFormErrors, type DeleteFormResponse, type DeleteFormResponses, type DeleteOptionData, type DeleteOptionError, type DeleteOptionErrors, type DeleteOptionResponse, type DeleteOptionResponses, type DeleteProductData, type DeleteProductError, type DeleteProductErrors, type DeleteProductResponse, type DeleteProductResponses, type DeleteSiteData, type DeleteSiteError, type DeleteSiteErrors, type DeleteSiteResponse, type DeleteSiteResponses, type DeleteSubmissionData, type DeleteSubmissionError, type DeleteSubmissionErrors, type DeleteSubmissionResponse, type DeleteSubmissionResponses, type DeleteVariantData, type DeleteVariantError, type DeleteVariantErrors, type DeleteVariantResponse, type DeleteVariantResponses, type DownloadAttachmentData, type DownloadAttachmentError, type DownloadAttachmentErrors, type DownloadAttachmentResponses, type DownloadFileData, type DownloadFileError, type DownloadFileErrors, type DownloadFileResponse, type DownloadFileResponses, type EmailDelivery, type Error, type EventDeliveriesList, type EventDelivery, type EventDestination, type EventDestinationSecret, type EventDestinationsList, type Form, type FormsList, type GenerateVariants, type GenerateVariantsData, type GenerateVariantsError, type GenerateVariantsErrors, type GenerateVariantsResponse, type GenerateVariantsResponses, type GenerateVariantsResult, type GeoSuggestion, type GetBusinessSummaryData, type GetBusinessSummaryErrors, type GetBusinessSummaryResponse, type GetBusinessSummaryResponses, type GetCartSummaryData, type GetCartSummaryError, type GetCartSummaryErrors, type GetCartSummaryResponse, type GetCartSummaryResponses, type GetCustomerData, type GetCustomerError, type GetCustomerErrors, type GetCustomerResponse, type GetCustomerResponses, type GetEventDestinationData, type GetEventDestinationError, type GetEventDestinationErrors, type GetEventDestinationResponse, type GetEventDestinationResponses, type GetEventDestinationSecretData, type GetEventDestinationSecretError, type GetEventDestinationSecretErrors, type GetEventDestinationSecretResponse, type GetEventDestinationSecretResponses, type GetEventDestinationSecretWithSiteTokenData, type GetEventDestinationSecretWithSiteTokenError, type GetEventDestinationSecretWithSiteTokenErrors, type GetEventDestinationSecretWithSiteTokenResponse, type GetEventDestinationSecretWithSiteTokenResponses, type GetFormData, type GetFormError, type GetFormErrors, type GetFormResponse, type GetFormResponses, type GetGeoData, type GetGeoResponse, type GetGeoResponses, type GetInvoiceData, type GetInvoiceError, type GetInvoiceErrors, type GetInvoicePreviewData, type GetInvoicePreviewError, type GetInvoicePreviewErrors, type GetInvoicePreviewResponse, type GetInvoicePreviewResponses, type GetInvoiceResponse, type GetInvoiceResponses, type GetInvoiceSettingsData, type GetInvoiceSettingsError, type GetInvoiceSettingsErrors, type GetInvoiceSettingsResponse, type GetInvoiceSettingsResponses, type GetInvoiceSettingsWithSiteTokenData, type GetInvoiceSettingsWithSiteTokenError, type GetInvoiceSettingsWithSiteTokenErrors, type GetInvoiceSettingsWithSiteTokenResponse, type GetInvoiceSettingsWithSiteTokenResponses, type GetNextPayoutData, type GetNextPayoutErrors, type GetNextPayoutResponse, type GetNextPayoutResponses, type GetOrderData, type GetOrderError, type GetOrderErrors, type GetOrderResponse, type GetOrderResponses, type GetOrderSessionData, type GetOrderSessionError, type GetOrderSessionErrors, type GetOrderSessionResponse, type GetOrderSessionResponses, type GetPaymentsStatusData, type GetPaymentsStatusError, type GetPaymentsStatusErrors, type GetPaymentsStatusResponse, type GetPaymentsStatusResponses, type GetPersonData, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetProductData, type GetProductError, type GetProductErrors, type GetProductResponse, type GetProductResponses, type GetPublicProductData, type GetPublicProductError, type GetPublicProductErrors, type GetPublicProductResponse, type GetPublicProductResponses, type GetRetainerData, type GetRetainerError, type GetRetainerErrors, type GetRetainerResponse, type GetRetainerResponses, type GetSalesSummaryData, type GetSalesSummaryErrors, type GetSalesSummaryResponse, type GetSalesSummaryResponses, type GetSiteAnalyticsData, type GetSiteAnalyticsError, type GetSiteAnalyticsErrors, type GetSiteAnalyticsResponse, type GetSiteAnalyticsResponses, type GetSiteCheckoutPauseData, type GetSiteCheckoutPauseError, type GetSiteCheckoutPauseErrors, type GetSiteCheckoutPauseResponse, type GetSiteCheckoutPauseResponses, type GetSiteData, type GetSiteError, type GetSiteErrors, type GetSiteResponse, type GetSiteResponses, type GetSubmissionData, type GetSubmissionError, type GetSubmissionErrors, type GetSubmissionResponse, type GetSubmissionResponses, type Inventory, type InventoryInput, type Invoice, type InvoiceAggregates, type InvoiceBillTo, type InvoiceError, type InvoiceLineItem, type InvoicePreview, type InvoiceSettings, type InvoiceSiteBody, type InvoicesList, type ListCustomersData, type ListCustomersError, type ListCustomersErrors, type ListCustomersResponse, type ListCustomersResponses, type ListEventDeliveriesData, type ListEventDeliveriesError, type ListEventDeliveriesErrors, type ListEventDeliveriesResponse, type ListEventDeliveriesResponses, type ListEventDeliveriesWithSiteTokenData, type ListEventDeliveriesWithSiteTokenError, type ListEventDeliveriesWithSiteTokenErrors, type ListEventDeliveriesWithSiteTokenResponse, type ListEventDeliveriesWithSiteTokenResponses, type ListEventDestinationsData, type ListEventDestinationsError, type ListEventDestinationsErrors, type ListEventDestinationsResponse, type ListEventDestinationsResponses, type ListEventDestinationsWithSiteTokenData, type ListEventDestinationsWithSiteTokenError, type ListEventDestinationsWithSiteTokenErrors, type ListEventDestinationsWithSiteTokenResponse, type ListEventDestinationsWithSiteTokenResponses, type ListFormsData, type ListFormsError, type ListFormsErrors, type ListFormsResponse, type ListFormsResponses, type ListFormsWithSiteTokenData, type ListFormsWithSiteTokenError, type ListFormsWithSiteTokenErrors, type ListFormsWithSiteTokenResponse, type ListFormsWithSiteTokenResponses, type ListInvoicesData, type ListInvoicesError, type ListInvoicesErrors, type ListInvoicesResponse, type ListInvoicesResponses, type ListOrdersWithSiteTokenData, type ListOrdersWithSiteTokenError, type ListOrdersWithSiteTokenErrors, type ListOrdersWithSiteTokenResponse, type ListOrdersWithSiteTokenResponses, type ListPeopleData, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListProductsData, type ListProductsError, type ListProductsErrors, type ListProductsResponse, type ListProductsResponses, type ListProductsWithSiteTokenData, type ListProductsWithSiteTokenError, type ListProductsWithSiteTokenErrors, type ListProductsWithSiteTokenResponse, type ListProductsWithSiteTokenResponses, type ListRetainersData, type ListRetainersError, type ListRetainersErrors, type ListRetainersResponse, type ListRetainersResponses, type ListSitesData, type ListSitesError, type ListSitesErrors, type ListSitesResponse, type ListSitesResponses, type ListSubmissionsData, type ListSubmissionsError, type ListSubmissionsErrors, type ListSubmissionsResponse, type ListSubmissionsResponses, type ListSubscriptionsData, type ListSubscriptionsErrors, type ListSubscriptionsResponse, type ListSubscriptionsResponses, type ManageCancelResult, type ManageLinkAction, type ManageVerifyRequest, type ManageVerifyResult, type ManagedSubscription, type ManagedSubscriptionResult, type MarkInvoicePaid, type MarkInvoicePaidData, type MarkInvoicePaidError, type MarkInvoicePaidErrors, type MarkInvoicePaidResponse, type MarkInvoicePaidResponses, type MarkInvoicePaidResult, type MarkInvoiceUncollectibleData, type MarkInvoiceUncollectibleError, type MarkInvoiceUncollectibleErrors, type MarkInvoiceUncollectibleResponse, type MarkInvoiceUncollectibleResponses, type NeedsAttentionItem, type NestedOptionInput, type NestedVariantInput, type NextPayout, type Option, type Options, type Order, type OrderCustomer, type OrderFulfillmentRequest, type OrderSessionStatus, type OrdersList, type PauseRetainerData, type PauseRetainerError, type PauseRetainerErrors, type PauseRetainerResponse, type PauseRetainerResponses, type PauseSiteCheckoutData, type PauseSiteCheckoutError, type PauseSiteCheckoutErrors, type PauseSiteCheckoutResponse, type PauseSiteCheckoutResponses, type PaymentsStatus, type PeopleList, type PersonDetail, type PersonRow, type PortalSessionResult, type PreviewInvoice, type PreviewInvoiceData, type PreviewInvoiceError, type PreviewInvoiceErrors, type PreviewInvoiceResponse, type PreviewInvoiceResponses, type PreviewSessionResult, type Product, type ProductDetail, type ProductFulfillment, type ProductFulfillmentInput, type ProductSubscriptionConfig, type ProductsList, type PublicOption, type PublicProduct, type PublicSubscription, type PublicSubscriptionPlan, type PublicVariant, type ReactivateSiteSubscriptionsTeardownData, type ReactivateSiteSubscriptionsTeardownError, type ReactivateSiteSubscriptionsTeardownErrors, type ReactivateSiteSubscriptionsTeardownResponse, type ReactivateSiteSubscriptionsTeardownResponses, type RecipientCooldownError, type ReconcileOptionInput, type ReconcileOptionValueInput, type ReconcileVariantInput, type RefundOrder, type RefundOrderData, type RefundOrderError, type RefundOrderErrors, type RefundOrderResponse, type RefundOrderResponses, type RefundResult, type ReissueResult, type RemindInvoiceData, type RemindInvoiceError, type RemindInvoiceErrors, type RemindInvoiceResponse, type RemindInvoiceResponses, type RemindInvoiceResult, type ResendInvoiceData, type ResendInvoiceError, type ResendInvoiceErrors, type ResendInvoiceResponse, type ResendInvoiceResponses, type ResendOrderReceiptData, type ResendOrderReceiptError, type ResendOrderReceiptErrors, type ResendOrderReceiptResponse, type ResendOrderReceiptResponses, type ResendReceiptResult, type ResetOrderDownloadsData, type ResetOrderDownloadsError, type ResetOrderDownloadsErrors, type ResetOrderDownloadsResponse, type ResetOrderDownloadsResponses, type ResetWebhookEventData, type ResetWebhookEventError, type ResetWebhookEventErrors, type ResetWebhookEventResponse, type ResetWebhookEventResponses, type ResolveManageLinkData, type ResolveManageLinkError, type ResolveManageLinkErrors, type ResolveManageLinkResponse, type ResolveManageLinkResponses, type ResumeRetainerData, type ResumeRetainerError, type ResumeRetainerErrors, type ResumeRetainerResponse, type ResumeRetainerResponses, type Retainer, type RetainerError, type RetainerSiteBody, type RetainersList, type RetryEventDeliveryData, type RetryEventDeliveryError, type RetryEventDeliveryErrors, type RetryEventDeliveryResponse, type RetryEventDeliveryResponses, type RetryEventDeliveryWithSiteTokenData, type RetryEventDeliveryWithSiteTokenError, type RetryEventDeliveryWithSiteTokenErrors, type RetryEventDeliveryWithSiteTokenResponse, type RetryEventDeliveryWithSiteTokenResponses, type RevokeCustomerAccessData, type RevokeCustomerAccessError, type RevokeCustomerAccessErrors, type RevokeCustomerAccessResponse, type RevokeCustomerAccessResponses, type RevokeCustomerAccessResult, type RotateEventDestinationSecretData, type RotateEventDestinationSecretError, type RotateEventDestinationSecretErrors, type RotateEventDestinationSecretResponse, type RotateEventDestinationSecretResponses, type RotateEventDestinationSecretWithSiteTokenData, type RotateEventDestinationSecretWithSiteTokenError, type RotateEventDestinationSecretWithSiteTokenErrors, type RotateEventDestinationSecretWithSiteTokenResponse, type RotateEventDestinationSecretWithSiteTokenResponses, type SalesSummary, type SalesSummaryProductRow, type SalesSummarySeriesEntry, type SetInventory, type SetInvoiceReminders, type SetInvoiceRemindersData, type SetInvoiceRemindersError, type SetInvoiceRemindersErrors, type SetInvoiceRemindersResponse, type SetInvoiceRemindersResponses, type SetOrderFulfillmentData, type SetOrderFulfillmentErrors, type SetOrderFulfillmentResponse, type SetOrderFulfillmentResponses, type SetProductSubscription, type SetProductSubscriptionData, type SetProductSubscriptionError, type SetProductSubscriptionErrors, type SetProductSubscriptionResponse, type SetProductSubscriptionResponses, type SetProductVariants, type SetProductVariantsConflict, type SetProductVariantsData, type SetProductVariantsError, type SetProductVariantsErrors, type SetProductVariantsResponse, type SetProductVariantsResponses, type SetProductVariantsResult, type SetVariantInventoryData, type SetVariantInventoryError, type SetVariantInventoryErrors, type SetVariantInventoryResponse, type SetVariantInventoryResponses, type SettledTotals, type ShippingOptionUnavailable, type ShippingRateInput, type Site, type SiteAccountRoute, type SiteAnalytics, type SiteDomains, type SitePayments, type SiteWithRestatement, type SiteWithToken, type SitesList, type SkipNextRetainerCycleData, type SkipNextRetainerCycleError, type SkipNextRetainerCycleErrors, type SkipNextRetainerCycleResponse, type SkipNextRetainerCycleResponses, type SnoozeInvoice, type SnoozeInvoiceData, type SnoozeInvoiceError, type SnoozeInvoiceErrors, type SnoozeInvoiceResponse, type SnoozeInvoiceResponses, type Submission, type SubmissionMetadata, type SubmissionsList, type SubscriberActionResult, type SubscriberSubscription, type SubscriptionPlan, type SubscriptionPlanInput, type SubscriptionSummary, type SubscriptionsList, type SubscriptionsReactivateBody, type SubscriptionsReactivateResult, type SubscriptionsTeardownBody, type SubscriptionsTeardownResult, type SummaryPeriod, type TeardownReason, type TeardownSiteSubscriptionsData, type TeardownSiteSubscriptionsError, type TeardownSiteSubscriptionsErrors, type TeardownSiteSubscriptionsResponse, type TeardownSiteSubscriptionsResponses, type TestOrderResult, type TestShippingAddress, type TestSubscriptionResult, type UpdateCustomer, type UpdateCustomerBilling, type UpdateCustomerBillingData, type UpdateCustomerBillingError, type UpdateCustomerBillingErrors, type UpdateCustomerBillingResponse, type UpdateCustomerBillingResponses, type UpdateCustomerData, type UpdateCustomerError, type UpdateCustomerErrors, type UpdateCustomerResponse, type UpdateCustomerResponses, type UpdateEventDestination, type UpdateEventDestinationData, type UpdateEventDestinationError, type UpdateEventDestinationErrors, type UpdateEventDestinationResponse, type UpdateEventDestinationResponses, type UpdateEventDestinationWithSiteTokenData, type UpdateEventDestinationWithSiteTokenError, type UpdateEventDestinationWithSiteTokenErrors, type UpdateEventDestinationWithSiteTokenResponse, type UpdateEventDestinationWithSiteTokenResponses, type UpdateForm, type UpdateFormData, type UpdateFormError, type UpdateFormErrors, type UpdateFormResponse, type UpdateFormResponses, type UpdateInvoiceRecipient, type UpdateInvoiceRecipientData, type UpdateInvoiceRecipientError, type UpdateInvoiceRecipientErrors, type UpdateInvoiceRecipientResponse, type UpdateInvoiceRecipientResponses, type UpdateInvoiceSettings, type UpdateInvoiceSettingsData, type UpdateInvoiceSettingsError, type UpdateInvoiceSettingsErrors, type UpdateInvoiceSettingsResponse, type UpdateInvoiceSettingsResponses, type UpdateOption, type UpdateOptionData, type UpdateOptionError, type UpdateOptionErrors, type UpdateOptionResponse, type UpdateOptionResponses, type UpdateProduct, type UpdateProductData, type UpdateProductError, type UpdateProductErrors, type UpdateProductResponse, type UpdateProductResponses, type UpdateRecipientResult, type UpdateRetainer, type UpdateRetainerData, type UpdateRetainerError, type UpdateRetainerErrors, type UpdateRetainerResponse, type UpdateRetainerResponses, type UpdateSite, type UpdateSiteAccountRoute, type UpdateSiteAccountRouteData, type UpdateSiteAccountRouteError, type UpdateSiteAccountRouteErrors, type UpdateSiteAccountRouteResponse, type UpdateSiteAccountRouteResponses, type UpdateSiteAnalytics, type UpdateSiteAnalyticsData, type UpdateSiteAnalyticsError, type UpdateSiteAnalyticsErrors, type UpdateSiteAnalyticsResponse, type UpdateSiteAnalyticsResponses, type UpdateSiteData, type UpdateSiteDomains, type UpdateSiteDomainsData, type UpdateSiteDomainsError, type UpdateSiteDomainsErrors, type UpdateSiteDomainsResponse, type UpdateSiteDomainsResponses, type UpdateSiteError, type UpdateSiteErrors, type UpdateSiteInvoicing, type UpdateSiteInvoicingData, type UpdateSiteInvoicingError, type UpdateSiteInvoicingErrors, type UpdateSiteInvoicingResponse, type UpdateSiteInvoicingResponses, type UpdateSitePayments, type UpdateSitePaymentsData, type UpdateSitePaymentsError, type UpdateSitePaymentsErrors, type UpdateSitePaymentsResponse, type UpdateSitePaymentsResponses, type UpdateSiteResponse, type UpdateSiteResponses, type UpdateSubscriptionAddressRequest, type UpdateVariant, type UpdateVariantData, type UpdateVariantError, type UpdateVariantErrors, type UpdateVariantResponse, type UpdateVariantResponses, type Variant, type VariantOptionValue, type VoidInvoice, type VoidInvoiceData, type VoidInvoiceError, type VoidInvoiceErrors, type VoidInvoiceResponse, type VoidInvoiceResponses, type VoidInvoiceResult, type WebhookEventResetResult, accountCancelSubscription, accountCreatePortalSession, accountLogin, accountLogout, accountManageCancel, accountManageGetSubscription, accountManagePortalSession, accountManageVerify, accountMe, accountReactivateSubscription, accountSubscribe, accountUpdateSubscriptionAddress, accountVerify, actOnManageLink, adjustVariantInventory, attachProductFile, cancelRetainer, cancelSubscription, createCartCheckout, createCheckout, createClient, createConfig, createCustomer, createEventDestination, createEventDestinationWithSiteToken, createForm, createFormWithSiteToken, createInvoice, createMultiItemTestOrder, createOption, createPreviewSession, createProduct, createProductWithSiteToken, createRetainer, createSite, createTestOrder, createTestSubscription, createVariant, deleteEventDestination, deleteEventDestinationWithSiteToken, deleteForm, deleteOption, deleteProduct, deleteSite, deleteSubmission, deleteVariant, downloadAttachment, downloadFile, generateVariants, getBusinessSummary, getCartSummary, getCustomer, getEventDestination, getEventDestinationSecret, getEventDestinationSecretWithSiteToken, getForm, getGeo, getInvoice, getInvoicePreview, getInvoiceSettings, getInvoiceSettingsWithSiteToken, getNextPayout, getOrder, getOrderSession, getPaymentsStatus, getPerson, getProduct, getPublicProduct, getRetainer, getSalesSummary, getSite, getSiteAnalytics, getSiteCheckoutPause, getSubmission, listCustomers, listEventDeliveries, listEventDeliveriesWithSiteToken, listEventDestinations, listEventDestinationsWithSiteToken, listForms, listFormsWithSiteToken, listInvoices, listOrdersWithSiteToken, listPeople, listProducts, listProductsWithSiteToken, listRetainers, listSites, listSubmissions, listSubscriptions, markInvoicePaid, markInvoiceUncollectible, pauseRetainer, pauseSiteCheckout, previewInvoice, reactivateSiteSubscriptionsTeardown, refundOrder, remindInvoice, resendInvoice, resendOrderReceipt, resetOrderDownloads, resetWebhookEvent, resolveManageLink, resumeRetainer, retryEventDelivery, retryEventDeliveryWithSiteToken, revokeCustomerAccess, rotateEventDestinationSecret, rotateEventDestinationSecretWithSiteToken, setInvoiceReminders, setOrderFulfillment, setProductSubscription, setProductVariants, setVariantInventory, skipNextRetainerCycle, snoozeInvoice, teardownSiteSubscriptions, updateCustomer, updateCustomerBilling, updateEventDestination, updateEventDestinationWithSiteToken, updateForm, updateInvoiceRecipient, updateInvoiceSettings, updateOption, updateProduct, updateRetainer, updateSite, updateSiteAccountRoute, updateSiteAnalytics, updateSiteDomains, updateSiteInvoicing, updateSitePayments, updateVariant, voidInvoice };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- var $=(e,r,s)=>{typeof s=="string"?e.append(r,s):e.append(r,JSON.stringify(s))};var W={bodySerializer:e=>JSON.stringify(e,(r,s)=>typeof s=="bigint"?s.toString():s)},V={bodySerializer:e=>{let r=new URLSearchParams;return Object.entries(e).forEach(([s,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>$(r,s,i)):$(r,s,n))}),r.toString()}};var oe={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Fr=Object.entries(oe);var H=({onRequest:e,onSseError:r,onSseEvent:s,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:u,sseMaxRetryAttempts:c,sseMaxRetryDelay:a,sseSleepFn:p,url:d,...o})=>{let S,C=p??(l=>new Promise(R=>setTimeout(R,l)));return{stream:async function*(){let l=u??3e3,R=0,D=o.signal??new AbortController().signal;for(;!D.aborted;){R++;let g=o.headers instanceof Headers?o.headers:new Headers(o.headers);S!==void 0&&g.set("Last-Event-ID",S);try{let T={redirect:"follow",...o,body:o.serializedBody,headers:g,signal:D},m=new Request(d,T);e&&(m=await e(d,T));let E=await(o.fetch??globalThis.fetch)(m);if(!E.ok)throw new Error(`SSE failed: ${E.status} ${E.statusText}`);if(!E.body)throw new Error("No body in SSE response");let v=E.body.pipeThrough(new TextDecoderStream).getReader(),I="",j=()=>{try{v.cancel()}catch{}};D.addEventListener("abort",j);try{for(;;){let{done:ee,value:te}=await v.read();if(ee)break;I+=te,I=I.replace(/\r\n/g,`
1
+ var $=(e,r,s)=>{typeof s=="string"?e.append(r,s):e.append(r,JSON.stringify(s))};var W={bodySerializer:e=>JSON.stringify(e,(r,s)=>typeof s=="bigint"?s.toString():s)},V={bodySerializer:e=>{let r=new URLSearchParams;return Object.entries(e).forEach(([s,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>$(r,s,i)):$(r,s,n))}),r.toString()}};var oe={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},jr=Object.entries(oe);var H=({onRequest:e,onSseError:r,onSseEvent:s,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:u,sseMaxRetryAttempts:c,sseMaxRetryDelay:a,sseSleepFn:p,url:d,...o})=>{let S,C=p??(l=>new Promise(R=>setTimeout(R,l)));return{stream:async function*(){let l=u??3e3,R=0,D=o.signal??new AbortController().signal;for(;!D.aborted;){R++;let g=o.headers instanceof Headers?o.headers:new Headers(o.headers);S!==void 0&&g.set("Last-Event-ID",S);try{let T={redirect:"follow",...o,body:o.serializedBody,headers:g,signal:D},m=new Request(d,T);e&&(m=await e(d,T));let E=await(o.fetch??globalThis.fetch)(m);if(!E.ok)throw new Error(`SSE failed: ${E.status} ${E.statusText}`);if(!E.body)throw new Error("No body in SSE response");let v=E.body.pipeThrough(new TextDecoderStream).getReader(),I="",j=()=>{try{v.cancel()}catch{}};D.addEventListener("abort",j);try{for(;;){let{done:ee,value:te}=await v.read();if(ee)break;I+=te,I=I.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let z=I.split(`
4
4
 
5
5
  `);I=z.pop()??"";for(let re of z){let se=re.split(`
6
6
  `),x=[],q;for(let O of se)if(O.startsWith("data:"))x.push(O.replace(/^data:\s*/,""));else if(O.startsWith("event:"))q=O.replace(/^event:\s*/,"");else if(O.startsWith("id:"))S=O.replace(/^id:\s*/,"");else if(O.startsWith("retry:")){let N=Number.parseInt(O.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(l=N)}let b,B=!1;if(x.length){let O=x.join(`
7
- `);try{b=JSON.parse(O),B=!0}catch{b=O}}B&&(i&&await i(b),n&&(b=await n(b))),s?.({data:b,event:q,id:S,retry:l}),x.length&&(yield b)}}}finally{D.removeEventListener("abort",j),v.releaseLock()}break}catch(T){if(r?.(T),c!==void 0&&R>=c)break;let m=Math.min(l*2**(R-1),a??3e4);await C(m)}}}()}};var ne=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ie=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ae=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},A=({allowReserved:e,explode:r,name:s,style:n,value:i})=>{if(!r){let a=(e?i:i.map(p=>encodeURIComponent(p))).join(ie(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${s}=${a}`;case"simple":return a;default:return`${s}=${a}`}}let u=ne(n),c=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):f({allowReserved:e,name:s,value:a})).join(u);return n==="label"||n==="matrix"?u+c:c},f=({allowReserved:e,name:r,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?s:encodeURIComponent(s)}`},G=({allowReserved:e,explode:r,name:s,style:n,value:i,valueOnly:u})=>{if(i instanceof Date)return u?i.toISOString():`${s}=${i.toISOString()}`;if(n!=="deepObject"&&!r){let p=[];Object.entries(i).forEach(([o,S])=>{p=[...p,o,e?S:encodeURIComponent(S)]});let d=p.join(",");switch(n){case"form":return`${s}=${d}`;case"label":return`.${d}`;case"matrix":return`;${s}=${d}`;default:return d}}let c=ae(n),a=Object.entries(i).map(([p,d])=>f({allowReserved:e,name:n==="deepObject"?`${s}[${p}]`:p,value:d})).join(c);return n==="label"||n==="matrix"?c+a:a};var ce=/\{[^{}]+\}/g,pe=({path:e,url:r})=>{let s=r,n=r.match(ce);if(n)for(let i of n){let u=!1,c=i.substring(1,i.length-1),a="simple";c.endsWith("*")&&(u=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),a="label"):c.startsWith(";")&&(c=c.substring(1),a="matrix");let p=e[c];if(p==null)continue;if(Array.isArray(p)){s=s.replace(i,A({explode:u,name:c,style:a,value:p}));continue}if(typeof p=="object"){s=s.replace(i,G({explode:u,name:c,style:a,value:p,valueOnly:!0}));continue}if(a==="matrix"){s=s.replace(i,`;${f({name:c,value:p})}`);continue}let d=encodeURIComponent(a==="label"?`.${p}`:p);s=s.replace(i,d)}return s},J=({baseUrl:e,path:r,query:s,querySerializer:n,url:i})=>{let u=i.startsWith("/")?i:`/${i}`,c=(e??"")+u;r&&(c=pe({path:r,url:c}));let a=s?n(s):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(c+=`?${a}`),c};function Q(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var _=async(e,r)=>{let s=typeof r=="function"?await r(e):r;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var K=({parameters:e={},...r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let u in n){let c=n[u];if(c==null)continue;let a=e[u]||r;if(Array.isArray(c)){let p=A({allowReserved:a.allowReserved,explode:!0,name:u,style:"form",value:c,...a.array});p&&i.push(p)}else if(typeof c=="object"){let p=G({allowReserved:a.allowReserved,explode:!0,name:u,style:"deepObject",value:c,...a.object});p&&i.push(p)}else{let p=f({allowReserved:a.allowReserved,name:u,value:c});p&&i.push(p)}}return i.join("&")},X=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>r.startsWith(s)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,Y=async({security:e,...r})=>{for(let s of e){if(ue(r,s.name))continue;let n=await _(s,r.auth);if(!n)continue;let i=s.name??"Authorization";switch(s.in){case"query":r.query||(r.query={}),r.query[i]=n;break;case"cookie":r.headers.append("Cookie",`${i}=${n}`);break;case"header":default:r.headers.set(i,n);break}}},F=e=>J({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:K(e.querySerializer),url:e.url}),M=(e,r)=>{let s={...e,...r};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=L(e.headers,r.headers),s},le=e=>{let r=[];return e.forEach((s,n)=>{r.push([n,s])}),r},L=(...e)=>{let r=new Headers;for(let s of e){if(!s)continue;let n=s instanceof Headers?le(s):Object.entries(s);for(let[i,u]of n)if(u===null)r.delete(i);else if(Array.isArray(u))for(let c of u)r.append(i,c);else u!==void 0&&r.set(i,typeof u=="object"?JSON.stringify(u):u)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let s=this.getInterceptorIndex(r);this.fns[s]&&(this.fns[s]=null)}exists(r){let s=this.getInterceptorIndex(r);return!!this.fns[s]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,s){let n=this.getInterceptorIndex(r);return this.fns[n]?(this.fns[n]=s,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},Z=()=>({error:new k,request:new k,response:new k}),de=K({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},w=(e={})=>({...W,headers:he,parseAs:"auto",querySerializer:de,...e});var U=(e={})=>{let r=M(w(),e),s=()=>({...r}),n=d=>(r=M(r,d),s()),i=Z(),u=async d=>{let o={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:L(r.headers,d.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let S=F(o);return{opts:o,url:S}},c=async d=>{let{opts:o,url:S}=await u(d),C={redirect:"follow",...o,body:Q(o)},y=new Request(S,C);for(let h of i.request.fns)h&&(y=await h(y,o));let P=o.fetch,l;try{l=await P(y)}catch(h){let E=h;for(let v of i.error.fns)v&&(E=await v(h,void 0,y,o));if(E=E||{},o.throwOnError)throw E;return o.responseStyle==="data"?void 0:{error:E,request:y,response:void 0}}for(let h of i.response.fns)h&&(l=await h(l,y,o));let R={request:y,response:l};if(l.ok){let h=(o.parseAs==="auto"?X(l.headers.get("Content-Type")):o.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let v;switch(h){case"arrayBuffer":case"blob":case"text":v=await l[h]();break;case"formData":v=new FormData;break;case"stream":v=l.body;break;case"json":default:v={};break}return o.responseStyle==="data"?v:{data:v,...R}}let E;switch(h){case"arrayBuffer":case"blob":case"formData":case"json":case"text":E=await l[h]();break;case"stream":return o.responseStyle==="data"?l.body:{data:l.body,...R}}return h==="json"&&(o.responseValidator&&await o.responseValidator(E),o.responseTransformer&&(E=await o.responseTransformer(E))),o.responseStyle==="data"?E:{data:E,...R}}let D=await l.text(),g;try{g=JSON.parse(D)}catch{}let T=g??D,m=T;for(let h of i.error.fns)h&&(m=await h(T,l,y,o));if(m=m||{},o.throwOnError)throw m;return o.responseStyle==="data"?void 0:{error:m,...R}},a=d=>o=>c({...o,method:d}),p=d=>async o=>{let{opts:S,url:C}=await u(o);return H({...S,body:S.body,headers:S.headers,method:d,onRequest:async(y,P)=>{let l=new Request(y,P);for(let R of i.request.fns)R&&(l=await R(l,S));return l},url:C})};return{buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:s,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:c,setConfig:n,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var t=U(w({baseUrl:"https://aifeatures.dev"}));var Ee=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/payments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/account-route",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payments/status",...e}),ve=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e}),ye=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e}),me=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),Te=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),be=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/file",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-order",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/test-orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e}),Ge=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/options",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e}),We=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory/adjust",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders",...e}),je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}",...e}),ze=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/refund",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/resend-receipt",...e}),Be=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/reset-downloads",...e}),Ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/webhook-events/{eventId}/reset",...e}),$e=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e}),He=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e}),Qe=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/revoke-access",...e}),Ke=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/summary",...e}),Xe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sales-summary",...e}),Ye=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people",...e}),Ze=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people/{email}",...e}),et=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payouts/next",...e}),tt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/fulfillment",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions",...e}),st=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions/{subscriptionId}/cancel",...e}),ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/reactivate-teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),it=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/preview-session",...e,headers:{"Content-Type":"application/json",...e.headers}}),at=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e}),ct=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}",...e}),ut=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/preview",...e}),dt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/void",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/resend",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/remind",...e,headers:{"Content-Type":"application/json",...e.headers}}),St=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/snooze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/reminders",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-paid",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-uncollectible",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/recipient",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/billing",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoice-settings",...e}),Tt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e}),bt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoicing",...e,headers:{"Content-Type":"application/json",...e.headers}}),wt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e}),Ct=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e,headers:{"Content-Type":"application/json",...e.headers}}),gt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e}),It=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/skip-next",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/resume",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/cancel",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e}),Lt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e}),Wt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Ft=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Mt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e}),zt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),qt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/domains",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e}),Nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),$t=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Ht=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Jt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}/submissions",...e}),_t=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Kt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Xt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}/attachments/{attachmentId}",...e}),Yt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e}),Zt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),er=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),tr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),rr=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/rotate-secret",...e}),or=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/secret",...e}),nr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries",...e}),ir=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),ar=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e}),cr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),pr=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e}),ur=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/rotate-secret",...e}),dr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/secret",...e}),hr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries",...e}),Er=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),Sr=e=>(e.client??t).get({url:"/v1/p/{productId}",...e}),Rr=e=>(e.client??t).post({url:"/v1/p/{productId}/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),vr=e=>(e.client??t).post({url:"/v1/p/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),yr=e=>(e.client??t).post({url:"/v1/p/checkout/summary",...e,headers:{"Content-Type":"application/json",...e.headers}}),Or=e=>(e.client??t).get({url:"/v1/o/session/{sessionId}",...e}),mr=e=>(e.client??t).get({url:"/v1/d/{token}",...e}),Dr=e=>(e?.client??t).get({url:"/v1/geo",...e}),Tr=e=>(e.client??t).post({url:"/v1/account/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),br=e=>(e.client??t).post({url:"/v1/account/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),fr=e=>(e?.client??t).post({url:"/v1/account/logout",...e}),wr=e=>(e?.client??t).get({url:"/v1/account/me",...e}),Cr=e=>(e.client??t).post({url:"/v1/account/subscribe",...e,headers:{"Content-Type":"application/json",...e.headers}}),gr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/cancel",...e}),Ir=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/reactivate",...e}),kr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/address",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/portal-session",...e}),xr=e=>(e.client??t).post({url:"/v1/account/manage/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ar=e=>(e?.client??t).get({url:"/v1/account/manage/subscription",...e}),Gr=e=>(e?.client??t).post({url:"/v1/account/manage/cancel",...e}),Lr=e=>(e?.client??t).post({url:"/v1/account/manage/portal-session",...e}),Ur=e=>(e.client??t).get({url:"/v1/m/{token}",...e}),Wr=e=>(e.client??t).post({...V,url:"/v1/m/{token}",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}});export{gr as accountCancelSubscription,Pr as accountCreatePortalSession,Tr as accountLogin,fr as accountLogout,Gr as accountManageCancel,Ar as accountManageGetSubscription,Lr as accountManagePortalSession,xr as accountManageVerify,wr as accountMe,Ir as accountReactivateSubscription,Cr as accountSubscribe,kr as accountUpdateSubscriptionAddress,br as accountVerify,Wr as actOnManageLink,Fe as adjustVariantInventory,fe as attachProductFile,At as cancelRetainer,st as cancelSubscription,vr as createCartCheckout,Rr as createCheckout,U as createClient,w as createConfig,He as createCustomer,Zt as createEventDestination,cr as createEventDestinationWithSiteToken,Nt as createForm,Lt as createFormWithSiteToken,ct as createInvoice,Ie as createMultiItemTestOrder,Le as createOption,it as createPreviewSession,me as createProduct,ye as createProductWithSiteToken,Ct as createRetainer,Wt as createSite,Ce as createTestOrder,ge as createTestSubscription,ke as createVariant,er as deleteEventDestination,pr as deleteEventDestinationWithSiteToken,$t as deleteForm,Ue as deleteOption,De as deleteProduct,Vt as deleteSite,_t as deleteSubmission,Ae as deleteVariant,Xt as downloadAttachment,mr as downloadFile,xe as generateVariants,Ke as getBusinessSummary,yr as getCartSummary,Je as getCustomer,tr as getEventDestination,or as getEventDestinationSecret,dr as getEventDestinationSecretWithSiteToken,Ht as getForm,Dr as getGeo,pt as getInvoice,lt as getInvoicePreview,Tt as getInvoiceSettings,Dt as getInvoiceSettingsWithSiteToken,et as getNextPayout,je as getOrder,Or as getOrderSession,Re as getPaymentsStatus,Ze as getPerson,Te as getProduct,Sr as getPublicProduct,gt as getRetainer,Xe as getSalesSummary,Ft as getSite,jt as getSiteCheckoutPause,Kt as getSubmission,$e as listCustomers,nr as listEventDeliveries,hr as listEventDeliveriesWithSiteToken,Yt as listEventDestinations,ar as listEventDestinationsWithSiteToken,Bt as listForms,Gt as listFormsWithSiteToken,at as listInvoices,Me as listOrdersWithSiteToken,Ye as listPeople,Oe as listProducts,ve as listProductsWithSiteToken,wt as listRetainers,Ut as listSites,Qt as listSubmissions,rt as listSubscriptions,vt as markInvoicePaid,yt as markInvoiceUncollectible,Pt as pauseRetainer,zt as pauseSiteCheckout,ut as previewInvoice,nt as reactivateSiteSubscriptionsTeardown,ze as refundOrder,Et as remindInvoice,ht as resendInvoice,qe as resendOrderReceipt,Be as resetOrderDownloads,Ne as resetWebhookEvent,Ur as resolveManageLink,xt as resumeRetainer,ir as retryEventDelivery,Er as retryEventDeliveryWithSiteToken,_e as revokeCustomerAccess,sr as rotateEventDestinationSecret,lr as rotateEventDestinationSecretWithSiteToken,Rt as setInvoiceReminders,tt as setOrderFulfillment,we as setProductSubscription,Pe as setProductVariants,Ve as setVariantInventory,kt as skipNextRetainerCycle,St as snoozeInvoice,ot as teardownSiteSubscriptions,Qe as updateCustomer,mt as updateCustomerBilling,rr as updateEventDestination,ur as updateEventDestinationWithSiteToken,Jt as updateForm,Ot as updateInvoiceRecipient,bt as updateInvoiceSettings,We as updateOption,be as updateProduct,It as updateRetainer,Mt as updateSite,Se as updateSiteAccountRoute,qt as updateSiteDomains,ft as updateSiteInvoicing,Ee as updateSitePayments,Ge as updateVariant,dt as voidInvoice};
7
+ `);try{b=JSON.parse(O),B=!0}catch{b=O}}B&&(i&&await i(b),n&&(b=await n(b))),s?.({data:b,event:q,id:S,retry:l}),x.length&&(yield b)}}}finally{D.removeEventListener("abort",j),v.releaseLock()}break}catch(T){if(r?.(T),c!==void 0&&R>=c)break;let m=Math.min(l*2**(R-1),a??3e4);await C(m)}}}()}};var ne=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ie=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ae=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},A=({allowReserved:e,explode:r,name:s,style:n,value:i})=>{if(!r){let a=(e?i:i.map(p=>encodeURIComponent(p))).join(ie(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${s}=${a}`;case"simple":return a;default:return`${s}=${a}`}}let u=ne(n),c=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):w({allowReserved:e,name:s,value:a})).join(u);return n==="label"||n==="matrix"?u+c:c},w=({allowReserved:e,name:r,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?s:encodeURIComponent(s)}`},G=({allowReserved:e,explode:r,name:s,style:n,value:i,valueOnly:u})=>{if(i instanceof Date)return u?i.toISOString():`${s}=${i.toISOString()}`;if(n!=="deepObject"&&!r){let p=[];Object.entries(i).forEach(([o,S])=>{p=[...p,o,e?S:encodeURIComponent(S)]});let d=p.join(",");switch(n){case"form":return`${s}=${d}`;case"label":return`.${d}`;case"matrix":return`;${s}=${d}`;default:return d}}let c=ae(n),a=Object.entries(i).map(([p,d])=>w({allowReserved:e,name:n==="deepObject"?`${s}[${p}]`:p,value:d})).join(c);return n==="label"||n==="matrix"?c+a:a};var ce=/\{[^{}]+\}/g,pe=({path:e,url:r})=>{let s=r,n=r.match(ce);if(n)for(let i of n){let u=!1,c=i.substring(1,i.length-1),a="simple";c.endsWith("*")&&(u=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),a="label"):c.startsWith(";")&&(c=c.substring(1),a="matrix");let p=e[c];if(p==null)continue;if(Array.isArray(p)){s=s.replace(i,A({explode:u,name:c,style:a,value:p}));continue}if(typeof p=="object"){s=s.replace(i,G({explode:u,name:c,style:a,value:p,valueOnly:!0}));continue}if(a==="matrix"){s=s.replace(i,`;${w({name:c,value:p})}`);continue}let d=encodeURIComponent(a==="label"?`.${p}`:p);s=s.replace(i,d)}return s},J=({baseUrl:e,path:r,query:s,querySerializer:n,url:i})=>{let u=i.startsWith("/")?i:`/${i}`,c=(e??"")+u;r&&(c=pe({path:r,url:c}));let a=s?n(s):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(c+=`?${a}`),c};function Q(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var _=async(e,r)=>{let s=typeof r=="function"?await r(e):r;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var K=({parameters:e={},...r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let u in n){let c=n[u];if(c==null)continue;let a=e[u]||r;if(Array.isArray(c)){let p=A({allowReserved:a.allowReserved,explode:!0,name:u,style:"form",value:c,...a.array});p&&i.push(p)}else if(typeof c=="object"){let p=G({allowReserved:a.allowReserved,explode:!0,name:u,style:"deepObject",value:c,...a.object});p&&i.push(p)}else{let p=w({allowReserved:a.allowReserved,name:u,value:c});p&&i.push(p)}}return i.join("&")},X=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>r.startsWith(s)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,Y=async({security:e,...r})=>{for(let s of e){if(ue(r,s.name))continue;let n=await _(s,r.auth);if(!n)continue;let i=s.name??"Authorization";switch(s.in){case"query":r.query||(r.query={}),r.query[i]=n;break;case"cookie":r.headers.append("Cookie",`${i}=${n}`);break;case"header":default:r.headers.set(i,n);break}}},F=e=>J({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:K(e.querySerializer),url:e.url}),M=(e,r)=>{let s={...e,...r};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=U(e.headers,r.headers),s},le=e=>{let r=[];return e.forEach((s,n)=>{r.push([n,s])}),r},U=(...e)=>{let r=new Headers;for(let s of e){if(!s)continue;let n=s instanceof Headers?le(s):Object.entries(s);for(let[i,u]of n)if(u===null)r.delete(i);else if(Array.isArray(u))for(let c of u)r.append(i,c);else u!==void 0&&r.set(i,typeof u=="object"?JSON.stringify(u):u)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let s=this.getInterceptorIndex(r);this.fns[s]&&(this.fns[s]=null)}exists(r){let s=this.getInterceptorIndex(r);return!!this.fns[s]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,s){let n=this.getInterceptorIndex(r);return this.fns[n]?(this.fns[n]=s,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},Z=()=>({error:new k,request:new k,response:new k}),de=K({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},f=(e={})=>({...W,headers:he,parseAs:"auto",querySerializer:de,...e});var L=(e={})=>{let r=M(f(),e),s=()=>({...r}),n=d=>(r=M(r,d),s()),i=Z(),u=async d=>{let o={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:U(r.headers,d.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let S=F(o);return{opts:o,url:S}},c=async d=>{let{opts:o,url:S}=await u(d),C={redirect:"follow",...o,body:Q(o)},y=new Request(S,C);for(let h of i.request.fns)h&&(y=await h(y,o));let P=o.fetch,l;try{l=await P(y)}catch(h){let E=h;for(let v of i.error.fns)v&&(E=await v(h,void 0,y,o));if(E=E||{},o.throwOnError)throw E;return o.responseStyle==="data"?void 0:{error:E,request:y,response:void 0}}for(let h of i.response.fns)h&&(l=await h(l,y,o));let R={request:y,response:l};if(l.ok){let h=(o.parseAs==="auto"?X(l.headers.get("Content-Type")):o.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let v;switch(h){case"arrayBuffer":case"blob":case"text":v=await l[h]();break;case"formData":v=new FormData;break;case"stream":v=l.body;break;case"json":default:v={};break}return o.responseStyle==="data"?v:{data:v,...R}}let E;switch(h){case"arrayBuffer":case"blob":case"formData":case"json":case"text":E=await l[h]();break;case"stream":return o.responseStyle==="data"?l.body:{data:l.body,...R}}return h==="json"&&(o.responseValidator&&await o.responseValidator(E),o.responseTransformer&&(E=await o.responseTransformer(E))),o.responseStyle==="data"?E:{data:E,...R}}let D=await l.text(),g;try{g=JSON.parse(D)}catch{}let T=g??D,m=T;for(let h of i.error.fns)h&&(m=await h(T,l,y,o));if(m=m||{},o.throwOnError)throw m;return o.responseStyle==="data"?void 0:{error:m,...R}},a=d=>o=>c({...o,method:d}),p=d=>async o=>{let{opts:S,url:C}=await u(o);return H({...S,body:S.body,headers:S.headers,method:d,onRequest:async(y,P)=>{let l=new Request(y,P);for(let R of i.request.fns)R&&(l=await R(l,S));return l},url:C})};return{buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:s,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:c,setConfig:n,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var t=L(f({baseUrl:"https://aifeatures.dev"}));var Ee=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/payments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/account-route",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payments/status",...e}),ve=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e}),ye=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e}),me=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),Te=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e}),be=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/file",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-order",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/test-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/test-orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/variants/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e}),Ge=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/products/{productId}/options",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e}),We=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/options/{optionId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??t).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/variants/{variantId}/inventory/adjust",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders",...e}),je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}",...e}),ze=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/refund",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/resend-receipt",...e}),Be=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/reset-downloads",...e}),Ne=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/webhook-events/{eventId}/reset",...e}),$e=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e}),He=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e}),Qe=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/revoke-access",...e}),Ke=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/summary",...e}),Xe=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sales-summary",...e}),Ye=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people",...e}),Ze=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/people/{email}",...e}),et=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/payouts/next",...e}),tt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/orders/{orderId}/fulfillment",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions",...e}),st=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/subscriptions/{subscriptionId}/cancel",...e}),ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),nt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/subscriptions/reactivate-teardown",...e,headers:{"Content-Type":"application/json",...e.headers}}),it=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/preview-session",...e,headers:{"Content-Type":"application/json",...e.headers}}),at=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e}),ct=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}",...e}),ut=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/preview",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/preview",...e}),dt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/void",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/resend",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/remind",...e,headers:{"Content-Type":"application/json",...e.headers}}),St=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/snooze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/reminders",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-paid",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/mark-uncollectible",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoices/{invoiceId}/recipient",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/customers/{customerId}/billing",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/invoice-settings",...e}),Tt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e}),bt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoice-settings",...e,headers:{"Content-Type":"application/json",...e.headers}}),wt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/invoicing",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e}),Ct=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers",...e,headers:{"Content-Type":"application/json",...e.headers}}),gt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e}),It=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/skip-next",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/resume",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/retainers/{retainerId}/cancel",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e}),Ut=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Lt=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e}),Wt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Ft=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e}),Mt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e}),zt=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/checkout-pause",...e,headers:{"Content-Type":"application/json",...e.headers}}),qt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/domains",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/analytics",...e}),Nt=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/analytics",...e,headers:{"Content-Type":"application/json",...e.headers}}),$t=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e}),Ht=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/forms",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),Qt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e}),_t=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Kt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/forms/{formId}/submissions",...e}),Xt=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Yt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}",...e}),Zt=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/submissions/{submissionId}/attachments/{attachmentId}",...e}),er=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e}),tr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),rr=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),sr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e}),or=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),nr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/rotate-secret",...e}),ir=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/secret",...e}),ar=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries",...e}),cr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/sites/{siteId}/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),pr=e=>(e?.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e}),ur=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations",...e,headers:{"Content-Type":"application/json",...e.headers}}),lr=e=>(e.client??t).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e}),dr=e=>(e.client??t).patch({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),hr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/rotate-secret",...e}),Er=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/secret",...e}),Sr=e=>(e.client??t).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries",...e}),Rr=e=>(e.client??t).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/event-destinations/{destinationId}/deliveries/{deliveryId}/retry",...e}),vr=e=>(e.client??t).get({url:"/v1/p/{productId}",...e}),yr=e=>(e.client??t).post({url:"/v1/p/{productId}/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),Or=e=>(e.client??t).post({url:"/v1/p/checkout",...e,headers:{"Content-Type":"application/json",...e.headers}}),mr=e=>(e.client??t).post({url:"/v1/p/checkout/summary",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dr=e=>(e.client??t).get({url:"/v1/o/session/{sessionId}",...e}),Tr=e=>(e.client??t).get({url:"/v1/d/{token}",...e}),br=e=>(e?.client??t).get({url:"/v1/geo",...e}),wr=e=>(e.client??t).post({url:"/v1/account/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),fr=e=>(e.client??t).post({url:"/v1/account/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),Cr=e=>(e?.client??t).post({url:"/v1/account/logout",...e}),gr=e=>(e?.client??t).get({url:"/v1/account/me",...e}),Ir=e=>(e.client??t).post({url:"/v1/account/subscribe",...e,headers:{"Content-Type":"application/json",...e.headers}}),kr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/cancel",...e}),Pr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/reactivate",...e}),xr=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/address",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ar=e=>(e.client??t).post({url:"/v1/account/subscriptions/{subscriptionId}/portal-session",...e}),Gr=e=>(e.client??t).post({url:"/v1/account/manage/verify",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ur=e=>(e?.client??t).get({url:"/v1/account/manage/subscription",...e}),Lr=e=>(e?.client??t).post({url:"/v1/account/manage/cancel",...e}),Wr=e=>(e?.client??t).post({url:"/v1/account/manage/portal-session",...e}),Vr=e=>(e.client??t).get({url:"/v1/m/{token}",...e}),Fr=e=>(e.client??t).post({...V,url:"/v1/m/{token}",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}});export{kr as accountCancelSubscription,Ar as accountCreatePortalSession,wr as accountLogin,Cr as accountLogout,Lr as accountManageCancel,Ur as accountManageGetSubscription,Wr as accountManagePortalSession,Gr as accountManageVerify,gr as accountMe,Pr as accountReactivateSubscription,Ir as accountSubscribe,xr as accountUpdateSubscriptionAddress,fr as accountVerify,Fr as actOnManageLink,Fe as adjustVariantInventory,we as attachProductFile,At as cancelRetainer,st as cancelSubscription,Or as createCartCheckout,yr as createCheckout,L as createClient,f as createConfig,He as createCustomer,tr as createEventDestination,ur as createEventDestinationWithSiteToken,Ht as createForm,Ut as createFormWithSiteToken,ct as createInvoice,Ie as createMultiItemTestOrder,Ue as createOption,it as createPreviewSession,me as createProduct,ye as createProductWithSiteToken,Ct as createRetainer,Wt as createSite,Ce as createTestOrder,ge as createTestSubscription,ke as createVariant,rr as deleteEventDestination,lr as deleteEventDestinationWithSiteToken,Jt as deleteForm,Le as deleteOption,De as deleteProduct,Vt as deleteSite,Xt as deleteSubmission,Ae as deleteVariant,Zt as downloadAttachment,Tr as downloadFile,xe as generateVariants,Ke as getBusinessSummary,mr as getCartSummary,Je as getCustomer,sr as getEventDestination,ir as getEventDestinationSecret,Er as getEventDestinationSecretWithSiteToken,Qt as getForm,br as getGeo,pt as getInvoice,lt as getInvoicePreview,Tt as getInvoiceSettings,Dt as getInvoiceSettingsWithSiteToken,et as getNextPayout,je as getOrder,Dr as getOrderSession,Re as getPaymentsStatus,Ze as getPerson,Te as getProduct,vr as getPublicProduct,gt as getRetainer,Xe as getSalesSummary,Ft as getSite,Bt as getSiteAnalytics,jt as getSiteCheckoutPause,Yt as getSubmission,$e as listCustomers,ar as listEventDeliveries,Sr as listEventDeliveriesWithSiteToken,er as listEventDestinations,pr as listEventDestinationsWithSiteToken,$t as listForms,Gt as listFormsWithSiteToken,at as listInvoices,Me as listOrdersWithSiteToken,Ye as listPeople,Oe as listProducts,ve as listProductsWithSiteToken,ft as listRetainers,Lt as listSites,Kt as listSubmissions,rt as listSubscriptions,vt as markInvoicePaid,yt as markInvoiceUncollectible,Pt as pauseRetainer,zt as pauseSiteCheckout,ut as previewInvoice,nt as reactivateSiteSubscriptionsTeardown,ze as refundOrder,Et as remindInvoice,ht as resendInvoice,qe as resendOrderReceipt,Be as resetOrderDownloads,Ne as resetWebhookEvent,Vr as resolveManageLink,xt as resumeRetainer,cr as retryEventDelivery,Rr as retryEventDeliveryWithSiteToken,_e as revokeCustomerAccess,nr as rotateEventDestinationSecret,hr as rotateEventDestinationSecretWithSiteToken,Rt as setInvoiceReminders,tt as setOrderFulfillment,fe as setProductSubscription,Pe as setProductVariants,Ve as setVariantInventory,kt as skipNextRetainerCycle,St as snoozeInvoice,ot as teardownSiteSubscriptions,Qe as updateCustomer,mt as updateCustomerBilling,or as updateEventDestination,dr as updateEventDestinationWithSiteToken,_t as updateForm,Ot as updateInvoiceRecipient,bt as updateInvoiceSettings,We as updateOption,be as updateProduct,It as updateRetainer,Mt as updateSite,Se as updateSiteAccountRoute,Nt as updateSiteAnalytics,qt as updateSiteDomains,wt as updateSiteInvoicing,Ee as updateSitePayments,Ge as updateVariant,dt as voidInvoice};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aifeatures/backend",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript API client for aifeatures backend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",