rehive 4.1.2 → 4.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/admin.d.mts +106 -43
  2. package/dist/admin.d.ts +106 -43
  3. package/dist/admin.js +1 -1
  4. package/dist/admin.mjs +1 -1
  5. package/dist/auth.d.mts +2 -2
  6. package/dist/auth.d.ts +2 -2
  7. package/dist/auth.js +1 -1
  8. package/dist/auth.mjs +1 -1
  9. package/dist/{chunk-442DXMRO.mjs → chunk-4WSHB6U6.mjs} +1 -1
  10. package/dist/chunk-AVPKHYGS.js +7 -0
  11. package/dist/chunk-KUT5NSX7.mjs +7 -0
  12. package/dist/chunk-KZWBOQHZ.mjs +7 -0
  13. package/dist/{chunk-VTR4XNHH.js → chunk-PE6PG7ZE.js} +1 -1
  14. package/dist/chunk-UYYU5OJ4.js +7 -0
  15. package/dist/{chunk-BGMUBB76.js → chunk-X6YDNXYV.js} +1 -1
  16. package/dist/{chunk-FC42NTFK.mjs → chunk-Z7BUNKND.mjs} +1 -1
  17. package/dist/{create-api-client-2vNCP2LN.d.mts → create-api-client-C-LEZku2.d.mts} +1 -1
  18. package/dist/{create-api-client-D-Z8R83N.d.ts → create-api-client-ebyTfhcm.d.ts} +1 -1
  19. package/dist/{create-auth-CHzmb_8_.d.mts → create-auth-DsnHpEf0.d.mts} +47 -8
  20. package/dist/{create-auth-CHzmb_8_.d.ts → create-auth-DsnHpEf0.d.ts} +47 -8
  21. package/dist/extensions/alchemy.d.mts +3 -3
  22. package/dist/extensions/alchemy.d.ts +3 -3
  23. package/dist/extensions/alchemy.js +5 -5
  24. package/dist/extensions/alchemy.mjs +5 -5
  25. package/dist/extensions/app.d.mts +3 -3
  26. package/dist/extensions/app.d.ts +3 -3
  27. package/dist/extensions/app.js +5 -5
  28. package/dist/extensions/app.mjs +5 -5
  29. package/dist/extensions/billing.d.mts +3 -3
  30. package/dist/extensions/billing.d.ts +3 -3
  31. package/dist/extensions/billing.js +5 -5
  32. package/dist/extensions/billing.mjs +5 -5
  33. package/dist/extensions/bridge.d.mts +190 -16
  34. package/dist/extensions/bridge.d.ts +190 -16
  35. package/dist/extensions/bridge.js +5 -5
  36. package/dist/extensions/bridge.mjs +5 -5
  37. package/dist/extensions/builder.d.mts +3 -3
  38. package/dist/extensions/builder.d.ts +3 -3
  39. package/dist/extensions/builder.js +5 -5
  40. package/dist/extensions/builder.mjs +5 -5
  41. package/dist/extensions/business.d.mts +82 -47
  42. package/dist/extensions/business.d.ts +82 -47
  43. package/dist/extensions/business.js +5 -5
  44. package/dist/extensions/business.mjs +5 -5
  45. package/dist/extensions/conversion.d.mts +3 -3
  46. package/dist/extensions/conversion.d.ts +3 -3
  47. package/dist/extensions/conversion.js +5 -5
  48. package/dist/extensions/conversion.mjs +5 -5
  49. package/dist/extensions/mass-send.d.mts +3 -3
  50. package/dist/extensions/mass-send.d.ts +3 -3
  51. package/dist/extensions/mass-send.js +5 -5
  52. package/dist/extensions/mass-send.mjs +5 -5
  53. package/dist/extensions/notifications.d.mts +3 -3
  54. package/dist/extensions/notifications.d.ts +3 -3
  55. package/dist/extensions/notifications.js +5 -5
  56. package/dist/extensions/notifications.mjs +5 -5
  57. package/dist/extensions/payment-requests.d.mts +7 -3
  58. package/dist/extensions/payment-requests.d.ts +7 -3
  59. package/dist/extensions/payment-requests.js +5 -5
  60. package/dist/extensions/payment-requests.mjs +5 -5
  61. package/dist/extensions/products.d.mts +3 -3
  62. package/dist/extensions/products.d.ts +3 -3
  63. package/dist/extensions/products.js +5 -5
  64. package/dist/extensions/products.mjs +5 -5
  65. package/dist/extensions/rain.d.mts +3 -3
  66. package/dist/extensions/rain.d.ts +3 -3
  67. package/dist/extensions/rain.js +5 -5
  68. package/dist/extensions/rain.mjs +5 -5
  69. package/dist/extensions/rewards.d.mts +3 -3
  70. package/dist/extensions/rewards.d.ts +3 -3
  71. package/dist/extensions/rewards.js +5 -5
  72. package/dist/extensions/rewards.mjs +5 -5
  73. package/dist/extensions/stellar-testnet.d.mts +3 -3
  74. package/dist/extensions/stellar-testnet.d.ts +3 -3
  75. package/dist/extensions/stellar-testnet.js +5 -5
  76. package/dist/extensions/stellar-testnet.mjs +5 -5
  77. package/dist/extensions/stellar.d.mts +3 -3
  78. package/dist/extensions/stellar.d.ts +3 -3
  79. package/dist/extensions/stellar.js +5 -5
  80. package/dist/extensions/stellar.mjs +5 -5
  81. package/dist/index.d.mts +2 -2
  82. package/dist/index.d.ts +2 -2
  83. package/dist/index.js +1 -1
  84. package/dist/index.mjs +1 -1
  85. package/dist/react.d.mts +2 -2
  86. package/dist/react.d.ts +2 -2
  87. package/dist/react.js +1 -1
  88. package/dist/react.mjs +1 -1
  89. package/dist/user.d.mts +16 -6
  90. package/dist/user.d.ts +16 -6
  91. package/dist/user.js +1 -1
  92. package/dist/user.mjs +1 -1
  93. package/package.json +1 -1
  94. package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +5 -3
  95. package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +6 -8
  96. package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
  97. package/src/extensions/app/openapi-ts/client/client.gen.ts +5 -3
  98. package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +6 -8
  99. package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
  100. package/src/extensions/billing/openapi-ts/client/client.gen.ts +5 -3
  101. package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +6 -8
  102. package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
  103. package/src/extensions/bridge/openapi-ts/client/client.gen.ts +5 -3
  104. package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +6 -8
  105. package/src/extensions/bridge/openapi-ts/core/params.gen.ts +1 -1
  106. package/src/extensions/bridge/openapi-ts/index.ts +2 -2
  107. package/src/extensions/bridge/openapi-ts/sdk.gen.ts +43 -1
  108. package/src/extensions/bridge/openapi-ts/types.gen.ts +201 -11
  109. package/src/extensions/builder/openapi-ts/client/client.gen.ts +5 -3
  110. package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +6 -8
  111. package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
  112. package/src/extensions/business/openapi-ts/client/client.gen.ts +5 -3
  113. package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +6 -8
  114. package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
  115. package/src/extensions/business/openapi-ts/types.gen.ts +79 -44
  116. package/src/extensions/conversion/openapi-ts/client/client.gen.ts +5 -3
  117. package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +6 -8
  118. package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
  119. package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +5 -3
  120. package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +6 -8
  121. package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
  122. package/src/extensions/notifications/openapi-ts/client/client.gen.ts +5 -3
  123. package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +6 -8
  124. package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
  125. package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +5 -3
  126. package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +6 -8
  127. package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
  128. package/src/extensions/payment-requests/openapi-ts/types.gen.ts +4 -0
  129. package/src/extensions/products/openapi-ts/client/client.gen.ts +5 -3
  130. package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +6 -8
  131. package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
  132. package/src/extensions/rain/openapi-ts/client/client.gen.ts +5 -3
  133. package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +6 -8
  134. package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
  135. package/src/extensions/rewards/openapi-ts/client/client.gen.ts +5 -3
  136. package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +6 -8
  137. package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
  138. package/src/extensions/stellar/openapi-ts/client/client.gen.ts +5 -3
  139. package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +6 -8
  140. package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
  141. package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +5 -3
  142. package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +6 -8
  143. package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
  144. package/src/platform/admin/openapi-ts/client/client.gen.ts +5 -3
  145. package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +6 -8
  146. package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
  147. package/src/platform/admin/openapi-ts/sdk.gen.ts +61 -0
  148. package/src/platform/admin/openapi-ts/types.gen.ts +103 -40
  149. package/src/platform/user/openapi-ts/client/client.gen.ts +5 -3
  150. package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +6 -8
  151. package/src/platform/user/openapi-ts/core/params.gen.ts +1 -1
  152. package/src/platform/user/openapi-ts/index.ts +2 -2
  153. package/src/platform/user/openapi-ts/sdk.gen.ts +43 -1
  154. package/src/platform/user/openapi-ts/types.gen.ts +54 -7
  155. package/dist/chunk-6WLL3XNH.js +0 -7
  156. package/dist/chunk-LTRLQIIM.js +0 -7
  157. package/dist/chunk-WTKM56EI.mjs +0 -7
  158. package/dist/chunk-WVAFSUTF.mjs +0 -7
