rehive 4.1.4 → 4.2.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.
Files changed (162) hide show
  1. package/dist/admin.d.mts +43 -106
  2. package/dist/admin.d.ts +43 -106
  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-AVPKHYGS.js → chunk-7USVOK77.js} +5 -5
  10. package/dist/{chunk-X6YDNXYV.js → chunk-ERD2XKSM.js} +1 -1
  11. package/dist/chunk-G3M5QMRX.js +1 -0
  12. package/dist/chunk-HSPTEN45.mjs +1 -0
  13. package/dist/chunk-HWXE5WBF.js +7 -0
  14. package/dist/chunk-MUN3POSM.mjs +7 -0
  15. package/dist/{chunk-4WSHB6U6.mjs → chunk-PCR54D6A.mjs} +1 -1
  16. package/dist/chunk-ZUZHOLAX.mjs +7 -0
  17. package/dist/{create-api-client-ebyTfhcm.d.ts → create-api-client-ADSlg8HX.d.ts} +1 -1
  18. package/dist/{create-api-client-C-LEZku2.d.mts → create-api-client-B4Q01gHp.d.mts} +1 -1
  19. package/dist/{create-auth-DsnHpEf0.d.mts → create-auth-CT_IFt3T.d.mts} +53 -47
  20. package/dist/{create-auth-DsnHpEf0.d.ts → create-auth-CT_IFt3T.d.ts} +53 -47
  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 +16 -190
  34. package/dist/extensions/bridge.d.ts +16 -190
  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 +47 -82
  42. package/dist/extensions/business.d.ts +47 -82
  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 +3 -7
  58. package/dist/extensions/payment-requests.d.ts +3 -7
  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 +11 -3
  86. package/dist/react.d.ts +11 -3
  87. package/dist/react.js +1 -1
  88. package/dist/react.mjs +1 -1
  89. package/dist/user.d.mts +6 -16
  90. package/dist/user.d.ts +6 -16
  91. package/dist/user.js +1 -1
  92. package/dist/user.mjs +1 -1
  93. package/package.json +1 -1
  94. package/src/auth/create-auth.ts +773 -169
  95. package/src/auth/index.ts +25 -2
  96. package/src/auth/types/index.ts +48 -0
  97. package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +3 -5
  98. package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +8 -6
  99. package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
  100. package/src/extensions/app/openapi-ts/client/client.gen.ts +3 -5
  101. package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +8 -6
  102. package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
  103. package/src/extensions/billing/openapi-ts/client/client.gen.ts +3 -5
  104. package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +8 -6
  105. package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
  106. package/src/extensions/bridge/openapi-ts/client/client.gen.ts +3 -5
  107. package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +8 -6
  108. package/src/extensions/bridge/openapi-ts/core/params.gen.ts +1 -1
  109. package/src/extensions/bridge/openapi-ts/index.ts +2 -2
  110. package/src/extensions/bridge/openapi-ts/sdk.gen.ts +1 -43
  111. package/src/extensions/bridge/openapi-ts/types.gen.ts +11 -201
  112. package/src/extensions/builder/openapi-ts/client/client.gen.ts +3 -5
  113. package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +8 -6
  114. package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
  115. package/src/extensions/business/openapi-ts/client/client.gen.ts +3 -5
  116. package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +8 -6
  117. package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
  118. package/src/extensions/business/openapi-ts/types.gen.ts +44 -79
  119. package/src/extensions/conversion/openapi-ts/client/client.gen.ts +3 -5
  120. package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +8 -6
  121. package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
  122. package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +3 -5
  123. package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +8 -6
  124. package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
  125. package/src/extensions/notifications/openapi-ts/client/client.gen.ts +3 -5
  126. package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +8 -6
  127. package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
  128. package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +3 -5
  129. package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +8 -6
  130. package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
  131. package/src/extensions/payment-requests/openapi-ts/types.gen.ts +0 -4
  132. package/src/extensions/products/openapi-ts/client/client.gen.ts +3 -5
  133. package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +8 -6
  134. package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
  135. package/src/extensions/rain/openapi-ts/client/client.gen.ts +3 -5
  136. package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +8 -6
  137. package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
  138. package/src/extensions/rewards/openapi-ts/client/client.gen.ts +3 -5
  139. package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +8 -6
  140. package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
  141. package/src/extensions/stellar/openapi-ts/client/client.gen.ts +3 -5
  142. package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +8 -6
  143. package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
  144. package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +3 -5
  145. package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +8 -6
  146. package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
  147. package/src/platform/admin/openapi-ts/client/client.gen.ts +3 -5
  148. package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +8 -6
  149. package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
  150. package/src/platform/admin/openapi-ts/sdk.gen.ts +10 -10
  151. package/src/platform/admin/openapi-ts/types.gen.ts +40 -103
  152. package/src/platform/user/openapi-ts/client/client.gen.ts +3 -5
  153. package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +8 -6
  154. package/src/platform/user/openapi-ts/core/params.gen.ts +1 -1
  155. package/src/platform/user/openapi-ts/index.ts +2 -2
  156. package/src/platform/user/openapi-ts/sdk.gen.ts +3 -29
  157. package/src/platform/user/openapi-ts/types.gen.ts +7 -54
  158. package/dist/chunk-KUT5NSX7.mjs +0 -7
  159. package/dist/chunk-KZWBOQHZ.mjs +0 -7
  160. package/dist/chunk-PE6PG7ZE.js +0 -1
  161. package/dist/chunk-UYYU5OJ4.js +0 -7
  162. package/dist/chunk-Z7BUNKND.mjs +0 -1
