@matchi/api 0.20260505.1 → 0.20260508.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.
@@ -3549,13 +3549,8 @@ type ClientOptions = {
3549
3549
  baseUrl: 'https://api.matchi.com/v1' | (string & {});
3550
3550
  };
3551
3551
  type Author = {
3552
- facility_id?: number;
3553
- first_name?: string;
3554
- last_name?: string;
3555
- profile_image_url?: string;
3556
- relation_status?: MemberRelation;
3557
3552
  type: 'ADMIN' | 'MEMBER';
3558
- user_id?: string;
3553
+ user: Member;
3559
3554
  };
3560
3555
  type Channels = {
3561
3556
  inapp: boolean;
@@ -3853,7 +3848,7 @@ type Member = {
3853
3848
  first_name: string;
3854
3849
  last_name: string;
3855
3850
  profile_image_url?: string;
3856
- relation_status: MemberRelation;
3851
+ relation_status?: MemberRelation;
3857
3852
  user_id: string;
3858
3853
  };
3859
3854
  type MemberListResponse = {
@@ -5483,31 +5478,15 @@ declare const client: Client;
5483
5478
 
5484
5479
  declare const AuthorSchema: {
5485
5480
  readonly properties: {
5486
- readonly facility_id: {
5487
- readonly type: "integer";
5488
- };
5489
- readonly first_name: {
5490
- readonly type: "string";
5491
- };
5492
- readonly last_name: {
5493
- readonly type: "string";
5494
- };
5495
- readonly profile_image_url: {
5496
- readonly type: "string";
5497
- };
5498
- readonly relation_status: {
5499
- readonly $ref: "#/components/schemas/MemberRelation";
5500
- };
5501
5481
  readonly type: {
5502
5482
  readonly enum: readonly ["ADMIN", "MEMBER"];
5503
5483
  readonly type: "string";
5504
5484
  };
5505
- readonly user_id: {
5506
- readonly format: "uuid";
5507
- readonly type: "string";
5485
+ readonly user: {
5486
+ readonly $ref: "#/components/schemas/Member";
5508
5487
  };
5509
5488
  };
5510
- readonly required: readonly ["type"];
5489
+ readonly required: readonly ["type", "user"];
5511
5490
  readonly type: "object";
5512
5491
  };
5513
5492
  declare const ChannelsSchema: {
@@ -6426,7 +6405,7 @@ declare const MemberSchema: {
6426
6405
  readonly type: "string";
6427
6406
  };
6428
6407
  };
6429
- readonly required: readonly ["user_id", "first_name", "last_name", "relation_status"];
6408
+ readonly required: readonly ["user_id", "first_name", "last_name"];
6430
6409
  readonly type: "object";
6431
6410
  };
6432
6411
  declare const MemberListResponseSchema: {
@@ -3549,13 +3549,8 @@ type ClientOptions = {
3549
3549
  baseUrl: 'https://api.matchi.com/v1' | (string & {});
3550
3550
  };
3551
3551
  type Author = {
3552
- facility_id?: number;
3553
- first_name?: string;
3554
- last_name?: string;
3555
- profile_image_url?: string;
3556
- relation_status?: MemberRelation;
3557
3552
  type: 'ADMIN' | 'MEMBER';
3558
- user_id?: string;
3553
+ user: Member;
3559
3554
  };
3560
3555
  type Channels = {
3561
3556
  inapp: boolean;
@@ -3853,7 +3848,7 @@ type Member = {
3853
3848
  first_name: string;
3854
3849
  last_name: string;
3855
3850
  profile_image_url?: string;
3856
- relation_status: MemberRelation;
3851
+ relation_status?: MemberRelation;
3857
3852
  user_id: string;
3858
3853
  };
3859
3854
  type MemberListResponse = {
@@ -5483,31 +5478,15 @@ declare const client: Client;
5483
5478
 
5484
5479
  declare const AuthorSchema: {
5485
5480
  readonly properties: {
5486
- readonly facility_id: {
5487
- readonly type: "integer";
5488
- };
5489
- readonly first_name: {
5490
- readonly type: "string";
5491
- };
5492
- readonly last_name: {
5493
- readonly type: "string";
5494
- };
5495
- readonly profile_image_url: {
5496
- readonly type: "string";
5497
- };
5498
- readonly relation_status: {
5499
- readonly $ref: "#/components/schemas/MemberRelation";
5500
- };
5501
5481
  readonly type: {
5502
5482
  readonly enum: readonly ["ADMIN", "MEMBER"];
5503
5483
  readonly type: "string";
5504
5484
  };
5505
- readonly user_id: {
5506
- readonly format: "uuid";
5507
- readonly type: "string";
5485
+ readonly user: {
5486
+ readonly $ref: "#/components/schemas/Member";
5508
5487
  };
5509
5488
  };
5510
- readonly required: readonly ["type"];
5489
+ readonly required: readonly ["type", "user"];
5511
5490
  readonly type: "object";
5512
5491
  };
5513
5492
  declare const ChannelsSchema: {
@@ -6426,7 +6405,7 @@ declare const MemberSchema: {
6426
6405
  readonly type: "string";
6427
6406
  };
6428
6407
  };
6429
- readonly required: readonly ["user_id", "first_name", "last_name", "relation_status"];
6408
+ readonly required: readonly ["user_id", "first_name", "last_name"];
6430
6409
  readonly type: "object";
6431
6410
  };
6432
6411
  declare const MemberListResponseSchema: {
@@ -4,9 +4,9 @@
4
4
 
5
5
  `);Q=(E=Gt.pop())!=null?E:"";for(let Tr of Gt){let xr=Tr.split(`
6
6
  `),pe=[],kt;for(let T of xr)if(T.startsWith("data:"))pe.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))kt=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))b=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let ct=Number.parseInt(T.replace(/^retry:\s*/,""),10);Number.isNaN(ct)||(G=ct)}let q,Nt=!1;if(pe.length){let T=pe.join(`
7
- `);try{q=JSON.parse(T),Nt=!0}catch(ct){q=T}}Nt&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:kt,id:b,retry:G}),pe.length&&(yield q)}}}finally{M.removeEventListener("abort",Dt),lt.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ne=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w(K(ne))}}})}()}};var Vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Hr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Le=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(d=>encodeURIComponent(d))).join(Hr(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Vr(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):$({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},$=({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)}`},Me=({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 y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=Qr(o),p=Object.entries(i).map(([d,y])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Yr=/\{[^{}]+\}/g,Wr=({path:t,url:e})=>{let r=e,o=e.match(Yr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,Le({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,Me({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${$({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Wr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function xt(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 $t=(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 Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Y(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=Le(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=Me(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=$({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Vt=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"}},Jr=(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},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Y(o,["security"]);var i;for(let l of t){if(Jr(e,l.name))continue;let c=yield $t(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),Ct=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),vt=(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=qe(t.headers,e.headers),r},Xr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},qe=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Xr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);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}},Qt=()=>({error:new Z,request:new Z,response:new Z}),Zr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),eo={"Content-Type":"application/json"},ee=(t={})=>n(m(n({},Tt),{headers:eo,parseAs:"auto",querySerializer:Zr}),t);var _t=(t={})=>{let e=vt(ee(),t),r=()=>n({},e),o=y=>(e=vt(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:qe(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(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=Ct(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var V;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:xt(u)}),b=new Request(S,g);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"?Vt(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 M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,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:xt(S),url:g}))});return{buildUrl:Ct,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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:p("TRACE")}};var h=_t(ee({baseUrl:"https://api.matchi.com/v1"}));var Fe={};ue(Fe,{AuthorSchema:()=>to,ChannelsSchema:()=>ro,CommentListResponseSchema:()=>io,CommentSchema:()=>oo,CommunityItemSchema:()=>so,CommunityListResponseSchema:()=>ao,CreateCommentRequestSchema:()=>no,CreateMatchParticipationRequestSchema:()=>po,CreatePostRequestSchema:()=>lo,CreateSportProfileLevelRequestSchema:()=>co,CreateSportProfileRequestSchema:()=>uo,ExternalServiceSchema:()=>mo,FacilityListSchema:()=>fo,FacilityMessagePayloadSchema:()=>ho,FacilityOfferConditionActivitiesSchema:()=>Po,FacilityOfferConditionCourtsSchema:()=>So,FacilityOfferConditionDateSchema:()=>Oo,FacilityOfferConditionHoursinadvanceSchema:()=>Eo,FacilityOfferConditionSchema:()=>bo,FacilityOfferConditionTimeSchema:()=>Ro,FacilityOfferConditionWeekdaysSchema:()=>Uo,FacilityOfferListSchema:()=>Io,FacilityOfferOrderSchema:()=>To,FacilityOfferSchema:()=>go,FacilityPermissionSchema:()=>xo,FacilityPermissionsResponseSchema:()=>Co,FacilityPunchCardDataSchema:()=>vo,FacilitySchema:()=>yo,FacilityValueCardDataSchema:()=>_o,GenderSchema:()=>Do,LinkTypeSchema:()=>Ao,MatchBasePriceSchema:()=>ko,MatchCourtSchema:()=>No,MatchDetailSchema:()=>wo,MatchEventSchema:()=>Lo,MatchListSchema:()=>Mo,MatchOccasionDetailSchema:()=>Fo,MatchOccasionSchema:()=>qo,MatchParticipantsSchema:()=>zo,MatchPriceListEntrySchema:()=>jo,MatchSchema:()=>Go,MatchStatusSchema:()=>Bo,MatchUserPriceSchema:()=>$o,MemberListResponseSchema:()=>Vo,MemberRelationSchema:()=>Ho,MemberSchema:()=>Ko,MembershipStatusSchema:()=>Qo,MetadataSchema:()=>Yo,NotificationPayloadSchema:()=>Jo,NotificationRequestBodySchema:()=>Xo,NotificationSchema:()=>Wo,NotificationsFilterSchema:()=>Zo,NotificationsPaginatedResponseSchema:()=>ei,NotificationsSummarySchema:()=>ti,OffsetPaginatedResultSetSchema:()=>ri,PaginationMetaSchema:()=>oi,ParticipantDetailSchema:()=>ii,ParticipantSummarySchema:()=>si,PatchCommentRequestSchema:()=>ai,PatchPostRequestSchema:()=>ni,PaymentCommandSchema:()=>pi,PaymentDetailsSchema:()=>li,PostLinkSchema:()=>ui,PostListResponseSchema:()=>di,PostSchema:()=>ci,PostingPermissionSchema:()=>mi,PreferenceSchema:()=>yi,PreferencesResponseSchema:()=>fi,RecommendationListSchema:()=>gi,RecommendationSchema:()=>hi,RefundPolicySchema:()=>bi,RegisterDeviceRequestSchema:()=>Pi,SourceSchema:()=>Si,SportAuthoritiesResponseSchema:()=>Oi,SportAuthoritySchema:()=>Ei,SportLevelSchema:()=>Ri,SportProfileAttributeSchema:()=>Ii,SportProfileLevelSchema:()=>Ti,SportProfileSchema:()=>Ui,SportProfilesResponseSchema:()=>xi,TopicSchema:()=>Ci,UpdatePreferencesRequestBodySchema:()=>vi,UpdateSportProfileLevelRequestSchema:()=>_i,UpdateUsersProfilesRequestSchema:()=>Di,UserParticipationStatusSchema:()=>Ai,UserProfileSchema:()=>Gi,UserRelationSchema:()=>ki,UsersProfilesPaginatedResponseSchema:()=>Ni,VisibilitySchema:()=>wi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Li,pkgOpenapiSharedErrorSchema:()=>Mi,pkgOpenapiSharedErrorsSchema:()=>qi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Fi,pkgOpenapiSharedProblemDetailsSchema:()=>zi});var to={properties:{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"},ro={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},oo={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"},io={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},so={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"},ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},no={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},po={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},co={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},uo={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"},mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},yo={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"},fo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ho={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},go={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"},bo={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"},Po={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"},So={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Oo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Eo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ro={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Uo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Io={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},To={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"},xo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Co={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},vo={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"},_o={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"},Do={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Ao={enum:["ACTIVITY","MATCH"],type:"string"},Go={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"},ko={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},No={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},wo={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.
7
+ `);try{q=JSON.parse(T),Nt=!0}catch(ct){q=T}}Nt&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:kt,id:b,retry:G}),pe.length&&(yield q)}}}finally{M.removeEventListener("abort",Dt),lt.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ne=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w(K(ne))}}})}()}};var Vr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Hr=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Le=({allowReserved:t,explode:e,name:r,style:o,value:i})=>{if(!e){let p=(t?i:i.map(d=>encodeURIComponent(d))).join(Hr(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=Vr(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):$({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},$=({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)}`},Me=({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 y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=Qr(o),p=Object.entries(i).map(([d,y])=>$({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Yr=/\{[^{}]+\}/g,Wr=({path:t,url:e})=>{let r=e,o=e.match(Yr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,Le({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,Me({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${$({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Wr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function xt(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 $t=(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 Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Y(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=Le(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=Me(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=$({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Vt=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"}},Jr=(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},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Y(o,["security"]);var i;for(let l of t){if(Jr(e,l.name))continue;let c=yield $t(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),Ct=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),vt=(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=qe(t.headers,e.headers),r},Xr=t=>{let e=[];return t.forEach((r,o)=>{e.push([o,r])}),e},qe=(...t)=>{let e=new Headers;for(let r of t){if(!r)continue;let o=r instanceof Headers?Xr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);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}},Qt=()=>({error:new Z,request:new Z,response:new Z}),Zr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),eo={"Content-Type":"application/json"},ee=(t={})=>n(m(n({},Tt),{headers:eo,parseAs:"auto",querySerializer:Zr}),t);var _t=(t={})=>{let e=vt(ee(),t),r=()=>n({},e),o=y=>(e=vt(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:qe(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(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=Ct(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var V;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:xt(u)}),b=new Request(S,g);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"?Vt(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 M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,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:xt(S),url:g}))});return{buildUrl:Ct,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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:p("TRACE")}};var h=_t(ee({baseUrl:"https://api.matchi.com/v1"}));var Fe={};ue(Fe,{AuthorSchema:()=>to,ChannelsSchema:()=>ro,CommentListResponseSchema:()=>io,CommentSchema:()=>oo,CommunityItemSchema:()=>so,CommunityListResponseSchema:()=>ao,CreateCommentRequestSchema:()=>no,CreateMatchParticipationRequestSchema:()=>po,CreatePostRequestSchema:()=>lo,CreateSportProfileLevelRequestSchema:()=>co,CreateSportProfileRequestSchema:()=>uo,ExternalServiceSchema:()=>mo,FacilityListSchema:()=>fo,FacilityMessagePayloadSchema:()=>ho,FacilityOfferConditionActivitiesSchema:()=>Po,FacilityOfferConditionCourtsSchema:()=>So,FacilityOfferConditionDateSchema:()=>Oo,FacilityOfferConditionHoursinadvanceSchema:()=>Eo,FacilityOfferConditionSchema:()=>bo,FacilityOfferConditionTimeSchema:()=>Ro,FacilityOfferConditionWeekdaysSchema:()=>Uo,FacilityOfferListSchema:()=>Io,FacilityOfferOrderSchema:()=>To,FacilityOfferSchema:()=>go,FacilityPermissionSchema:()=>xo,FacilityPermissionsResponseSchema:()=>Co,FacilityPunchCardDataSchema:()=>vo,FacilitySchema:()=>yo,FacilityValueCardDataSchema:()=>_o,GenderSchema:()=>Do,LinkTypeSchema:()=>Ao,MatchBasePriceSchema:()=>ko,MatchCourtSchema:()=>No,MatchDetailSchema:()=>wo,MatchEventSchema:()=>Lo,MatchListSchema:()=>Mo,MatchOccasionDetailSchema:()=>Fo,MatchOccasionSchema:()=>qo,MatchParticipantsSchema:()=>zo,MatchPriceListEntrySchema:()=>jo,MatchSchema:()=>Go,MatchStatusSchema:()=>Bo,MatchUserPriceSchema:()=>$o,MemberListResponseSchema:()=>Vo,MemberRelationSchema:()=>Ho,MemberSchema:()=>Ko,MembershipStatusSchema:()=>Qo,MetadataSchema:()=>Yo,NotificationPayloadSchema:()=>Jo,NotificationRequestBodySchema:()=>Xo,NotificationSchema:()=>Wo,NotificationsFilterSchema:()=>Zo,NotificationsPaginatedResponseSchema:()=>ei,NotificationsSummarySchema:()=>ti,OffsetPaginatedResultSetSchema:()=>ri,PaginationMetaSchema:()=>oi,ParticipantDetailSchema:()=>ii,ParticipantSummarySchema:()=>si,PatchCommentRequestSchema:()=>ai,PatchPostRequestSchema:()=>ni,PaymentCommandSchema:()=>pi,PaymentDetailsSchema:()=>li,PostLinkSchema:()=>ui,PostListResponseSchema:()=>di,PostSchema:()=>ci,PostingPermissionSchema:()=>mi,PreferenceSchema:()=>yi,PreferencesResponseSchema:()=>fi,RecommendationListSchema:()=>gi,RecommendationSchema:()=>hi,RefundPolicySchema:()=>bi,RegisterDeviceRequestSchema:()=>Pi,SourceSchema:()=>Si,SportAuthoritiesResponseSchema:()=>Oi,SportAuthoritySchema:()=>Ei,SportLevelSchema:()=>Ri,SportProfileAttributeSchema:()=>Ii,SportProfileLevelSchema:()=>Ti,SportProfileSchema:()=>Ui,SportProfilesResponseSchema:()=>xi,TopicSchema:()=>Ci,UpdatePreferencesRequestBodySchema:()=>vi,UpdateSportProfileLevelRequestSchema:()=>_i,UpdateUsersProfilesRequestSchema:()=>Di,UserParticipationStatusSchema:()=>Ai,UserProfileSchema:()=>Gi,UserRelationSchema:()=>ki,UsersProfilesPaginatedResponseSchema:()=>Ni,VisibilitySchema:()=>wi,pkgOpenapiSharedCursorPaginatedResultSetSchema:()=>Li,pkgOpenapiSharedErrorSchema:()=>Mi,pkgOpenapiSharedErrorsSchema:()=>qi,pkgOpenapiSharedOffsetPaginatedResultSetSchema:()=>Fi,pkgOpenapiSharedProblemDetailsSchema:()=>zi});var to={properties:{type:{enum:["ADMIN","MEMBER"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type","user"],type:"object"},ro={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},oo={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"},io={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},so={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"},ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},no={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},po={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},co={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},uo={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"},mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},yo={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"},fo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ho={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},go={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"},bo={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"},Po={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"},So={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Oo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Eo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ro={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Uo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Io={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},To={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"},xo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Co={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},vo={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"},_o={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"},Do={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Ao={enum:["ACTIVITY","MATCH"],type:"string"},Go={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"},ko={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},No={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},wo={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
  `},Lo={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},Mo={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},qo={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"},Fo={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
- `},zo={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"},jo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Bo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},$o={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"},Ko={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"},Vo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ho={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"},Qo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Yo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Wo={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"},Jo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Xo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Zo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},ti={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"},ri={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"},oi={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ii={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."},si={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"},ai={properties:{is_read:{type:"boolean"}},type:"object"},ni={properties:{is_read:{type:"boolean"}},type:"object"},pi={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},li={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ci={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"},ui={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},di={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},mi={enum:["ADMINS","MEMBERS"],type:"string"},yi={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"},fi={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},hi={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
9
+ `},zo={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"},jo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},Bo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},$o={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"},Ko={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"],type:"object"},Vo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ho={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"},Qo={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Yo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Wo={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"},Jo={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Xo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Zo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},ti={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"},ri={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"},oi={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ii={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."},si={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"},ai={properties:{is_read:{type:"boolean"}},type:"object"},ni={properties:{is_read:{type:"boolean"}},type:"object"},pi={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},li={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ci={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"},ui={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},di={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},mi={enum:["ADMINS","MEMBERS"],type:"string"},yi={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"},fi={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},hi={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.
@@ -4,9 +4,9 @@ var Ut=Object.defineProperty,Cr=Object.defineProperties;var vr=Object.getOwnProp
4
4
 
5
5
  `);H=(E=St.pop())!=null?E:"";for(let Tr of St){let xr=Tr.split(`
6
6
  `),ne=[],Ot;for(let T of xr)if(T.startsWith("data:"))ne.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))Ot=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 q,Et=!1;if(ne.length){let T=ne.join(`
7
- `);try{q=JSON.parse(T),Et=!0}catch(Le){q=T}}Et&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Ot,id:b,retry:G}),ne.length&&(yield q)}}}finally{M.removeEventListener("abort",bt),we.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ae=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w($(ae))}}})}()}};var jr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$r=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 p=(t?i:i.map(d=>encodeURIComponent(d))).join(Br(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=jr(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):B({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},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 y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=$r(o),p=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Kr=/\{[^{}]+\}/g,Vr=({path:t,url:e})=>{let r=e,o=e.match(Kr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${B({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Vr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function mt(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 $t=(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 Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=B({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Vt=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"}},Hr=(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},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Hr(e,l.name))continue;let c=yield $t(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),yt=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),ft=(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},Qr=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?Qr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);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}},Qt=()=>({error:new X,request:new X,response:new X}),Yr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Wr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},dt),{headers:Wr,parseAs:"auto",querySerializer:Yr}),t);var ht=(t={})=>{let e=ft(Z(),t),r=()=>n({},e),o=y=>(e=ft(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(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=yt(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:mt(u)}),b=new Request(S,g);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"?Vt(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 M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,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:mt(S),url:g}))});return{buildUrl:yt,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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:p("TRACE")}};var h=ht(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};Me(ye,{AuthorSchema:()=>Jr,ChannelsSchema:()=>Xr,CommentListResponseSchema:()=>eo,CommentSchema:()=>Zr,CommunityItemSchema:()=>to,CommunityListResponseSchema:()=>ro,CreateCommentRequestSchema:()=>oo,CreateMatchParticipationRequestSchema:()=>io,CreatePostRequestSchema:()=>so,CreateSportProfileLevelRequestSchema:()=>ao,CreateSportProfileRequestSchema:()=>no,ExternalServiceSchema:()=>po,FacilityListSchema:()=>co,FacilityMessagePayloadSchema:()=>uo,FacilityOfferConditionActivitiesSchema:()=>fo,FacilityOfferConditionCourtsSchema:()=>ho,FacilityOfferConditionDateSchema:()=>go,FacilityOfferConditionHoursinadvanceSchema:()=>bo,FacilityOfferConditionSchema:()=>yo,FacilityOfferConditionTimeSchema:()=>Po,FacilityOfferConditionWeekdaysSchema:()=>So,FacilityOfferListSchema:()=>Oo,FacilityOfferOrderSchema:()=>Eo,FacilityOfferSchema:()=>mo,FacilityPermissionSchema:()=>Ro,FacilityPermissionsResponseSchema:()=>Uo,FacilityPunchCardDataSchema:()=>Io,FacilitySchema:()=>lo,FacilityValueCardDataSchema:()=>To,GenderSchema:()=>xo,LinkTypeSchema:()=>Co,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Do,MatchDetailSchema:()=>Ao,MatchEventSchema:()=>Go,MatchListSchema:()=>ko,MatchOccasionDetailSchema:()=>wo,MatchOccasionSchema:()=>No,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>Mo,MatchSchema:()=>vo,MatchStatusSchema:()=>qo,MatchUserPriceSchema:()=>Fo,MemberListResponseSchema:()=>jo,MemberRelationSchema:()=>Bo,MemberSchema:()=>zo,MembershipStatusSchema:()=>$o,MetadataSchema:()=>Ko,NotificationPayloadSchema:()=>Ho,NotificationRequestBodySchema:()=>Qo,NotificationSchema:()=>Vo,NotificationsFilterSchema:()=>Yo,NotificationsPaginatedResponseSchema:()=>Wo,NotificationsSummarySchema:()=>Jo,OffsetPaginatedResultSetSchema:()=>Xo,PaginationMetaSchema:()=>Zo,ParticipantDetailSchema:()=>ei,ParticipantSummarySchema:()=>ti,PatchCommentRequestSchema:()=>ri,PatchPostRequestSchema:()=>oi,PaymentCommandSchema:()=>ii,PaymentDetailsSchema:()=>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:()=>wi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Jr={properties:{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"},Xr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Zr={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"},eo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},to={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"},ro={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},oo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},io={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},so={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},no={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"},po={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},lo={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"},co={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},uo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},mo={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"},yo={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"},fo={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"},ho={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},go={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},bo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Po={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},So={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Oo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Eo={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"},Ro={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Uo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Io={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"},To={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"},xo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Co={enum:["ACTIVITY","MATCH"],type:"string"},vo={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Do={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Ao={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.
7
+ `);try{q=JSON.parse(T),Et=!0}catch(Le){q=T}}Et&&(i&&(yield new w(i(q))),o&&(q=yield new w(o(q)))),r==null||r({data:q,event:Ot,id:b,retry:G}),ne.length&&(yield q)}}}finally{M.removeEventListener("abort",bt),we.releaseLock()}break}catch(U){if(e==null||e(U),c!==void 0&&v>=c)break;let ae=Math.min(G*2**(v-1),p!=null?p:3e4);yield new w($(ae))}}})}()}};var jr=t=>{switch(t){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=t=>{switch(t){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$r=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 p=(t?i:i.map(d=>encodeURIComponent(d))).join(Br(o));switch(o){case"label":return`.${p}`;case"matrix":return`;${r}=${p}`;case"simple":return p;default:return`${r}=${p}`}}let l=jr(o),c=i.map(p=>o==="label"||o==="simple"?t?p:encodeURIComponent(p):B({allowReserved:t,name:r,value:p})).join(l);return o==="label"||o==="matrix"?l+c:c},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 y=d.join(",");switch(o){case"form":return`${r}=${y}`;case"label":return`.${y}`;case"matrix":return`;${r}=${y}`;default:return y}}let c=$r(o),p=Object.entries(i).map(([d,y])=>B({allowReserved:t,name:o==="deepObject"?`${r}[${d}]`:d,value:y})).join(c);return o==="label"||o==="matrix"?c+p:p};var Kr=/\{[^{}]+\}/g,Vr=({path:t,url:e})=>{let r=e,o=e.match(Kr);if(o)for(let i of o){let l=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(l=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let d=t[c];if(d==null)continue;if(Array.isArray(d)){r=r.replace(i,ue({explode:l,name:c,style:p,value:d}));continue}if(typeof d=="object"){r=r.replace(i,de({explode:l,name:c,style:p,value:d,valueOnly:!0}));continue}if(p==="matrix"){r=r.replace(i,`;${B({name:c,value:d})}`);continue}let y=encodeURIComponent(p==="label"?`.${d}`:d);r=r.replace(i,y)}return r},Bt=({baseUrl:t,path:e,query:r,querySerializer:o,url:i})=>{let l=i.startsWith("/")?i:`/${i}`,c=(t!=null?t:"")+l;e&&(c=Vr({path:e,url:c}));let p=r?o(r):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c};function mt(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 $t=(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 Kt=(r={})=>{var o=r,{parameters:t={}}=o,e=Q(o,["parameters"]);return l=>{let c=[];if(l&&typeof l=="object")for(let p in l){let d=l[p];if(d==null)continue;let y=t[p]||e;if(Array.isArray(d)){let u=ue(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"form",value:d},y.array));u&&c.push(u)}else if(typeof d=="object"){let u=de(n({allowReserved:y.allowReserved,explode:!0,name:p,style:"deepObject",value:d},y.object));u&&c.push(u)}else{let u=B({allowReserved:y.allowReserved,name:p,value:d});u&&c.push(u)}}return c.join("&")}},Vt=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"}},Hr=(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},Ht=r=>f(null,null,function*(){var o=r,{security:t}=o,e=Q(o,["security"]);var i;for(let l of t){if(Hr(e,l.name))continue;let c=yield $t(l,e.auth);if(!c)continue;let p=(i=l.name)!=null?i:"Authorization";switch(l.in){case"query":e.query||(e.query={}),e.query[p]=c;break;case"cookie":e.headers.append("Cookie",`${p}=${c}`);break;default:e.headers.set(p,c);break}}}),yt=t=>Bt({baseUrl:t.baseUrl,path:t.path,query:t.query,querySerializer:typeof t.querySerializer=="function"?t.querySerializer:Kt(t.querySerializer),url:t.url}),ft=(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},Qr=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?Qr(r):Object.entries(r);for(let[i,l]of o)if(l===null)e.delete(i);else if(Array.isArray(l))for(let c of l)e.append(i,c);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}},Qt=()=>({error:new X,request:new X,response:new X}),Yr=Kt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Wr={"Content-Type":"application/json"},Z=(t={})=>n(m(n({},dt),{headers:Wr,parseAs:"auto",querySerializer:Yr}),t);var ht=(t={})=>{let e=ft(Z(),t),r=()=>n({},e),o=y=>(e=ft(e,y),r()),i=Qt(),l=y=>f(null,null,function*(){var g,b;let u=m(n(n({},e),y),{fetch:(b=(g=y.fetch)!=null?g:e.fetch)!=null?b:globalThis.fetch,headers:me(e.headers,y.headers),serializedBody:void 0});u.security&&(yield Ht(m(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=yt(u);return{opts:u,url:S}}),c=y=>f(null,null,function*(){var K;let{opts:u,url:S}=yield l(y),g=m(n({redirect:"follow"},u),{body:mt(u)}),b=new Request(S,g);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"?Vt(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 M=v!=null?v:G,k=M;for(let E of i.error.fns)E&&(k=yield E(M,O,b,u));if(k=k||{},u.throwOnError)throw k;return u.responseStyle==="data"?void 0:n({error:k},A)}),p=y=>u=>c(m(n({},u),{method:y})),d=y=>u=>f(null,null,function*(){let{opts:S,url:g}=yield l(u);return jt(m(n({},S),{body:S.body,headers:S.headers,method:y,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:mt(S),url:g}))});return{buildUrl:yt,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:r,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,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:p("TRACE")}};var h=ht(Z({baseUrl:"https://api.matchi.com/v1"}));var ye={};Me(ye,{AuthorSchema:()=>Jr,ChannelsSchema:()=>Xr,CommentListResponseSchema:()=>eo,CommentSchema:()=>Zr,CommunityItemSchema:()=>to,CommunityListResponseSchema:()=>ro,CreateCommentRequestSchema:()=>oo,CreateMatchParticipationRequestSchema:()=>io,CreatePostRequestSchema:()=>so,CreateSportProfileLevelRequestSchema:()=>ao,CreateSportProfileRequestSchema:()=>no,ExternalServiceSchema:()=>po,FacilityListSchema:()=>co,FacilityMessagePayloadSchema:()=>uo,FacilityOfferConditionActivitiesSchema:()=>fo,FacilityOfferConditionCourtsSchema:()=>ho,FacilityOfferConditionDateSchema:()=>go,FacilityOfferConditionHoursinadvanceSchema:()=>bo,FacilityOfferConditionSchema:()=>yo,FacilityOfferConditionTimeSchema:()=>Po,FacilityOfferConditionWeekdaysSchema:()=>So,FacilityOfferListSchema:()=>Oo,FacilityOfferOrderSchema:()=>Eo,FacilityOfferSchema:()=>mo,FacilityPermissionSchema:()=>Ro,FacilityPermissionsResponseSchema:()=>Uo,FacilityPunchCardDataSchema:()=>Io,FacilitySchema:()=>lo,FacilityValueCardDataSchema:()=>To,GenderSchema:()=>xo,LinkTypeSchema:()=>Co,MatchBasePriceSchema:()=>_o,MatchCourtSchema:()=>Do,MatchDetailSchema:()=>Ao,MatchEventSchema:()=>Go,MatchListSchema:()=>ko,MatchOccasionDetailSchema:()=>wo,MatchOccasionSchema:()=>No,MatchParticipantsSchema:()=>Lo,MatchPriceListEntrySchema:()=>Mo,MatchSchema:()=>vo,MatchStatusSchema:()=>qo,MatchUserPriceSchema:()=>Fo,MemberListResponseSchema:()=>jo,MemberRelationSchema:()=>Bo,MemberSchema:()=>zo,MembershipStatusSchema:()=>$o,MetadataSchema:()=>Ko,NotificationPayloadSchema:()=>Ho,NotificationRequestBodySchema:()=>Qo,NotificationSchema:()=>Vo,NotificationsFilterSchema:()=>Yo,NotificationsPaginatedResponseSchema:()=>Wo,NotificationsSummarySchema:()=>Jo,OffsetPaginatedResultSetSchema:()=>Xo,PaginationMetaSchema:()=>Zo,ParticipantDetailSchema:()=>ei,ParticipantSummarySchema:()=>ti,PatchCommentRequestSchema:()=>ri,PatchPostRequestSchema:()=>oi,PaymentCommandSchema:()=>ii,PaymentDetailsSchema:()=>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:()=>wi,pkgOpenapiSharedProblemDetailsSchema:()=>Li});var Jr={properties:{type:{enum:["ADMIN","MEMBER"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type","user"],type:"object"},Xr={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Zr={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"},eo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},to={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"},ro={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},oo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},io={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},so={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},no={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"},po={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},lo={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"},co={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},uo={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},mo={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"},yo={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"},fo={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"},ho={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},go={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},bo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Po={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},So={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Oo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Eo={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"},Ro={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Uo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Io={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"},To={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"},xo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Co={enum:["ACTIVITY","MATCH"],type:"string"},vo={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"},_o={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Do={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Ao={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
  `},Go={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ko={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},No={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"},wo={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
- `},Lo={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"},Mo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},qo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},Fo={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"},zo={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"},jo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Bo={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"},$o={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ko={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Vo={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"},Ho={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Qo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Yo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Wo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Jo={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"},Xo={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"},Zo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ei={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."},ti={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"},ri={properties:{is_read:{type:"boolean"}},type:"object"},oi={properties:{is_read:{type:"boolean"}},type:"object"},ii={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},si={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],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.
9
+ `},Lo={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"},Mo={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},qo={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},Fo={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"},zo={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"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Bo={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"},$o={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ko={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Vo={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"},Ho={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Qo={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Yo={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Wo={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Jo={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"},Xo={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"},Zo={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},ei={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."},ti={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"},ri={properties:{is_read:{type:"boolean"}},type:"object"},oi={properties:{is_read:{type:"boolean"}},type:"object"},ii={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},si={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchi/api",
3
- "version": "0.20260505.1",
3
+ "version": "0.20260508.1",
4
4
  "main": "dist/main/index.js",
5
5
  "module": "dist/main/index.mjs",
6
6
  "devDependencies": {