@@ -1,7 +1,7 @@
1
- import{a as F,c as J}from"../chunk-S5UXBHRU.mjs";import{a as ie}from"../chunk-S4QKN5WW.mjs";var N={};ie(N,{activateCreate:()=>he,adminCheckoutSessionCreate:()=>be,adminCheckoutSessionRetrieve:()=>ge,adminCustomerPortalSessionCreate:()=>Se,adminPaymentMethodsRetrieve:()=>Oe,adminPlansList:()=>Re,adminProductsList:()=>we,adminSubscriptionRetrieve:()=>xe,deactivateCreate:()=>Ce,stripeWebhookCreate:()=>ke,userPublicKeyRetrieve:()=>Te,userSubscriptionRetrieve:()=>Ae,webhookCreate:()=>Ee});var B={bodySerializer:e=>JSON.stringify(e,(r,t)=>typeof t=="bigint"?t.toString():t)};var se={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},qe=Object.entries(se);var Q=({onRequest:e,onSseError:r,onSseEvent:t,responseTransformer:i,responseValidator:o,sseDefaultRetryDelay:l,sseMaxRetryAttempts:a,sseMaxRetryDelay:s,sseSleepFn:c,url:d,...n})=>{let y,k=c??(p=>new Promise(b=>setTimeout(b,p)));return{stream:async function*(){let p=l??3e3,b=0,R=n.signal??new AbortController().signal;for(;!R.aborted;){b++;let T=n.headers instanceof Headers?n.headers:new Headers(n.headers);y!==void 0&&T.set("Last-Event-ID",y);try{let w={redirect:"follow",...n,body:n.serializedBody,headers:T,signal:R},O=new Request(d,w);e&&(O=await e(d,w));let u=await(n.fetch??globalThis.fetch)(O);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let m=u.body.pipeThrough(new TextDecoderStream).getReader(),A="",W=()=>{try{m.cancel()}catch{}};R.addEventListener("abort",W);try{for(;;){let{done:re,value:te}=await m.read();if(re)break;A+=te,A=A.replace(/\r\n/g,`
1
+ import{a as F,c as J}from"../chunk-S5UXBHRU.mjs";import{a as ie}from"../chunk-S4QKN5WW.mjs";var N={};ie(N,{activateCreate:()=>he,adminCheckoutSessionCreate:()=>be,adminCheckoutSessionRetrieve:()=>ge,adminCustomerPortalSessionCreate:()=>Se,adminPaymentMethodsRetrieve:()=>Oe,adminPlansList:()=>Re,adminProductsList:()=>we,adminSubscriptionRetrieve:()=>xe,deactivateCreate:()=>Ce,stripeWebhookCreate:()=>ke,userPublicKeyRetrieve:()=>Ae,userSubscriptionRetrieve:()=>Te,webhookCreate:()=>Ee});var B={bodySerializer:e=>JSON.stringify(e,(r,t)=>typeof t=="bigint"?t.toString():t)};var se={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},qe=Object.entries(se);var Q=({onRequest:e,onSseError:r,onSseEvent:t,responseTransformer:i,responseValidator:o,sseDefaultRetryDelay:c,sseMaxRetryAttempts:a,sseMaxRetryDelay:s,sseSleepFn:l,url:h,...d})=>{let n,g=l??(R=>new Promise(p=>setTimeout(p,R)));return{stream:async function*(){let R=c??3e3,p=0,b=d.signal??new AbortController().signal;for(;!b.aborted;){p++;let T=d.headers instanceof Headers?d.headers:new Headers(d.headers);n!==void 0&&T.set("Last-Event-ID",n);try{let w={redirect:"follow",...d,body:d.serializedBody,headers:T,signal:b},x=new Request(h,w);e&&(x=await e(h,w));let u=await(d.fetch??globalThis.fetch)(x);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let y=u.body.pipeThrough(new TextDecoderStream).getReader(),f="",W=()=>{try{y.cancel()}catch{}};b.addEventListener("abort",W);try{for(;;){let{done:re,value:te}=await y.read();if(re)break;f+=te,f=f.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let H=A.split(`
3
+ `);let H=f.split(`
4
4
 
5
- `);A=H.pop()??"";for(let ne of H){let oe=ne.split(`
6
- `),D=[],L;for(let S of oe)if(S.startsWith("data:"))D.push(S.replace(/^data:\s*/,""));else if(S.startsWith("event:"))L=S.replace(/^event:\s*/,"");else if(S.startsWith("id:"))y=S.replace(/^id:\s*/,"");else if(S.startsWith("retry:")){let V=Number.parseInt(S.replace(/^retry:\s*/,""),10);Number.isNaN(V)||(p=V)}let x,K=!1;if(D.length){let S=D.join(`
7
- `);try{x=JSON.parse(S),K=!0}catch{x=S}}K&&(o&&await o(x),i&&(x=await i(x))),t?.({data:x,event:L,id:y,retry:p}),D.length&&(yield x)}}}finally{R.removeEventListener("abort",W),m.releaseLock()}break}catch(w){if(r?.(w),a!==void 0&&b>=a)break;let O=Math.min(p*2**(b-1),s??3e4);await k(O)}}}()}};var ae=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ce=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},le=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},j=({allowReserved:e,explode:r,name:t,style:i,value:o})=>{if(!r){let s=(e?o:o.map(c=>encodeURIComponent(c))).join(ce(i));switch(i){case"label":return`.${s}`;case"matrix":return`;${t}=${s}`;case"simple":return s;default:return`${t}=${s}`}}let l=ae(i),a=o.map(s=>i==="label"||i==="simple"?e?s:encodeURIComponent(s):C({allowReserved:e,name:t,value:s})).join(l);return i==="label"||i==="matrix"?l+a:a},C=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},v=({allowReserved:e,explode:r,name:t,style:i,value:o,valueOnly:l})=>{if(o instanceof Date)return l?o.toISOString():`${t}=${o.toISOString()}`;if(i!=="deepObject"&&!r){let c=[];Object.entries(o).forEach(([n,y])=>{c=[...c,n,e?y:encodeURIComponent(y)]});let d=c.join(",");switch(i){case"form":return`${t}=${d}`;case"label":return`.${d}`;case"matrix":return`;${t}=${d}`;default:return d}}let a=le(i),s=Object.entries(o).map(([c,d])=>C({allowReserved:e,name:i==="deepObject"?`${t}[${c}]`:c,value:d})).join(a);return i==="label"||i==="matrix"?a+s:s};var pe=/\{[^{}]+\}/g,de=({path:e,url:r})=>{let t=r,i=r.match(pe);if(i)for(let o of i){let l=!1,a=o.substring(1,o.length-1),s="simple";a.endsWith("*")&&(l=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),s="label"):a.startsWith(";")&&(a=a.substring(1),s="matrix");let c=e[a];if(c==null)continue;if(Array.isArray(c)){t=t.replace(o,j({explode:l,name:a,style:s,value:c}));continue}if(typeof c=="object"){t=t.replace(o,v({explode:l,name:a,style:s,value:c,valueOnly:!0}));continue}if(s==="matrix"){t=t.replace(o,`;${C({name:a,value:c})}`);continue}let d=encodeURIComponent(s==="label"?`.${c}`:c);t=t.replace(o,d)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:i,url:o})=>{let l=o.startsWith("/")?o:`/${o}`,a=(e??"")+l;r&&(a=de({path:r,url:a}));let s=t?i(t):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(a+=`?${s}`),a};function U(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 G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>i=>{let o=[];if(i&&typeof i=="object")for(let l in i){let a=i[l];if(a==null)continue;let s=e[l]||r;if(Array.isArray(a)){let c=j({allowReserved:s.allowReserved,explode:!0,name:l,style:"form",value:a,...s.array});c&&o.push(c)}else if(typeof a=="object"){let c=v({allowReserved:s.allowReserved,explode:!0,name:l,style:"deepObject",value:a,...s.object});c&&o.push(c)}else{let c=C({allowReserved:s.allowReserved,name:l,value:a});c&&o.push(c)}}return o.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(t=>r.startsWith(t)))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,Z=async({security:e,...r})=>{for(let t of e){if(ue(r,t.name))continue;let i=await G(t,r.auth);if(!i)continue;let o=t.name??"Authorization";switch(t.in){case"query":r.query||(r.query={}),r.query[o]=i;break;case"cookie":r.headers.append("Cookie",`${o}=${i}`);break;case"header":default:r.headers.set(o,i);break}}},$=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),M=(e,r)=>{let t={...e,...r};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=I(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,i)=>{r.push([i,t])}),r},I=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let i=t instanceof Headers?fe(t):Object.entries(t);for(let[o,l]of i)if(l===null)r.delete(o);else if(Array.isArray(l))for(let a of l)r.append(o,a);else l!==void 0&&r.set(o,typeof l=="object"?JSON.stringify(l):l)}return r},E=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let i=this.getInterceptorIndex(r);return this.fns[i]?(this.fns[i]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new E,request:new E,response:new E}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),me={"Content-Type":"application/json"},z=(e={})=>({...B,headers:me,parseAs:"auto",querySerializer:ye,...e});var P=(e={})=>{let r=M(z(),e),t=()=>({...r}),i=d=>(r=M(r,d),t()),o=ee(),l=async d=>{let n={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:I(r.headers,d.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let y=$(n);return{opts:n,url:y}},a=async d=>{let{opts:n,url:y}=await l(d),k={redirect:"follow",...n,body:U(n)},g=new Request(y,k);for(let f of o.request.fns)f&&(g=await f(g,n));let q=n.fetch,p;try{p=await q(g)}catch(f){let u=f;for(let m of o.error.fns)m&&(u=await m(f,void 0,g,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:g,response:void 0}}for(let f of o.response.fns)f&&(p=await f(p,g,n));let b={request:g,response:p};if(p.ok){let f=(n.parseAs==="auto"?Y(p.headers.get("Content-Type")):n.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let m;switch(f){case"arrayBuffer":case"blob":case"text":m=await p[f]();break;case"formData":m=new FormData;break;case"stream":m=p.body;break;case"json":default:m={};break}return n.responseStyle==="data"?m:{data:m,...b}}let u;switch(f){case"arrayBuffer":case"blob":case"formData":case"text":u=await p[f]();break;case"json":{let m=await p.text();u=m?JSON.parse(m):{};break}case"stream":return n.responseStyle==="data"?p.body:{data:p.body,...b}}return f==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...b}}let R=await p.text(),T;try{T=JSON.parse(R)}catch{}let w=T??R,O=w;for(let f of o.error.fns)f&&(O=await f(w,p,g,n));if(O=O||{},n.throwOnError)throw O;return n.responseStyle==="data"?void 0:{error:O,...b}},s=d=>n=>a({...n,method:d}),c=d=>async n=>{let{opts:y,url:k}=await l(n);return Q({...y,body:y.body,headers:y.headers,method:d,onRequest:async(g,q)=>{let p=new Request(g,q);for(let b of o.request.fns)b&&(p=await b(p,y));return p},serializedBody:U(y),url:k})};return{buildUrl:$,connect:s("CONNECT"),delete:s("DELETE"),get:s("GET"),getConfig:t,head:s("HEAD"),interceptors:o,options:s("OPTIONS"),patch:s("PATCH"),post:s("POST"),put:s("PUT"),request:a,setConfig:i,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:s("TRACE")}};var h=P(z({baseUrl:"https://billing.services.rehive.com/api/"}));var he=e=>(e.client??h).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),be=e=>(e?.client??h).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/checkout-session/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/checkout-session/{session_id}/",...e}),Se=e=>(e.client??h).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/customer-portal-session/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/payment-methods/{payment_method_id}/",...e}),Re=e=>(e?.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/plans/",...e}),we=e=>(e?.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e}),xe=e=>(e?.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/subscription/",...e}),Ce=e=>(e.client??h).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??h).post({url:"/stripe/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/public-key/",...e}),Ae=e=>(e?.client??h).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/subscription/",...e}),Ee=e=>(e.client??h).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function ze(e){let r=P(J(e,"https://billing.services.rehive.com/api/"));return F(N,r)}export{ze as createBillingApi};
5
+ `);f=H.pop()??"";for(let ne of H){let oe=ne.split(`
6
+ `),D=[],L;for(let O of oe)if(O.startsWith("data:"))D.push(O.replace(/^data:\s*/,""));else if(O.startsWith("event:"))L=O.replace(/^event:\s*/,"");else if(O.startsWith("id:"))n=O.replace(/^id:\s*/,"");else if(O.startsWith("retry:")){let V=Number.parseInt(O.replace(/^retry:\s*/,""),10);Number.isNaN(V)||(R=V)}let C,K=!1;if(D.length){let O=D.join(`
7
+ `);try{C=JSON.parse(O),K=!0}catch{C=O}}K&&(o&&await o(C),i&&(C=await i(C))),t?.({data:C,event:L,id:n,retry:R}),D.length&&(yield C)}}}finally{b.removeEventListener("abort",W),y.releaseLock()}break}catch(w){if(r?.(w),a!==void 0&&p>=a)break;let x=Math.min(R*2**(p-1),s??3e4);await g(x)}}}()}};var ae=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},le=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ce=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},j=({allowReserved:e,explode:r,name:t,style:i,value:o})=>{if(!r){let s=(e?o:o.map(l=>encodeURIComponent(l))).join(le(i));switch(i){case"label":return`.${s}`;case"matrix":return`;${t}=${s}`;case"simple":return s;default:return`${t}=${s}`}}let c=ae(i),a=o.map(s=>i==="label"||i==="simple"?e?s:encodeURIComponent(s):A({allowReserved:e,name:t,value:s})).join(c);return i==="label"||i==="matrix"?c+a:a},A=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},v=({allowReserved:e,explode:r,name:t,style:i,value:o,valueOnly:c})=>{if(o instanceof Date)return c?o.toISOString():`${t}=${o.toISOString()}`;if(i!=="deepObject"&&!r){let l=[];Object.entries(o).forEach(([d,n])=>{l=[...l,d,e?n:encodeURIComponent(n)]});let h=l.join(",");switch(i){case"form":return`${t}=${h}`;case"label":return`.${h}`;case"matrix":return`;${t}=${h}`;default:return h}}let a=ce(i),s=Object.entries(o).map(([l,h])=>A({allowReserved:e,name:i==="deepObject"?`${t}[${l}]`:l,value:h})).join(a);return i==="label"||i==="matrix"?a+s:s};var pe=/\{[^{}]+\}/g,de=({path:e,url:r})=>{let t=r,i=r.match(pe);if(i)for(let o of i){let c=!1,a=o.substring(1,o.length-1),s="simple";a.endsWith("*")&&(c=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),s="label"):a.startsWith(";")&&(a=a.substring(1),s="matrix");let l=e[a];if(l==null)continue;if(Array.isArray(l)){t=t.replace(o,j({explode:c,name:a,style:s,value:l}));continue}if(typeof l=="object"){t=t.replace(o,v({explode:c,name:a,style:s,value:l,valueOnly:!0}));continue}if(s==="matrix"){t=t.replace(o,`;${A({name:a,value:l})}`);continue}let h=encodeURIComponent(s==="label"?`.${l}`:l);t=t.replace(o,h)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:i,url:o})=>{let c=o.startsWith("/")?o:`/${o}`,a=(e??"")+c;r&&(a=de({path:r,url:a}));let s=t?i(t):"";return s.startsWith("?")&&(s=s.substring(1)),s&&(a+=`?${s}`),a};function U(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 G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>i=>{let o=[];if(i&&typeof i=="object")for(let c in i){let a=i[c];if(a==null)continue;let s=e[c]||r;if(Array.isArray(a)){let l=j({allowReserved:s.allowReserved,explode:!0,name:c,style:"form",value:a,...s.array});l&&o.push(l)}else if(typeof a=="object"){let l=v({allowReserved:s.allowReserved,explode:!0,name:c,style:"deepObject",value:a,...s.object});l&&o.push(l)}else{let l=A({allowReserved:s.allowReserved,name:c,value:a});l&&o.push(l)}}return o.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(t=>r.startsWith(t)))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,Z=async({security:e,...r})=>{for(let t of e){if(ue(r,t.name))continue;let i=await G(t,r.auth);if(!i)continue;let o=t.name??"Authorization";switch(t.in){case"query":r.query||(r.query={}),r.query[o]=i;break;case"cookie":r.headers.append("Cookie",`${o}=${i}`);break;case"header":default:r.headers.set(o,i);break}}},$=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),M=(e,r)=>{let t={...e,...r};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=I(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,i)=>{r.push([i,t])}),r},I=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let i=t instanceof Headers?fe(t):Object.entries(t);for(let[o,c]of i)if(c===null)r.delete(o);else if(Array.isArray(c))for(let a of c)r.append(o,a);else c!==void 0&&r.set(o,typeof c=="object"?JSON.stringify(c):c)}return r},E=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let i=this.getInterceptorIndex(r);return this.fns[i]?(this.fns[i]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new E,request:new E,response:new E}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),me={"Content-Type":"application/json"},z=(e={})=>({...B,headers:me,parseAs:"auto",querySerializer:ye,...e});var P=(e={})=>{let r=M(z(),e),t=()=>({...r}),i=d=>(r=M(r,d),t()),o=ee(),c=async d=>{let n={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:I(r.headers,d.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let g=$(n);return{opts:n,url:g}},a=async d=>{let{opts:n,url:g}=await c(d),q={redirect:"follow",...n,body:U(n)},S=new Request(g,q);for(let u of o.request.fns)u&&(S=await u(S,n));let R=n.fetch,p;try{p=await R(S)}catch(u){let y=u;for(let f of o.error.fns)f&&(y=await f(u,void 0,S,n));if(y=y||{},n.throwOnError)throw y;return n.responseStyle==="data"?void 0:{error:y,request:S,response:void 0}}for(let u of o.response.fns)u&&(p=await u(p,S,n));let b={request:S,response:p};if(p.ok){let u=(n.parseAs==="auto"?Y(p.headers.get("Content-Type")):n.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let f;switch(u){case"arrayBuffer":case"blob":case"text":f=await p[u]();break;case"formData":f=new FormData;break;case"stream":f=p.body;break;case"json":default:f={};break}return n.responseStyle==="data"?f:{data:f,...b}}let y;switch(u){case"arrayBuffer":case"blob":case"formData":case"text":y=await p[u]();break;case"json":{let f=await p.text();y=f?JSON.parse(f):{};break}case"stream":return n.responseStyle==="data"?p.body:{data:p.body,...b}}return u==="json"&&(n.responseValidator&&await n.responseValidator(y),n.responseTransformer&&(y=await n.responseTransformer(y))),n.responseStyle==="data"?y:{data:y,...b}}let T=await p.text(),w;try{w=JSON.parse(T)}catch{}let x=w??T,k=x;for(let u of o.error.fns)u&&(k=await u(x,p,S,n));if(k=k||{},n.throwOnError)throw k;return n.responseStyle==="data"?void 0:{error:k,...b}},s=d=>n=>a({...n,method:d}),l=d=>async n=>{let{opts:g,url:q}=await c(n);return Q({...g,body:g.body,headers:g.headers,method:d,onRequest:async(S,R)=>{let p=new Request(S,R);for(let b of o.request.fns)b&&(p=await b(p,g));return p},serializedBody:U(g),url:q})};return{buildUrl:d=>$({...r,...d}),connect:s("CONNECT"),delete:s("DELETE"),get:s("GET"),getConfig:t,head:s("HEAD"),interceptors:o,options:s("OPTIONS"),patch:s("PATCH"),post:s("POST"),put:s("PUT"),request:a,setConfig:i,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:s("TRACE")}};var m=P(z({baseUrl:"https://billing.services.rehive.com/api/"}));var he=e=>(e.client??m).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),be=e=>(e?.client??m).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/checkout-session/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/checkout-session/{session_id}/",...e}),Se=e=>(e.client??m).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/customer-portal-session/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/payment-methods/{payment_method_id}/",...e}),Re=e=>(e?.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/plans/",...e}),we=e=>(e?.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e}),xe=e=>(e?.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/subscription/",...e}),Ce=e=>(e.client??m).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??m).post({url:"/stripe/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e?.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/public-key/",...e}),Te=e=>(e?.client??m).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/subscription/",...e}),Ee=e=>(e.client??m).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function ze(e){let r=P(J(e,"https://billing.services.rehive.com/api/"));return F(N,r)}export{ze as createBillingApi};
@@ -1,5 +1,5 @@
1
- import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-2vNCP2LN.mjs';
2
- import '../create-auth-CHzmb_8_.mjs';
1
+ import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-C-LEZku2.mjs';
2
+ import '../create-auth-DsnHpEf0.mjs';
3
3
 
