@matchi/api 0.20260427.1 → 0.20260428.1

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.
@@ -6590,7 +6590,6 @@ declare const PostSchema: {
6590
6590
  declare const PostLinkSchema: {
6591
6591
  readonly properties: {
6592
6592
  readonly link_reference_id: {
6593
- readonly format: "uuid";
6594
6593
  readonly type: "string";
6595
6594
  };
6596
6595
  readonly link_type: {
@@ -6590,7 +6590,6 @@ declare const PostSchema: {
6590
6590
  declare const PostLinkSchema: {
6591
6591
  readonly properties: {
6592
6592
  readonly link_reference_id: {
6593
- readonly format: "uuid";
6594
6593
  readonly type: "string";
6595
6594
  };
6596
6595
  readonly link_type: {
@@ -6,7 +6,7 @@
6
6
  `),pe=[],Gt;for(let T of Tr)if(T.startsWith("data:"))pe.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))Gt=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let lt=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(lt)||(G=lt)}let M,kt=!1;if(pe.length){let T=pe.join(`
7
7
  `);try{M=JSON.parse(T),kt=!0}catch(lt){M=T}}kt&&(i&&(yield new L(i(M))),o&&(M=yield new L(o(M)))),r==null||r({data:M,event:Gt,id:b,retry:G}),pe.length&&(yield M)}}}finally{q.removeEventListener("abort",_t),pt.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ne=Math.min(G*2**(v-1),c!=null?c:3e4);yield new L(K(ne))}}})}()}};var Kr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Vr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Hr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},we=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(Vr(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=Kr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):$({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},$=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},qe=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let m=d.join(",");switch(o){case"form":return`${r}=${m}`;case"label":return`.${m}`;case"matrix":return`;${r}=${m}`;default:return m}}let p=Hr(o),c=Object.entries(i).map(([d,m])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:m})).join(p);return o==="label"||o==="matrix"?p+c:c};var Qr=/\{[^{}]+\}/g,Yr=({path:t,url:e})=>{let r=e,o=e.match(Qr);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,we({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,qe({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${$({name:p,value:d})}`);continue}let m=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,m)}return r},jt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Yr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function Tt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var Bt=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var $t=(r={})=>{var o=r,{parameters:t={}}=o,e=Y(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let m=t[c]||e;if(Array.isArray(d)){let u=we(n({allowReserved:m.allowReserved,explode:!0,name:c,style:"form",value:d},m.array));u&&p.push(u)}else if(typeof d=="object"){let u=qe(n({allowReserved:m.allowReserved,explode:!0,name:c,style:"deepObject",value:d},m.object));u&&p.push(u)}else{let u=$({allowReserved:m.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Kt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Wr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Vt=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Y(o,["security"]);var i;for(let l of t){if(Wr(e,l.name))continue;let p=yield Bt(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),xt=t=>jt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:$t(t.querySerializer),url:t.url}),Ct=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=Me(t.headers,e.headers),r},Jr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},Me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Jr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},Z=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Ht=()=>({error:new Z,request:new Z,response:new Z}),Xr=$t({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Zr={"Content-Type":"application/json"},ee=(t={})=>n(y(n({},It),{headers:Zr,parseAs:"auto",querySerializer:Xr}),t);var vt=(t={})=>{let e=Ct(ee(),t),r=()=>n({},e),o=m=>(e=Ct(e,m),r()),i=Ht(),l=m=>f(null,null,function*(){var h,b;let u=y(n(n({},e),m),{fetch:(b=(h=m.fetch)!=null?h:e.fetch)!=null?b:globalThis.fetch,headers:Me(e.headers,m.headers),serializedBody:void 0});u.security&&(yield Vt(y(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=xt(u);return{opts:u,url:S}}),p=m=>f(null,null,function*(){var V;let{opts:u,url:S}=yield l(m),h=y(n({redirect:"follow"},u),{body:Tt(u)}),b=new Request(S,h);for(let E of i.request.fns)E&&(b=yield E(b,u));let K=u.fetch,O;try{O=yield K(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(V=u.parseAs==="auto"?Kt(O.headers.get("Content-Type")):u.parseAs)!=null?V:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let q=v!=null?v:G,k=q;for(let E of i.error.fns)E&&(k=yield E(q,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=m=>u=>p(y(n({},u),{method:m})),d=m=>u=>f(null,null,function*(){let{opts:S,url:h}=yield l(u);return zt(y(n({},S),{body:S.body,headers:S.headers,method:m,onRequest:(b,K)=>f(null,null,function*(){let O=new Request(b,K);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:Tt(S),url:h}))});return{buildUrl:xt,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var g=vt(ee({baseUrl:"https://api.matchi.com/v1"}));var Fe={};ue(Fe,{AuthorSchema:()=>eo,ChannelsSchema:()=>to,CommentListResponseSchema:()=>oo,CommentSchema:()=>ro,CommunityItemSchema:()=>io,CommunityListResponseSchema:()=>so,CreateCommentRequestSchema:()=>ao,CreatePostRequestSchema:()=>no,CreateSportProfileLevelRequestSchema:()=>po,CreateSportProfileRequestSchema:()=>lo,ExternalServiceSchema:()=>co,FacilityListSchema:()=>mo,FacilityMessagePayloadSchema:()=>yo,FacilityOfferConditionActivitiesSchema:()=>go,FacilityOfferConditionCourtsSchema:()=>bo,FacilityOfferConditionDateSchema:()=>Po,FacilityOfferConditionHoursinadvanceSchema:()=>So,FacilityOfferConditionSchema:()=>ho,FacilityOfferConditionTimeSchema:()=>Oo,FacilityOfferConditionWeekdaysSchema:()=>Eo,FacilityOfferListSchema:()=>Ro,FacilityOfferOrderSchema:()=>Uo,FacilityOfferSchema:()=>fo,FacilityPermissionSchema:()=>Io,FacilityPermissionsResponseSchema:()=>To,FacilityPunchCardDataSchema:()=>xo,FacilitySchema:()=>uo,FacilityValueCardDataSchema:()=>Co,GenderSchema:()=>vo,LinkTypeSchema:()=>_o,MatchBasePriceSchema:()=>Ao,MatchCourtSchema:()=>Go,MatchDetailSchema:()=>ko,MatchEventSchema:()=>No,MatchListSchema:()=>Lo,MatchOccasionDetailSchema:()=>qo,MatchOccasionSchema:()=>wo,MatchParticipantsSchema:()=>Mo,MatchPriceListEntrySchema:()=>Fo,MatchSchema:()=>Do,MatchStatusSchema:()=>zo,MatchUserPriceSchema:()=>jo,MemberListResponseSchema:()=>$o,MemberRelationSchema:()=>Ko,MemberSchema:()=>Bo,MembershipStatusSchema:()=>Vo,MetadataSchema:()=>Ho,NotificationPayloadSchema:()=>Yo,NotificationRequestBodySchema:()=>Wo,NotificationSchema:()=>Qo,NotificationsFilterSchema:()=>Jo,NotificationsPaginatedResponseSchema:()=>Xo,NotificationsSummarySchema:()=>Zo,OffsetPaginatedResultSetSchema:()=>ei,PaginationMetaSchema:()=>ti,ParticipantDetailSchema:()=>ri,ParticipantSummarySchema:()=>oi,PatchCommentRequestSchema:()=>ii,PatchPostRequestSchema:()=>si,PostLinkSchema:()=>ni,PostListResponseSchema:()=>pi,PostSchema:()=>ai,PostingPermissionSchema:()=>li,PreferenceSchema:()=>ci,PreferencesResponseSchema:()=>ui,RecommendationListSchema:()=>mi,RecommendationSchema:()=>di,RefundPolicySchema:()=>yi,RegisterDeviceRequestSchema:()=>fi,SourceSchema:()=>hi,SportAuthoritiesResponseSchema:()=>gi,SportAuthoritySchema:()=>bi,SportLevelSchema:()=>Pi,SportProfileAttributeSchema:()=>Oi,SportProfileLevelSchema:()=>Ei,SportProfileSchema:()=>Si,SportProfilesResponseSchema:()=>Ri,TopicSchema:()=>Ui,UpdatePreferencesRequestBodySchema:()=>Ii,UpdateSportProfileLevelRequestSchema:()=>Ti,UpdateUsersProfilesRequestSchema:()=>xi,UserParticipationStatusSchema:()=>Ci,UserProfileSchema:()=>vi,UserRelationSchema:()=>_i,UsersProfilesPaginatedResponseSchema:()=>Di,VisibilitySchema:()=>Ai,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Gi,pkgOpenapiSharedErrorSchema:()=>ki,pkgOpenapiSharedErrorsSchema:()=>Ni,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Li,pkgOpenapiSharedProblemDetailsSchema:()=>wi});var eo={properties:{display_name:{type:"string"},facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["admin","member"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},to={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},ro={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},oo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},io={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},so={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ao={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},no={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},po={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},lo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},co={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},uo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},mo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},yo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},fo={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},ho={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},go={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},bo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Po={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},So={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Oo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Eo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Ro={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Uo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Io={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},To={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},xo={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Co={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},vo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},_o={enum:["activity","match"],type:"string"},Do={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},Ao={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Go={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ko={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
8
8
  `},No={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},Lo={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},wo={properties:{automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{format:"int32",nullable:!0,type:"integer"},level_min:{format:"int32",nullable:!0,type:"integer"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only"],type:"object"},qo={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event.
9
- `},Mo={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},Fo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},zo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},jo={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},Bo={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},$o={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ko={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},Vo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ho={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Qo={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Yo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Wo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Jo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Xo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Zo={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},ei={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},ti={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ri={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},oi={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ii={properties:{is_read:{type:"boolean"}},type:"object"},si={properties:{is_read:{type:"boolean"}},type:"object"},ai={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ni={properties:{link_reference_id:{format:"uuid",type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},pi={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},li={enum:["admins","members"],type:"string"},ci={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ui={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},di={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
9
+ `},Mo={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},Fo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},zo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},jo={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},Bo={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},$o={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ko={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},Vo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ho={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Qo={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Yo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Wo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Jo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Xo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Zo={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},ei={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},ti={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ri={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},oi={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ii={properties:{is_read:{type:"boolean"}},type:"object"},si={properties:{is_read:{type:"boolean"}},type:"object"},ai={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},ni={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},pi={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},li={enum:["admins","members"],type:"string"},ci={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ui={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},di={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
10
10
  `,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
11
11
  `,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
12
12
  `,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
@@ -6,7 +6,7 @@ var Rt=Object.defineProperty,xr=Object.defineProperties;var Cr=Object.getOwnProp
6
6
  `),ne=[],St;for(let T of Tr)if(T.startsWith("data:"))ne.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))St=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let Le=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(Le)||(G=Le)}let M,Ot=!1;if(ne.length){let T=ne.join(`
7
7
  `);try{M=JSON.parse(T),Ot=!0}catch(Le){M=T}}Ot&&(i&&(yield new L(i(M))),o&&(M=yield new L(o(M)))),r==null||r({data:M,event:St,id:b,retry:G}),ne.length&&(yield M)}}}finally{q.removeEventListener("abort",gt),Ne.releaseLock()}break}catch(U){if(e==null||e(U),p!==void 0&&v>=p)break;let ae=Math.min(G*2**(v-1),c!=null?c:3e4);yield new L($(ae))}}})}()}};var zr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},jr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Br=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ue=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let c=(t?i:i.map(d=>encodeURIComponent(d))).join(jr(o));switch(o){case"label":return`.${c}`;case"matrix":return`;${r}=${c}`;case"simple":return c;default:return`${r}=${c}`}}let l=zr(o),p=i.map(c=>o==="label"||o==="simple"?t?c:encodeURIComponent(c):B({allowReserved:t,name:r,value:c})).join(l);return o==="label"||o==="matrix"?l+p:p},B=({allowReserved:t,name:e,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?r:encodeURIComponent(r)}`},de=({allowReserved:t,explode:e,name:r,style:o,value:i,valueOnly:l})=>{if(i instanceof Date)return l?i.toISOString():`${r}=${i.toISOString()}`;if(o!=="deepObject"&&!e){let d=[];Object.entries(i).forEach(([u,S])=>{d=[...d,u,t?S:encodeURIComponent(S)]});let m=d.join(",");switch(o){case"form":return`${r}=${m}`;case"label":return`.${m}`;case"matrix":return`;${r}=${m}`;default:return m}}let p=Br(o),c=Object.entries(i).map(([d,m])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:m})).join(p);return o==="label"||o==="matrix"?p+c:c};var $r=/\{[^{}]+\}/g,Kr=({path:t,url:e})=>{let r=e,o=e.match($r);if(o)for(let i of o){let l=!1,p=i.substring(1,i.length-1),c="simple";p.endsWith("*")&&(l=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),c="label"):p.startsWith(";")&&(p=p.substring(1),c="matrix");let d=t[p];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:p,style:c,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:p,style:c,value:d,valueOnly:!0}));continue}if(c==="matrix"){r=r.replace(i,`;${B({name:p,value:d})}`);continue}let m=encodeURIComponent(c==="label"?`.${d}`:d);r=r.replace(i,m)}return r},jt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,p=(t!=null?t:"")+l;e&&(p=Kr({path:e,url:p}));let c=r?o(r):"";return c.startsWith("?")&&(c=c.substring(1)),c&&(p+=`?${c}`),p};function dt(t){let e=t.body!==void 0;if(e&&t.bodySerializer)return"serializedBody"in t?t.serializedBody!==void 0&&t.serializedBody!==""?t.serializedBody:null:t.body!==""?t.body:null;if(e)return t.body}var Bt=(t,e)=>f(null,null,function*(){let r=typeof e=="function"?yield e(t):e;if(r)return t.scheme==="bearer"?`Bearer ${r}`:t.scheme==="basic"?`Basic ${btoa(r)}`:r});var $t=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let p=[];if(l&&typeof l=="object")for(let c in l){let d=l[c];if(d==null)continue;let m=t[c]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:m.allowReserved,explode:!0,name:c,style:"form",value:d},m.array));u&&p.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:m.allowReserved,explode:!0,name:c,style:"deepObject",value:d},m.object));u&&p.push(u)}else{let u=B({allowReserved:m.allowReserved,name:c,value:d});u&&p.push(u)}}return p.join("&")}},Kt=t=>{var r;if(!t)return"stream";let e=(r=t.split(";")[0])==null?void 0:r.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>e.startsWith(o)))return"blob";if(e.startsWith("text/"))return"text"}},Vr=(t,e)=>{var r,o;return e?!!(t.headers.has(e)||(r=t.query)!=null&&r[e]||(o=t.headers.get("Cookie"))!=null&&o.includes(`${e}=`)):!1},Vt=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Vr(e,l.name))continue;let p=yield Bt(l,e.auth);if(!p)continue;let c=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[c]=p;break;case"cookie":e.headers.append("Cookie",`${c}=${p}`);break;default:e.headers.set(c,p);break}}}),mt=t=>jt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:$t(t.querySerializer),url:t.url}),yt=(t,e)=>{var o;let r=n(n({},t),e);return(o=r.baseUrl)!=null&&o.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=me(t.headers,e.headers),r},Hr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},me=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Hr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let p of l)e.append(i,p);else l!==void 0&&e.set(i,typeof l=="object"?JSON.stringify(l):l)}return e},X=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(e){let r=this.getInterceptorIndex(e);this.fns[r]&&(this.fns[r]=null)}exists(e){let r=this.getInterceptorIndex(e);return!!this.fns[r]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,r){let o=this.getInterceptorIndex(e);return this.fns[o]?(this.fns[o]=r,e):!1}use(e){return this.fns.push(e),this.fns.length-1}},Ht=()=>({error:new X,request:new X,response:new X}),Qr=$t({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Yr={"Content-Type":"application/json"},Z=(t={})=>n(y(n({},ut),{headers:Yr,parseAs:"auto",querySerializer:Qr}),t);var ft=(t={})=>{let e=yt(Z(),t),r=()=>n({},e),o=m=>(e=yt(e,m),r()),i=Ht(),l=m=>f(null,null,function*(){var h,b;let u=y(n(n({},e),m),{fetch:(b=(h=m.fetch)!=null?h:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,m.headers),serializedBody:void 0});u.security&&(yield Vt(y(n({},u),{security:u.security}))),u.requestValidator&&(yield u.requestValidator(u)),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");let S=mt(u);return{opts:u,url:S}}),p=m=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(m),h=y(n({redirect:"follow"},u),{body:dt(u)}),b=new Request(S,h);for(let E of i.request.fns)E&&(b=yield E(b,u));let $=u.fetch,O;try{O=yield $(b)}catch(E){let I=E;for(let U of i.error.fns)U&&(I=yield U(E,void 0,b,u));if(I=I||{},u.throwOnError)throw I;return u.responseStyle==="data"?void 0:{error:I,request:b,response:void 0}}for(let E of i.response.fns)E&&(O=yield E(O,b,u));let A={request:b,response:O};if(O.ok){let E=(K=u.parseAs==="auto"?Kt(O.headers.get("Content-Type")):u.parseAs)!=null?K:"json";if(O.status===204||O.headers.get("Content-Length")==="0"){let U;switch(E){case"arrayBuffer":case"blob":case"text":U=yield O[E]();break;case"formData":U=new FormData;break;case"stream":U=O.body;break;default:U={};break}return u.responseStyle==="data"?U:n({data:U},A)}let I;switch(E){case"arrayBuffer":case"blob":case"formData":case"text":I=yield O[E]();break;case"json":{let U=yield O.text();I=U?JSON.parse(U):{};break}case"stream":return u.responseStyle==="data"?O.body:n({data:O.body},A)}return E==="json"&&(u.responseValidator&&(yield u.responseValidator(I)),u.responseTransformer&&(I=yield u.responseTransformer(I))),u.responseStyle==="data"?I:n({data:I},A)}let G=yield O.text(),v;try{v=JSON.parse(G)}catch(E){}let q=v!=null?v:G,k=q;for(let E of i.error.fns)E&&(k=yield E(q,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),c=m=>u=>p(y(n({},u),{method:m})),d=m=>u=>f(null,null,function*(){let{opts:S,url:h}=yield l(u);return zt(y(n({},S),{body:S.body,headers:S.headers,method:m,onRequest:(b,$)=>f(null,null,function*(){let O=new Request(b,$);for(let A of i.request.fns)A&&(O=yield A(O,S));return O}),serializedBody:dt(S),url:h}))});return{buildUrl:mt,connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),getConfig:r,head:c("HEAD"),interceptors:i,options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),request:p,setConfig:o,sse:{connect:d("CONNECT"),delete:d("DELETE"),get:d("GET"),head:d("HEAD"),options:d("OPTIONS"),patch:d("PATCH"),post:d("POST"),put:d("PUT"),trace:d("TRACE")},trace:c("TRACE")}};var g=ft(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};we(ye,{AuthorSchema:()=>Wr,ChannelsSchema:()=>Jr,CommentListResponseSchema:()=>Zr,CommentSchema:()=>Xr,CommunityItemSchema:()=>eo,CommunityListResponseSchema:()=>to,CreateCommentRequestSchema:()=>ro,CreatePostRequestSchema:()=>oo,CreateSportProfileLevelRequestSchema:()=>io,CreateSportProfileRequestSchema:()=>so,ExternalServiceSchema:()=>ao,FacilityListSchema:()=>po,FacilityMessagePayloadSchema:()=>lo,FacilityOfferConditionActivitiesSchema:()=>mo,FacilityOfferConditionCourtsSchema:()=>yo,FacilityOfferConditionDateSchema:()=>fo,FacilityOfferConditionHoursinadvanceSchema:()=>ho,FacilityOfferConditionSchema:()=>uo,FacilityOfferConditionTimeSchema:()=>go,FacilityOfferConditionWeekdaysSchema:()=>bo,FacilityOfferListSchema:()=>Po,FacilityOfferOrderSchema:()=>So,FacilityOfferSchema:()=>co,FacilityPermissionSchema:()=>Oo,FacilityPermissionsResponseSchema:()=>Eo,FacilityPunchCardDataSchema:()=>Ro,FacilitySchema:()=>no,FacilityValueCardDataSchema:()=>Uo,GenderSchema:()=>Io,LinkTypeSchema:()=>To,MatchBasePriceSchema:()=>Co,MatchCourtSchema:()=>vo,MatchDetailSchema:()=>_o,MatchEventSchema:()=>Do,MatchListSchema:()=>Ao,MatchOccasionDetailSchema:()=>ko,MatchOccasionSchema:()=>Go,MatchParticipantsSchema:()=>No,MatchPriceListEntrySchema:()=>Lo,MatchSchema:()=>xo,MatchStatusSchema:()=>wo,MatchUserPriceSchema:()=>qo,MemberListResponseSchema:()=>Fo,MemberRelationSchema:()=>zo,MemberSchema:()=>Mo,MembershipStatusSchema:()=>jo,MetadataSchema:()=>Bo,NotificationPayloadSchema:()=>Ko,NotificationRequestBodySchema:()=>Vo,NotificationSchema:()=>$o,NotificationsFilterSchema:()=>Ho,NotificationsPaginatedResponseSchema:()=>Qo,NotificationsSummarySchema:()=>Yo,OffsetPaginatedResultSetSchema:()=>Wo,PaginationMetaSchema:()=>Jo,ParticipantDetailSchema:()=>Xo,ParticipantSummarySchema:()=>Zo,PatchCommentRequestSchema:()=>ei,PatchPostRequestSchema:()=>ti,PostLinkSchema:()=>oi,PostListResponseSchema:()=>ii,PostSchema:()=>ri,PostingPermissionSchema:()=>si,PreferenceSchema:()=>ai,PreferencesResponseSchema:()=>ni,RecommendationListSchema:()=>li,RecommendationSchema:()=>pi,RefundPolicySchema:()=>ci,RegisterDeviceRequestSchema:()=>ui,SourceSchema:()=>di,SportAuthoritiesResponseSchema:()=>mi,SportAuthoritySchema:()=>yi,SportLevelSchema:()=>fi,SportProfileAttributeSchema:()=>gi,SportProfileLevelSchema:()=>bi,SportProfileSchema:()=>hi,SportProfilesResponseSchema:()=>Pi,TopicSchema:()=>Si,UpdatePreferencesRequestBodySchema:()=>Oi,UpdateSportProfileLevelRequestSchema:()=>Ei,UpdateUsersProfilesRequestSchema:()=>Ri,UserParticipationStatusSchema:()=>Ui,UserProfileSchema:()=>Ii,UserRelationSchema:()=>Ti,UsersProfilesPaginatedResponseSchema:()=>xi,VisibilitySchema:()=>Ci,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>vi,pkgOpenapiSharedErrorSchema:()=>_i,pkgOpenapiSharedErrorsSchema:()=>Di,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Ai,pkgOpenapiSharedProblemDetailsSchema:()=>Gi});var Wr={properties:{display_name:{type:"string"},facility_id:{type:"integer"},first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},type:{enum:["admin","member"],type:"string"},user_id:{format:"uuid",type:"string"}},required:["type"],type:"object"},Jr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Xr={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},Zr={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},eo={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},to={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ro={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},oo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},io={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},so={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},ao={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},no={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},po={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},lo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},co={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},uo={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},mo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},yo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},fo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},ho={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},go={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},bo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Po={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},So={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Oo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Eo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Ro={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Uo={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Io={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},To={enum:["activity","match"],type:"string"},xo={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},Co={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},vo={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},_o={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
8
8
  `},Do={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},Ao={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Go={properties:{automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{format:"int32",nullable:!0,type:"integer"},level_min:{format:"int32",nullable:!0,type:"integer"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only"],type:"object"},ko={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event.
9
- `},No={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},Lo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},wo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},qo={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},Mo={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Fo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},zo={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},jo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Bo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},$o={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Ko={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Vo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ho={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Qo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Yo={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Wo={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Jo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Xo={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},Zo={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ei={properties:{is_read:{type:"boolean"}},type:"object"},ti={properties:{is_read:{type:"boolean"}},type:"object"},ri={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},oi={properties:{link_reference_id:{format:"uuid",type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},ii={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},si={enum:["admins","members"],type:"string"},ai={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ni={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},pi={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
9
+ `},No={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},Lo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},wo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},qo={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},Mo={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},Fo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},zo={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},jo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Bo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},$o={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Ko={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Vo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ho={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Qo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Yo={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Wo={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Jo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Xo={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},Zo={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ei={properties:{is_read:{type:"boolean"}},type:"object"},ti={properties:{is_read:{type:"boolean"}},type:"object"},ri={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},oi={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},ii={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},si={enum:["admins","members"],type:"string"},ai={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},ni={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},pi={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
10
10
  `,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
11
11
  `,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
12
12
  `,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchi/api",
3
- "version": "0.20260427.1",
3
+ "version": "0.20260428.1",
4
4
  "main": "dist/main/index.js",
5
5
  "module": "dist/main/index.mjs",
6
6
  "devDependencies": {