@shophost/client 2.0.58 → 2.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -4
- package/package.json +1 -1
- package/src/__generated__/sdk/sdk.gen.d.ts +19 -1
- package/src/__generated__/sdk/types.gen.d.ts +343 -39
- package/src/index.d.ts +25 -0
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var L={bodySerializer:e=>JSON.stringify(e,(i,a)=>typeof a=="bigint"?a.toString():a)};var
|
|
1
|
+
var L={bodySerializer:e=>JSON.stringify(e,(i,a)=>typeof a=="bigint"?a.toString():a)};var yt={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Rt=Object.entries(yt);var F=({onRequest:e,onSseError:i,onSseEvent:a,responseTransformer:o,responseValidator:t,sseDefaultRetryDelay:r,sseMaxRetryAttempts:m,sseMaxRetryDelay:d,sseSleepFn:p,url:u,...c})=>{let h,k=p??(l=>new Promise(g=>setTimeout(g,l)));return{stream:async function*(){let l=r??3e3,g=0,z=c.signal??new AbortController().signal;for(;!z.aborted;){g++;let j=c.headers instanceof Headers?c.headers:new Headers(c.headers);h!==void 0&&j.set("Last-Event-ID",h);try{let b={redirect:"follow",...c,body:c.serializedBody,headers:j,signal:z},q=new Request(u,b);e&&(q=await e(u,b));let f=await(c.fetch??globalThis.fetch)(q);if(!f.ok)throw new Error(`SSE failed: ${f.status} ${f.statusText}`);if(!f.body)throw new Error("No body in SSE response");let x=f.body.pipeThrough(new TextDecoderStream).getReader(),A="",U=()=>{try{x.cancel()}catch{}};z.addEventListener("abort",U);try{for(;;){let{done:lt,value:ut}=await x.read();if(lt)break;A+=ut;let G=A.split(`
|
|
2
2
|
|
|
3
|
-
`);A=G.pop()??"";for(let
|
|
4
|
-
`),R=[],H;for(let T of
|
|
5
|
-
`);try{v=JSON.parse(T),B=!0}catch{v=T}}B&&(t&&await t(v),o&&(v=await o(v))),a?.({data:v,event:H,id:h,retry:l}),R.length&&(yield v)}}}finally{z.removeEventListener("abort",U),x.releaseLock()}break}catch(b){if(i?.(b),m!==void 0&&g>=m)break;let q=Math.min(l*2**(g-1),d??3e4);await k(q)}}}()}};var gt=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},yt=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ft=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S=({allowReserved:e,explode:i,name:a,style:o,value:t})=>{if(!i){let d=(e?t:t.map(p=>encodeURIComponent(p))).join(yt(o));switch(o){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let r=gt(o),m=t.map(d=>o==="label"||o==="simple"?e?d:encodeURIComponent(d):O({allowReserved:e,name:a,value:d})).join(r);return o==="label"||o==="matrix"?r+m:m},O=({allowReserved:e,name:i,value:a})=>{if(a==null)return"";if(typeof a=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${i}=${e?a:encodeURIComponent(a)}`},w=({allowReserved:e,explode:i,name:a,style:o,value:t,valueOnly:r})=>{if(t instanceof Date)return r?t.toISOString():`${a}=${t.toISOString()}`;if(o!=="deepObject"&&!i){let p=[];Object.entries(t).forEach(([c,h])=>{p=[...p,c,e?h:encodeURIComponent(h)]});let u=p.join(",");switch(o){case"form":return`${a}=${u}`;case"label":return`.${u}`;case"matrix":return`;${a}=${u}`;default:return u}}let m=ft(o),d=Object.entries(t).map(([p,u])=>O({allowReserved:e,name:o==="deepObject"?`${a}[${p}]`:p,value:u})).join(m);return o==="label"||o==="matrix"?m+d:d};var bt=/\{[^{}]+\}/g,_t=({path:e,url:i})=>{let a=i,o=i.match(bt);if(o)for(let t of o){let r=!1,m=t.substring(1,t.length-1),d="simple";m.endsWith("*")&&(r=!0,m=m.substring(0,m.length-1)),m.startsWith(".")?(m=m.substring(1),d="label"):m.startsWith(";")&&(m=m.substring(1),d="matrix");let p=e[m];if(p==null)continue;if(Array.isArray(p)){a=a.replace(t,S({explode:r,name:m,style:d,value:p}));continue}if(typeof p=="object"){a=a.replace(t,w({explode:r,name:m,style:d,value:p,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(t,`;${O({name:m,value:p})}`);continue}let u=encodeURIComponent(d==="label"?`.${p}`:p);a=a.replace(t,u)}return a},K=({baseUrl:e,path:i,query:a,querySerializer:o,url:t})=>{let r=t.startsWith("/")?t:`/${t}`,m=(e??"")+r;i&&(m=_t({path:i,url:m}));let d=a?o(a):"";return d.startsWith("?")&&(d=d.substring(1)),d&&(m+=`?${d}`),m};function W(e){let i=e.body!==void 0;if(i&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(i)return e.body}var Z=async(e,i)=>{let a=typeof i=="function"?await i(e):i;if(a)return e.scheme==="bearer"?`Bearer ${a}`:e.scheme==="basic"?`Basic ${btoa(a)}`:a};var J=({parameters:e={},...i}={})=>o=>{let t=[];if(o&&typeof o=="object")for(let r in o){let m=o[r];if(m==null)continue;let d=e[r]||i;if(Array.isArray(m)){let p=S({allowReserved:d.allowReserved,explode:!0,name:r,style:"form",value:m,...d.array});p&&t.push(p)}else if(typeof m=="object"){let p=w({allowReserved:d.allowReserved,explode:!0,name:r,style:"deepObject",value:m,...d.object});p&&t.push(p)}else{let p=O({allowReserved:d.allowReserved,name:r,value:m});p&&t.push(p)}}return t.join("&")},Y=e=>{if(!e)return"stream";let i=e.split(";")[0]?.trim();if(i){if(i.startsWith("application/json")||i.endsWith("+json"))return"json";if(i==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(a=>i.startsWith(a)))return"blob";if(i.startsWith("text/"))return"text"}},xt=(e,i)=>i?!!(e.headers.has(i)||e.query?.[i]||e.headers.get("Cookie")?.includes(`${i}=`)):!1,V=async({security:e,...i})=>{for(let a of e){if(xt(i,a.name))continue;let o=await Z(a,i.auth);if(!o)continue;let t=a.name??"Authorization";switch(a.in){case"query":i.query||(i.query={}),i.query[t]=o;break;case"cookie":i.headers.append("Cookie",`${t}=${o}`);break;default:i.headers.set(t,o);break}}},M=e=>K({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),N=(e,i)=>{let a={...e,...i};return a.baseUrl?.endsWith("/")&&(a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1)),a.headers=E(e.headers,i.headers),a},Tt=e=>{let i=[];return e.forEach((a,o)=>{i.push([o,a])}),i},E=(...e)=>{let i=new Headers;for(let a of e){if(!a)continue;let o=a instanceof Headers?Tt(a):Object.entries(a);for(let[t,r]of o)if(r===null)i.delete(t);else if(Array.isArray(r))for(let m of r)i.append(t,m);else r!==void 0&&i.set(t,typeof r=="object"?JSON.stringify(r):r)}return i},P=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(i){let a=this.getInterceptorIndex(i);this.fns[a]&&(this.fns[a]=null)}exists(i){let a=this.getInterceptorIndex(i);return!!this.fns[a]}getInterceptorIndex(i){return typeof i=="number"?this.fns[i]?i:-1:this.fns.indexOf(i)}update(i,a){let o=this.getInterceptorIndex(i);return this.fns[o]?(this.fns[o]=a,i):!1}use(i){return this.fns.push(i),this.fns.length-1}},Q=()=>({error:new P,request:new P,response:new P}),zt=J({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qt={"Content-Type":"application/json"},D=(e={})=>({...L,headers:qt,parseAs:"auto",querySerializer:zt,...e});var C=(e={})=>{let i=N(D(),e),a=()=>({...i}),o=u=>(i=N(i,u),a()),t=Q(),r=async u=>{let c={...i,...u,fetch:u.fetch??i.fetch??globalThis.fetch,headers:E(i.headers,u.headers),serializedBody:void 0};c.security&&await V({...c,security:c.security}),c.requestValidator&&await c.requestValidator(c),c.body!==void 0&&c.bodySerializer&&(c.serializedBody=c.bodySerializer(c.body)),(c.body===void 0||c.serializedBody==="")&&c.headers.delete("Content-Type");let h=M(c);return{opts:c,url:h}},m=async u=>{let{opts:c,url:h}=await r(u),k={redirect:"follow",...c,body:W(c)},_=new Request(h,k);for(let y of t.request.fns)y&&(_=await y(_,c));let I=c.fetch,l;try{l=await I(_)}catch(y){let f=y;for(let x of t.error.fns)x&&(f=await x(y,void 0,_,c));if(f=f||{},c.throwOnError)throw f;return c.responseStyle==="data"?void 0:{error:f,request:_,response:void 0}}for(let y of t.response.fns)y&&(l=await y(l,_,c));let g={request:_,response:l};if(l.ok){let y=(c.parseAs==="auto"?Y(l.headers.get("Content-Type")):c.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let x;switch(y){case"arrayBuffer":case"blob":case"text":x=await l[y]();break;case"formData":x=new FormData;break;case"stream":x=l.body;break;default:x={};break}return c.responseStyle==="data"?x:{data:x,...g}}let f;switch(y){case"arrayBuffer":case"blob":case"formData":case"json":case"text":f=await l[y]();break;case"stream":return c.responseStyle==="data"?l.body:{data:l.body,...g}}return y==="json"&&(c.responseValidator&&await c.responseValidator(f),c.responseTransformer&&(f=await c.responseTransformer(f))),c.responseStyle==="data"?f:{data:f,...g}}let z=await l.text(),j;try{j=JSON.parse(z)}catch{}let b=j??z,q=b;for(let y of t.error.fns)y&&(q=await y(b,l,_,c));if(q=q||{},c.throwOnError)throw q;return c.responseStyle==="data"?void 0:{error:q,...g}},d=u=>c=>m({...c,method:u}),p=u=>async c=>{let{opts:h,url:k}=await r(c);return F({...h,body:h.body,headers:h.headers,method:u,onRequest:async(_,I)=>{let l=new Request(_,I);for(let g of t.request.fns)g&&(l=await g(l,h));return l},url:k})};return{buildUrl:M,connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),getConfig:a,head:d("HEAD"),interceptors:t,options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),request:m,setConfig:o,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:d("TRACE")}};var s=C(D({baseUrl:"http://localhost:3001/api"}));var X=e=>(e?.client??s).get({url:"/ping",...e}),nr=e=>(e.client??s).get({url:"/{organizationId}/analytics/overview",...e}),ee=e=>(e.client??s).get({url:"/{organizationId}/manufacturers",...e}),te=e=>(e.client??s).post({url:"/{organizationId}/manufacturers",...e,headers:{"Content-Type":"application/json",...e.headers}}),re=e=>(e.client??s).delete({url:"/{organizationId}/manufacturers/{id}",...e}),ie=e=>(e.client??s).get({url:"/{organizationId}/manufacturers/{id}",...e}),ae=e=>(e.client??s).put({url:"/{organizationId}/manufacturers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),or=e=>(e.client??s).get({url:"/{organizationId}/integrations",...e}),pr=e=>(e.client??s).delete({url:"/{organizationId}/integrations/{type}",...e}),cr=e=>(e.client??s).put({url:"/{organizationId}/integrations/{type}",...e,headers:{"Content-Type":"application/json",...e.headers}}),se=e=>(e?.client??s).get({url:"/organizations",...e}),ne=e=>(e.client??s).post({url:"/organizations",...e,headers:{"Content-Type":"application/json",...e.headers}}),oe=e=>(e.client??s).delete({url:"/organizations/{organizationId}",...e}),pe=e=>(e.client??s).get({url:"/organizations/{organizationId}",...e}),ce=e=>(e.client??s).patch({url:"/organizations/{organizationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??s).post({url:"/files/token/vercel",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??s).post({url:"/files",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??s).get({url:"/{organizationId}/product-categories",...e}),ue=e=>(e.client??s).post({url:"/{organizationId}/product-categories",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??s).delete({url:"/{organizationId}/product-categories/{id}",...e}),ge=e=>(e.client??s).get({url:"/{organizationId}/product-categories/{id}",...e}),ye=e=>(e.client??s).patch({url:"/{organizationId}/product-categories/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??s).post({url:"/{organizationId}/product-categories/{id}/status/{operation}",...e}),be=e=>(e.client??s).get({url:"/{organizationId}/products",...e}),_e=e=>(e.client??s).post({url:"/{organizationId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??s).delete({url:"/{organizationId}/products/{id}",...e}),Te=e=>(e.client??s).get({url:"/{organizationId}/products/{id}",...e}),ze=e=>(e.client??s).patch({url:"/{organizationId}/products/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??s).post({url:"/{organizationId}/products/{id}/status/{operation}",...e}),Ie=e=>(e.client??s).get({url:"/{organizationId}/products/by-category/{categoryId}",...e}),je=e=>(e.client??s).get({url:"/{organizationId}/access/members",...e}),ke=e=>(e.client??s).delete({url:"/{organizationId}/access/members/{memberId}",...e}),ve=e=>(e.client??s).get({url:"/{organizationId}/access/members/{memberId}",...e}),Oe=e=>(e.client??s).put({url:"/{organizationId}/access/members/{memberId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??s).get({url:"/{organizationId}/access/invitations",...e}),De=e=>(e.client??s).post({url:"/{organizationId}/access/invitations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??s).delete({url:"/{organizationId}/access/invitations/{invitationId}",...e}),Re=e=>(e?.client??s).get({url:"/access/invitations/me",...e}),Se=e=>(e.client??s).post({url:"/access/invitations/{invitationId}/accept",...e}),we=e=>(e.client??s).post({url:"/{organizationId}/access/leave",...e}),Ee=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods",...e}),Ae=e=>(e.client??s).post({url:"/{organizationId}/shipping-methods",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??s).delete({url:"/{organizationId}/shipping-methods/{id}",...e}),Me=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods/{id}",...e}),Ne=e=>(e.client??s).put({url:"/{organizationId}/shipping-methods/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods/access/eligibility",...e}),Ge=e=>(e.client??s).get({url:"/{organizationId}/orders",...e}),He=e=>(e.client??s).post({url:"/{organizationId}/orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??s).get({url:"/{organizationId}/orders/me",...e}),$e=e=>(e.client??s).delete({url:"/{organizationId}/orders/{id}",...e}),Fe=e=>(e.client??s).get({url:"/{organizationId}/orders/{id}",...e}),Ke=e=>(e.client??s).post({url:"/{organizationId}/orders/{id}/status/{operation}",...e}),We=e=>(e.client??s).post({url:"/{organizationId}/cart",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e?.client??s).get({url:"/shipping",...e}),Je=e=>(e.client??s).post({url:"/shipping",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??s).put({url:"/shipping",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??s).get({url:"/places/prediction",...e}),Qe=e=>(e.client??s).get({url:"/places/{placeId}",...e}),Xe=e=>(e.client??s).get({url:"/{organizationId}/payment/methods",...e}),et=e=>(e.client??s).post({url:"/webhook/payment/{provider}",...e}),dr=e=>(e.client??s).post({url:"/webhook/payment/{provider}/{organizationId}",...e}),tt=e=>(e.client??s).get({url:"/{organizationId}/reservations",...e}),rt=e=>(e.client??s).post({url:"/{organizationId}/reservations",...e,headers:{"Content-Type":"application/json",...e.headers}}),it=e=>(e.client??s).get({url:"/{organizationId}/reservations/me",...e}),at=e=>(e.client??s).delete({url:"/{organizationId}/reservations/{reservationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??s).get({url:"/{organizationId}/reservations/{reservationId}",...e}),nt=e=>(e.client??s).patch({url:"/{organizationId}/reservations/{reservationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??s).get({url:"/{organizationId}/reservations/user/{userId}",...e}),pt=e=>(e.client??s).patch({url:"/{organizationId}/reservations/{reservationId}/{operation}",...e,headers:{"Content-Type":"application/json",...e.headers}});var ct={info:{description:"API for Shophost Organization API",title:"Shophost API",version:"1.0"},openapi:"3.1.0",servers:[{description:"Local",url:"http://localhost:3001/api"},{description:"Production",url:"https://api.shophost.io/api"}],components:{schemas:{AnalyticsOverview:{type:"object",properties:{range:{$ref:"#/components/schemas/AnalyticsRange"},summary:{$ref:"#/components/schemas/AnalyticsSummary"},salesByDay:{type:"array",items:{$ref:"#/components/schemas/SalesByDayPoint"}},reservationsByDay:{type:"array",items:{$ref:"#/components/schemas/ReservationsByDayPoint"}},paymentMethods:{type:"array",items:{$ref:"#/components/schemas/PaymentMethodBreakdownItem"}},fulfilmentMethods:{type:"array",items:{$ref:"#/components/schemas/FulfilmentBreakdownItem"}}},required:["range","summary","salesByDay","reservationsByDay","paymentMethods","fulfilmentMethods"]},AnalyticsRange:{type:"object",properties:{from:{type:"string",format:"date-time"},to:{type:"string",format:"date-time"}},required:["from","to"]},AnalyticsSummary:{type:"object",properties:{currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"The currency code for the transaction."},totalSales:{type:"number",minimum:0},paidOrders:{type:"integer",minimum:0},averageOrderValue:{type:"number",minimum:0},reservations:{type:"integer",minimum:0},guests:{type:"integer",minimum:0}},required:["currency","totalSales","paidOrders","averageOrderValue","reservations","guests"]},SalesByDayPoint:{type:"object",properties:{date:{type:"string",format:"date-time"},label:{type:"string"},totalSales:{type:"number",minimum:0},paidOrders:{type:"integer",minimum:0}},required:["date","label","totalSales","paidOrders"]},ReservationsByDayPoint:{type:"object",properties:{date:{type:"string",format:"date-time"},label:{type:"string"},reservations:{type:"integer",minimum:0},guests:{type:"integer",minimum:0}},required:["date","label","reservations","guests"]},PaymentMethodBreakdownItem:{type:"object",properties:{method:{type:"string",enum:["card","blik","paypal","bank_transfer","cash_on_delivery"],description:"The payment method used for the order",example:"card"},count:{type:"integer",minimum:0},totalSales:{type:"number",minimum:0}},required:["method","count","totalSales"]},FulfilmentBreakdownItem:{type:"object",properties:{method:{type:"string",enum:["delivery","pickup"]},count:{type:"integer",minimum:0},totalSales:{type:"number",minimum:0}},required:["method","count","totalSales"]},Manufacturer:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the manufacturer"},name:{type:"string",example:"Tech Innovators Inc.",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},createdAt:{type:"string",format:"date-time"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Tech Innovators Inc. is a technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},description:"List of translations for the manufacturer"}},required:["id","name","createdAt"]},CreateManufacturer:{type:"object",properties:{name:{type:"string",minLength:1,example:"Apple Inc.",description:"Name of the manufacturer"},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"The default locale for the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},minItems:1,description:"List of translations for the manufacturer"},logoId:{type:"string",example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"}},required:["name","defaultLocale","translations"]},LocalizedManufacturer:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the manufacturer"},name:{type:"string",example:"Tech Innovators Inc.",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},createdAt:{type:"string",format:"date-time"},about:{type:["string","null"],default:""}},required:["id","name","createdAt"]},PaginationMeta:{type:"object",properties:{isFirstPage:{type:"boolean",example:!0,description:"Whether the current page is the first page"},isLastPage:{type:"boolean",example:!1,description:"Whether the current page is the last page"},currentPage:{type:"number",example:1,description:"The current page number"},previousPage:{type:["number","null"],example:0,description:"The previous page number"},nextPage:{type:["number","null"],example:2,description:"The next page number"},pageCount:{type:"number",example:5,description:"The total number of pages"},totalCount:{type:"number",example:50,description:"The total number of items"}},required:["isFirstPage","isLastPage","currentPage","previousPage","nextPage","pageCount","totalCount"]},UpdateManufacturer:{type:"object",properties:{name:{type:"string",minLength:1,example:"Apple Inc. Updated",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the manufacturer"},logoId:{type:["string","null"],example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},description:"List of translations for the manufacturer"}},required:["defaultLocale"]},Integration:{type:"object",properties:{organizationId:{type:"string",example:"clm1234567890abcdef",description:"Organization ID"},type:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},config:{$ref:"#/components/schemas/IntegrationConfig"},createdAt:{type:"string",format:"date-time",description:"Timestamp when the integration was created"},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the integration was last updated"}},required:["organizationId","type","config","createdAt","updatedAt"]},IntegrationConfig:{type:"object",additionalProperties:{},description:"Stored integration configuration JSON"},UpsertIntegration:{type:"object",properties:{config:{example:{paymentMethods:["card","blik"],secretKey:"sk_live_123456789",webhookSecret:"whsec_123456789"},description:"Integration configuration payload. Validation depends on the integration type."}}},Organization:{type:"object",properties:{id:{type:"string",example:"clm1234567890abcdef",description:"The unique identifier of the organization"},name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},createdAt:{type:"string",format:"date-time",example:"2022-01-01T00:00:00.000Z",description:"The date and time the organization was created"},legalEntityId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the legal entity associated with the organization"},address:{$ref:"#/components/schemas/Address"},configuration:{$ref:"#/components/schemas/OrganizationConfiguration"},logo:{type:["string","null"],format:"uri",example:"https://example.com/logo.jpg",description:"The logo of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"}},required:["id","name","phone","createdAt","legalEntityId","address","configuration"]},Address:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"The unique identifier of the address"},firstname:{type:["string","null"],example:"John",description:"The first name of the recipient"},lastname:{type:["string","null"],example:"Doe",description:"The last name of the recipient"},phone:{type:["string","null"],example:"+1234567890",description:"Phone number of the recipient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["id","addressLineOne","city","country","placeId"]},OrganizationConfiguration:{type:"object",properties:{id:{type:"string",example:"clm1234567890abcdef",description:"Unique identifier for the organization configuration"},hostname:{type:["string","null"],example:"store.example.com",description:"Hostname associated with the organization"},countriesShipping:{type:"array",items:{type:"string"},example:["US","CA"],description:"List of countries where shipping is available"},stripeAccountId:{type:["string","null"],example:"acct_123456789",description:"Stripe account ID associated with the organization"},enableHostCheckout:{type:"boolean",example:!0,description:"Indicates if host checkout is enabled"},enableHostTracking:{type:"boolean",example:!0,description:"Indicates if host tracking is enabled"},isAcceptingOrders:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting orders"},isAcceptingReservations:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting reservations"},isOpen:{type:"boolean",default:!1,example:!0,description:"Indicates if the organization is currently open"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},supportedLocales:{type:"array",items:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},description:"List of supported locales for the organization"},openingTimes:{$ref:"#/components/schemas/TimeSchedule"},closingTimes:{$ref:"#/components/schemas/TimeSchedule"},facebookProfile:{type:["string","null"],example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"},instagramProfile:{type:["string","null"],example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"},xProfile:{type:["string","null"],example:"https://www.x.com/example",description:"X profile URL for the organization"},defaultCurrency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Default currency for the organization",example:"USD"},createdAt:{type:"string",format:"date-time",description:"Timestamp when the organization configuration was created"}},required:["id","countriesShipping","enableHostCheckout","enableHostTracking","isAcceptingOrders","isAcceptingReservations","defaultLocale","supportedLocales","defaultCurrency","createdAt"],description:"The configuration settings for the organization"},TimeSchedule:{type:"object",properties:{monday:{type:["string","null"],example:"09:00",description:"Opening time for Monday"},tuesday:{type:["string","null"],example:"09:00",description:"Opening time for Tuesday"},wednesday:{type:["string","null"],example:"09:00",description:"Opening time for Wednesday"},thursday:{type:["string","null"],example:"09:00",description:"Opening time for Thursday"},friday:{type:["string","null"],example:"09:00",description:"Opening time for Friday"},saturday:{type:["string","null"],example:"09:00",description:"Opening time for Saturday"},sunday:{type:["string","null"],example:"09:00",description:"Opening time for Sunday"}},required:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},CreateOrganization:{type:"object",properties:{name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"},logoId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the thumbnail image associated with the organization"},address:{$ref:"#/components/schemas/CreateAddress"}},required:["name","phone","address"]},CreateAddress:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"}},required:["addressLineOne","city","country","placeId"]},UpdateOrganization:{type:"object",properties:{name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"},logoId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the thumbnail image associated with the organization"},address:{$ref:"#/components/schemas/UpdateAddress"},configuration:{$ref:"#/components/schemas/UpdateOrganizationConfiguration"}}},UpdateAddress:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"}}},UpdateOrganizationConfiguration:{type:"object",properties:{hostname:{type:["string","null"],example:"store.example.com",description:"Hostname associated with the organization"},countriesShipping:{type:"array",items:{type:"string"},example:["US","CA"],description:"List of countries where shipping is available"},stripeAccountId:{type:["string","null"],example:"acct_123456789",description:"Stripe account ID associated with the organization"},enableHostCheckout:{type:"boolean",example:!0,description:"Indicates if host checkout is enabled"},enableHostTracking:{type:"boolean",example:!0,description:"Indicates if host tracking is enabled"},isAcceptingOrders:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting orders"},isAcceptingReservations:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting reservations"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},supportedLocales:{type:"array",items:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},description:"List of supported locales for the organization"},defaultCurrency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Default currency for the organization",example:"USD"},openingTimes:{$ref:"#/components/schemas/TimeSchedule"},closingTimes:{$ref:"#/components/schemas/TimeSchedule"},facebookProfile:{type:["string","null"],example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"},instagramProfile:{type:["string","null"],example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"},xProfile:{type:["string","null"],example:"https://www.x.com/example",description:"X profile URL for the organization"}}},UploadedFile:{type:"object",properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"]},ProductCategory:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the product category"},slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time",description:"Timestamp when the product category was published"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"}},required:["id","slug","createdAt","translations"]},CreateProductCategory:{type:"object",properties:{slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the product category"},imageId:{type:"string",format:"cuid",description:"ID of the image for the product category"}},required:["slug","translations","defaultLocale"]},LocalizedProductCategory:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the product category"},slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time",description:"Timestamp when the product category was published"},title:{type:"string",default:""},description:{type:"string",default:""}},required:["id","slug","createdAt"]},UpdateProductCategory:{type:"object",properties:{slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the product category"},imageId:{type:["string","null"],format:"cuid",description:"ID of the image for the product category"}}},Product:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product"},slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/ModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{$ref:"#/components/schemas/ProductCategory"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}}},required:["id","basePrice","currency","categories","createdAt"]},ModifierGroup:{type:"object",properties:{id:{type:"string",format:"cuid"},selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:"string",example:"Size",description:"Title of the modifier group"}},required:["locale"]}}},required:["id","selectMin","selectMax","translations"]},Modifier:{type:"object",properties:{id:{type:"string",format:"cuid"},title:{type:"string",minLength:1,example:"Large",description:"Title of the modifier"},sku:{type:["string","null"],example:"csd9876543210abcdef",description:"Stock Keeping Unit identifier"},price:{type:["number","null"],default:0,example:2.5,description:"Price of the modifier"}},required:["title"]},CreateProduct:{type:"object",properties:{slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"Default translation locale"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/CreateOrUpdateModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{type:"string"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"}},required:["basePrice","currency","defaultLocale"]},CreateOrUpdateModifierGroup:{type:"object",properties:{selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:"string",example:"Size",description:"Title of the modifier group"}},required:["locale"]}}},required:["selectMin","selectMax","translations"]},LocalizedProduct:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product"},slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/LocalizedModifierGroup"}},categories:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"cju0z9k4z0000l1qg5z1z1z",description:"ID of the product category"}},required:["id"]},default:[]},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time"},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},title:{type:"string",default:""},description:{type:["string","null"],default:""}},required:["id","basePrice","currency","modifierGroups","createdAt"]},LocalizedModifierGroup:{type:"object",properties:{id:{type:"string",format:"cuid"},selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},title:{type:["string","null"],default:""}},required:["id","selectMin","selectMax"]},UpdateProduct:{type:"object",properties:{slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"Default translation locale"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/CreateOrUpdateModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{type:"string"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"}}},Member:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the member"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},userId:{type:"string",example:"usr_123",description:"ID of the user"},role:{type:"string",example:"owner",description:"Role of the member in the organization"},createdAt:{type:"string",format:"date-time"},user:{type:"object",properties:{id:{type:"string"},firstname:{type:"string"},lastname:{type:"string"},email:{type:"string"},image:{type:["string","null"]}},required:["id","firstname","lastname","email"],description:"User details"}},required:["id","organizationId","userId","role","createdAt","user"]},UpdateMemberRole:{type:"object",properties:{role:{type:"string",minLength:1,example:"admin",description:"New role for the member"}},required:["role"]},Invitation:{type:"object",properties:{id:{type:"string",example:"inv_123",description:"ID of the invitation"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},email:{type:"string",format:"email",example:"user@example.com",description:"Email of the invited user"},role:{type:["string","null"],example:"member",description:"Role assigned to the invitation"},status:{type:"string",example:"pending",description:"Status of the invitation"},expiresAt:{type:"string",format:"date-time",description:"Expiration date of the invitation"},inviterId:{type:"string",description:"ID of the user who created the invitation"},createdAt:{type:"string",format:"date-time"}},required:["id","organizationId","email","status","expiresAt","inviterId"]},CreateInvitation:{type:"object",properties:{email:{type:"string",format:"email",example:"user@example.com",description:"Email of the user to invite"},role:{type:"string",minLength:1,example:"member",description:"Role to assign to the invited user"}},required:["email","role"]},UserInvitation:{type:"object",properties:{id:{type:"string",example:"inv_123",description:"ID of the invitation"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},role:{type:["string","null"],example:"member",description:"Role assigned to the invitation"},expiresAt:{type:"string",format:"date-time",description:"Expiration date of the invitation"},organization:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id","name"],description:"Organization details"}},required:["id","organizationId","expiresAt","organization"]},ShippingMethod:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the shipping method"},title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},eligibleShippingZone:{$ref:"#/components/schemas/ShippingZone"},createdAt:{type:"string",format:"date-time"},updatedAt:{type:"string",format:"date-time"}},required:["id","title","providerName","shippingZones","createdAt","updatedAt"]},ShippingZone:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the shipping zone"},title:{type:"string",minLength:1,example:"Zone 1",description:"Title of the shipping zone"},distanceUpto:{type:"number",minimum:.1,example:10,description:"Ending distance for the shipping zone"},price:{type:"number",minimum:.1,example:5.99,description:"Price for shipping in this zone"},minimumOrderAmount:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:50,description:"Minimum order amount for this shipping zone"},eta:{type:"string",minLength:1,example:"2-3 days",description:"Estimated time of arrival for this shipping zone"}},required:["title","distanceUpto","price","eta"]},CreateShippingMethod:{type:"object",properties:{title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},providerLogoId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID reference to the provider logo file"}},required:["title","providerName","shippingZones"]},UpdateShippingMethod:{type:"object",properties:{title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},providerLogoId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID reference to the provider logo file"}}},Order:{type:"object",properties:{id:{type:"string",description:"Unique identifier for the order",example:"clj1234567890abcdef"},referenceId:{type:"string",description:"External reference ID for the order",example:"ORD-12345"},status:{type:"string",enum:["draft","pending","accepted","ready-for-dispatch","dispatched","completed","cancelled"],description:"Status of the order",example:"accepted"},token:{type:"string",description:"Security token for order verification",example:"a1b2c3d4e5f6g7h8i9j0"},expiresAt:{type:"string",format:"date-time",description:"Expiration date for the order",example:"2023-12-31T23:59:59Z"},items:{type:"array",items:{$ref:"#/components/schemas/OrderItem"},minItems:1,description:"Array of items in the order"},shippingMethod:{allOf:[{$ref:"#/components/schemas/ShippingMethod"},{type:["object","null"],description:"Shipping method selected for the order"}]},acceptedAt:{type:["string","null"],format:"date-time",description:"Date when the order was accepted",example:"2023-06-15T14:30:00Z"},dispatchedAt:{type:["string","null"],format:"date-time",description:"Date when the order was dispatched",example:"2023-06-16T09:15:00Z"},readyForDispatchAt:{type:["string","null"],format:"date-time",description:"Date when the order was ready for dispatch",example:"2023-06-16T09:15:00Z"},createdAt:{type:"string",format:"date-time",description:"Date when the order was created",example:"2023-06-15T14:30:00Z"},completedAt:{type:["string","null"],format:"date-time",description:"Date when the order was completed",example:"2023-06-18T11:45:00Z"},cancelledAt:{type:["string","null"],format:"date-time",description:"Date when the order was cancelled",example:"2023-06-14T16:20:00Z"},inventoryDeductedAt:{type:["string","null"],format:"date-time",description:"Date when the paid order inventory was deducted",example:"2023-06-15T14:30:00Z"},inventoryConflictAt:{type:["string","null"],format:"date-time",description:"Date when the paid order was flagged for manual inventory review",example:"2023-06-15T14:30:00Z"},inventoryConflictItems:{type:["array","null"],items:{$ref:"#/components/schemas/InventoryConflictItem"},description:"List of line items that could not be deducted after payment"},shippingAddress:{allOf:[{$ref:"#/components/schemas/Address"},{type:["object","null"]}]},fulfilmentMethod:{type:"string",enum:["delivery","pickup"],description:"Method of order fulfilment (pickup or delivery)",example:"delivery"},currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Currency used for the order",example:"USD"},payment:{type:"object",properties:{id:{type:"string",minLength:1,format:"cuid"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"},provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},status:{type:"string",enum:["pending","succeeded","refunded","failed","canceled"],description:"The payment status",example:"pending"},shipping:{type:"number",minimum:0,default:0},subtotal:{type:"number",minimum:0},total:{type:"number",minimum:0},discount:{type:"number",minimum:0,default:0},currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"The currency code for the transaction."}},required:["id","method","provider","status","subtotal","total","currency"]}},required:["id","referenceId","token","expiresAt","items","shippingMethod","createdAt","fulfilmentMethod","currency","payment"]},OrderItem:{type:"object",properties:{translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Locale of the translation",example:"en-US"},title:{type:"string",description:"Title of the ordered product",example:"Premium Watch"},subtitle:{type:"string",description:"Additional details about the ordered item, including modifiers",example:"Color: Silver, Size: Large"}},required:["locale","title","subtitle"]},description:"Translations for the order item"},rawData:{$ref:"#/components/schemas/CartItem"},unitPrice:{type:"number",minimum:0,description:"Price per unit of the item",example:299.99},image:{allOf:[{$ref:"#/components/schemas/UploadedFile"},{type:["object","null"]}]},totalPrice:{type:"number",minimum:0,description:"Total price for this item (unitPrice \xD7 quantity)",example:599.98},quantity:{type:"number",minimum:1,description:"Number of units ordered",example:2},productSnapshotId:{type:"string",format:"cuid"}},required:["translations","rawData","unitPrice","totalPrice","quantity","productSnapshotId"]},CartItem:{type:"object",properties:{productId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product in the cart"},quantity:{type:"number",default:1,example:2,description:"Quantity of this item in the cart"},modifierGroups:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clg1234567890abcdef",description:"ID of the modifier group"},modifiers:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clh9876543210abcdef",description:"ID of the selected modifier"},quantity:{type:"number",default:1,example:1,description:"Quantity of this modifier"}},required:["id"]}}},required:["id","modifiers"]}}},required:["productId","modifierGroups"]},InventoryConflictItem:{type:"object",properties:{productId:{type:"string",format:"cuid"},title:{type:"string"},requestedQuantity:{type:"integer",minimum:1},availableQuantity:{type:"integer",minimum:0}},required:["productId","title","requestedQuantity","availableQuantity"]},CartConflict:{type:"object",properties:{invalidProductIds:{type:"array",items:{type:"string"}},normalizedItems:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},adjustments:{type:"array",items:{$ref:"#/components/schemas/CartAdjustment"}},products:{type:"object",additionalProperties:{$ref:"#/components/schemas/LocalizedProduct"}},shipping:{type:"number"},subtotal:{type:"number"},total:{type:"number"},message:{type:"string"}},required:["invalidProductIds","normalizedItems","adjustments","products","subtotal","total","message"]},CartAdjustment:{type:"object",properties:{productId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the affected product"},modifierGroups:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clg1234567890abcdef",description:"ID of the modifier group"},modifiers:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clh9876543210abcdef",description:"ID of the selected modifier"},quantity:{type:"number",default:1,example:1,description:"Quantity of this modifier"}},required:["id"]}}},required:["id","modifiers"]}},reason:{$ref:"#/components/schemas/CartAdjustmentReason"},requestedQuantity:{type:"integer",minimum:0,example:3,description:"Quantity requested by the customer"},resolvedQuantity:{type:"integer",minimum:0,example:1,description:"Quantity accepted after stock normalization"}},required:["productId","reason","requestedQuantity","resolvedQuantity"]},CartAdjustmentReason:{type:"string",enum:["invalid_product","out_of_stock","insufficient_stock"]},CreateOrder:{type:"object",properties:{items:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},shippingMethodId:{type:"string",format:"cuid"},fulfilmentMethod:{type:"string",enum:["delivery","pickup"],default:"delivery"},payment:{type:"object",properties:{provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"}},required:["provider","method"]},checkoutBaseUrl:{type:"string",format:"uri"}},required:["items","payment","checkoutBaseUrl"]},UpdateShippingAddress:{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",minLength:1,example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["placeId"]},Place:{type:"object",properties:{placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},text:{type:"string",example:"123 Main Street, New York, USA",description:"The description of the place"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:"string",example:"Suite 100",description:"The second line of the address"},latitude:{type:"number",example:40.712776,description:"The latitude of the coordinate"},longitude:{type:"number",example:-74.005974,description:"The longitude of the coordinate"}},required:["placeId","text","addressLineOne"]},PlaceDetails:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The ISO 3166-1 alpha-2 country code"}},required:["addressLineOne","city","country"]},Reservation:{type:"object",properties:{id:{type:"string",description:"Unique identifier for the order",example:"clj1234567890abcdef"},firstname:{type:"string",description:"Customer's first name",example:"John"},lastname:{type:"string",description:"Customer's last name",example:"Doe"},guests:{type:"number",minimum:.1},phone:{type:"string",description:"Customer's phone number",example:"+1234567890"},date:{type:["string","null"],format:"date-time",description:"Reservation date and time",example:"2023-06-14T16:20:00Z"},referenceId:{type:"string",description:"External reference ID for the order",example:"ORD-12345"},acceptedAt:{type:["string","null"],format:"date-time",description:"Date when the order was accepted",example:"2023-06-15T14:30:00Z"},cancelledAt:{type:["string","null"],format:"date-time",description:"Date when the order was cancelled",example:"2023-06-14T16:20:00Z"},createdAt:{type:["string","null"],format:"date-time",description:"Date when the order was created",example:"2023-06-14T16:20:00Z"}},required:["id","firstname","lastname","guests","phone","date","referenceId"]},CreateReservation:{type:"object",properties:{firstname:{description:"Customer's first name",example:"John"},lastname:{description:"Customer's last name",example:"Doe"},guests:{description:"Number of guests included in the reservation",example:2},phone:{description:"Customer's phone number",example:"+1234567890"},date:{description:"Reservation date and time",example:"2023-06-14T16:20:00Z"}},required:["firstname","lastname","guests","phone","date"]},UpdateReservation:{type:"object",properties:{firstname:{description:"Customer's first name",example:"John"},lastname:{description:"Customer's last name",example:"Doe"},guests:{description:"Number of guests included in the reservation",example:2},date:{description:"Reservation date and time",example:"2023-06-14T16:20:00Z"}},required:["firstname","lastname","guests","date"]}},parameters:{}},paths:{"/ping":{get:{description:"Pings the relevancy score service to check its availability",operationId:"ping",summary:"Ping",tags:["Health"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{ok:{type:"boolean",description:"Indicates if the service is available",example:!0}},required:["ok"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/analytics/overview":{get:{description:"Returns dashboard analytics for an organization within a date range.",operationId:"getAnalyticsOverview",summary:"Get Analytics Overview",tags:["Analytics"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["string","null"],format:"date-time",description:"Start of the reporting range",example:"2026-01-01T00:00:00.000Z"},required:!1,description:"Start of the reporting range",name:"from",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"End of the reporting range",example:"2026-01-30T23:59:59.999Z"},required:!1,description:"End of the reporting range",name:"to",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AnalyticsOverview"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/manufacturers":{post:{description:"Creates a new manufacturer for a specific organization",operationId:"createManufacturer",summary:"Create Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateManufacturer"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Manufacturer"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of manufacturers for a specific organization",operationId:"getManufacturers",summary:"Get Manufacturers",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/Manufacturer"},{$ref:"#/components/schemas/LocalizedManufacturer"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/manufacturers/{id}":{get:{operationId:"getManufacturer",summary:"Get Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/Manufacturer"},{$ref:"#/components/schemas/LocalizedManufacturer"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates an existing manufacturer",operationId:"updateManufacturer",summary:"Update Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateManufacturer"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Manufacturer"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes a manufacturer",operationId:"deleteManufacturer",summary:"Delete Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/integrations":{get:{description:"Fetches integrations configured for an organization",operationId:"getIntegrations",summary:"Get Integrations",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Integration"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/integrations/{type}":{put:{description:"Creates or updates an integration configuration",operationId:"upsertIntegration",summary:"Upsert Integration",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},required:!0,description:"Integration type key",in:"path",name:"type"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpsertIntegration"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Integration"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes an integration configuration",operationId:"deleteIntegration",summary:"Delete Integration",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},required:!0,description:"Integration type key",in:"path",name:"type"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/organizations":{get:{description:"Fetches a paginated list of organizations",operationId:"getOrganizations",summary:"Get Organizations",tags:["Organization"],parameters:[{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Organization"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}}}},post:{description:"Creates a new organization",operationId:"createOrganization",summary:"Create Organization",tags:["Organization"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateOrganization"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/organizations/{organizationId}":{get:{description:"Fetches a specific organization by ID",operationId:"getOrganization",summary:"Get Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific organization by ID",operationId:"updateOrganization",summary:"Update Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateOrganization"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific organization by ID",operationId:"deleteOrganization",summary:"Delete Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/files/token/vercel":{post:{description:"Returns a Vercel token",operationId:"getVercelToken",summary:"Get Vercel Token",tags:["File"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{oneOf:[{type:"object",properties:{type:{type:"string",enum:["blob.generate-client-token"]},payload:{type:"object",properties:{pathname:{type:"string"},callbackUrl:{type:"string"},multipart:{type:"boolean"},clientPayload:{type:["string","null"]}},required:["pathname","callbackUrl","multipart","clientPayload"]}},required:["type","payload"]},{type:"object",properties:{type:{type:"string",enum:["blob.upload-completed"]},payload:{type:"object",properties:{blob:{},tokenPayload:{type:["string","null"]}}}},required:["type","payload"]}]}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{type:{type:"string",enum:["blob.generate-client-token"]},clientToken:{type:"string"}},required:["type","clientToken"]},{type:"object",properties:{type:{type:"string",enum:["blob.upload-completed"]},response:{type:"string",enum:["ok"]}},required:["type","response"]}]}}}},"204":{description:"No Content"}}}},"/files":{post:{description:"Creates a temporary file record and returns its ID",operationId:"createTemporaryFile",summary:"Create Temporary File",tags:["File"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"},organizationId:{type:"string",example:"clm1234567890abcdef",description:"ID of the organization"}},required:["mimeType","size","filename"]}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/UploadedFile"}}}}}}},"/{organizationId}/product-categories":{post:{description:"Creates a new product category for a specific organization",operationId:"createProductCategory",summary:"Create Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateProductCategory"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of product categories for a specific organization",operationId:"getProductCategories",summary:"Get Product Categories",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",enum:["published","unpublished"],description:"Filter product categories by publication status",example:"published"},required:!1,description:"Filter product categories by publication status",name:"publishedStatus",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/ProductCategory"},{$ref:"#/components/schemas/LocalizedProductCategory"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/product-categories/{id}":{get:{description:"Fetches a specific product category by ID",operationId:"getProductCategory",summary:"Get Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/ProductCategory"},{$ref:"#/components/schemas/LocalizedProductCategory"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific product category by ID",operationId:"updateProductCategory",summary:"Update Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateProductCategory"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific product category by ID",operationId:"deleteProductCategory",summary:"Delete Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/product-categories/{id}/status/{operation}":{post:{description:"Sets the published status of an existing product category based on the operation (publish or unpublish)",operationId:"updateProductCategoryStatus",summary:"Publish or Unpublish Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"id"},{schema:{type:"string",enum:["publish","unpublish"],description:"The operation to perform on the product category",example:"publish"},required:!0,description:"The operation to perform on the product category",in:"path",name:"operation"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products":{post:{description:"Creates a new product",operationId:"createProduct",summary:"Create Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateProduct"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches paginated list of products",operationId:"getProducts",summary:"Get Products",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",description:"Filter products by category ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!1,description:"Filter products by category ID",name:"categoryId",in:"query"},{schema:{type:"string",enum:["published","unpublished"],description:"Filter products by publication status",example:"published"},required:!1,description:"Filter products by publication status",name:"publishedStatus",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/Product"},{$ref:"#/components/schemas/LocalizedProduct"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/{id}":{get:{description:"Fetches a specific product by ID",operationId:"getProduct",summary:"Get Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/Product"},{$ref:"#/components/schemas/LocalizedProduct"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific product by ID",operationId:"updateProduct",summary:"Update Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateProduct"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific product by ID",operationId:"deleteProduct",summary:"Delete Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/{id}/status/{operation}":{post:{description:"Sets the published status of an existing product based on the operation (publish or unpublish)",operationId:"updateProductStatus",summary:"Publish or Unpublish Product",tags:["Product"],parameters:[{schema:{type:"string",description:"The product ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The product ID",in:"path",name:"id"},{schema:{type:"string",enum:["publish","unpublish"],description:"The operation to perform on the product",example:"publish"},required:!0,description:"The operation to perform on the product",in:"path",name:"operation"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/by-category/{categoryId}":{get:{description:"Fetches a paginated list of products for a specific category",operationId:"getProductsByCategory",summary:"Get Products by Category",tags:["Product"],parameters:[{schema:{type:"string",description:"The category ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The category ID",in:"path",name:"categoryId"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Product"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/members":{get:{description:"Fetches a paginated list of members for an organization",operationId:"getMembers",summary:"Get Members",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Member"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/members/{memberId}":{get:{operationId:"getMember",summary:"Get Member",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates a member's role in the organization",operationId:"updateMemberRole",summary:"Update Member Role",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateMemberRole"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Removes a member from the organization",operationId:"deleteMember",summary:"Delete Member",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/invitations":{post:{description:"Creates a new invitation for the organization",operationId:"createInvitation",summary:"Create Invitation",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateInvitation"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Invitation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a list of pending invitations for an organization",operationId:"getInvitations",summary:"Get Invitations",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Invitation"}}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/invitations/{invitationId}":{delete:{description:"Revokes a pending invitation",operationId:"deleteInvitation",summary:"Delete Invitation",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the invitation",example:"inv_123"},required:!0,description:"ID of the invitation",in:"path",name:"invitationId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/access/invitations/me":{get:{description:"Fetches pending invitations for the currently authenticated user",operationId:"getUserInvitations",summary:"Get User Invitations",tags:["Access"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/UserInvitation"}}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/access/invitations/{invitationId}/accept":{post:{description:"Accepts a pending invitation and adds the user as a member",operationId:"acceptInvitation",summary:"Accept Invitation",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the invitation",example:"inv_123"},required:!0,description:"ID of the invitation",in:"path",name:"invitationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/leave":{post:{description:"Leave an organization by revoking your own membership",operationId:"leaveOrganization",summary:"Leave Organization",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods":{post:{description:"Creates a new shipping method for an organization",operationId:"createShippingMethod",summary:"Create Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateShippingMethod"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of shipping methods for an organization",operationId:"getShippingMethods",summary:"Get Shipping Methods",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/ShippingMethod"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods/{id}":{get:{operationId:"getShippingMethod",summary:"Get Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates an existing shipping method",operationId:"updateShippingMethod",summary:"Update Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the shipping method",example:"clf9876543210abcdef"},required:!0,description:"ID of the shipping method",in:"path",name:"id"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateShippingMethod"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes a shipping method",operationId:"deleteShippingMethod",summary:"Delete Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the shipping method",example:"clf9876543210abcdef"},required:!0,description:"ID of the shipping method",in:"path",name:"id"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods/access/eligibility":{get:{description:"Fetches a list of published shipping methods a user can use",operationId:"accessEligibility",summary:"Get Eligible Shipping Methods",tags:["ShippingMethod"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/ShippingMethod"}}}}}}}},"/{organizationId}/orders":{post:{description:"Creates a new order",operationId:"createOrder",summary:"Create Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateOrder"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{type:"object",properties:{order:{$ref:"#/components/schemas/Order"},redirectUrl:{type:"string",format:"uri"}},required:["order"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"409":{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/CartConflict"}}}}}},get:{description:"Fetches paginated list of orders",operationId:"getOrders",summary:"Get Orders",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Order"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/me":{get:{description:"Fetches paginated list of orders for the authenticated user",operationId:"getMyOrders",summary:"Get My Orders",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Order"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/{id}":{get:{operationId:"getOrder",summary:"Get Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes order",operationId:"deleteOrder",summary:"Delete Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/{id}/status/{operation}":{post:{description:"Changes the status of an existing order based on the operation",operationId:"updateOrderStatus",summary:"Change Order Status",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",enum:["draft","pending","accepted","ready-for-dispatch","dispatched","completed","cancelled"],description:"Status of the order",example:"accepted"},required:!0,description:"Status of the order",name:"operation",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/cart":{post:{description:"Fetches formatted cart data",operationId:"getCartData",summary:"Get Formatted Cart",tags:["Cart"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],default:"en",description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{items:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},shippingMethodId:{type:"string",format:"cuid"}},required:["items"]}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{invalidProductIds:{type:"array",items:{type:"string"}},normalizedItems:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},adjustments:{type:"array",items:{$ref:"#/components/schemas/CartAdjustment"}},products:{type:"object",additionalProperties:{$ref:"#/components/schemas/LocalizedProduct"}},shipping:{type:"number"},subtotal:{type:"number"},total:{type:"number"}},required:["invalidProductIds","normalizedItems","adjustments","products","subtotal","total"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/shipping":{post:{description:"Creates a new shipping address for the user",operationId:"createShippingAddress",summary:"Create Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["firstname","lastname","phone","addressLineOne","city","country","placeId"]}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Get the default shipping address for the user",operationId:"getShippingAddress",summary:"Get Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:["object","null"],properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates the shipping address for the user",operationId:"updateShippingAddress",summary:"Update Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateShippingAddress"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/places/prediction":{get:{description:"Returns a list of places for autocompletion based on a search query",operationId:"getPredictions",summary:"Get Places Predictions",tags:["Location"],parameters:[{schema:{type:"string",description:"Search query",example:"123 Main St"},required:!0,description:"Search query",name:"query",in:"query"},{schema:{type:["number","null"],default:1e4,description:"Search radius in meters",example:1e4},required:!1,description:"Search radius in meters",name:"radius",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Place"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/places/{placeId}":{get:{description:"Returns details for a specific place based on its placeId",operationId:"getPlaceDetails",summary:"Get Place Details",tags:["Location"],parameters:[{schema:{type:"string",description:"The Google Place ID for the address",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY"},required:!0,description:"The Google Place ID for the address",in:"path",name:"placeId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/PlaceDetails"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/payment/methods":{get:{description:"Returns a list of available payment methods for the organization.",operationId:"getAvailablePaymentMethods",summary:"Get Available Payment Methods",tags:["Payment"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"},description:{type:"string",minLength:1}},required:["id","provider","method","description"],description:"The payment method",example:{provider:"stripe",type:"card"}}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/webhook/payment/{provider}":{post:{description:"Receive webhook events from payment providers",operationId:"webhook",summary:"Process Event",tags:["Webhook"],parameters:[{schema:{type:"string",enum:["stripe","revolut"],description:"Payment provider",example:"stripe"},required:!0,description:"Payment provider",in:"path",name:"provider"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{received:{type:"boolean"}},required:["received"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/webhook/payment/{provider}/{organizationId}":{post:{description:"Receive webhook events from payment providers for a specific organization",operationId:"webhookByOrganization",summary:"Process Event",tags:["Webhook"],parameters:[{schema:{type:"string",enum:["stripe","revolut"],description:"Payment provider",example:"stripe"},required:!0,description:"Payment provider",in:"path",name:"provider"},{schema:{type:"string",description:"Organization ID",example:"clm1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{received:{type:"boolean"}},required:["received"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations":{post:{description:"Create a new reservation",operationId:"createReservation",summary:"Create Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateReservation"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Get all reservations for an organization",operationId:"getReservations",summary:"Get Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"Filter reservations scheduled from this date and time",example:"2026-03-01T00:00:00.000Z"},required:!1,description:"Filter reservations scheduled from this date and time",name:"from",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"Filter reservations scheduled up to this date and time",example:"2026-03-31T23:59:59.999Z"},required:!1,description:"Filter reservations scheduled up to this date and time",name:"to",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Reservation"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/me":{get:{description:"Get paginated reservations for the authenticated user",operationId:"getMyReservations",summary:"Get My Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Reservation"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/{reservationId}":{get:{description:"Get a specific reservation by ID",operationId:"getReservation",summary:"Get Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Update an existing reservation",operationId:"updateReservation",summary:"Update Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateReservation"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Delete a reservation",operationId:"deleteReservation",summary:"Delete Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{}}}}},responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/user/{userId}":{get:{description:"Get all reservations for a user",operationId:"getUserReservations",summary:"Get User Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"User ID",example:"clj1234567890abcdef"},required:!0,description:"User ID",in:"path",name:"userId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Reservation"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/{reservationId}/{operation}":{patch:{description:"Update the status of a reservation",operationId:"updateReservationStatus",summary:"Update Reservation Status",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",enum:["accept","cancel"],description:"Operation",example:"accept"},required:!0,description:"Operation",in:"path",name:"operation"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{}}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}}},webhooks:{}};var kt=["delete","get","head","options","patch","post","put","trace"],vt=Object.values(ct.paths??{}).reduce((e,i)=>{for(let a of kt){let o=i?.[a];o?.operationId&&(e[o.operationId]=Object.keys(o.responses??{}).map(t=>Number(t)))}return e},{}),Ot=(e,i,a)=>{let o=i.response;if(!o)throw i.error??new Error(`Request failed for ${e}`);if(!(vt[e]??[]).includes(o.status)&&a)throw i.error??new Error(`Undocumented status ${o.status}`);return{body:o.status===204?void 0:o.ok?i.data:i.error,headers:o.headers,status:o.status}},n=(e,i,a,o)=>async(t={})=>{let{params:r,...m}=t,d=await a({...m,client:e,path:r});return Ot(i,d,o)},yr=({baseHeaders:e,baseUrl:i,credentials:a,fetch:o,throwOnUnknownStatus:t=!1})=>{let r=C({baseUrl:`${i}/api`,credentials:a,fetch:o,headers:e,responseStyle:"fields",throwOnError:!1}),m=o??globalThis.fetch,d=async(p,u,c,h={},k=[])=>{let _=new URL(`${i}/api${u}`);for(let[j,b]of Object.entries(h.query??{}))b!=null&&_.searchParams.set(j,String(b));let I=new Headers(e);for(let[j,b]of Object.entries(h.headers??{}))b!=null&&I.set(j,String(b));let l=h.body!==void 0;l&&!I.has("content-type")&&I.set("content-type","application/json");let g=await m(_.toString(),{method:c,credentials:a,headers:I,body:l?JSON.stringify(h.body):void 0});if(k.length>0&&!k.includes(g.status)&&t)throw new Error(`Undocumented status ${g.status} for ${p}`);let z;return g.status!==204&&(z=await g.json().catch(()=>{})),{body:z,headers:g.headers,status:g.status}};return{analytics:{getOverview:p=>d("getAnalyticsOverview",`/${p.params.organizationId}/analytics/overview`,"GET",{query:p.query},[200,400,401,404])},integration:{deleteIntegration:p=>d("deleteIntegration",`/${p.params.organizationId}/integrations/${p.params.type}`,"DELETE",{},[204,400,401,404]),getIntegrations:p=>d("getIntegrations",`/${p.params.organizationId}/integrations`,"GET",{},[200,400,401,404]),upsertIntegration:p=>d("upsertIntegration",`/${p.params.organizationId}/integrations/${p.params.type}`,"PUT",{body:p.body},[200,400,401,404])},access:{acceptInvitation:n(r,"acceptInvitation",Se,t),createInvitation:n(r,"createInvitation",De,t),deleteInvitation:n(r,"deleteInvitation",Ce,t),deleteMember:n(r,"deleteMember",ke,t),getInvitations:n(r,"getInvitations",Pe,t),getMember:n(r,"getMember",ve,t),getMembers:n(r,"getMembers",je,t),getUserInvitations:n(r,"getUserInvitations",Re,t),leaveOrganization:n(r,"leaveOrganization",we,t),updateMemberRole:n(r,"updateMemberRole",Oe,t)},cart:{getCartData:n(r,"getCartData",We,t)},file:{createTemporaryFile:n(r,"createTemporaryFile",me,t),getVercelToken:n(r,"getVercelToken",de,t)},health:{ping:n(r,"ping",X,t)},location:{getPlaceDetails:n(r,"getPlaceDetails",Qe,t),getPredictions:n(r,"getPredictions",Ve,t)},manufacturer:{createManufacturer:n(r,"createManufacturer",te,t),deleteManufacturer:n(r,"deleteManufacturer",re,t),getManufacturer:n(r,"getManufacturer",ie,t),getManufacturers:n(r,"getManufacturers",ee,t),updateManufacturer:n(r,"updateManufacturer",ae,t)},order:{createOrder:n(r,"createOrder",He,t),deleteOrder:n(r,"deleteOrder",$e,t),getOrder:n(r,"getOrder",Fe,t),getMyOrders:n(r,"getMyOrders",Be,t),getOrders:n(r,"getOrders",Ge,t),updateStatus:n(r,"updateOrderStatus",Ke,t)},organization:{createOrganization:n(r,"createOrganization",ne,t),deleteOrganization:n(r,"deleteOrganization",oe,t),getOrganization:n(r,"getOrganization",pe,t),getOrganizations:n(r,"getOrganizations",se,t),updateOrganization:n(r,"updateOrganization",ce,t)},payment:{getAvailablePaymentMethods:n(r,"getAvailablePaymentMethods",Xe,t)},product:{createProduct:n(r,"createProduct",_e,t),deleteProduct:n(r,"deleteProduct",xe,t),getProduct:n(r,"getProduct",Te,t),getProducts:n(r,"getProducts",be,t),getProductsByCategory:n(r,"getProductsByCategory",Ie,t),updateProduct:n(r,"updateProduct",ze,t),updateStatus:n(r,"updateProductStatus",qe,t)},productCategory:{createProductCategory:n(r,"createProductCategory",ue,t),deleteProductCategory:n(r,"deleteProductCategory",he,t),getProductCategories:n(r,"getProductCategories",le,t),getProductCategory:n(r,"getProductCategory",ge,t),updateProductCategory:n(r,"updateProductCategory",ye,t),updateStatus:n(r,"updateProductCategoryStatus",fe,t)},reservation:{createReservation:n(r,"createReservation",rt,t),deleteReservation:n(r,"deleteReservation",at,t),getReservation:n(r,"getReservation",st,t),getMyReservations:n(r,"getMyReservations",it,t),getReservations:n(r,"getReservations",tt,t),getUserReservations:n(r,"getUserReservations",ot,t),updateReservation:n(r,"updateReservation",nt,t),updateReservationStatus:n(r,"updateReservationStatus",pt,t)},shipping:{createShippingAddress:n(r,"createShippingAddress",Je,t),getShippingAddress:n(r,"getShippingAddress",Ze,t),updateShippingAddress:n(r,"updateShippingAddress",Ye,t)},shippingMethod:{accessEligibility:n(r,"accessEligibility",Ue,t),createShippingMethod:n(r,"createShippingMethod",Ae,t),deleteShippingMethod:n(r,"deleteShippingMethod",Le,t),getShippingMethod:n(r,"getShippingMethod",Me,t),getShippingMethods:n(r,"getShippingMethods",Ee,t),updateShippingMethod:n(r,"updateShippingMethod",Ne,t)},webhook:{webhook:n(r,"webhook",et,t)}}};export{Se as acceptInvitation,Ue as accessEligibility,De as createInvitation,te as createManufacturer,He as createOrder,ne as createOrganization,_e as createProduct,ue as createProductCategory,rt as createReservation,Je as createShippingAddress,Ae as createShippingMethod,me as createTemporaryFile,pr as deleteIntegration,Ce as deleteInvitation,re as deleteManufacturer,ke as deleteMember,$e as deleteOrder,oe as deleteOrganization,xe as deleteProduct,he as deleteProductCategory,at as deleteReservation,Le as deleteShippingMethod,nr as getAnalyticsOverview,Xe as getAvailablePaymentMethods,We as getCartData,or as getIntegrations,Pe as getInvitations,ie as getManufacturer,ee as getManufacturers,ve as getMember,je as getMembers,Be as getMyOrders,it as getMyReservations,Fe as getOrder,Ge as getOrders,pe as getOrganization,se as getOrganizations,Qe as getPlaceDetails,Ve as getPredictions,Te as getProduct,le as getProductCategories,ge as getProductCategory,be as getProducts,Ie as getProductsByCategory,st as getReservation,tt as getReservations,Ze as getShippingAddress,Me as getShippingMethod,Ee as getShippingMethods,Re as getUserInvitations,ot as getUserReservations,de as getVercelToken,yr as initClient,we as leaveOrganization,X as ping,ae as updateManufacturer,Oe as updateMemberRole,Ke as updateOrderStatus,ce as updateOrganization,ze as updateProduct,ye as updateProductCategory,fe as updateProductCategoryStatus,qe as updateProductStatus,nt as updateReservation,pt as updateReservationStatus,Ye as updateShippingAddress,Ne as updateShippingMethod,cr as upsertIntegration,et as webhook,dr as webhookByOrganization};
|
|
3
|
+
`);A=G.pop()??"";for(let ht of G){let gt=ht.split(`
|
|
4
|
+
`),R=[],H;for(let T of gt)if(T.startsWith("data:"))R.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))H=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))h=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let B=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(B)||(l=B)}let O,$=!1;if(R.length){let T=R.join(`
|
|
5
|
+
`);try{O=JSON.parse(T),$=!0}catch{O=T}}$&&(t&&await t(O),o&&(O=await o(O))),a?.({data:O,event:H,id:h,retry:l}),R.length&&(yield O)}}}finally{z.removeEventListener("abort",U),x.releaseLock()}break}catch(b){if(i?.(b),m!==void 0&&g>=m)break;let q=Math.min(l*2**(g-1),d??3e4);await k(q)}}}()}};var ft=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},bt=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},_t=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},S=({allowReserved:e,explode:i,name:a,style:o,value:t})=>{if(!i){let d=(e?t:t.map(p=>encodeURIComponent(p))).join(bt(o));switch(o){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let r=ft(o),m=t.map(d=>o==="label"||o==="simple"?e?d:encodeURIComponent(d):v({allowReserved:e,name:a,value:d})).join(r);return o==="label"||o==="matrix"?r+m:m},v=({allowReserved:e,name:i,value:a})=>{if(a==null)return"";if(typeof a=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${i}=${e?a:encodeURIComponent(a)}`},E=({allowReserved:e,explode:i,name:a,style:o,value:t,valueOnly:r})=>{if(t instanceof Date)return r?t.toISOString():`${a}=${t.toISOString()}`;if(o!=="deepObject"&&!i){let p=[];Object.entries(t).forEach(([c,h])=>{p=[...p,c,e?h:encodeURIComponent(h)]});let u=p.join(",");switch(o){case"form":return`${a}=${u}`;case"label":return`.${u}`;case"matrix":return`;${a}=${u}`;default:return u}}let m=_t(o),d=Object.entries(t).map(([p,u])=>v({allowReserved:e,name:o==="deepObject"?`${a}[${p}]`:p,value:u})).join(m);return o==="label"||o==="matrix"?m+d:d};var xt=/\{[^{}]+\}/g,Tt=({path:e,url:i})=>{let a=i,o=i.match(xt);if(o)for(let t of o){let r=!1,m=t.substring(1,t.length-1),d="simple";m.endsWith("*")&&(r=!0,m=m.substring(0,m.length-1)),m.startsWith(".")?(m=m.substring(1),d="label"):m.startsWith(";")&&(m=m.substring(1),d="matrix");let p=e[m];if(p==null)continue;if(Array.isArray(p)){a=a.replace(t,S({explode:r,name:m,style:d,value:p}));continue}if(typeof p=="object"){a=a.replace(t,E({explode:r,name:m,style:d,value:p,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(t,`;${v({name:m,value:p})}`);continue}let u=encodeURIComponent(d==="label"?`.${p}`:p);a=a.replace(t,u)}return a},K=({baseUrl:e,path:i,query:a,querySerializer:o,url:t})=>{let r=t.startsWith("/")?t:`/${t}`,m=(e??"")+r;i&&(m=Tt({path:i,url:m}));let d=a?o(a):"";return d.startsWith("?")&&(d=d.substring(1)),d&&(m+=`?${d}`),m};function W(e){let i=e.body!==void 0;if(i&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(i)return e.body}var Z=async(e,i)=>{let a=typeof i=="function"?await i(e):i;if(a)return e.scheme==="bearer"?`Bearer ${a}`:e.scheme==="basic"?`Basic ${btoa(a)}`:a};var J=({parameters:e={},...i}={})=>o=>{let t=[];if(o&&typeof o=="object")for(let r in o){let m=o[r];if(m==null)continue;let d=e[r]||i;if(Array.isArray(m)){let p=S({allowReserved:d.allowReserved,explode:!0,name:r,style:"form",value:m,...d.array});p&&t.push(p)}else if(typeof m=="object"){let p=E({allowReserved:d.allowReserved,explode:!0,name:r,style:"deepObject",value:m,...d.object});p&&t.push(p)}else{let p=v({allowReserved:d.allowReserved,name:r,value:m});p&&t.push(p)}}return t.join("&")},Y=e=>{if(!e)return"stream";let i=e.split(";")[0]?.trim();if(i){if(i.startsWith("application/json")||i.endsWith("+json"))return"json";if(i==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(a=>i.startsWith(a)))return"blob";if(i.startsWith("text/"))return"text"}},zt=(e,i)=>i?!!(e.headers.has(i)||e.query?.[i]||e.headers.get("Cookie")?.includes(`${i}=`)):!1,V=async({security:e,...i})=>{for(let a of e){if(zt(i,a.name))continue;let o=await Z(a,i.auth);if(!o)continue;let t=a.name??"Authorization";switch(a.in){case"query":i.query||(i.query={}),i.query[t]=o;break;case"cookie":i.headers.append("Cookie",`${t}=${o}`);break;default:i.headers.set(t,o);break}}},M=e=>K({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),N=(e,i)=>{let a={...e,...i};return a.baseUrl?.endsWith("/")&&(a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1)),a.headers=w(e.headers,i.headers),a},qt=e=>{let i=[];return e.forEach((a,o)=>{i.push([o,a])}),i},w=(...e)=>{let i=new Headers;for(let a of e){if(!a)continue;let o=a instanceof Headers?qt(a):Object.entries(a);for(let[t,r]of o)if(r===null)i.delete(t);else if(Array.isArray(r))for(let m of r)i.append(t,m);else r!==void 0&&i.set(t,typeof r=="object"?JSON.stringify(r):r)}return i},P=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(i){let a=this.getInterceptorIndex(i);this.fns[a]&&(this.fns[a]=null)}exists(i){let a=this.getInterceptorIndex(i);return!!this.fns[a]}getInterceptorIndex(i){return typeof i=="number"?this.fns[i]?i:-1:this.fns.indexOf(i)}update(i,a){let o=this.getInterceptorIndex(i);return this.fns[o]?(this.fns[o]=a,i):!1}use(i){return this.fns.push(i),this.fns.length-1}},Q=()=>({error:new P,request:new P,response:new P}),It=J({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),jt={"Content-Type":"application/json"},D=(e={})=>({...L,headers:jt,parseAs:"auto",querySerializer:It,...e});var C=(e={})=>{let i=N(D(),e),a=()=>({...i}),o=u=>(i=N(i,u),a()),t=Q(),r=async u=>{let c={...i,...u,fetch:u.fetch??i.fetch??globalThis.fetch,headers:w(i.headers,u.headers),serializedBody:void 0};c.security&&await V({...c,security:c.security}),c.requestValidator&&await c.requestValidator(c),c.body!==void 0&&c.bodySerializer&&(c.serializedBody=c.bodySerializer(c.body)),(c.body===void 0||c.serializedBody==="")&&c.headers.delete("Content-Type");let h=M(c);return{opts:c,url:h}},m=async u=>{let{opts:c,url:h}=await r(u),k={redirect:"follow",...c,body:W(c)},_=new Request(h,k);for(let y of t.request.fns)y&&(_=await y(_,c));let I=c.fetch,l;try{l=await I(_)}catch(y){let f=y;for(let x of t.error.fns)x&&(f=await x(y,void 0,_,c));if(f=f||{},c.throwOnError)throw f;return c.responseStyle==="data"?void 0:{error:f,request:_,response:void 0}}for(let y of t.response.fns)y&&(l=await y(l,_,c));let g={request:_,response:l};if(l.ok){let y=(c.parseAs==="auto"?Y(l.headers.get("Content-Type")):c.parseAs)??"json";if(l.status===204||l.headers.get("Content-Length")==="0"){let x;switch(y){case"arrayBuffer":case"blob":case"text":x=await l[y]();break;case"formData":x=new FormData;break;case"stream":x=l.body;break;default:x={};break}return c.responseStyle==="data"?x:{data:x,...g}}let f;switch(y){case"arrayBuffer":case"blob":case"formData":case"json":case"text":f=await l[y]();break;case"stream":return c.responseStyle==="data"?l.body:{data:l.body,...g}}return y==="json"&&(c.responseValidator&&await c.responseValidator(f),c.responseTransformer&&(f=await c.responseTransformer(f))),c.responseStyle==="data"?f:{data:f,...g}}let z=await l.text(),j;try{j=JSON.parse(z)}catch{}let b=j??z,q=b;for(let y of t.error.fns)y&&(q=await y(b,l,_,c));if(q=q||{},c.throwOnError)throw q;return c.responseStyle==="data"?void 0:{error:q,...g}},d=u=>c=>m({...c,method:u}),p=u=>async c=>{let{opts:h,url:k}=await r(c);return F({...h,body:h.body,headers:h.headers,method:u,onRequest:async(_,I)=>{let l=new Request(_,I);for(let g of t.request.fns)g&&(l=await g(l,h));return l},url:k})};return{buildUrl:M,connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),getConfig:a,head:d("HEAD"),interceptors:t,options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),request:m,setConfig:o,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:d("TRACE")}};var s=C(D({baseUrl:"http://localhost:3001/api"}));var X=e=>(e?.client??s).get({url:"/ping",...e}),pr=e=>(e.client??s).get({url:"/{organizationId}/analytics/overview",...e}),ee=e=>(e.client??s).get({url:"/{organizationId}/manufacturers",...e}),te=e=>(e.client??s).post({url:"/{organizationId}/manufacturers",...e,headers:{"Content-Type":"application/json",...e.headers}}),re=e=>(e.client??s).delete({url:"/{organizationId}/manufacturers/{id}",...e}),ie=e=>(e.client??s).get({url:"/{organizationId}/manufacturers/{id}",...e}),ae=e=>(e.client??s).put({url:"/{organizationId}/manufacturers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),cr=e=>(e.client??s).get({url:"/{organizationId}/integrations",...e}),dr=e=>(e.client??s).delete({url:"/{organizationId}/integrations/{type}",...e}),mr=e=>(e.client??s).put({url:"/{organizationId}/integrations/{type}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lr=e=>(e.client??s).post({url:"/{organizationId}/integrations/resend/test",...e,headers:{"Content-Type":"application/json",...e.headers}}),se=e=>(e?.client??s).get({url:"/organizations",...e}),ne=e=>(e.client??s).post({url:"/organizations",...e,headers:{"Content-Type":"application/json",...e.headers}}),oe=e=>(e.client??s).delete({url:"/organizations/{organizationId}",...e}),pe=e=>(e.client??s).get({url:"/organizations/{organizationId}",...e}),ce=e=>(e.client??s).patch({url:"/organizations/{organizationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??s).post({url:"/files/token/vercel",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??s).post({url:"/files",...e,headers:{"Content-Type":"application/json",...e.headers}}),le=e=>(e.client??s).get({url:"/{organizationId}/product-categories",...e}),ue=e=>(e.client??s).post({url:"/{organizationId}/product-categories",...e,headers:{"Content-Type":"application/json",...e.headers}}),he=e=>(e.client??s).delete({url:"/{organizationId}/product-categories/{id}",...e}),ge=e=>(e.client??s).get({url:"/{organizationId}/product-categories/{id}",...e}),ye=e=>(e.client??s).patch({url:"/{organizationId}/product-categories/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??s).post({url:"/{organizationId}/product-categories/{id}/status/{operation}",...e}),be=e=>(e.client??s).get({url:"/{organizationId}/products",...e}),_e=e=>(e.client??s).post({url:"/{organizationId}/products",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??s).delete({url:"/{organizationId}/products/{id}",...e}),Te=e=>(e.client??s).get({url:"/{organizationId}/products/{id}",...e}),ze=e=>(e.client??s).patch({url:"/{organizationId}/products/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??s).post({url:"/{organizationId}/products/{id}/status/{operation}",...e}),Ie=e=>(e.client??s).get({url:"/{organizationId}/products/by-category/{categoryId}",...e}),je=e=>(e.client??s).get({url:"/{organizationId}/access/members",...e}),ke=e=>(e.client??s).delete({url:"/{organizationId}/access/members/{memberId}",...e}),Oe=e=>(e.client??s).get({url:"/{organizationId}/access/members/{memberId}",...e}),ve=e=>(e.client??s).put({url:"/{organizationId}/access/members/{memberId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??s).get({url:"/{organizationId}/access/invitations",...e}),De=e=>(e.client??s).post({url:"/{organizationId}/access/invitations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??s).delete({url:"/{organizationId}/access/invitations/{invitationId}",...e}),Re=e=>(e?.client??s).get({url:"/access/invitations/me",...e}),Se=e=>(e.client??s).post({url:"/access/invitations/{invitationId}/accept",...e}),Ee=e=>(e.client??s).post({url:"/{organizationId}/access/leave",...e}),we=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods",...e}),Ae=e=>(e.client??s).post({url:"/{organizationId}/shipping-methods",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??s).delete({url:"/{organizationId}/shipping-methods/{id}",...e}),Me=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods/{id}",...e}),Ne=e=>(e.client??s).put({url:"/{organizationId}/shipping-methods/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??s).get({url:"/{organizationId}/shipping-methods/access/eligibility",...e}),Ge=e=>(e.client??s).get({url:"/{organizationId}/orders",...e}),He=e=>(e.client??s).post({url:"/{organizationId}/orders",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??s).get({url:"/{organizationId}/orders/me",...e}),Be=e=>(e.client??s).delete({url:"/{organizationId}/orders/{id}",...e}),Fe=e=>(e.client??s).get({url:"/{organizationId}/orders/{id}",...e}),Ke=e=>(e.client??s).post({url:"/{organizationId}/orders/{id}/status/{operation}",...e}),We=e=>(e.client??s).post({url:"/{organizationId}/cart",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??s).get({url:"/{organizationId}/customers",...e}),Je=e=>(e.client??s).get({url:"/{organizationId}/customers/{id}",...e}),Ye=e=>(e?.client??s).get({url:"/shipping",...e}),Ve=e=>(e.client??s).post({url:"/shipping",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qe=e=>(e.client??s).put({url:"/shipping",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xe=e=>(e.client??s).get({url:"/places/prediction",...e}),et=e=>(e.client??s).get({url:"/places/{placeId}",...e}),tt=e=>(e.client??s).get({url:"/{organizationId}/payment/methods",...e}),rt=e=>(e.client??s).post({url:"/webhook/payment/{provider}",...e}),ur=e=>(e.client??s).post({url:"/webhook/payment/{provider}/{organizationId}",...e}),it=e=>(e.client??s).get({url:"/{organizationId}/reservations",...e}),at=e=>(e.client??s).post({url:"/{organizationId}/reservations",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??s).get({url:"/{organizationId}/reservations/me",...e}),nt=e=>(e.client??s).delete({url:"/{organizationId}/reservations/{reservationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??s).get({url:"/{organizationId}/reservations/{reservationId}",...e}),pt=e=>(e.client??s).patch({url:"/{organizationId}/reservations/{reservationId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ct=e=>(e.client??s).get({url:"/{organizationId}/reservations/user/{userId}",...e}),dt=e=>(e.client??s).patch({url:"/{organizationId}/reservations/{reservationId}/{operation}",...e,headers:{"Content-Type":"application/json",...e.headers}});var mt={info:{description:"API for Shophost Organization API",title:"Shophost API",version:"1.0"},openapi:"3.1.0",servers:[{description:"Local",url:"http://localhost:3001/api"},{description:"Production",url:"https://api.shophost.io/api"}],components:{schemas:{AnalyticsOverview:{type:"object",properties:{range:{$ref:"#/components/schemas/AnalyticsRange"},summary:{$ref:"#/components/schemas/AnalyticsSummary"},salesByDay:{type:"array",items:{$ref:"#/components/schemas/SalesByDayPoint"}},reservationsByDay:{type:"array",items:{$ref:"#/components/schemas/ReservationsByDayPoint"}},paymentMethods:{type:"array",items:{$ref:"#/components/schemas/PaymentMethodBreakdownItem"}},fulfilmentMethods:{type:"array",items:{$ref:"#/components/schemas/FulfilmentBreakdownItem"}}},required:["range","summary","salesByDay","reservationsByDay","paymentMethods","fulfilmentMethods"]},AnalyticsRange:{type:"object",properties:{from:{type:"string",format:"date-time"},to:{type:"string",format:"date-time"}},required:["from","to"]},AnalyticsSummary:{type:"object",properties:{currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"The currency code for the transaction."},totalSales:{type:"number",minimum:0},paidOrders:{type:"integer",minimum:0},averageOrderValue:{type:"number",minimum:0},reservations:{type:"integer",minimum:0},guests:{type:"integer",minimum:0}},required:["currency","totalSales","paidOrders","averageOrderValue","reservations","guests"]},SalesByDayPoint:{type:"object",properties:{date:{type:"string",format:"date-time"},label:{type:"string"},totalSales:{type:"number",minimum:0},paidOrders:{type:"integer",minimum:0}},required:["date","label","totalSales","paidOrders"]},ReservationsByDayPoint:{type:"object",properties:{date:{type:"string",format:"date-time"},label:{type:"string"},reservations:{type:"integer",minimum:0},guests:{type:"integer",minimum:0}},required:["date","label","reservations","guests"]},PaymentMethodBreakdownItem:{type:"object",properties:{method:{type:"string",enum:["card","blik","paypal","bank_transfer","cash_on_delivery"],description:"The payment method used for the order",example:"card"},count:{type:"integer",minimum:0},totalSales:{type:"number",minimum:0}},required:["method","count","totalSales"]},FulfilmentBreakdownItem:{type:"object",properties:{method:{type:"string",enum:["delivery","pickup"]},count:{type:"integer",minimum:0},totalSales:{type:"number",minimum:0}},required:["method","count","totalSales"]},Manufacturer:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the manufacturer"},name:{type:"string",example:"Tech Innovators Inc.",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},createdAt:{type:"string",format:"date-time"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Tech Innovators Inc. is a technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},description:"List of translations for the manufacturer"}},required:["id","name","createdAt"]},CreateManufacturer:{type:"object",properties:{name:{type:"string",minLength:1,example:"Apple Inc.",description:"Name of the manufacturer"},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"The default locale for the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},minItems:1,description:"List of translations for the manufacturer"},logoId:{type:"string",example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"}},required:["name","defaultLocale","translations"]},LocalizedManufacturer:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the manufacturer"},name:{type:"string",example:"Tech Innovators Inc.",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},createdAt:{type:"string",format:"date-time"},about:{type:["string","null"],default:""}},required:["id","name","createdAt"]},PaginationMeta:{type:"object",properties:{isFirstPage:{type:"boolean",example:!0,description:"Whether the current page is the first page"},isLastPage:{type:"boolean",example:!1,description:"Whether the current page is the last page"},currentPage:{type:"number",example:1,description:"The current page number"},previousPage:{type:["number","null"],example:0,description:"The previous page number"},nextPage:{type:["number","null"],example:2,description:"The next page number"},pageCount:{type:"number",example:5,description:"The total number of pages"},totalCount:{type:"number",example:50,description:"The total number of items"}},required:["isFirstPage","isLastPage","currentPage","previousPage","nextPage","pageCount","totalCount"]},UpdateManufacturer:{type:"object",properties:{name:{type:"string",minLength:1,example:"Apple Inc. Updated",description:"Name of the manufacturer"},logo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the manufacturer"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the manufacturer"},logoId:{type:["string","null"],example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},about:{type:["string","null"],maxLength:6e3,example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"}},required:["locale"]},description:"List of translations for the manufacturer"}},required:["defaultLocale"]},Integration:{type:"object",properties:{organizationId:{type:"string",example:"clm1234567890abcdef",description:"Organization ID"},type:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},config:{$ref:"#/components/schemas/IntegrationConfig"},createdAt:{type:"string",format:"date-time",description:"Timestamp when the integration was created"},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the integration was last updated"}},required:["organizationId","type","config","createdAt","updatedAt"]},IntegrationConfig:{type:"object",additionalProperties:{},description:"Stored integration configuration JSON"},UpsertIntegration:{type:"object",properties:{config:{example:{paymentMethods:["card","blik"],secretKey:"sk_live_123456789",webhookSecret:"whsec_123456789"},description:"Integration configuration payload. Validation depends on the integration type."}}},SendTestEmailResponse:{type:"object",properties:{success:{type:"boolean",example:!0,description:"Whether the test email was sent successfully"},message:{type:"string",example:"Test email sent to test@example.com",description:"Result message"}},required:["success","message"]},SendTestEmail:{type:"object",properties:{to:{type:"string",format:"email",example:"test@example.com",description:"Recipient email for the test message"}},required:["to"],additionalProperties:!1},Organization:{type:"object",properties:{id:{type:"string",example:"clm1234567890abcdef",description:"The unique identifier of the organization"},name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},createdAt:{type:"string",format:"date-time",example:"2022-01-01T00:00:00.000Z",description:"The date and time the organization was created"},legalEntityId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the legal entity associated with the organization"},address:{$ref:"#/components/schemas/Address"},configuration:{$ref:"#/components/schemas/OrganizationConfiguration"},logo:{type:["string","null"],format:"uri",example:"https://example.com/logo.jpg",description:"The logo of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"}},required:["id","name","phone","createdAt","legalEntityId","address","configuration"]},Address:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"The unique identifier of the address"},firstname:{type:["string","null"],example:"John",description:"The first name of the recipient"},lastname:{type:["string","null"],example:"Doe",description:"The last name of the recipient"},phone:{type:["string","null"],example:"+1234567890",description:"Phone number of the recipient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["id","addressLineOne","city","country","placeId"]},OrganizationConfiguration:{type:"object",properties:{id:{type:"string",example:"clm1234567890abcdef",description:"Unique identifier for the organization configuration"},hostname:{type:["string","null"],example:"store.example.com",description:"Hostname associated with the organization"},countriesShipping:{type:"array",items:{type:"string"},example:["US","CA"],description:"List of countries where shipping is available"},stripeAccountId:{type:["string","null"],example:"acct_123456789",description:"Stripe account ID associated with the organization"},enableHostCheckout:{type:"boolean",example:!0,description:"Indicates if host checkout is enabled"},enableHostTracking:{type:"boolean",example:!0,description:"Indicates if host tracking is enabled"},isAcceptingOrders:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting orders"},isAcceptingReservations:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting reservations"},isOpen:{type:"boolean",default:!1,example:!0,description:"Indicates if the organization is currently open"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},supportedLocales:{type:"array",items:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},description:"List of supported locales for the organization"},openingTimes:{$ref:"#/components/schemas/TimeSchedule"},closingTimes:{$ref:"#/components/schemas/TimeSchedule"},facebookProfile:{type:["string","null"],example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"},instagramProfile:{type:["string","null"],example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"},xProfile:{type:["string","null"],example:"https://www.x.com/example",description:"X profile URL for the organization"},defaultCurrency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Default currency for the organization",example:"USD"},createdAt:{type:"string",format:"date-time",description:"Timestamp when the organization configuration was created"}},required:["id","countriesShipping","enableHostCheckout","enableHostTracking","isAcceptingOrders","isAcceptingReservations","defaultLocale","supportedLocales","defaultCurrency","createdAt"],description:"The configuration settings for the organization"},TimeSchedule:{type:"object",properties:{monday:{type:["string","null"],example:"09:00",description:"Opening time for Monday"},tuesday:{type:["string","null"],example:"09:00",description:"Opening time for Tuesday"},wednesday:{type:["string","null"],example:"09:00",description:"Opening time for Wednesday"},thursday:{type:["string","null"],example:"09:00",description:"Opening time for Thursday"},friday:{type:["string","null"],example:"09:00",description:"Opening time for Friday"},saturday:{type:["string","null"],example:"09:00",description:"Opening time for Saturday"},sunday:{type:["string","null"],example:"09:00",description:"Opening time for Sunday"}},required:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},CreateOrganization:{type:"object",properties:{name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"},logoId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the thumbnail image associated with the organization"},address:{$ref:"#/components/schemas/CreateAddress"}},required:["name","phone","address"]},CreateAddress:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"}},required:["addressLineOne","city","country","placeId"]},UpdateOrganization:{type:"object",properties:{name:{type:"string",example:"Acme Store",description:"The name of the organization"},phone:{type:"string",minLength:1,example:"+48123456890",description:"The phone number of the organization"},email:{type:"string",format:"email",example:"john.doe@example.com",description:"The email address of the organization"},logoFile:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"The logo of the organization"},logoId:{type:["string","null"],example:"clm1234567890abcdef",description:"The unique identifier of the thumbnail image associated with the organization"},address:{$ref:"#/components/schemas/UpdateAddress"},configuration:{$ref:"#/components/schemas/UpdateOrganizationConfiguration"}}},UpdateAddress:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"}}},UpdateOrganizationConfiguration:{type:"object",properties:{hostname:{type:["string","null"],example:"store.example.com",description:"Hostname associated with the organization"},countriesShipping:{type:"array",items:{type:"string"},example:["US","CA"],description:"List of countries where shipping is available"},stripeAccountId:{type:["string","null"],example:"acct_123456789",description:"Stripe account ID associated with the organization"},enableHostCheckout:{type:"boolean",example:!0,description:"Indicates if host checkout is enabled"},enableHostTracking:{type:"boolean",example:!0,description:"Indicates if host tracking is enabled"},isAcceptingOrders:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting orders"},isAcceptingReservations:{type:"boolean",example:!0,description:"Indicates if the organization is currently accepting reservations"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},supportedLocales:{type:"array",items:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},description:"List of supported locales for the organization"},defaultCurrency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Default currency for the organization",example:"USD"},openingTimes:{$ref:"#/components/schemas/TimeSchedule"},closingTimes:{$ref:"#/components/schemas/TimeSchedule"},facebookProfile:{type:["string","null"],example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"},instagramProfile:{type:["string","null"],example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"},xProfile:{type:["string","null"],example:"https://www.x.com/example",description:"X profile URL for the organization"}}},UploadedFile:{type:"object",properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"]},ProductCategory:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the product category"},slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time",description:"Timestamp when the product category was published"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"}},required:["id","slug","createdAt","translations"]},CreateProductCategory:{type:"object",properties:{slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the product category"},imageId:{type:"string",format:"cuid",description:"ID of the image for the product category"}},required:["slug","translations","defaultLocale"]},LocalizedProductCategory:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the product category"},slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time",description:"Timestamp when the product category was published"},title:{type:"string",default:""},description:{type:"string",default:""}},required:["id","slug","createdAt"]},UpdateProductCategory:{type:"object",properties:{slug:{type:"string",example:"electronics",description:"Slug of the product category"},image:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Image of the product category"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",minLength:1,example:"en-US",description:"Locale code for the translation"},title:{type:"string",default:"",example:"Electronics",description:"Name of the product category in the specified locale"},description:{type:["string","null"],maxLength:6e3,default:"",example:"A category for electronic devices.",description:"Description of the product category in the specified locale"}},required:["locale"]},description:"List of translations for the product category"},defaultLocale:{type:"string",minLength:1,description:"The default locale for the product category"},imageId:{type:["string","null"],format:"cuid",description:"ID of the image for the product category"}}},Product:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product"},slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/ModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{$ref:"#/components/schemas/ProductCategory"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}}},required:["id","basePrice","currency","categories","createdAt"]},ModifierGroup:{type:"object",properties:{id:{type:"string",format:"cuid"},selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:"string",example:"Size",description:"Title of the modifier group"}},required:["locale"]}}},required:["id","selectMin","selectMax","translations"]},Modifier:{type:"object",properties:{id:{type:"string",format:"cuid"},title:{type:"string",minLength:1,example:"Large",description:"Title of the modifier"},sku:{type:["string","null"],example:"csd9876543210abcdef",description:"Stock Keeping Unit identifier"},price:{type:["number","null"],default:0,example:2.5,description:"Price of the modifier"}},required:["title"]},CreateProduct:{type:"object",properties:{slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"Default translation locale"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/CreateOrUpdateModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{type:"string"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"}},required:["basePrice","currency","defaultLocale"]},CreateOrUpdateModifierGroup:{type:"object",properties:{selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:"string",example:"Size",description:"Title of the modifier group"}},required:["locale"]}}},required:["selectMin","selectMax","translations"]},LocalizedProduct:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product"},slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/LocalizedModifierGroup"}},categories:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"cju0z9k4z0000l1qg5z1z1z",description:"ID of the product category"}},required:["id"]},default:[]},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},createdAt:{type:"string",format:"date-time"},publishedAt:{type:["string","null"],format:"date-time"},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},title:{type:"string",default:""},description:{type:["string","null"],default:""}},required:["id","basePrice","currency","modifierGroups","createdAt"]},LocalizedModifierGroup:{type:"object",properties:{id:{type:"string",format:"cuid"},selectMin:{type:["number","null"],minimum:0,example:1,description:"Minimum number of modifiers that can be selected"},selectMax:{type:["number","null"],minimum:0,example:1,description:"Maximum number of modifiers that can be selected"},defaultLocale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},modifiers:{type:"array",items:{$ref:"#/components/schemas/Modifier"}},title:{type:["string","null"],default:""}},required:["id","selectMin","selectMax"]},UpdateProduct:{type:"object",properties:{slug:{type:"string",example:"premium-watch",description:"Unique slug for the product"},sku:{type:"string",example:"PRM-WATCH-01",description:"Stock Keeping Unit identifier"},availableQuantity:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:12,description:"Available stock quantity. Null means unlimited inventory."},basePrice:{type:"number",minimum:.1},discountedBasePrice:{oneOf:[{type:"string"},{type:"number"},{type:"null"}]},currency:{type:"string",example:"USD",description:"Currency code for pricing"},images:{type:"array",items:{$ref:"#/components/schemas/UploadedFile"},description:"List of product images"},manufacturerId:{type:["string","null"],format:"cuid",description:"ID of associated manufacturer"},translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},title:{type:["string","null"],example:"Premium Watch",description:"Product name in specified locale"},description:{type:["string","null"],example:"High-quality premium watch",description:"Product description in specified locale"}},required:["locale"]}},metadata:{type:["object","null"],additionalProperties:{type:"string",minLength:1,maxLength:200}},defaultLocale:{type:"string",minLength:1,example:"en-US",description:"Default translation locale"},modifierGroups:{type:"array",items:{$ref:"#/components/schemas/CreateOrUpdateModifierGroup"},description:"List of product modifier groups"},categories:{type:"array",items:{type:"string"},example:["cju0z9k4z0000l1qg5z1z1z"],description:"IDs of associated product categories"}}},Member:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the member"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},userId:{type:"string",example:"usr_123",description:"ID of the user"},role:{type:"string",example:"owner",description:"Role of the member in the organization"},createdAt:{type:"string",format:"date-time"},user:{type:"object",properties:{id:{type:"string"},firstname:{type:"string"},lastname:{type:"string"},email:{type:"string"},image:{type:["string","null"]}},required:["id","firstname","lastname","email"],description:"User details"}},required:["id","organizationId","userId","role","createdAt","user"]},UpdateMemberRole:{type:"object",properties:{role:{type:"string",minLength:1,example:"admin",description:"New role for the member"}},required:["role"]},Invitation:{type:"object",properties:{id:{type:"string",example:"inv_123",description:"ID of the invitation"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},email:{type:"string",format:"email",example:"user@example.com",description:"Email of the invited user"},role:{type:["string","null"],example:"member",description:"Role assigned to the invitation"},status:{type:"string",example:"pending",description:"Status of the invitation"},expiresAt:{type:"string",format:"date-time",description:"Expiration date of the invitation"},inviterId:{type:"string",description:"ID of the user who created the invitation"},createdAt:{type:"string",format:"date-time"}},required:["id","organizationId","email","status","expiresAt","inviterId"]},CreateInvitation:{type:"object",properties:{email:{type:"string",format:"email",example:"user@example.com",description:"Email of the user to invite"},role:{type:"string",minLength:1,example:"member",description:"Role to assign to the invited user"}},required:["email","role"]},UserInvitation:{type:"object",properties:{id:{type:"string",example:"inv_123",description:"ID of the invitation"},organizationId:{type:"string",example:"cju0z9k4z0000l1qg5z1z1z1z",description:"ID of the organization"},role:{type:["string","null"],example:"member",description:"Role assigned to the invitation"},expiresAt:{type:"string",format:"date-time",description:"Expiration date of the invitation"},organization:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id","name"],description:"Organization details"}},required:["id","organizationId","expiresAt","organization"]},ShippingMethod:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the shipping method"},title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},eligibleShippingZone:{$ref:"#/components/schemas/ShippingZone"},createdAt:{type:"string",format:"date-time"},updatedAt:{type:"string",format:"date-time"}},required:["id","title","providerName","shippingZones","createdAt","updatedAt"]},ShippingZone:{type:"object",properties:{id:{type:"string",example:"clf9876543210abcdef",description:"ID of the shipping zone"},title:{type:"string",minLength:1,example:"Zone 1",description:"Title of the shipping zone"},distanceUpto:{type:"number",minimum:.1,example:10,description:"Ending distance for the shipping zone"},price:{type:"number",minimum:.1,example:5.99,description:"Price for shipping in this zone"},minimumOrderAmount:{oneOf:[{type:"string"},{type:"number"},{type:"null"}],example:50,description:"Minimum order amount for this shipping zone"},eta:{type:"string",minLength:1,example:"2-3 days",description:"Estimated time of arrival for this shipping zone"}},required:["title","distanceUpto","price","eta"]},CreateShippingMethod:{type:"object",properties:{title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},providerLogoId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID reference to the provider logo file"}},required:["title","providerName","shippingZones"]},UpdateShippingMethod:{type:"object",properties:{title:{type:"string",minLength:1,example:"Standard Shipping",description:"Title of the shipping method"},providerName:{type:"string",minLength:1,example:"FedEx",description:"Name of the shipping provider"},providerLogo:{type:["object","null"],properties:{id:{type:"string",minLength:1,example:"clf9876543210abcdef",description:"ID of the file"},url:{type:"string",minLength:1,example:"/path/to/file",description:"Path of the file"},mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"}},required:["id","url","mimeType","size","filename"],description:"Logo of the shipping provider"},requireDateOfDelivery:{type:["boolean","null"],example:!0,description:"Whether the delivery time should be selected"},shippingZones:{type:"array",items:{$ref:"#/components/schemas/ShippingZone"},description:"List of shipping zones for this shipping method"},providerLogoId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID reference to the provider logo file"}}},Order:{type:"object",properties:{id:{type:"string",description:"Unique identifier for the order",example:"clj1234567890abcdef"},referenceId:{type:"string",description:"External reference ID for the order",example:"ORD-12345"},status:{type:"string",enum:["draft","pending","accepted","ready-for-dispatch","dispatched","completed","cancelled"],description:"Status of the order",example:"accepted"},token:{type:"string",description:"Security token for order verification",example:"a1b2c3d4e5f6g7h8i9j0"},expiresAt:{type:"string",format:"date-time",description:"Expiration date for the order",example:"2023-12-31T23:59:59Z"},items:{type:"array",items:{$ref:"#/components/schemas/OrderItem"},minItems:1,description:"Array of items in the order"},shippingMethod:{allOf:[{$ref:"#/components/schemas/ShippingMethod"},{type:["object","null"],description:"Shipping method selected for the order"}]},acceptedAt:{type:["string","null"],format:"date-time",description:"Date when the order was accepted",example:"2023-06-15T14:30:00Z"},dispatchedAt:{type:["string","null"],format:"date-time",description:"Date when the order was dispatched",example:"2023-06-16T09:15:00Z"},readyForDispatchAt:{type:["string","null"],format:"date-time",description:"Date when the order was ready for dispatch",example:"2023-06-16T09:15:00Z"},createdAt:{type:"string",format:"date-time",description:"Date when the order was created",example:"2023-06-15T14:30:00Z"},completedAt:{type:["string","null"],format:"date-time",description:"Date when the order was completed",example:"2023-06-18T11:45:00Z"},cancelledAt:{type:["string","null"],format:"date-time",description:"Date when the order was cancelled",example:"2023-06-14T16:20:00Z"},inventoryDeductedAt:{type:["string","null"],format:"date-time",description:"Date when the paid order inventory was deducted",example:"2023-06-15T14:30:00Z"},inventoryConflictAt:{type:["string","null"],format:"date-time",description:"Date when the paid order was flagged for manual inventory review",example:"2023-06-15T14:30:00Z"},inventoryConflictItems:{type:["array","null"],items:{$ref:"#/components/schemas/InventoryConflictItem"},description:"List of line items that could not be deducted after payment"},shippingAddress:{allOf:[{$ref:"#/components/schemas/Address"},{type:["object","null"]}]},fulfilmentMethod:{type:"string",enum:["delivery","pickup"],description:"Method of order fulfilment (pickup or delivery)",example:"delivery"},currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"Currency used for the order",example:"USD"},payment:{type:"object",properties:{id:{type:"string",minLength:1,format:"cuid"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"},provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},status:{type:"string",enum:["pending","succeeded","refunded","failed","canceled"],description:"The payment status",example:"pending"},shipping:{type:"number",minimum:0,default:0},subtotal:{type:"number",minimum:0},total:{type:"number",minimum:0},discount:{type:"number",minimum:0,default:0},currency:{type:"string",enum:["USD","EUR","GBP","JPY","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR","DKK","PLN","THB","IDR","HUF","CZK","ILS","PHP","AED","COP","SAR","MYR","RON"],description:"The currency code for the transaction."}},required:["id","method","provider","status","subtotal","total","currency"]}},required:["id","referenceId","token","expiresAt","items","shippingMethod","createdAt","fulfilmentMethod","currency","payment"]},OrderItem:{type:"object",properties:{translations:{type:"array",items:{type:"object",properties:{locale:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Locale of the translation",example:"en-US"},title:{type:"string",description:"Title of the ordered product",example:"Premium Watch"},subtitle:{type:"string",description:"Additional details about the ordered item, including modifiers",example:"Color: Silver, Size: Large"}},required:["locale","title","subtitle"]},description:"Translations for the order item"},rawData:{$ref:"#/components/schemas/CartItem"},unitPrice:{type:"number",minimum:0,description:"Price per unit of the item",example:299.99},image:{allOf:[{$ref:"#/components/schemas/UploadedFile"},{type:["object","null"]}]},totalPrice:{type:"number",minimum:0,description:"Total price for this item (unitPrice \xD7 quantity)",example:599.98},quantity:{type:"number",minimum:1,description:"Number of units ordered",example:2},productSnapshotId:{type:"string",format:"cuid"}},required:["translations","rawData","unitPrice","totalPrice","quantity","productSnapshotId"]},CartItem:{type:"object",properties:{productId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the product in the cart"},quantity:{type:"number",default:1,example:2,description:"Quantity of this item in the cart"},modifierGroups:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clg1234567890abcdef",description:"ID of the modifier group"},modifiers:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clh9876543210abcdef",description:"ID of the selected modifier"},quantity:{type:"number",default:1,example:1,description:"Quantity of this modifier"}},required:["id"]}}},required:["id","modifiers"]}}},required:["productId","modifierGroups"]},InventoryConflictItem:{type:"object",properties:{productId:{type:"string",format:"cuid"},title:{type:"string"},requestedQuantity:{type:"integer",minimum:1},availableQuantity:{type:"integer",minimum:0}},required:["productId","title","requestedQuantity","availableQuantity"]},CartConflict:{type:"object",properties:{invalidProductIds:{type:"array",items:{type:"string"}},normalizedItems:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},adjustments:{type:"array",items:{$ref:"#/components/schemas/CartAdjustment"}},products:{type:"object",additionalProperties:{$ref:"#/components/schemas/LocalizedProduct"}},shipping:{type:"number"},subtotal:{type:"number"},total:{type:"number"},message:{type:"string"}},required:["invalidProductIds","normalizedItems","adjustments","products","subtotal","total","message"]},CartAdjustment:{type:"object",properties:{productId:{type:"string",format:"cuid",example:"clf9876543210abcdef",description:"ID of the affected product"},modifierGroups:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clg1234567890abcdef",description:"ID of the modifier group"},modifiers:{type:"array",items:{type:"object",properties:{id:{type:"string",format:"cuid",example:"clh9876543210abcdef",description:"ID of the selected modifier"},quantity:{type:"number",default:1,example:1,description:"Quantity of this modifier"}},required:["id"]}}},required:["id","modifiers"]}},reason:{$ref:"#/components/schemas/CartAdjustmentReason"},requestedQuantity:{type:"integer",minimum:0,example:3,description:"Quantity requested by the customer"},resolvedQuantity:{type:"integer",minimum:0,example:1,description:"Quantity accepted after stock normalization"}},required:["productId","reason","requestedQuantity","resolvedQuantity"]},CartAdjustmentReason:{type:"string",enum:["invalid_product","out_of_stock","insufficient_stock"]},CreateOrder:{type:"object",properties:{items:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},shippingMethodId:{type:"string",format:"cuid"},fulfilmentMethod:{type:"string",enum:["delivery","pickup"],default:"delivery"},payment:{type:"object",properties:{provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"}},required:["provider","method"]},checkoutBaseUrl:{type:"string",format:"uri"}},required:["items","payment","checkoutBaseUrl"]},AdminCustomer:{allOf:[{$ref:"#/components/schemas/User"},{type:"object",properties:{createdAt:{type:"string",format:"date-time",description:"Date when the customer account was created",example:"2026-03-29T12:00:00.000Z"},orderCount:{type:"integer",minimum:0,description:"Number of orders placed by the customer in this organization",example:3},reservationCount:{type:"integer",minimum:0,description:"Number of reservations created by the customer in this organization",example:2}},required:["createdAt","orderCount","reservationCount"]}]},User:{type:"object",properties:{id:{type:"string",example:"clm1234567890abcdef",description:"User's ID"},email:{type:"string",format:"email",example:"user@example.com",description:"User's email address"},firstname:{type:"string",example:"John",description:"User's first name"},lastname:{type:"string",example:"Doe",description:"User's last name"},image:{type:["string","null"],example:"https://example.com/image.jpg",description:"User's profile image"},name:{type:["string","null"],description:"User's full name (optional)"}},required:["id","email","firstname","lastname"]},AdminCustomerDetail:{type:"object",properties:{customer:{$ref:"#/components/schemas/AdminCustomer"},orders:{type:"array",items:{$ref:"#/components/schemas/Order"}},reservations:{type:"array",items:{$ref:"#/components/schemas/Reservation"}}},required:["customer","orders","reservations"]},Reservation:{type:"object",properties:{id:{type:"string",description:"Unique identifier for the order",example:"clj1234567890abcdef"},firstname:{type:"string",description:"Customer's first name",example:"John"},lastname:{type:"string",description:"Customer's last name",example:"Doe"},guests:{type:"number",minimum:.1},phone:{type:"string",description:"Customer's phone number",example:"+1234567890"},date:{type:["string","null"],format:"date-time",description:"Reservation date and time",example:"2023-06-14T16:20:00Z"},referenceId:{type:"string",description:"External reference ID for the order",example:"ORD-12345"},acceptedAt:{type:["string","null"],format:"date-time",description:"Date when the order was accepted",example:"2023-06-15T14:30:00Z"},cancelledAt:{type:["string","null"],format:"date-time",description:"Date when the order was cancelled",example:"2023-06-14T16:20:00Z"},createdAt:{type:["string","null"],format:"date-time",description:"Date when the order was created",example:"2023-06-14T16:20:00Z"}},required:["id","firstname","lastname","guests","phone","date","referenceId"]},UpdateShippingAddress:{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",minLength:1,example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["placeId"]},Place:{type:"object",properties:{placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},text:{type:"string",example:"123 Main Street, New York, USA",description:"The description of the place"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:"string",example:"Suite 100",description:"The second line of the address"},latitude:{type:"number",example:40.712776,description:"The latitude of the coordinate"},longitude:{type:"number",example:-74.005974,description:"The longitude of the coordinate"}},required:["placeId","text","addressLineOne"]},PlaceDetails:{type:"object",properties:{addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The ISO 3166-1 alpha-2 country code"}},required:["addressLineOne","city","country"]},CreateReservation:{type:"object",properties:{firstname:{description:"Customer's first name",example:"John"},lastname:{description:"Customer's last name",example:"Doe"},guests:{description:"Number of guests included in the reservation",example:2},phone:{description:"Customer's phone number",example:"+1234567890"},date:{description:"Reservation date and time",example:"2023-06-14T16:20:00Z"}},required:["firstname","lastname","guests","phone","date"]},UpdateReservation:{type:"object",properties:{firstname:{description:"Customer's first name",example:"John"},lastname:{description:"Customer's last name",example:"Doe"},guests:{description:"Number of guests included in the reservation",example:2},date:{description:"Reservation date and time",example:"2023-06-14T16:20:00Z"}},required:["firstname","lastname","guests","date"]}},parameters:{}},paths:{"/ping":{get:{description:"Pings the relevancy score service to check its availability",operationId:"ping",summary:"Ping",tags:["Health"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{ok:{type:"boolean",description:"Indicates if the service is available",example:!0}},required:["ok"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/analytics/overview":{get:{description:"Returns dashboard analytics for an organization within a date range.",operationId:"getAnalyticsOverview",summary:"Get Analytics Overview",tags:["Analytics"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["string","null"],format:"date-time",description:"Start of the reporting range",example:"2026-01-01T00:00:00.000Z"},required:!1,description:"Start of the reporting range",name:"from",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"End of the reporting range",example:"2026-01-30T23:59:59.999Z"},required:!1,description:"End of the reporting range",name:"to",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AnalyticsOverview"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/manufacturers":{post:{description:"Creates a new manufacturer for a specific organization",operationId:"createManufacturer",summary:"Create Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateManufacturer"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Manufacturer"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of manufacturers for a specific organization",operationId:"getManufacturers",summary:"Get Manufacturers",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/Manufacturer"},{$ref:"#/components/schemas/LocalizedManufacturer"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/manufacturers/{id}":{get:{operationId:"getManufacturer",summary:"Get Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/Manufacturer"},{$ref:"#/components/schemas/LocalizedManufacturer"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates an existing manufacturer",operationId:"updateManufacturer",summary:"Update Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateManufacturer"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Manufacturer"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes a manufacturer",operationId:"deleteManufacturer",summary:"Delete Manufacturer",tags:["Manufacturer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/integrations":{get:{description:"Fetches integrations configured for an organization",operationId:"getIntegrations",summary:"Get Integrations",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Integration"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/integrations/{type}":{put:{description:"Creates or updates an integration configuration",operationId:"upsertIntegration",summary:"Upsert Integration",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},required:!0,description:"Integration type key",in:"path",name:"type"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpsertIntegration"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Integration"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes an integration configuration",operationId:"deleteIntegration",summary:"Delete Integration",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,example:"stripe",description:"Integration type key"},required:!0,description:"Integration type key",in:"path",name:"type"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/integrations/resend/test":{post:{description:"Sends a test email using the configured Resend integration",operationId:"sendTestEmail",summary:"Send Test Email",tags:["Integration"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/SendTestEmail"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/SendTestEmailResponse"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/organizations":{get:{description:"Fetches a paginated list of organizations",operationId:"getOrganizations",summary:"Get Organizations",tags:["Organization"],parameters:[{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Organization"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}}}},post:{description:"Creates a new organization",operationId:"createOrganization",summary:"Create Organization",tags:["Organization"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateOrganization"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/organizations/{organizationId}":{get:{description:"Fetches a specific organization by ID",operationId:"getOrganization",summary:"Get Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific organization by ID",operationId:"updateOrganization",summary:"Update Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateOrganization"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Organization"}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific organization by ID",operationId:"deleteOrganization",summary:"Delete Organization",tags:["Organization"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/files/token/vercel":{post:{description:"Returns a Vercel token",operationId:"getVercelToken",summary:"Get Vercel Token",tags:["File"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{oneOf:[{type:"object",properties:{type:{type:"string",enum:["blob.generate-client-token"]},payload:{type:"object",properties:{pathname:{type:"string"},callbackUrl:{type:"string"},multipart:{type:"boolean"},clientPayload:{type:["string","null"]}},required:["pathname","callbackUrl","multipart","clientPayload"]}},required:["type","payload"]},{type:"object",properties:{type:{type:"string",enum:["blob.upload-completed"]},payload:{type:"object",properties:{blob:{},tokenPayload:{type:["string","null"]}}}},required:["type","payload"]}]}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{type:"object",properties:{type:{type:"string",enum:["blob.generate-client-token"]},clientToken:{type:"string"}},required:["type","clientToken"]},{type:"object",properties:{type:{type:"string",enum:["blob.upload-completed"]},response:{type:"string",enum:["ok"]}},required:["type","response"]}]}}}},"204":{description:"No Content"}}}},"/files":{post:{description:"Creates a temporary file record and returns its ID",operationId:"createTemporaryFile",summary:"Create Temporary File",tags:["File"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{mimeType:{type:"string",minLength:1,example:"image/png",description:"MIME type of the file"},size:{type:"number",minimum:1,example:1024,description:"Size of the file in bytes"},filename:{type:"string",minLength:1,example:"example.png",description:"Name of the file"},organizationId:{type:"string",example:"clm1234567890abcdef",description:"ID of the organization"}},required:["mimeType","size","filename"]}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/UploadedFile"}}}}}}},"/{organizationId}/product-categories":{post:{description:"Creates a new product category for a specific organization",operationId:"createProductCategory",summary:"Create Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateProductCategory"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of product categories for a specific organization",operationId:"getProductCategories",summary:"Get Product Categories",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",enum:["published","unpublished"],description:"Filter product categories by publication status",example:"published"},required:!1,description:"Filter product categories by publication status",name:"publishedStatus",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/ProductCategory"},{$ref:"#/components/schemas/LocalizedProductCategory"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/product-categories/{id}":{get:{description:"Fetches a specific product category by ID",operationId:"getProductCategory",summary:"Get Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/ProductCategory"},{$ref:"#/components/schemas/LocalizedProductCategory"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific product category by ID",operationId:"updateProductCategory",summary:"Update Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateProductCategory"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific product category by ID",operationId:"deleteProductCategory",summary:"Delete Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/product-categories/{id}/status/{operation}":{post:{description:"Sets the published status of an existing product category based on the operation (publish or unpublish)",operationId:"updateProductCategoryStatus",summary:"Publish or Unpublish Product Category",tags:["ProductCategory"],parameters:[{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"id"},{schema:{type:"string",enum:["publish","unpublish"],description:"The operation to perform on the product category",example:"publish"},required:!0,description:"The operation to perform on the product category",in:"path",name:"operation"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ProductCategory"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products":{post:{description:"Creates a new product",operationId:"createProduct",summary:"Create Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateProduct"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches paginated list of products",operationId:"getProducts",summary:"Get Products",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",description:"Filter products by category ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!1,description:"Filter products by category ID",name:"categoryId",in:"query"},{schema:{type:"string",enum:["published","unpublished"],description:"Filter products by publication status",example:"published"},required:!1,description:"Filter products by publication status",name:"publishedStatus",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{oneOf:[{$ref:"#/components/schemas/Product"},{$ref:"#/components/schemas/LocalizedProduct"}]}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/{id}":{get:{description:"Fetches a specific product by ID",operationId:"getProduct",summary:"Get Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:["string","null"],enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu",null],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{oneOf:[{$ref:"#/components/schemas/Product"},{$ref:"#/components/schemas/LocalizedProduct"}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Updates a specific product by ID",operationId:"updateProduct",summary:"Update Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateProduct"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Deletes a specific product by ID",operationId:"deleteProduct",summary:"Delete Product",tags:["Product"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/{id}/status/{operation}":{post:{description:"Sets the published status of an existing product based on the operation (publish or unpublish)",operationId:"updateProductStatus",summary:"Publish or Unpublish Product",tags:["Product"],parameters:[{schema:{type:"string",description:"The product ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The product ID",in:"path",name:"id"},{schema:{type:"string",enum:["publish","unpublish"],description:"The operation to perform on the product",example:"publish"},required:!0,description:"The operation to perform on the product",in:"path",name:"operation"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Product"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/products/by-category/{categoryId}":{get:{description:"Fetches a paginated list of products for a specific category",operationId:"getProductsByCategory",summary:"Get Products by Category",tags:["Product"],parameters:[{schema:{type:"string",description:"The category ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The category ID",in:"path",name:"categoryId"},{schema:{type:"string",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Product"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/members":{get:{description:"Fetches a paginated list of members for an organization",operationId:"getMembers",summary:"Get Members",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Member"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/members/{memberId}":{get:{operationId:"getMember",summary:"Get Member",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates a member's role in the organization",operationId:"updateMemberRole",summary:"Update Member Role",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateMemberRole"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Removes a member from the organization",operationId:"deleteMember",summary:"Delete Member",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the member",example:"clf9876543210abcdef"},required:!0,description:"ID of the member",in:"path",name:"memberId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/invitations":{post:{description:"Creates a new invitation for the organization",operationId:"createInvitation",summary:"Create Invitation",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateInvitation"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Invitation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a list of pending invitations for an organization",operationId:"getInvitations",summary:"Get Invitations",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Invitation"}}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/invitations/{invitationId}":{delete:{description:"Revokes a pending invitation",operationId:"deleteInvitation",summary:"Delete Invitation",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the invitation",example:"inv_123"},required:!0,description:"ID of the invitation",in:"path",name:"invitationId"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/access/invitations/me":{get:{description:"Fetches pending invitations for the currently authenticated user",operationId:"getUserInvitations",summary:"Get User Invitations",tags:["Access"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/UserInvitation"}}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/access/invitations/{invitationId}/accept":{post:{description:"Accepts a pending invitation and adds the user as a member",operationId:"acceptInvitation",summary:"Accept Invitation",tags:["Access"],parameters:[{schema:{type:"string",description:"ID of the invitation",example:"inv_123"},required:!0,description:"ID of the invitation",in:"path",name:"invitationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Member"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/access/leave":{post:{description:"Leave an organization by revoking your own membership",operationId:"leaveOrganization",summary:"Leave Organization",tags:["Access"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods":{post:{description:"Creates a new shipping method for an organization",operationId:"createShippingMethod",summary:"Create Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateShippingMethod"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Fetches a paginated list of shipping methods for an organization",operationId:"getShippingMethods",summary:"Get Shipping Methods",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/ShippingMethod"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods/{id}":{get:{operationId:"getShippingMethod",summary:"Get Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates an existing shipping method",operationId:"updateShippingMethod",summary:"Update Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the shipping method",example:"clf9876543210abcdef"},required:!0,description:"ID of the shipping method",in:"path",name:"id"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateShippingMethod"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/ShippingMethod"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes a shipping method",operationId:"deleteShippingMethod",summary:"Delete Shipping Method",tags:["ShippingMethod"],parameters:[{schema:{type:"string",description:"ID of the shipping method",example:"clf9876543210abcdef"},required:!0,description:"ID of the shipping method",in:"path",name:"id"},{schema:{type:"string",description:"ID of the organization",example:"cju0z9k4z0000l1qg5z1z1z1z"},required:!0,description:"ID of the organization",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/shipping-methods/access/eligibility":{get:{description:"Fetches a list of published shipping methods a user can use",operationId:"accessEligibility",summary:"Get Eligible Shipping Methods",tags:["ShippingMethod"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/ShippingMethod"}}}}}}}},"/{organizationId}/orders":{post:{description:"Creates a new order",operationId:"createOrder",summary:"Create Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym"},required:!0,description:"The organization ID",in:"path",name:"organizationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateOrder"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{type:"object",properties:{order:{$ref:"#/components/schemas/Order"},redirectUrl:{type:"string",format:"uri"}},required:["order"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"409":{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/CartConflict"}}}}}},get:{description:"Fetches paginated list of orders",operationId:"getOrders",summary:"Get Orders",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Order"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/me":{get:{description:"Fetches paginated list of orders for the authenticated user",operationId:"getMyOrders",summary:"Get My Orders",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Order"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/{id}":{get:{operationId:"getOrder",summary:"Get Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Soft deletes order",operationId:"deleteOrder",summary:"Delete Order",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/orders/{id}/status/{operation}":{post:{description:"Changes the status of an existing order based on the operation",operationId:"updateOrderStatus",summary:"Change Order Status",tags:["Order"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"id",in:"path"},{schema:{type:"string",enum:["draft","pending","accepted","ready-for-dispatch","dispatched","completed","cancelled"],description:"Status of the order",example:"accepted"},required:!0,description:"Status of the order",name:"operation",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Order"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/cart":{post:{description:"Fetches formatted cart data",operationId:"getCartData",summary:"Get Formatted Cart",tags:["Cart"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],default:"en",description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{items:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},shippingMethodId:{type:"string",format:"cuid"}},required:["items"]}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{invalidProductIds:{type:"array",items:{type:"string"}},normalizedItems:{type:"array",items:{$ref:"#/components/schemas/CartItem"}},adjustments:{type:"array",items:{$ref:"#/components/schemas/CartAdjustment"}},products:{type:"object",additionalProperties:{$ref:"#/components/schemas/LocalizedProduct"}},shipping:{type:"number"},subtotal:{type:"number"},total:{type:"number"}},required:["invalidProductIds","normalizedItems","adjustments","products","subtotal","total"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/customers":{get:{description:"Fetches paginated users who have placed at least one order or reservation in the organization",operationId:"getCustomers",summary:"Get Customers",tags:["Customer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/AdminCustomer"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/customers/{id}":{get:{description:"Fetches a customer profile with all orders and reservations for the organization",operationId:"getCustomer",summary:"Get Customer",tags:["Customer"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",minLength:1,example:"user_123456789",description:"The user ID"},required:!0,description:"The user ID",name:"id",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AdminCustomerDetail"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/shipping":{post:{description:"Creates a new shipping address for the user",operationId:"createShippingAddress",summary:"Create Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"},addressLineOne:{type:"string",example:"123 Main Street",description:"The first line of the address"},addressLineTwo:{type:["string","null"],example:"Suite 100",description:"The second line of the address"},doorNumber:{type:["string","null"],description:"The door number of the address"},zipCode:{type:"string",example:"12345",description:"The postal code of the address"},city:{type:"string",example:"New York",description:"The city of the address"},country:{type:"string",example:"USA",description:"The country of the address"},placeId:{type:"string",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"},deliveryInstructions:{type:["string","null"],example:"Leave at the door",description:"Delivery instructions for the address"}},required:["firstname","lastname","phone","addressLineOne","city","country","placeId"]}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Get the default shipping address for the user",operationId:"getShippingAddress",summary:"Get Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:["object","null"],properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},put:{description:"Updates the shipping address for the user",operationId:"updateShippingAddress",summary:"Update Shipping Address",tags:["Shipping"],parameters:[{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateShippingAddress"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{allOf:[{$ref:"#/components/schemas/Address"},{type:"object",properties:{firstname:{type:"string",minLength:2,example:"John",description:"The first name of the recipient"},lastname:{type:"string",minLength:1,example:"Doe",description:"The last name of the recipient"},phone:{type:"string",minLength:4,example:"+1234567890",description:"Phone number of the recepient"}},required:["firstname","lastname","phone"]}]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/places/prediction":{get:{description:"Returns a list of places for autocompletion based on a search query",operationId:"getPredictions",summary:"Get Places Predictions",tags:["Location"],parameters:[{schema:{type:"string",description:"Search query",example:"123 Main St"},required:!0,description:"Search query",name:"query",in:"query"},{schema:{type:["number","null"],default:1e4,description:"Search radius in meters",example:1e4},required:!1,description:"Search radius in meters",name:"radius",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Place"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/places/{placeId}":{get:{description:"Returns details for a specific place based on its placeId",operationId:"getPlaceDetails",summary:"Get Place Details",tags:["Location"],parameters:[{schema:{type:"string",description:"The Google Place ID for the address",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY"},required:!0,description:"The Google Place ID for the address",in:"path",name:"placeId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/PlaceDetails"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/payment/methods":{get:{description:"Returns a list of available payment methods for the organization.",operationId:"getAvailablePaymentMethods",summary:"Get Available Payment Methods",tags:["Payment"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",enum:["stripe","revolut","payu","not_applicable"],description:"The payment method",example:"card"},method:{type:"string",enum:["card","blik","cash_on_delivery","paypal"],description:"The payment method",example:"card"},description:{type:"string",minLength:1}},required:["id","provider","method","description"],description:"The payment method",example:{provider:"stripe",type:"card"}}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/webhook/payment/{provider}":{post:{description:"Receive webhook events from payment providers",operationId:"webhook",summary:"Process Event",tags:["Webhook"],parameters:[{schema:{type:"string",enum:["stripe","revolut"],description:"Payment provider",example:"stripe"},required:!0,description:"Payment provider",in:"path",name:"provider"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{received:{type:"boolean"}},required:["received"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/webhook/payment/{provider}/{organizationId}":{post:{description:"Receive webhook events from payment providers for a specific organization",operationId:"webhookByOrganization",summary:"Process Event",tags:["Webhook"],parameters:[{schema:{type:"string",enum:["stripe","revolut"],description:"Payment provider",example:"stripe"},required:!0,description:"Payment provider",in:"path",name:"provider"},{schema:{type:"string",description:"Organization ID",example:"clm1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{received:{type:"boolean"}},required:["received"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations":{post:{description:"Create a new reservation",operationId:"createReservation",summary:"Create Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateReservation"}}}},responses:{"201":{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},get:{description:"Get all reservations for an organization",operationId:"getReservations",summary:"Get Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"Filter reservations scheduled from this date and time",example:"2026-03-01T00:00:00.000Z"},required:!1,description:"Filter reservations scheduled from this date and time",name:"from",in:"query"},{schema:{type:["string","null"],format:"date-time",description:"Filter reservations scheduled up to this date and time",example:"2026-03-31T23:59:59.999Z"},required:!1,description:"Filter reservations scheduled up to this date and time",name:"to",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Reservation"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/me":{get:{description:"Get paginated reservations for the authenticated user",operationId:"getMyReservations",summary:"Get My Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",minLength:1,format:"cuid",example:"ckel0e8qw00004n5p5w6fznym",description:"The organization ID"},required:!0,description:"The organization ID",name:"organizationId",in:"path"},{schema:{type:["number","null"],default:1,example:1,description:"Page number"},required:!1,description:"Page number",name:"page",in:"query"},{schema:{type:["number","null"],default:10,example:50,description:"Number of items per page"},required:!1,description:"Number of items per page",name:"limit",in:"query"},{schema:{type:"string",example:"Apple",description:"Search query"},required:!1,description:"Search query",name:"search",in:"query"},{schema:{type:["boolean","null"],example:!0,description:"Whether to filter by published items"},required:!1,description:"Whether to filter by published items",name:"published",in:"query"},{schema:{type:"string",enum:["af","sq","ar_dz","ar_bh","ar_eg","ar_iq","ar_jo","ar_kw","ar_lb","ar_ly","ar_ma","ar_om","ar_qa","ar_sa","ar_sy","ar_tn","ar_ae","ar_ye","eu","be","bg","ca","zh_hk","zh_cn","zh_sg","zh_tw","hr","cs","da","nl_be","nl","en","en_au","en_bz","en_ca","en_ie","en_jm","en_nz","en_za","en_tt","en_gb","en_us","et","fo","fa","fi","fr_be","fr_ca","fr_lu","fr","fr_ch","gd","de_at","de_li","de_lu","de","de_ch","el","he","hi","hu","is","id","ga","it","it_ch","ja","ko","ku","lv","lt","mk","ml","ms","mt","no","nb","nn","pl","pt_br","pt","pa","rm","ro","ro_md","ru","ru_md","sr","sk","sl","sb","es_ar","es_bo","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es","sv","sv_fi","th","tr","uk","ur","vi","cy","ji","zu"],description:"Enum for locale values",example:"en"},required:!1,description:"Enum for locale values",name:"locale",in:"query"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"object",properties:{list:{type:"array",items:{$ref:"#/components/schemas/Reservation"}},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["list","meta"]}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/{reservationId}":{get:{description:"Get a specific reservation by ID",operationId:"getReservation",summary:"Get Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},patch:{description:"Update an existing reservation",operationId:"updateReservation",summary:"Update Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/UpdateReservation"}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}},delete:{description:"Delete a reservation",operationId:"deleteReservation",summary:"Delete Reservation",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{}}}}},responses:{"204":{description:"No Content"},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/user/{userId}":{get:{description:"Get all reservations for a user",operationId:"getUserReservations",summary:"Get User Reservations",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"User ID",example:"clj1234567890abcdef"},required:!0,description:"User ID",in:"path",name:"userId"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],responses:{"200":{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Reservation"}}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}},"/{organizationId}/reservations/{reservationId}/{operation}":{patch:{description:"Update the status of a reservation",operationId:"updateReservationStatus",summary:"Update Reservation Status",tags:["Reservation"],parameters:[{schema:{type:"string",description:"Organization ID",example:"clj1234567890abcdef"},required:!0,description:"Organization ID",in:"path",name:"organizationId"},{schema:{type:"string",description:"Reservation ID",example:"clj1234567890abcdef"},required:!0,description:"Reservation ID",in:"path",name:"reservationId"},{schema:{type:"string",enum:["accept","cancel"],description:"Operation",example:"accept"},required:!0,description:"Operation",in:"path",name:"operation"},{schema:{type:"string",example:"en-US",description:"Accept-Language header"},required:!1,description:"Accept-Language header",in:"header",name:"accept-language"},{schema:{type:"string",example:"session=1234567890",description:"Cookie header"},required:!1,description:"Cookie header",in:"header",name:"cookie"}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{}}}}},responses:{"200":{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Reservation"}}}},"400":{description:"Bad Request",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"401":{description:"Unauthorized",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"404":{description:"Not Found",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}},"500":{description:"Internal Server Error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"number",example:404,description:"The HTTP status code"},message:{type:"string",example:"Not found",description:"The error message"}},required:["status","message"]}}}}}}}},webhooks:{}};var vt=["delete","get","head","options","patch","post","put","trace"],Pt=Object.values(mt.paths??{}).reduce((e,i)=>{for(let a of vt){let o=i?.[a];o?.operationId&&(e[o.operationId]=Object.keys(o.responses??{}).map(t=>Number(t)))}return e},{}),Dt=(e,i,a)=>{let o=i.response;if(!o)throw i.error??new Error(`Request failed for ${e}`);if(!(Pt[e]??[]).includes(o.status)&&a)throw i.error??new Error(`Undocumented status ${o.status}`);return{body:o.status===204?void 0:o.ok?i.data:i.error,headers:o.headers,status:o.status}},n=(e,i,a,o)=>async(t={})=>{let{params:r,...m}=t,d=await a({...m,client:e,path:r});return Dt(i,d,o)},_r=({baseHeaders:e,baseUrl:i,credentials:a,fetch:o,throwOnUnknownStatus:t=!1})=>{let r=C({baseUrl:`${i}/api`,credentials:a,fetch:o,headers:e,responseStyle:"fields",throwOnError:!1}),m=o??globalThis.fetch,d=async(p,u,c,h={},k=[])=>{let _=new URL(`${i}/api${u}`);for(let[j,b]of Object.entries(h.query??{}))b!=null&&_.searchParams.set(j,String(b));let I=new Headers(e);for(let[j,b]of Object.entries(h.headers??{}))b!=null&&I.set(j,String(b));let l=h.body!==void 0;l&&!I.has("content-type")&&I.set("content-type","application/json");let g=await m(_.toString(),{method:c,credentials:a,headers:I,body:l?JSON.stringify(h.body):void 0});if(k.length>0&&!k.includes(g.status)&&t)throw new Error(`Undocumented status ${g.status} for ${p}`);let z;return g.status!==204&&(z=await g.json().catch(()=>{})),{body:z,headers:g.headers,status:g.status}};return{analytics:{getOverview:p=>d("getAnalyticsOverview",`/${p.params.organizationId}/analytics/overview`,"GET",{query:p.query},[200,400,401,404])},integration:{deleteIntegration:p=>d("deleteIntegration",`/${p.params.organizationId}/integrations/${p.params.type}`,"DELETE",{},[204,400,401,404]),getIntegrations:p=>d("getIntegrations",`/${p.params.organizationId}/integrations`,"GET",{},[200,400,401,404]),upsertIntegration:p=>d("upsertIntegration",`/${p.params.organizationId}/integrations/${p.params.type}`,"PUT",{body:p.body},[200,400,401,404]),sendTestEmail:p=>d("sendTestEmail",`/${p.params.organizationId}/integrations/resend/test`,"POST",{body:p.body},[200,400,401,404,500]),createStripeTestCheckout:p=>d("createStripeTestCheckout",`/${p.params.organizationId}/integrations/stripe/test`,"POST",{body:p.body},[200,400,401,404,500])},access:{acceptInvitation:n(r,"acceptInvitation",Se,t),createInvitation:n(r,"createInvitation",De,t),deleteInvitation:n(r,"deleteInvitation",Ce,t),deleteMember:n(r,"deleteMember",ke,t),getInvitations:n(r,"getInvitations",Pe,t),getMember:n(r,"getMember",Oe,t),getMembers:n(r,"getMembers",je,t),getUserInvitations:n(r,"getUserInvitations",Re,t),leaveOrganization:n(r,"leaveOrganization",Ee,t),updateMemberRole:n(r,"updateMemberRole",ve,t)},cart:{getCartData:n(r,"getCartData",We,t)},customer:{getCustomer:n(r,"getCustomer",Je,t),getCustomers:n(r,"getCustomers",Ze,t)},file:{createTemporaryFile:n(r,"createTemporaryFile",me,t),getVercelToken:n(r,"getVercelToken",de,t)},health:{ping:n(r,"ping",X,t)},location:{getPlaceDetails:n(r,"getPlaceDetails",et,t),getPredictions:n(r,"getPredictions",Xe,t)},manufacturer:{createManufacturer:n(r,"createManufacturer",te,t),deleteManufacturer:n(r,"deleteManufacturer",re,t),getManufacturer:n(r,"getManufacturer",ie,t),getManufacturers:n(r,"getManufacturers",ee,t),updateManufacturer:n(r,"updateManufacturer",ae,t)},order:{createOrder:n(r,"createOrder",He,t),deleteOrder:n(r,"deleteOrder",Be,t),getOrder:n(r,"getOrder",Fe,t),getMyOrders:n(r,"getMyOrders",$e,t),getOrders:n(r,"getOrders",Ge,t),updateStatus:n(r,"updateOrderStatus",Ke,t)},organization:{createOrganization:n(r,"createOrganization",ne,t),deleteOrganization:n(r,"deleteOrganization",oe,t),getOrganization:n(r,"getOrganization",pe,t),getOrganizations:n(r,"getOrganizations",se,t),updateOrganization:n(r,"updateOrganization",ce,t)},payment:{getAvailablePaymentMethods:n(r,"getAvailablePaymentMethods",tt,t)},product:{createProduct:n(r,"createProduct",_e,t),deleteProduct:n(r,"deleteProduct",xe,t),getProduct:n(r,"getProduct",Te,t),getProducts:n(r,"getProducts",be,t),getProductsByCategory:n(r,"getProductsByCategory",Ie,t),updateProduct:n(r,"updateProduct",ze,t),updateStatus:n(r,"updateProductStatus",qe,t)},productCategory:{createProductCategory:n(r,"createProductCategory",ue,t),deleteProductCategory:n(r,"deleteProductCategory",he,t),getProductCategories:n(r,"getProductCategories",le,t),getProductCategory:n(r,"getProductCategory",ge,t),updateProductCategory:n(r,"updateProductCategory",ye,t),updateStatus:n(r,"updateProductCategoryStatus",fe,t)},reservation:{createReservation:n(r,"createReservation",at,t),deleteReservation:n(r,"deleteReservation",nt,t),getReservation:n(r,"getReservation",ot,t),getMyReservations:n(r,"getMyReservations",st,t),getReservations:n(r,"getReservations",it,t),getUserReservations:n(r,"getUserReservations",ct,t),updateReservation:n(r,"updateReservation",pt,t),updateReservationStatus:n(r,"updateReservationStatus",dt,t)},shipping:{createShippingAddress:n(r,"createShippingAddress",Ve,t),getShippingAddress:n(r,"getShippingAddress",Ye,t),updateShippingAddress:n(r,"updateShippingAddress",Qe,t)},shippingMethod:{accessEligibility:n(r,"accessEligibility",Ue,t),createShippingMethod:n(r,"createShippingMethod",Ae,t),deleteShippingMethod:n(r,"deleteShippingMethod",Le,t),getShippingMethod:n(r,"getShippingMethod",Me,t),getShippingMethods:n(r,"getShippingMethods",we,t),updateShippingMethod:n(r,"updateShippingMethod",Ne,t)},webhook:{webhook:n(r,"webhook",rt,t)}}};export{Se as acceptInvitation,Ue as accessEligibility,De as createInvitation,te as createManufacturer,He as createOrder,ne as createOrganization,_e as createProduct,ue as createProductCategory,at as createReservation,Ve as createShippingAddress,Ae as createShippingMethod,me as createTemporaryFile,dr as deleteIntegration,Ce as deleteInvitation,re as deleteManufacturer,ke as deleteMember,Be as deleteOrder,oe as deleteOrganization,xe as deleteProduct,he as deleteProductCategory,nt as deleteReservation,Le as deleteShippingMethod,pr as getAnalyticsOverview,tt as getAvailablePaymentMethods,We as getCartData,Je as getCustomer,Ze as getCustomers,cr as getIntegrations,Pe as getInvitations,ie as getManufacturer,ee as getManufacturers,Oe as getMember,je as getMembers,$e as getMyOrders,st as getMyReservations,Fe as getOrder,Ge as getOrders,pe as getOrganization,se as getOrganizations,et as getPlaceDetails,Xe as getPredictions,Te as getProduct,le as getProductCategories,ge as getProductCategory,be as getProducts,Ie as getProductsByCategory,ot as getReservation,it as getReservations,Ye as getShippingAddress,Me as getShippingMethod,we as getShippingMethods,Re as getUserInvitations,ct as getUserReservations,de as getVercelToken,_r as initClient,Ee as leaveOrganization,X as ping,lr as sendTestEmail,ae as updateManufacturer,ve as updateMemberRole,Ke as updateOrderStatus,ce as updateOrganization,ze as updateProduct,ye as updateProductCategory,fe as updateProductCategoryStatus,qe as updateProductStatus,pt as updateReservation,dt as updateReservationStatus,Qe as updateShippingAddress,Ne as updateShippingMethod,mr as upsertIntegration,rt as webhook,ur as webhookByOrganization};
|