4
4
  type AuthToken = string | undefined;
5
5
  interface Auth {
@@ -30,7 +30,7 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
30
30
  type ObjectStyle = 'form' | 'deepObject';
31
31
 
32
32
  type QuerySerializer = (query: Record<string, unknown>) => string;
33
- type BodySerializer = (body: any) => any;
33
+ type BodySerializer = (body: unknown) => unknown;
34
34
  type QuerySerializerOptionsObject = {
35
35
  allowReserved?: boolean;
36
36
  array?: Partial<SerializerOptions<ArrayStyle>>;
@@ -352,6 +352,21 @@ type AdminCompanyResponse = {
352
352
  status: string;
353
353
  data: AdminCompany;
354
354
  };
355
+ type AdminCreateLiquidationAddress = {
356
+ wallet?: string;
357
+ account_currency?: string;
358
+ /**
359
+ * * `solana` - Solana
360
+ * * `base` - Base
361
+ * * `ethereum` - Ethereum
362
+ * * `stellar` - Stellar
363
+ * * `tron` - Tron
364
+ * * `polygon` - Polygon
365
+ * * `arbitrum` - Arbitrum
366
+ * * `optimism` - Optimism
367
+ */
368
+ chain: 'solana' | 'base' | 'ethereum' | 'stellar' | 'tron' | 'polygon' | 'arbitrum' | 'optimism';
369
+ };
355
370
  /**
356
371
  * A ModelSerializer that takes additional arguments for
357
372
  * "fields", "omit" and "expand" in order to
@@ -361,10 +376,22 @@ type AdminCompanyResponse = {
361
376
  type AdminCreatePayoutConfiguration = {
362
377
  /**
363
378
  * * `solana` - Solana
379
+ * * `base` - Base
364
380
  */
365
- destination_chain: 'solana';
381
+ destination_chain: 'solana' | 'base';
366
382
  destination_address: string;
367
383
  };
384
+ type AdminCreateVirtualAccount = {
385
+ wallet?: string;
386
+ account_currency?: string;
387
+ /**
388
+ * * `usd` - Usd
389
+ * * `eur` - Eur
390
+ * * `mxn` - Mxn
391
+ * * `brl` - Brl
392
+ */
393
+ source_currency?: 'usd' | 'eur' | 'mxn' | 'brl';
394
+ };
368
395
  type AdminCryptoReturnPolicy = {
369
396
  readonly id: string;
370
397
  refund_destination_address?: string | null;
@@ -401,8 +428,9 @@ type AdminCurrency = {
401
428
  bridge_code?: 'usdc' | 'eurc';
402
429
  /**
403
430
  * * `solana` - Solana
431
+ * * `base` - Base
404
432
  */
405
- bridge_chain?: 'solana';
433
+ bridge_chain?: 'solana' | 'base';
406
434
  readonly display_code: string | null;
407
435
  readonly description: string | null;
408
436
  readonly symbol: string | null;
@@ -483,6 +511,9 @@ type AdminPaymentProcessorQuote = {
483
511
  };
484
512
  amount?: string | null;
485
513
  expiration_date?: string | null;
514
+ user: {
515
+ [key: string]: unknown;
516
+ };
486
517
  payer_user?: {
487
518
  [key: string]: unknown;
488
519
  };
@@ -515,8 +546,9 @@ type AdminPayoutConfiguration = {
515
546
  wallet: AdminWallet;
516
547
  /**
517
548
  * * `solana` - Solana
549
+ * * `base` - Base
518
550
  */
519
- destination_chain: 'solana';
551
+ destination_chain: 'solana' | 'base';
520
552
  destination_address: string;
521
553
  readonly created: string;
522
554
  readonly updated: string;
@@ -670,8 +702,9 @@ type Currency = {
670
702
  bridge_code?: 'usdc' | 'eurc' | 'usd' | 'eur' | 'mxn' | 'brl';
671
703
  /**
672
704
  * * `solana` - Solana
705
+ * * `base` - Base
673
706
  */
674
- bridge_chain?: 'solana';
707
+ bridge_chain?: 'solana' | 'base';
675
708
  display_code?: string | null;
676
709
  description?: string | null;
677
710
  symbol?: string | null;
@@ -760,6 +793,16 @@ type PaginatedCurrencyListResponse = {
760
793
  status: string;
761
794
  data: PaginatedCurrencyList;
762
795
  };
796
+ type PaginatedUserStaticTemplateList = {
797
+ count?: number;
798
+ next?: string | null;
799
+ previous?: string | null;
800
+ results?: Array<UserStaticTemplate>;
801
+ };
802
+ type PaginatedUserStaticTemplateListResponse = {
803
+ status: string;
804
+ data: PaginatedUserStaticTemplateList;
805
+ };
763
806
  type PaginatedUserVirtualAccountList = {
764
807
  count?: number;
765
808
  next?: string | null;
@@ -797,8 +840,9 @@ type PatchedAdminCurrency = {
797
840
  bridge_code?: 'usdc' | 'eurc';
798
841
  /**
799
842
  * * `solana` - Solana
843
+ * * `base` - Base
800
844
  */
801
- bridge_chain?: 'solana';
845
+ bridge_chain?: 'solana' | 'base';
802
846
  readonly display_code?: string | null;
803
847
  readonly description?: string | null;
804
848
  readonly symbol?: string | null;
@@ -817,8 +861,9 @@ type PatchedAdminPayoutConfiguration = {
817
861
  wallet?: AdminWallet;
818
862
  /**
819
863
  * * `solana` - Solana
864
+ * * `base` - Base
820
865
  */
821
- destination_chain?: 'solana';
866
+ destination_chain?: 'solana' | 'base';
822
867
  destination_address?: string;
823
868
  readonly created?: string;
824
869
  readonly updated?: string;
@@ -875,6 +920,16 @@ type UserCreateCustomerKycLink = {
875
920
  endorsements?: Array<'base' | 'sepa' | 'spei' | 'pix' | 'cards'> | null;
876
921
  redirect_uri?: string | null;
877
922
  };
923
+ /**
924
+ * A ModelSerializer that takes additional arguments for
925
+ * "fields", "omit" and "expand" in order to
926
+ * control which fields are displayed, and whether to replace simple
927
+ * values with complex, nested serializations
928
+ */
929
+ type UserCreateStaticTemplate = {
930
+ account: string;
931
+ currency: string;
932
+ };
878
933
  /**
879
934
  * A ModelSerializer that takes additional arguments for
880
935
  * "fields", "omit" and "expand" in order to
@@ -956,6 +1011,26 @@ type UserResponse = {
956
1011
  status: string;
957
1012
  data: User;
958
1013
  };
1014
+ /**
1015
+ * A ModelSerializer that takes additional arguments for
1016
+ * "fields", "omit" and "expand" in order to
1017
+ * control which fields are displayed, and whether to replace simple
1018
+ * values with complex, nested serializations
1019
+ */
1020
+ type UserStaticTemplate = {
1021
+ readonly id: string;
1022
+ wallet: UserReducedWallet;
1023
+ readonly bridge_id: string | null;
1024
+ readonly deposit_instructions: {
1025
+ [key: string]: unknown;
1026
+ };
1027
+ readonly created: number;
1028
+ readonly updated: number;
1029
+ };
1030
+ type UserStaticTemplateResponse = {
1031
+ status: string;
1032
+ data: UserStaticTemplate;
1033
+ };
959
1034
  /**
960
1035
  * A ModelSerializer that takes additional arguments for
961
1036
  * "fields", "omit" and "expand" in order to
@@ -1029,8 +1104,9 @@ type AdminCreatePayoutConfigurationWritable = {
1029
1104
  currency: string;
1030
1105
  /**
1031
1106
  * * `solana` - Solana
1107
+ * * `base` - Base
1032
1108
  */
1033
- destination_chain: 'solana';
1109
+ destination_chain: 'solana' | 'base';
1034
1110
  destination_address: string;
1035
1111
  };
1036
1112
  type AdminCryptoReturnPolicyWritable = {
@@ -1067,8 +1143,9 @@ type AdminCurrencyWritable = {
1067
1143
  bridge_code?: 'usdc' | 'eurc';
1068
1144
  /**
1069
1145
  * * `solana` - Solana
1146
+ * * `base` - Base
1070
1147
  */
1071
- bridge_chain?: 'solana';
1148
+ bridge_chain?: 'solana' | 'base';
1072
1149
  };
1073
1150
  type AdminCurrencyResponseWritable = {
1074
1151
  status: string;
@@ -1099,8 +1176,9 @@ type AdminPaymentProcessorQuoteResponseResponseWritable = {
1099
1176
  type AdminPayoutConfigurationWritable = {
1100
1177
  /**
1101
1178
  * * `solana` - Solana
1179
+ * * `base` - Base
1102
1180
  */
1103
- destination_chain: 'solana';
1181
+ destination_chain: 'solana' | 'base';
1104
1182
  destination_address: string;
1105
1183
  };
1106
1184
  type AdminPayoutConfigurationResponseWritable = {
@@ -1209,6 +1287,16 @@ type PaginatedAdminWalletListResponseWritable = {
1209
1287
  status: string;
1210
1288
  data: PaginatedAdminWalletListWritable;
1211
1289
  };
1290
+ type PaginatedUserStaticTemplateListWritable = {
1291
+ count?: number;
1292
+ next?: string | null;
1293
+ previous?: string | null;
1294
+ results?: Array<UserStaticTemplateWritable>;
1295
+ };
1296
+ type PaginatedUserStaticTemplateListResponseWritable = {
1297
+ status: string;
1298
+ data: PaginatedUserStaticTemplateListWritable;
1299
+ };
1212
1300
  type PaginatedUserVirtualAccountListWritable = {
1213
1301
  count?: number;
1214
1302
  next?: string | null;
@@ -1244,8 +1332,9 @@ type PatchedAdminCurrencyWritable = {
1244
1332
  bridge_code?: 'usdc' | 'eurc';
1245
1333
  /**
1246
1334
  * * `solana` - Solana
1335
+ * * `base` - Base
1247
1336
  */
1248
- bridge_chain?: 'solana';
1337
+ bridge_chain?: 'solana' | 'base';
1249
1338
  };
1250
1339
  /**
1251
1340
  * A ModelSerializer that takes additional arguments for
@@ -1256,8 +1345,9 @@ type PatchedAdminCurrencyWritable = {
1256
1345
  type PatchedAdminPayoutConfigurationWritable = {
1257
1346
  /**
1258
1347
  * * `solana` - Solana
1348
+ * * `base` - Base
1259
1349
  */
1260
- destination_chain?: 'solana';
1350
+ destination_chain?: 'solana' | 'base';
1261
1351
  destination_address?: string;
1262
1352
  };
1263
1353
  /**
@@ -1310,6 +1400,19 @@ type UserResponseWritable = {
1310
1400
  status: string;
1311
1401
  data: UserWritable;
1312
1402
  };
1403
+ /**
1404
+ * A ModelSerializer that takes additional arguments for
1405
+ * "fields", "omit" and "expand" in order to
1406
+ * control which fields are displayed, and whether to replace simple
1407
+ * values with complex, nested serializations
1408
+ */
1409
+ type UserStaticTemplateWritable = {
1410
+ [key: string]: unknown;
1411
+ };
1412
+ type UserStaticTemplateResponseWritable = {
1413
+ status: string;
1414
+ data: UserStaticTemplateWritable;
1415
+ };
1313
1416
  /**
1314
1417
  * A ModelSerializer that takes additional arguments for
1315
1418
  * "fields", "omit" and "expand" in order to
@@ -1510,6 +1613,16 @@ type AdminLiquidationAddressesListResponses = {
1510
1613
  200: PaginatedAdminLiquidationAddressListResponse;
1511
1614
  };
1512
1615
  type AdminLiquidationAddressesListResponse = AdminLiquidationAddressesListResponses[keyof AdminLiquidationAddressesListResponses];
1616
+ type AdminLiquidationAddressesCreateData = {
1617
+ body: AdminCreateLiquidationAddress;
1618
+ path?: never;
1619
+ query?: never;
1620
+ url: '/admin/liquidation-addresses/';
1621
+ };
1622
+ type AdminLiquidationAddressesCreateResponses = {
1623
+ 201: AdminLiquidationAddressResponse;
1624
+ };
1625
+ type AdminLiquidationAddressesCreateResponse = AdminLiquidationAddressesCreateResponses[keyof AdminLiquidationAddressesCreateResponses];
1513
1626
  type AdminLiquidationAddressesRetrieveData = {
1514
1627
  body?: never;
1515
1628
  path: {
@@ -1699,6 +1812,16 @@ type AdminVirtualAccountsListResponses = {
1699
1812
  200: PaginatedAdminVirtualAccountListResponse;
1700
1813
  };
1701
1814
  type AdminVirtualAccountsListResponse = AdminVirtualAccountsListResponses[keyof AdminVirtualAccountsListResponses];
1815
+ type AdminVirtualAccountsCreateData = {
1816
+ body?: AdminCreateVirtualAccount;
1817
+ path?: never;
1818
+ query?: never;
1819
+ url: '/admin/virtual-accounts/';
1820
+ };
1821
+ type AdminVirtualAccountsCreateResponses = {
1822
+ 201: AdminVirtualAccountResponse;
1823
+ };
1824
+ type AdminVirtualAccountsCreateResponse = AdminVirtualAccountsCreateResponses[keyof AdminVirtualAccountsCreateResponses];
1702
1825
  type AdminVirtualAccountsRetrieveData = {
1703
1826
  body?: never;
1704
1827
  path: {
@@ -1859,6 +1982,47 @@ type UserKycLinksCreateResponses = {
1859
1982
  201: UserCustomerKycLinkResponse;
1860
1983
  };
1861
1984
  type UserKycLinksCreateResponse = UserKycLinksCreateResponses[keyof UserKycLinksCreateResponses];
1985
+ type UserStaticTemplatesListData = {
1986
+ body?: never;
1987
+ path?: never;
1988
+ query?: {
1989
+ /**
1990
+ * A page number within the paginated result set.
1991
+ */
1992
+ page?: number;
1993
+ /**
1994
+ * Number of results to return per page.
1995
+ */
1996
+ page_size?: number;
1997
+ };
1998
+ url: '/user/static-templates/';
1999
+ };
2000
+ type UserStaticTemplatesListResponses = {
2001
+ 200: PaginatedUserStaticTemplateListResponse;
2002
+ };
2003
+ type UserStaticTemplatesListResponse = UserStaticTemplatesListResponses[keyof UserStaticTemplatesListResponses];
2004
+ type UserStaticTemplatesCreateData = {
2005
+ body: UserCreateStaticTemplate;
2006
+ path?: never;
2007
+ query?: never;
2008
+ url: '/user/static-templates/';
2009
+ };
2010
+ type UserStaticTemplatesCreateResponses = {
2011
+ 201: UserStaticTemplateResponse;
2012
+ };
2013
+ type UserStaticTemplatesCreateResponse = UserStaticTemplatesCreateResponses[keyof UserStaticTemplatesCreateResponses];
2014
+ type UserStaticTemplatesRetrieveData = {
2015
+ body?: never;
2016
+ path: {
2017
+ identifier: string;
2018
+ };
2019
+ query?: never;
2020
+ url: '/user/static-templates/{identifier}/';
2021
+ };
2022
+ type UserStaticTemplatesRetrieveResponses = {
2023
+ 200: UserStaticTemplateResponse;
2024
+ };
2025
+ type UserStaticTemplatesRetrieveResponse = UserStaticTemplatesRetrieveResponses[keyof UserStaticTemplatesRetrieveResponses];
1862
2026
  type UserVirtualAccountsListData = {
1863
2027
  body?: never;
1864
2028
  path?: never;
@@ -1939,6 +2103,7 @@ declare const adminCurrenciesRetrieve: <ThrowOnError extends boolean = false>(op
1939
2103
  declare const adminCurrenciesPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesPartialUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesPartialUpdateResponses, unknown, ThrowOnError, "data">;
1940
2104
  declare const adminCurrenciesUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesUpdateResponses, unknown, ThrowOnError, "data">;
1941
2105
  declare const adminLiquidationAddressesList: <ThrowOnError extends boolean = false>(options?: Options<AdminLiquidationAddressesListData, ThrowOnError>) => RequestResult<AdminLiquidationAddressesListResponses, unknown, ThrowOnError, "data">;
2106
+ declare const adminLiquidationAddressesCreate: <ThrowOnError extends boolean = false>(options: Options<AdminLiquidationAddressesCreateData, ThrowOnError>) => RequestResult<AdminLiquidationAddressesCreateResponses, unknown, ThrowOnError, "data">;
1942
2107
  declare const adminLiquidationAddressesRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminLiquidationAddressesRetrieveData, ThrowOnError>) => RequestResult<AdminLiquidationAddressesRetrieveResponses, unknown, ThrowOnError, "data">;
1943
2108
  declare const adminOperationalAccountsLiquidationAddressCreate: <ThrowOnError extends boolean = false>(options: Options<AdminOperationalAccountsLiquidationAddressCreateData, ThrowOnError>) => RequestResult<AdminOperationalAccountsLiquidationAddressCreateResponses, unknown, ThrowOnError, "data">;
1944
2109
  declare const adminOperationalAccountsVirtualAccountCreate: <ThrowOnError extends boolean = false>(options: Options<AdminOperationalAccountsVirtualAccountCreateData, ThrowOnError>) => RequestResult<AdminOperationalAccountsVirtualAccountCreateResponses, unknown, ThrowOnError, "data">;
@@ -1953,6 +2118,7 @@ declare const adminTransactionTransitionsList: <ThrowOnError extends boolean = f
1953
2118
  declare const adminTransactionTransitionsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminTransactionTransitionsRetrieveData, ThrowOnError>) => RequestResult<AdminTransactionTransitionsRetrieveResponses, unknown, ThrowOnError, "data">;
1954
2119
  declare const adminTransactionTransitionsProcessCreate: <ThrowOnError extends boolean = false>(options: Options<AdminTransactionTransitionsProcessCreateData, ThrowOnError>) => RequestResult<AdminTransactionTransitionsProcessCreateResponses, unknown, ThrowOnError, "data">;
1955
2120
  declare const adminVirtualAccountsList: <ThrowOnError extends boolean = false>(options?: Options<AdminVirtualAccountsListData, ThrowOnError>) => RequestResult<AdminVirtualAccountsListResponses, unknown, ThrowOnError, "data">;
2121
+ declare const adminVirtualAccountsCreate: <ThrowOnError extends boolean = false>(options?: Options<AdminVirtualAccountsCreateData, ThrowOnError>) => RequestResult<AdminVirtualAccountsCreateResponses, unknown, ThrowOnError, "data">;
1956
2122
  declare const adminVirtualAccountsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminVirtualAccountsRetrieveData, ThrowOnError>) => RequestResult<AdminVirtualAccountsRetrieveResponses, unknown, ThrowOnError, "data">;
1957
2123
  declare const adminWalletsList: <ThrowOnError extends boolean = false>(options?: Options<AdminWalletsListData, ThrowOnError>) => RequestResult<AdminWalletsListResponses, unknown, ThrowOnError, "data">;
1958
2124
  declare const adminWalletsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminWalletsRetrieveData, ThrowOnError>) => RequestResult<AdminWalletsRetrieveResponses, unknown, ThrowOnError, "data">;
@@ -1966,6 +2132,9 @@ declare const userCurrenciesList: <ThrowOnError extends boolean = false>(options
1966
2132
  declare const userCurrenciesRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserCurrenciesRetrieveData, ThrowOnError>) => RequestResult<UserCurrenciesRetrieveResponses, unknown, ThrowOnError, "data">;
1967
2133
  declare const userExchangeRatesRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserExchangeRatesRetrieveData, ThrowOnError>) => RequestResult<UserExchangeRatesRetrieveResponses, unknown, ThrowOnError, "data">;
1968
2134
  declare const userKycLinksCreate: <ThrowOnError extends boolean = false>(options?: Options<UserKycLinksCreateData, ThrowOnError>) => RequestResult<UserKycLinksCreateResponses, unknown, ThrowOnError, "data">;
2135
+ declare const userStaticTemplatesList: <ThrowOnError extends boolean = false>(options?: Options<UserStaticTemplatesListData, ThrowOnError>) => RequestResult<UserStaticTemplatesListResponses, unknown, ThrowOnError, "data">;
2136
+ declare const userStaticTemplatesCreate: <ThrowOnError extends boolean = false>(options: Options<UserStaticTemplatesCreateData, ThrowOnError>) => RequestResult<UserStaticTemplatesCreateResponses, unknown, ThrowOnError, "data">;
2137
+ declare const userStaticTemplatesRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserStaticTemplatesRetrieveData, ThrowOnError>) => RequestResult<UserStaticTemplatesRetrieveResponses, unknown, ThrowOnError, "data">;
1969
2138
  declare const userVirtualAccountsList: <ThrowOnError extends boolean = false>(options?: Options<UserVirtualAccountsListData, ThrowOnError>) => RequestResult<UserVirtualAccountsListResponses, unknown, ThrowOnError, "data">;
1970
2139
  declare const userVirtualAccountsCreate: <ThrowOnError extends boolean = false>(options: Options<UserVirtualAccountsCreateData, ThrowOnError>) => RequestResult<UserVirtualAccountsCreateResponses, unknown, ThrowOnError, "data">;
1971
2140
  declare const userVirtualAccountsRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserVirtualAccountsRetrieveData, ThrowOnError>) => RequestResult<UserVirtualAccountsRetrieveResponses, unknown, ThrowOnError, "data">;
@@ -1986,6 +2155,7 @@ declare const sdk_adminCurrenciesList: typeof adminCurrenciesList;
1986
2155
  declare const sdk_adminCurrenciesPartialUpdate: typeof adminCurrenciesPartialUpdate;
1987
2156
  declare const sdk_adminCurrenciesRetrieve: typeof adminCurrenciesRetrieve;
1988
2157
  declare const sdk_adminCurrenciesUpdate: typeof adminCurrenciesUpdate;
2158
+ declare const sdk_adminLiquidationAddressesCreate: typeof adminLiquidationAddressesCreate;
1989
2159
  declare const sdk_adminLiquidationAddressesList: typeof adminLiquidationAddressesList;
1990
2160
  declare const sdk_adminLiquidationAddressesRetrieve: typeof adminLiquidationAddressesRetrieve;
1991
2161
  declare const sdk_adminOperationalAccountsLiquidationAddressCreate: typeof adminOperationalAccountsLiquidationAddressCreate;
@@ -2000,6 +2170,7 @@ declare const sdk_adminPayoutConfigurationsUpdate: typeof adminPayoutConfigurati
2000
2170
  declare const sdk_adminTransactionTransitionsList: typeof adminTransactionTransitionsList;
2001
2171
  declare const sdk_adminTransactionTransitionsProcessCreate: typeof adminTransactionTransitionsProcessCreate;
2002
2172
  declare const sdk_adminTransactionTransitionsRetrieve: typeof adminTransactionTransitionsRetrieve;
2173
+ declare const sdk_adminVirtualAccountsCreate: typeof adminVirtualAccountsCreate;
2003
2174
  declare const sdk_adminVirtualAccountsList: typeof adminVirtualAccountsList;
2004
2175
  declare const sdk_adminVirtualAccountsRetrieve: typeof adminVirtualAccountsRetrieve;
2005
2176
  declare const sdk_adminWalletsList: typeof adminWalletsList;
@@ -2013,16 +2184,19 @@ declare const sdk_userExchangeRatesRetrieve: typeof userExchangeRatesRetrieve;
2013
2184
  declare const sdk_userKycLinksCreate: typeof userKycLinksCreate;
2014
2185
  declare const sdk_userPartialUpdate: typeof userPartialUpdate;
2015
2186
  declare const sdk_userRetrieve: typeof userRetrieve;
2187
+ declare const sdk_userStaticTemplatesCreate: typeof userStaticTemplatesCreate;
2188
+ declare const sdk_userStaticTemplatesList: typeof userStaticTemplatesList;
2189
+ declare const sdk_userStaticTemplatesRetrieve: typeof userStaticTemplatesRetrieve;
2016
2190
  declare const sdk_userUpdate: typeof userUpdate;
2017
2191
  declare const sdk_userVirtualAccountsCreate: typeof userVirtualAccountsCreate;
2018
2192
  declare const sdk_userVirtualAccountsList: typeof userVirtualAccountsList;
2019
2193
  declare const sdk_userVirtualAccountsRetrieve: typeof userVirtualAccountsRetrieve;
2020
2194
  declare const sdk_webhookCreate: typeof webhookCreate;
2021
2195
  declare namespace sdk {
2022
- export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminCryptoReturnPoliciesCreate as adminCryptoReturnPoliciesCreate, sdk_adminCryptoReturnPoliciesDestroy as adminCryptoReturnPoliciesDestroy, sdk_adminCryptoReturnPoliciesList as adminCryptoReturnPoliciesList, sdk_adminCryptoReturnPoliciesPartialUpdate as adminCryptoReturnPoliciesPartialUpdate, sdk_adminCryptoReturnPoliciesRetrieve as adminCryptoReturnPoliciesRetrieve, sdk_adminCryptoReturnPoliciesUpdate as adminCryptoReturnPoliciesUpdate, sdk_adminCurrenciesList as adminCurrenciesList, sdk_adminCurrenciesPartialUpdate as adminCurrenciesPartialUpdate, sdk_adminCurrenciesRetrieve as adminCurrenciesRetrieve, sdk_adminCurrenciesUpdate as adminCurrenciesUpdate, sdk_adminLiquidationAddressesList as adminLiquidationAddressesList, sdk_adminLiquidationAddressesRetrieve as adminLiquidationAddressesRetrieve, sdk_adminOperationalAccountsLiquidationAddressCreate as adminOperationalAccountsLiquidationAddressCreate, sdk_adminOperationalAccountsVirtualAccountCreate as adminOperationalAccountsVirtualAccountCreate, sdk_adminPaymentProcessorQuoteCreate as adminPaymentProcessorQuoteCreate, sdk_adminPayoutConfigurationsCreate as adminPayoutConfigurationsCreate, sdk_adminPayoutConfigurationsDestroy as adminPayoutConfigurationsDestroy, sdk_adminPayoutConfigurationsList as adminPayoutConfigurationsList, sdk_adminPayoutConfigurationsPartialUpdate as adminPayoutConfigurationsPartialUpdate, sdk_adminPayoutConfigurationsRetrieve as adminPayoutConfigurationsRetrieve, sdk_adminPayoutConfigurationsUpdate as adminPayoutConfigurationsUpdate, sdk_adminTransactionTransitionsList as adminTransactionTransitionsList, sdk_adminTransactionTransitionsProcessCreate as adminTransactionTransitionsProcessCreate, sdk_adminTransactionTransitionsRetrieve as adminTransactionTransitionsRetrieve, sdk_adminVirtualAccountsList as adminVirtualAccountsList, sdk_adminVirtualAccountsRetrieve as adminVirtualAccountsRetrieve, sdk_adminWalletsList as adminWalletsList, sdk_adminWalletsRetrieve as adminWalletsRetrieve, sdk_bridgeWebhookCreate as bridgeWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userCryptoDepositCreate as userCryptoDepositCreate, sdk_userCurrenciesList as userCurrenciesList, sdk_userCurrenciesRetrieve as userCurrenciesRetrieve, sdk_userExchangeRatesRetrieve as userExchangeRatesRetrieve, sdk_userKycLinksCreate as userKycLinksCreate, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userUpdate as userUpdate, sdk_userVirtualAccountsCreate as userVirtualAccountsCreate, sdk_userVirtualAccountsList as userVirtualAccountsList, sdk_userVirtualAccountsRetrieve as userVirtualAccountsRetrieve, sdk_webhookCreate as webhookCreate };
2196
+ export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminCryptoReturnPoliciesCreate as adminCryptoReturnPoliciesCreate, sdk_adminCryptoReturnPoliciesDestroy as adminCryptoReturnPoliciesDestroy, sdk_adminCryptoReturnPoliciesList as adminCryptoReturnPoliciesList, sdk_adminCryptoReturnPoliciesPartialUpdate as adminCryptoReturnPoliciesPartialUpdate, sdk_adminCryptoReturnPoliciesRetrieve as adminCryptoReturnPoliciesRetrieve, sdk_adminCryptoReturnPoliciesUpdate as adminCryptoReturnPoliciesUpdate, sdk_adminCurrenciesList as adminCurrenciesList, sdk_adminCurrenciesPartialUpdate as adminCurrenciesPartialUpdate, sdk_adminCurrenciesRetrieve as adminCurrenciesRetrieve, sdk_adminCurrenciesUpdate as adminCurrenciesUpdate, sdk_adminLiquidationAddressesCreate as adminLiquidationAddressesCreate, sdk_adminLiquidationAddressesList as adminLiquidationAddressesList, sdk_adminLiquidationAddressesRetrieve as adminLiquidationAddressesRetrieve, sdk_adminOperationalAccountsLiquidationAddressCreate as adminOperationalAccountsLiquidationAddressCreate, sdk_adminOperationalAccountsVirtualAccountCreate as adminOperationalAccountsVirtualAccountCreate, sdk_adminPaymentProcessorQuoteCreate as adminPaymentProcessorQuoteCreate, sdk_adminPayoutConfigurationsCreate as adminPayoutConfigurationsCreate, sdk_adminPayoutConfigurationsDestroy as adminPayoutConfigurationsDestroy, sdk_adminPayoutConfigurationsList as adminPayoutConfigurationsList, sdk_adminPayoutConfigurationsPartialUpdate as adminPayoutConfigurationsPartialUpdate, sdk_adminPayoutConfigurationsRetrieve as adminPayoutConfigurationsRetrieve, sdk_adminPayoutConfigurationsUpdate as adminPayoutConfigurationsUpdate, sdk_adminTransactionTransitionsList as adminTransactionTransitionsList, sdk_adminTransactionTransitionsProcessCreate as adminTransactionTransitionsProcessCreate, sdk_adminTransactionTransitionsRetrieve as adminTransactionTransitionsRetrieve, sdk_adminVirtualAccountsCreate as adminVirtualAccountsCreate, sdk_adminVirtualAccountsList as adminVirtualAccountsList, sdk_adminVirtualAccountsRetrieve as adminVirtualAccountsRetrieve, sdk_adminWalletsList as adminWalletsList, sdk_adminWalletsRetrieve as adminWalletsRetrieve, sdk_bridgeWebhookCreate as bridgeWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userCryptoDepositCreate as userCryptoDepositCreate, sdk_userCurrenciesList as userCurrenciesList, sdk_userCurrenciesRetrieve as userCurrenciesRetrieve, sdk_userExchangeRatesRetrieve as userExchangeRatesRetrieve, sdk_userKycLinksCreate as userKycLinksCreate, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userStaticTemplatesCreate as userStaticTemplatesCreate, sdk_userStaticTemplatesList as userStaticTemplatesList, sdk_userStaticTemplatesRetrieve as userStaticTemplatesRetrieve, sdk_userUpdate as userUpdate, sdk_userVirtualAccountsCreate as userVirtualAccountsCreate, sdk_userVirtualAccountsList as userVirtualAccountsList, sdk_userVirtualAccountsRetrieve as userVirtualAccountsRetrieve, sdk_webhookCreate as webhookCreate };
2023
2197
  }
2024
2198
 
2025
2199
  type BridgeApi = BoundSdk<typeof sdk>;
2026
2200
  declare function createBridgeApi(config: ApiFactoryConfig): BridgeApi;
2027
2201
 
2028
- export { type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCompanyWritable, type AdminCreatePayoutConfiguration, type AdminCreatePayoutConfigurationWritable, type AdminCryptoReturnPoliciesCreateData, type AdminCryptoReturnPoliciesCreateResponse, type AdminCryptoReturnPoliciesCreateResponses, type AdminCryptoReturnPoliciesDestroyData, type AdminCryptoReturnPoliciesDestroyResponse, type AdminCryptoReturnPoliciesDestroyResponses, type AdminCryptoReturnPoliciesListData, type AdminCryptoReturnPoliciesListResponse, type AdminCryptoReturnPoliciesListResponses, type AdminCryptoReturnPoliciesPartialUpdateData, type AdminCryptoReturnPoliciesPartialUpdateResponse, type AdminCryptoReturnPoliciesPartialUpdateResponses, type AdminCryptoReturnPoliciesRetrieveData, type AdminCryptoReturnPoliciesRetrieveResponse, type AdminCryptoReturnPoliciesRetrieveResponses, type AdminCryptoReturnPoliciesUpdateData, type AdminCryptoReturnPoliciesUpdateResponse, type AdminCryptoReturnPoliciesUpdateResponses, type AdminCryptoReturnPolicy, type AdminCryptoReturnPolicyList, type AdminCryptoReturnPolicyListResponse, type AdminCryptoReturnPolicyListResponseWritable, type AdminCryptoReturnPolicyListWritable, type AdminCryptoReturnPolicyResponse, type AdminCryptoReturnPolicyResponseWritable, type AdminCryptoReturnPolicyWritable, type AdminCurrenciesListData, type AdminCurrenciesListResponse, type AdminCurrenciesListResponses, type AdminCurrenciesPartialUpdateData, type AdminCurrenciesPartialUpdateResponse, type AdminCurrenciesPartialUpdateResponses, type AdminCurrenciesRetrieveData, type AdminCurrenciesRetrieveResponse, type AdminCurrenciesRetrieveResponses, type AdminCurrenciesUpdateData, type AdminCurrenciesUpdateResponse, type AdminCurrenciesUpdateResponses, type AdminCurrency, type AdminCurrencyResponse, type AdminCurrencyResponseWritable, type AdminCurrencyWritable, type AdminLiquidationAddress, type AdminLiquidationAddressResponse, type AdminLiquidationAddressResponseWritable, type AdminLiquidationAddressWritable, type AdminLiquidationAddressesListData, type AdminLiquidationAddressesListResponse, type AdminLiquidationAddressesListResponses, type AdminLiquidationAddressesRetrieveData, type AdminLiquidationAddressesRetrieveResponse, type AdminLiquidationAddressesRetrieveResponses, type AdminOperationalAccountLiquidationAddress, type AdminOperationalAccountVirtualAccount, type AdminOperationalAccountsLiquidationAddressCreateData, type AdminOperationalAccountsLiquidationAddressCreateResponse, type AdminOperationalAccountsLiquidationAddressCreateResponses, type AdminOperationalAccountsVirtualAccountCreateData, type AdminOperationalAccountsVirtualAccountCreateResponse, type AdminOperationalAccountsVirtualAccountCreateResponses, type AdminPaymentProcessorQuote, type AdminPaymentProcessorQuoteCreateData, type AdminPaymentProcessorQuoteCreateResponse, type AdminPaymentProcessorQuoteCreateResponses, type AdminPaymentProcessorQuoteResponse, type AdminPaymentProcessorQuoteResponseResponse, type AdminPaymentProcessorQuoteResponseResponseWritable, type AdminPayoutConfiguration, type AdminPayoutConfigurationResponse, type AdminPayoutConfigurationResponseWritable, type AdminPayoutConfigurationWritable, type AdminPayoutConfigurationsCreateData, type AdminPayoutConfigurationsCreateResponse, type AdminPayoutConfigurationsCreateResponses, type AdminPayoutConfigurationsDestroyData, type AdminPayoutConfigurationsDestroyResponse, type AdminPayoutConfigurationsDestroyResponses, type AdminPayoutConfigurationsListData, type AdminPayoutConfigurationsListResponse, type AdminPayoutConfigurationsListResponses, type AdminPayoutConfigurationsPartialUpdateData, type AdminPayoutConfigurationsPartialUpdateResponse, type AdminPayoutConfigurationsPartialUpdateResponses, type AdminPayoutConfigurationsRetrieveData, type AdminPayoutConfigurationsRetrieveResponse, type AdminPayoutConfigurationsRetrieveResponses, type AdminPayoutConfigurationsUpdateData, type AdminPayoutConfigurationsUpdateResponse, type AdminPayoutConfigurationsUpdateResponses, type AdminTransactionTransition, type AdminTransactionTransitionResponse, type AdminTransactionTransitionResponseWritable, type AdminTransactionTransitionsListData, type AdminTransactionTransitionsListResponse, type AdminTransactionTransitionsListResponses, type AdminTransactionTransitionsProcessCreateData, type AdminTransactionTransitionsProcessCreateResponse, type AdminTransactionTransitionsProcessCreateResponses, type AdminTransactionTransitionsRetrieveData, type AdminTransactionTransitionsRetrieveResponse, type AdminTransactionTransitionsRetrieveResponses, type AdminUpdateCompany, type AdminUpdateCompanyWritable, type AdminVirtualAccount, type AdminVirtualAccountResponse, type AdminVirtualAccountResponseWritable, type AdminVirtualAccountWritable, type AdminVirtualAccountsListData, type AdminVirtualAccountsListResponse, type AdminVirtualAccountsListResponses, type AdminVirtualAccountsRetrieveData, type AdminVirtualAccountsRetrieveResponse, type AdminVirtualAccountsRetrieveResponses, type AdminWallet, type AdminWalletResponse, type AdminWalletResponseWritable, type AdminWalletWritable, type AdminWalletsListData, type AdminWalletsListResponse, type AdminWalletsListResponses, type AdminWalletsRetrieveData, type AdminWalletsRetrieveResponse, type AdminWalletsRetrieveResponses, type BridgeApi, type BridgeWebhook, type BridgeWebhookCreateData, type BridgeWebhookCreateResponse, type BridgeWebhookCreateResponses, type ClientOptions, type Currency, type CurrencyResponse, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type PaginatedAdminCurrencyList, type PaginatedAdminCurrencyListResponse, type PaginatedAdminCurrencyListResponseWritable, type PaginatedAdminCurrencyListWritable, type PaginatedAdminLiquidationAddressList, type PaginatedAdminLiquidationAddressListResponse, type PaginatedAdminLiquidationAddressListResponseWritable, type PaginatedAdminLiquidationAddressListWritable, type PaginatedAdminPayoutConfigurationList, type PaginatedAdminPayoutConfigurationListResponse, type PaginatedAdminPayoutConfigurationListResponseWritable, type PaginatedAdminPayoutConfigurationListWritable, type PaginatedAdminTransactionTransitionList, type PaginatedAdminTransactionTransitionListResponse, type PaginatedAdminTransactionTransitionListResponseWritable, type PaginatedAdminTransactionTransitionListWritable, type PaginatedAdminVirtualAccountList, type PaginatedAdminVirtualAccountListResponse, type PaginatedAdminVirtualAccountListResponseWritable, type PaginatedAdminVirtualAccountListWritable, type PaginatedAdminWalletList, type PaginatedAdminWalletListResponse, type PaginatedAdminWalletListResponseWritable, type PaginatedAdminWalletListWritable, type PaginatedCurrencyList, type PaginatedCurrencyListResponse, type PaginatedUserVirtualAccountList, type PaginatedUserVirtualAccountListResponse, type PaginatedUserVirtualAccountListResponseWritable, type PaginatedUserVirtualAccountListWritable, type PatchedAdminCryptoReturnPolicy, type PatchedAdminCryptoReturnPolicyWritable, type PatchedAdminCurrency, type PatchedAdminCurrencyWritable, type PatchedAdminPayoutConfiguration, type PatchedAdminPayoutConfigurationWritable, type PatchedAdminUpdateCompany, type PatchedAdminUpdateCompanyWritable, type PatchedUser, type PatchedUserWritable, type User, type UserCreateCustomerKycLink, type UserCreateVirtualAccount, type UserCryptoDeposit, type UserCryptoDepositCreateData, type UserCryptoDepositCreateResponse, type UserCryptoDepositCreateResponses, type UserCryptoDepositResponse, type UserCryptoDepositResponseResponse, type UserCryptoDepositResponseResponseWritable, type UserCurrenciesListData, type UserCurrenciesListResponse, type UserCurrenciesListResponses, type UserCurrenciesRetrieveData, type UserCurrenciesRetrieveResponse, type UserCurrenciesRetrieveResponses, type UserCustomerKycLink, type UserCustomerKycLinkResponse, type UserCustomerKycLinkResponseWritable, type UserExchangeRateResponse, type UserExchangeRateResponseResponse, type UserExchangeRatesRetrieveData, type UserExchangeRatesRetrieveResponse, type UserExchangeRatesRetrieveResponses, type UserKycLinksCreateData, type UserKycLinksCreateResponse, type UserKycLinksCreateResponses, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserReducedWallet, type UserReducedWalletWritable, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserUpdateData, type UserUpdateResponse, type UserUpdateResponses, type UserVirtualAccount, type UserVirtualAccountResponse, type UserVirtualAccountResponseWritable, type UserVirtualAccountWritable, type UserVirtualAccountsCreateData, type UserVirtualAccountsCreateResponse, type UserVirtualAccountsCreateResponses, type UserVirtualAccountsListData, type UserVirtualAccountsListResponse, type UserVirtualAccountsListResponses, type UserVirtualAccountsRetrieveData, type UserVirtualAccountsRetrieveResponse, type UserVirtualAccountsRetrieveResponses, type UserWritable, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createBridgeApi };
2202
+ export { type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCompanyWritable, type AdminCreateLiquidationAddress, type AdminCreatePayoutConfiguration, type AdminCreatePayoutConfigurationWritable, type AdminCreateVirtualAccount, type AdminCryptoReturnPoliciesCreateData, type AdminCryptoReturnPoliciesCreateResponse, type AdminCryptoReturnPoliciesCreateResponses, type AdminCryptoReturnPoliciesDestroyData, type AdminCryptoReturnPoliciesDestroyResponse, type AdminCryptoReturnPoliciesDestroyResponses, type AdminCryptoReturnPoliciesListData, type AdminCryptoReturnPoliciesListResponse, type AdminCryptoReturnPoliciesListResponses, type AdminCryptoReturnPoliciesPartialUpdateData, type AdminCryptoReturnPoliciesPartialUpdateResponse, type AdminCryptoReturnPoliciesPartialUpdateResponses, type AdminCryptoReturnPoliciesRetrieveData, type AdminCryptoReturnPoliciesRetrieveResponse, type AdminCryptoReturnPoliciesRetrieveResponses, type AdminCryptoReturnPoliciesUpdateData, type AdminCryptoReturnPoliciesUpdateResponse, type AdminCryptoReturnPoliciesUpdateResponses, type AdminCryptoReturnPolicy, type AdminCryptoReturnPolicyList, type AdminCryptoReturnPolicyListResponse, type AdminCryptoReturnPolicyListResponseWritable, type AdminCryptoReturnPolicyListWritable, type AdminCryptoReturnPolicyResponse, type AdminCryptoReturnPolicyResponseWritable, type AdminCryptoReturnPolicyWritable, type AdminCurrenciesListData, type AdminCurrenciesListResponse, type AdminCurrenciesListResponses, type AdminCurrenciesPartialUpdateData, type AdminCurrenciesPartialUpdateResponse, type AdminCurrenciesPartialUpdateResponses, type AdminCurrenciesRetrieveData, type AdminCurrenciesRetrieveResponse, type AdminCurrenciesRetrieveResponses, type AdminCurrenciesUpdateData, type AdminCurrenciesUpdateResponse, type AdminCurrenciesUpdateResponses, type AdminCurrency, type AdminCurrencyResponse, type AdminCurrencyResponseWritable, type AdminCurrencyWritable, type AdminLiquidationAddress, type AdminLiquidationAddressResponse, type AdminLiquidationAddressResponseWritable, type AdminLiquidationAddressWritable, type AdminLiquidationAddressesCreateData, type AdminLiquidationAddressesCreateResponse, type AdminLiquidationAddressesCreateResponses, type AdminLiquidationAddressesListData, type AdminLiquidationAddressesListResponse, type AdminLiquidationAddressesListResponses, type AdminLiquidationAddressesRetrieveData, type AdminLiquidationAddressesRetrieveResponse, type AdminLiquidationAddressesRetrieveResponses, type AdminOperationalAccountLiquidationAddress, type AdminOperationalAccountVirtualAccount, type AdminOperationalAccountsLiquidationAddressCreateData, type AdminOperationalAccountsLiquidationAddressCreateResponse, type AdminOperationalAccountsLiquidationAddressCreateResponses, type AdminOperationalAccountsVirtualAccountCreateData, type AdminOperationalAccountsVirtualAccountCreateResponse, type AdminOperationalAccountsVirtualAccountCreateResponses, type AdminPaymentProcessorQuote, type AdminPaymentProcessorQuoteCreateData, type AdminPaymentProcessorQuoteCreateResponse, type AdminPaymentProcessorQuoteCreateResponses, type AdminPaymentProcessorQuoteResponse, type AdminPaymentProcessorQuoteResponseResponse, type AdminPaymentProcessorQuoteResponseResponseWritable, type AdminPayoutConfiguration, type AdminPayoutConfigurationResponse, type AdminPayoutConfigurationResponseWritable, type AdminPayoutConfigurationWritable, type AdminPayoutConfigurationsCreateData, type AdminPayoutConfigurationsCreateResponse, type AdminPayoutConfigurationsCreateResponses, type AdminPayoutConfigurationsDestroyData, type AdminPayoutConfigurationsDestroyResponse, type AdminPayoutConfigurationsDestroyResponses, type AdminPayoutConfigurationsListData, type AdminPayoutConfigurationsListResponse, type AdminPayoutConfigurationsListResponses, type AdminPayoutConfigurationsPartialUpdateData, type AdminPayoutConfigurationsPartialUpdateResponse, type AdminPayoutConfigurationsPartialUpdateResponses, type AdminPayoutConfigurationsRetrieveData, type AdminPayoutConfigurationsRetrieveResponse, type AdminPayoutConfigurationsRetrieveResponses, type AdminPayoutConfigurationsUpdateData, type AdminPayoutConfigurationsUpdateResponse, type AdminPayoutConfigurationsUpdateResponses, type AdminTransactionTransition, type AdminTransactionTransitionResponse, type AdminTransactionTransitionResponseWritable, type AdminTransactionTransitionsListData, type AdminTransactionTransitionsListResponse, type AdminTransactionTransitionsListResponses, type AdminTransactionTransitionsProcessCreateData, type AdminTransactionTransitionsProcessCreateResponse, type AdminTransactionTransitionsProcessCreateResponses, type AdminTransactionTransitionsRetrieveData, type AdminTransactionTransitionsRetrieveResponse, type AdminTransactionTransitionsRetrieveResponses, type AdminUpdateCompany, type AdminUpdateCompanyWritable, type AdminVirtualAccount, type AdminVirtualAccountResponse, type AdminVirtualAccountResponseWritable, type AdminVirtualAccountWritable, type AdminVirtualAccountsCreateData, type AdminVirtualAccountsCreateResponse, type AdminVirtualAccountsCreateResponses, type AdminVirtualAccountsListData, type AdminVirtualAccountsListResponse, type AdminVirtualAccountsListResponses, type AdminVirtualAccountsRetrieveData, type AdminVirtualAccountsRetrieveResponse, type AdminVirtualAccountsRetrieveResponses, type AdminWallet, type AdminWalletResponse, type AdminWalletResponseWritable, type AdminWalletWritable, type AdminWalletsListData, type AdminWalletsListResponse, type AdminWalletsListResponses, type AdminWalletsRetrieveData, type AdminWalletsRetrieveResponse, type AdminWalletsRetrieveResponses, type BridgeApi, type BridgeWebhook, type BridgeWebhookCreateData, type BridgeWebhookCreateResponse, type BridgeWebhookCreateResponses, type ClientOptions, type Currency, type CurrencyResponse, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type PaginatedAdminCurrencyList, type PaginatedAdminCurrencyListResponse, type PaginatedAdminCurrencyListResponseWritable, type PaginatedAdminCurrencyListWritable, type PaginatedAdminLiquidationAddressList, type PaginatedAdminLiquidationAddressListResponse, type PaginatedAdminLiquidationAddressListResponseWritable, type PaginatedAdminLiquidationAddressListWritable, type PaginatedAdminPayoutConfigurationList, type PaginatedAdminPayoutConfigurationListResponse, type PaginatedAdminPayoutConfigurationListResponseWritable, type PaginatedAdminPayoutConfigurationListWritable, type PaginatedAdminTransactionTransitionList, type PaginatedAdminTransactionTransitionListResponse, type PaginatedAdminTransactionTransitionListResponseWritable, type PaginatedAdminTransactionTransitionListWritable, type PaginatedAdminVirtualAccountList, type PaginatedAdminVirtualAccountListResponse, type PaginatedAdminVirtualAccountListResponseWritable, type PaginatedAdminVirtualAccountListWritable, type PaginatedAdminWalletList, type PaginatedAdminWalletListResponse, type PaginatedAdminWalletListResponseWritable, type PaginatedAdminWalletListWritable, type PaginatedCurrencyList, type PaginatedCurrencyListResponse, type PaginatedUserStaticTemplateList, type PaginatedUserStaticTemplateListResponse, type PaginatedUserStaticTemplateListResponseWritable, type PaginatedUserStaticTemplateListWritable, type PaginatedUserVirtualAccountList, type PaginatedUserVirtualAccountListResponse, type PaginatedUserVirtualAccountListResponseWritable, type PaginatedUserVirtualAccountListWritable, type PatchedAdminCryptoReturnPolicy, type PatchedAdminCryptoReturnPolicyWritable, type PatchedAdminCurrency, type PatchedAdminCurrencyWritable, type PatchedAdminPayoutConfiguration, type PatchedAdminPayoutConfigurationWritable, type PatchedAdminUpdateCompany, type PatchedAdminUpdateCompanyWritable, type PatchedUser, type PatchedUserWritable, type User, type UserCreateCustomerKycLink, type UserCreateStaticTemplate, type UserCreateVirtualAccount, type UserCryptoDeposit, type UserCryptoDepositCreateData, type UserCryptoDepositCreateResponse, type UserCryptoDepositCreateResponses, type UserCryptoDepositResponse, type UserCryptoDepositResponseResponse, type UserCryptoDepositResponseResponseWritable, type UserCurrenciesListData, type UserCurrenciesListResponse, type UserCurrenciesListResponses, type UserCurrenciesRetrieveData, type UserCurrenciesRetrieveResponse, type UserCurrenciesRetrieveResponses, type UserCustomerKycLink, type UserCustomerKycLinkResponse, type UserCustomerKycLinkResponseWritable, type UserExchangeRateResponse, type UserExchangeRateResponseResponse, type UserExchangeRatesRetrieveData, type UserExchangeRatesRetrieveResponse, type UserExchangeRatesRetrieveResponses, type UserKycLinksCreateData, type UserKycLinksCreateResponse, type UserKycLinksCreateResponses, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserReducedWallet, type UserReducedWalletWritable, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserStaticTemplate, type UserStaticTemplateResponse, type UserStaticTemplateResponseWritable, type UserStaticTemplateWritable, type UserStaticTemplatesCreateData, type UserStaticTemplatesCreateResponse, type UserStaticTemplatesCreateResponses, type UserStaticTemplatesListData, type UserStaticTemplatesListResponse, type UserStaticTemplatesListResponses, type UserStaticTemplatesRetrieveData, type UserStaticTemplatesRetrieveResponse, type UserStaticTemplatesRetrieveResponses, type UserUpdateData, type UserUpdateResponse, type UserUpdateResponses, type UserVirtualAccount, type UserVirtualAccountResponse, type UserVirtualAccountResponseWritable, type UserVirtualAccountWritable, type UserVirtualAccountsCreateData, type UserVirtualAccountsCreateResponse, type UserVirtualAccountsCreateResponses, type UserVirtualAccountsListData, type UserVirtualAccountsListResponse, type UserVirtualAccountsListResponses, type UserVirtualAccountsRetrieveData, type UserVirtualAccountsRetrieveResponse, type UserVirtualAccountsRetrieveResponses, type UserWritable, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createBridgeApi };