@@ -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:()=>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,`
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,`
2
2
  `).replace(/\r/g,`
3
- `);let H=f.split(`
3
+ `);let H=A.split(`
4
4
 
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};
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};
@@ -1,5 +1,5 @@
1
- import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-C-LEZku2.mjs';
2
- import '../create-auth-DsnHpEf0.mjs';
1
+ import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-B4Q01gHp.mjs';
2
+ import '../create-auth-CT_IFt3T.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: unknown) => unknown;
33
+ type BodySerializer = (body: any) => any;
34
34
  type QuerySerializerOptionsObject = {
35
35
  allowReserved?: boolean;
36
36
  array?: Partial<SerializerOptions<ArrayStyle>>;
@@ -352,21 +352,6 @@ 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
- };
370
355
  /**
371
356
  * A ModelSerializer that takes additional arguments for
372
357
  * "fields", "omit" and "expand" in order to
@@ -376,22 +361,10 @@ type AdminCreateLiquidationAddress = {
376
361
  type AdminCreatePayoutConfiguration = {
377
362
  /**
378
363
  * * `solana` - Solana
379
- * * `base` - Base
380
364
  */
381
- destination_chain: 'solana' | 'base';
365
+ destination_chain: 'solana';
382
366
  destination_address: string;
383
367
  };
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
- };
395
368
  type AdminCryptoReturnPolicy = {
396
369
  readonly id: string;
397
370
  refund_destination_address?: string | null;
@@ -428,9 +401,8 @@ type AdminCurrency = {
428
401
  bridge_code?: 'usdc' | 'eurc';
429
402
  /**
430
403
  * * `solana` - Solana
431
- * * `base` - Base
432
404
  */
433
- bridge_chain?: 'solana' | 'base';
405
+ bridge_chain?: 'solana';
434
406
  readonly display_code: string | null;
435
407
  readonly description: string | null;
436
408
  readonly symbol: string | null;
@@ -511,9 +483,6 @@ type AdminPaymentProcessorQuote = {
511
483
  };
512
484
  amount?: string | null;
513
485
  expiration_date?: string | null;
514
- user: {
515
- [key: string]: unknown;
516
- };
517
486
  payer_user?: {
518
487
  [key: string]: unknown;
519
488
  };
@@ -546,9 +515,8 @@ type AdminPayoutConfiguration = {
546
515
  wallet: AdminWallet;
547
516
  /**
548
517
  * * `solana` - Solana
549
- * * `base` - Base
550
518
  */
551
- destination_chain: 'solana' | 'base';
519
+ destination_chain: 'solana';
552
520
  destination_address: string;
553
521
  readonly created: string;
554
522
  readonly updated: string;
@@ -702,9 +670,8 @@ type Currency = {
702
670
  bridge_code?: 'usdc' | 'eurc' | 'usd' | 'eur' | 'mxn' | 'brl';
703
671
  /**
704
672
  * * `solana` - Solana
705
- * * `base` - Base
706
673
  */
707
- bridge_chain?: 'solana' | 'base';
674
+ bridge_chain?: 'solana';
708
675
  display_code?: string | null;
709
676
  description?: string | null;
710
677
  symbol?: string | null;
@@ -793,16 +760,6 @@ type PaginatedCurrencyListResponse = {
793
760
  status: string;
794
761
  data: PaginatedCurrencyList;
795
762
  };
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
- };
806
763
  type PaginatedUserVirtualAccountList = {
807
764
  count?: number;
808
765
  next?: string | null;
@@ -840,9 +797,8 @@ type PatchedAdminCurrency = {
840
797
  bridge_code?: 'usdc' | 'eurc';
841
798
  /**
842
799
  * * `solana` - Solana
843
- * * `base` - Base
844
800
  */
845
- bridge_chain?: 'solana' | 'base';
801
+ bridge_chain?: 'solana';
846
802
  readonly display_code?: string | null;
847
803
  readonly description?: string | null;
848
804
  readonly symbol?: string | null;
@@ -861,9 +817,8 @@ type PatchedAdminPayoutConfiguration = {
861
817
  wallet?: AdminWallet;
862
818
  /**
863
819
  * * `solana` - Solana
864
- * * `base` - Base
865
820
  */
866
- destination_chain?: 'solana' | 'base';
821
+ destination_chain?: 'solana';
867
822
  destination_address?: string;
868
823
  readonly created?: string;
869
824
  readonly updated?: string;
@@ -920,16 +875,6 @@ type UserCreateCustomerKycLink = {
920
875
  endorsements?: Array<'base' | 'sepa' | 'spei' | 'pix' | 'cards'> | null;
921
876
  redirect_uri?: string | null;
922
877
  };
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
- };
933
878
  /**
934
879
  * A ModelSerializer that takes additional arguments for
935
880
  * "fields", "omit" and "expand" in order to
@@ -1011,26 +956,6 @@ type UserResponse = {
1011
956
  status: string;
1012
957
  data: User;
1013
958
  };
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
- };
1034
959
  /**
1035
960
  * A ModelSerializer that takes additional arguments for
1036
961
  * "fields", "omit" and "expand" in order to
@@ -1104,9 +1029,8 @@ type AdminCreatePayoutConfigurationWritable = {
1104
1029
  currency: string;
1105
1030
  /**
1106
1031
  * * `solana` - Solana
1107
- * * `base` - Base
1108
1032
  */
1109
- destination_chain: 'solana' | 'base';
1033
+ destination_chain: 'solana';
1110
1034
  destination_address: string;
1111
1035
  };
1112
1036
  type AdminCryptoReturnPolicyWritable = {
@@ -1143,9 +1067,8 @@ type AdminCurrencyWritable = {
1143
1067
  bridge_code?: 'usdc' | 'eurc';
1144
1068
  /**
1145
1069
  * * `solana` - Solana
1146
- * * `base` - Base
1147
1070
  */
1148
- bridge_chain?: 'solana' | 'base';
1071
+ bridge_chain?: 'solana';
1149
1072
  };
1150
1073
  type AdminCurrencyResponseWritable = {
1151
1074
  status: string;
@@ -1176,9 +1099,8 @@ type AdminPaymentProcessorQuoteResponseResponseWritable = {
1176
1099
  type AdminPayoutConfigurationWritable = {
1177
1100
  /**
1178
1101
  * * `solana` - Solana
1179
- * * `base` - Base
1180
1102
  */
1181
- destination_chain: 'solana' | 'base';
1103
+ destination_chain: 'solana';
1182
1104
  destination_address: string;
1183
1105
  };
1184
1106
  type AdminPayoutConfigurationResponseWritable = {
@@ -1287,16 +1209,6 @@ type PaginatedAdminWalletListResponseWritable = {
1287
1209
  status: string;
1288
1210
  data: PaginatedAdminWalletListWritable;
1289
1211
  };
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
- };
1300
1212
  type PaginatedUserVirtualAccountListWritable = {
1301
1213
  count?: number;
1302
1214
  next?: string | null;
@@ -1332,9 +1244,8 @@ type PatchedAdminCurrencyWritable = {
1332
1244
  bridge_code?: 'usdc' | 'eurc';
1333
1245
  /**
1334
1246
  * * `solana` - Solana
1335
- * * `base` - Base
1336
1247
  */
1337
- bridge_chain?: 'solana' | 'base';
1248
+ bridge_chain?: 'solana';
1338
1249
  };
1339
1250
  /**
1340
1251
  * A ModelSerializer that takes additional arguments for
@@ -1345,9 +1256,8 @@ type PatchedAdminCurrencyWritable = {
1345
1256
  type PatchedAdminPayoutConfigurationWritable = {
1346
1257
  /**
1347
1258
  * * `solana` - Solana
1348
- * * `base` - Base
1349
1259
  */
1350
- destination_chain?: 'solana' | 'base';
1260
+ destination_chain?: 'solana';
1351
1261
  destination_address?: string;
1352
1262
  };
1353
1263
  /**
@@ -1400,19 +1310,6 @@ type UserResponseWritable = {
1400
1310
  status: string;
1401
1311
  data: UserWritable;
1402
1312
  };
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
- };
1416
1313
  /**
1417
1314
  * A ModelSerializer that takes additional arguments for
1418
1315
  * "fields", "omit" and "expand" in order to
@@ -1613,16 +1510,6 @@ type AdminLiquidationAddressesListResponses = {
1613
1510
  200: PaginatedAdminLiquidationAddressListResponse;
1614
1511
  };
1615
1512
  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];
1626
1513
  type AdminLiquidationAddressesRetrieveData = {
1627
1514
  body?: never;
1628
1515
  path: {
@@ -1812,16 +1699,6 @@ type AdminVirtualAccountsListResponses = {
1812
1699
  200: PaginatedAdminVirtualAccountListResponse;
1813
1700
  };
1814
1701
  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];
1825
1702
  type AdminVirtualAccountsRetrieveData = {
1826
1703
  body?: never;
1827
1704
  path: {
@@ -1982,47 +1859,6 @@ type UserKycLinksCreateResponses = {
1982
1859
  201: UserCustomerKycLinkResponse;
1983
1860
  };
1984
1861
  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];
2026
1862
  type UserVirtualAccountsListData = {
2027
1863
  body?: never;
2028
1864
  path?: never;
@@ -2103,7 +1939,6 @@ declare const adminCurrenciesRetrieve: <ThrowOnError extends boolean = false>(op
2103
1939
  declare const adminCurrenciesPartialUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesPartialUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesPartialUpdateResponses, unknown, ThrowOnError, "data">;
2104
1940
  declare const adminCurrenciesUpdate: <ThrowOnError extends boolean = false>(options: Options<AdminCurrenciesUpdateData, ThrowOnError>) => RequestResult<AdminCurrenciesUpdateResponses, unknown, ThrowOnError, "data">;
2105
1941
  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">;
2107
1942
  declare const adminLiquidationAddressesRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminLiquidationAddressesRetrieveData, ThrowOnError>) => RequestResult<AdminLiquidationAddressesRetrieveResponses, unknown, ThrowOnError, "data">;
2108
1943
  declare const adminOperationalAccountsLiquidationAddressCreate: <ThrowOnError extends boolean = false>(options: Options<AdminOperationalAccountsLiquidationAddressCreateData, ThrowOnError>) => RequestResult<AdminOperationalAccountsLiquidationAddressCreateResponses, unknown, ThrowOnError, "data">;
2109
1944
  declare const adminOperationalAccountsVirtualAccountCreate: <ThrowOnError extends boolean = false>(options: Options<AdminOperationalAccountsVirtualAccountCreateData, ThrowOnError>) => RequestResult<AdminOperationalAccountsVirtualAccountCreateResponses, unknown, ThrowOnError, "data">;
@@ -2118,7 +1953,6 @@ declare const adminTransactionTransitionsList: <ThrowOnError extends boolean = f
2118
1953
  declare const adminTransactionTransitionsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminTransactionTransitionsRetrieveData, ThrowOnError>) => RequestResult<AdminTransactionTransitionsRetrieveResponses, unknown, ThrowOnError, "data">;
2119
1954
  declare const adminTransactionTransitionsProcessCreate: <ThrowOnError extends boolean = false>(options: Options<AdminTransactionTransitionsProcessCreateData, ThrowOnError>) => RequestResult<AdminTransactionTransitionsProcessCreateResponses, unknown, ThrowOnError, "data">;
2120
1955
  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">;
2122
1956
  declare const adminVirtualAccountsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminVirtualAccountsRetrieveData, ThrowOnError>) => RequestResult<AdminVirtualAccountsRetrieveResponses, unknown, ThrowOnError, "data">;
2123
1957
  declare const adminWalletsList: <ThrowOnError extends boolean = false>(options?: Options<AdminWalletsListData, ThrowOnError>) => RequestResult<AdminWalletsListResponses, unknown, ThrowOnError, "data">;
2124
1958
  declare const adminWalletsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminWalletsRetrieveData, ThrowOnError>) => RequestResult<AdminWalletsRetrieveResponses, unknown, ThrowOnError, "data">;
@@ -2132,9 +1966,6 @@ declare const userCurrenciesList: <ThrowOnError extends boolean = false>(options
2132
1966
  declare const userCurrenciesRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserCurrenciesRetrieveData, ThrowOnError>) => RequestResult<UserCurrenciesRetrieveResponses, unknown, ThrowOnError, "data">;
2133
1967
  declare const userExchangeRatesRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserExchangeRatesRetrieveData, ThrowOnError>) => RequestResult<UserExchangeRatesRetrieveResponses, unknown, ThrowOnError, "data">;
2134
1968
  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">;
2138
1969
  declare const userVirtualAccountsList: <ThrowOnError extends boolean = false>(options?: Options<UserVirtualAccountsListData, ThrowOnError>) => RequestResult<UserVirtualAccountsListResponses, unknown, ThrowOnError, "data">;
2139
1970
  declare const userVirtualAccountsCreate: <ThrowOnError extends boolean = false>(options: Options<UserVirtualAccountsCreateData, ThrowOnError>) => RequestResult<UserVirtualAccountsCreateResponses, unknown, ThrowOnError, "data">;
2140
1971
  declare const userVirtualAccountsRetrieve: <ThrowOnError extends boolean = false>(options: Options<UserVirtualAccountsRetrieveData, ThrowOnError>) => RequestResult<UserVirtualAccountsRetrieveResponses, unknown, ThrowOnError, "data">;
@@ -2155,7 +1986,6 @@ declare const sdk_adminCurrenciesList: typeof adminCurrenciesList;
2155
1986
  declare const sdk_adminCurrenciesPartialUpdate: typeof adminCurrenciesPartialUpdate;
2156
1987
  declare const sdk_adminCurrenciesRetrieve: typeof adminCurrenciesRetrieve;
2157
1988
  declare const sdk_adminCurrenciesUpdate: typeof adminCurrenciesUpdate;
2158
- declare const sdk_adminLiquidationAddressesCreate: typeof adminLiquidationAddressesCreate;
2159
1989
  declare const sdk_adminLiquidationAddressesList: typeof adminLiquidationAddressesList;
2160
1990
  declare const sdk_adminLiquidationAddressesRetrieve: typeof adminLiquidationAddressesRetrieve;
2161
1991
  declare const sdk_adminOperationalAccountsLiquidationAddressCreate: typeof adminOperationalAccountsLiquidationAddressCreate;
@@ -2170,7 +2000,6 @@ declare const sdk_adminPayoutConfigurationsUpdate: typeof adminPayoutConfigurati
2170
2000
  declare const sdk_adminTransactionTransitionsList: typeof adminTransactionTransitionsList;
2171
2001
  declare const sdk_adminTransactionTransitionsProcessCreate: typeof adminTransactionTransitionsProcessCreate;
2172
2002
  declare const sdk_adminTransactionTransitionsRetrieve: typeof adminTransactionTransitionsRetrieve;
2173
- declare const sdk_adminVirtualAccountsCreate: typeof adminVirtualAccountsCreate;
2174
2003
  declare const sdk_adminVirtualAccountsList: typeof adminVirtualAccountsList;
2175
2004
  declare const sdk_adminVirtualAccountsRetrieve: typeof adminVirtualAccountsRetrieve;
2176
2005
  declare const sdk_adminWalletsList: typeof adminWalletsList;
@@ -2184,19 +2013,16 @@ declare const sdk_userExchangeRatesRetrieve: typeof userExchangeRatesRetrieve;
2184
2013
  declare const sdk_userKycLinksCreate: typeof userKycLinksCreate;
2185
2014
  declare const sdk_userPartialUpdate: typeof userPartialUpdate;
2186
2015
  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;
2190
2016
  declare const sdk_userUpdate: typeof userUpdate;
2191
2017
  declare const sdk_userVirtualAccountsCreate: typeof userVirtualAccountsCreate;
2192
2018
  declare const sdk_userVirtualAccountsList: typeof userVirtualAccountsList;
2193
2019
  declare const sdk_userVirtualAccountsRetrieve: typeof userVirtualAccountsRetrieve;
2194
2020
  declare const sdk_webhookCreate: typeof webhookCreate;
2195
2021
  declare namespace sdk {
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 };
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 };
2197
2023
  }
2198
2024
 
2199
2025
  type BridgeApi = BoundSdk<typeof sdk>;
2200
2026
  declare function createBridgeApi(config: ApiFactoryConfig): BridgeApi;
2201
2027
 
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 };
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 };