@matchi/api 0.20260714.1 → 0.20260722.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.
- package/dist/main/index.d.mts +29 -16
- package/dist/main/index.d.ts +29 -16
- package/dist/main/index.js +8 -5
- package/dist/main/index.mjs +8 -5
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -4253,19 +4253,27 @@ type Recommendation = {
|
|
|
4253
4253
|
};
|
|
4254
4254
|
date_end: string;
|
|
4255
4255
|
date_start: string;
|
|
4256
|
+
/**
|
|
4257
|
+
* Facility ID. 0 for matches without facility details available.
|
|
4258
|
+
*
|
|
4259
|
+
*/
|
|
4256
4260
|
facility_id: number;
|
|
4261
|
+
/**
|
|
4262
|
+
* Facility name. Empty string for matches without facility details available.
|
|
4263
|
+
*
|
|
4264
|
+
*/
|
|
4257
4265
|
facility_name: string;
|
|
4258
4266
|
/**
|
|
4259
|
-
* The recommended entity's ID. Use together with type to navigate to the appropriate detail page.
|
|
4267
|
+
* The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.
|
|
4260
4268
|
*
|
|
4261
4269
|
*/
|
|
4262
4270
|
id: string;
|
|
4263
4271
|
/**
|
|
4264
|
-
* Maximum skill level
|
|
4272
|
+
* Maximum skill level. Null if not set.
|
|
4265
4273
|
*/
|
|
4266
4274
|
level_max?: number | null;
|
|
4267
4275
|
/**
|
|
4268
|
-
* Minimum skill level
|
|
4276
|
+
* Minimum skill level. Null if not set.
|
|
4269
4277
|
*/
|
|
4270
4278
|
level_min?: number | null;
|
|
4271
4279
|
/**
|
|
@@ -4274,7 +4282,8 @@ type Recommendation = {
|
|
|
4274
4282
|
*/
|
|
4275
4283
|
members_only?: boolean | null;
|
|
4276
4284
|
/**
|
|
4277
|
-
* Display name for the recommendation card.
|
|
4285
|
+
* Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.
|
|
4286
|
+
*
|
|
4278
4287
|
*/
|
|
4279
4288
|
name: string;
|
|
4280
4289
|
/**
|
|
@@ -4309,10 +4318,10 @@ type Recommendation = {
|
|
|
4309
4318
|
*/
|
|
4310
4319
|
tags: Array<string>;
|
|
4311
4320
|
/**
|
|
4312
|
-
* The entity type. Determines what kind of detail page to navigate to.
|
|
4321
|
+
* The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.
|
|
4313
4322
|
*
|
|
4314
4323
|
*/
|
|
4315
|
-
type: 'CLASS_ACTIVITY' | 'EVENT_ACTIVITY' | 'COURSE_ACTIVITY' | 'MATCH_ACTIVITY';
|
|
4324
|
+
type: 'CLASS_ACTIVITY' | 'EVENT_ACTIVITY' | 'COURSE_ACTIVITY' | 'MATCH_ACTIVITY' | 'MATCH_PUBLIC';
|
|
4316
4325
|
};
|
|
4317
4326
|
type RecommendationList = {
|
|
4318
4327
|
items: Array<Recommendation>;
|
|
@@ -6264,10 +6273,10 @@ type GetRecommendationsData = {
|
|
|
6264
6273
|
};
|
|
6265
6274
|
query: {
|
|
6266
6275
|
/**
|
|
6267
|
-
* The category of recommendations to return. ACTIVITIES includes all activity-based occasions (classes, events, courses, and matches).
|
|
6276
|
+
* The category of recommendations to return. ACTIVITIES includes all activity-based occasions (classes, events, courses, and matches). MATCHES returns a blended feed of venue-created (MATCH_ACTIVITY) and player-created (MATCH_PUBLIC) matches, ordered by relevance score.
|
|
6268
6277
|
*
|
|
6269
6278
|
*/
|
|
6270
|
-
type: 'ACTIVITIES';
|
|
6279
|
+
type: 'ACTIVITIES' | 'MATCHES';
|
|
6271
6280
|
/**
|
|
6272
6281
|
* Caller gender for filtering gender-restricted activities. Omit to show all.
|
|
6273
6282
|
*/
|
|
@@ -8234,24 +8243,28 @@ declare const RecommendationSchema: {
|
|
|
8234
8243
|
readonly type: "string";
|
|
8235
8244
|
};
|
|
8236
8245
|
readonly facility_id: {
|
|
8246
|
+
readonly description: "Facility ID. 0 for matches without facility details available.\n";
|
|
8237
8247
|
readonly type: "integer";
|
|
8238
8248
|
};
|
|
8239
8249
|
readonly facility_name: {
|
|
8250
|
+
readonly description: "Facility name. Empty string for matches without facility details available.\n";
|
|
8240
8251
|
readonly type: "string";
|
|
8241
8252
|
};
|
|
8242
8253
|
readonly id: {
|
|
8243
|
-
readonly description: "The recommended entity's ID. Use together with type to navigate to the appropriate detail page.
|
|
8254
|
+
readonly description: "The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.\n";
|
|
8244
8255
|
readonly type: "string";
|
|
8245
8256
|
};
|
|
8246
8257
|
readonly level_max: {
|
|
8247
|
-
readonly description: "Maximum skill level
|
|
8258
|
+
readonly description: "Maximum skill level. Null if not set.";
|
|
8259
|
+
readonly format: "float";
|
|
8248
8260
|
readonly nullable: true;
|
|
8249
|
-
readonly type: "
|
|
8261
|
+
readonly type: "number";
|
|
8250
8262
|
};
|
|
8251
8263
|
readonly level_min: {
|
|
8252
|
-
readonly description: "Minimum skill level
|
|
8264
|
+
readonly description: "Minimum skill level. Null if not set.";
|
|
8265
|
+
readonly format: "float";
|
|
8253
8266
|
readonly nullable: true;
|
|
8254
|
-
readonly type: "
|
|
8267
|
+
readonly type: "number";
|
|
8255
8268
|
};
|
|
8256
8269
|
readonly members_only: {
|
|
8257
8270
|
readonly description: "Whether the activity is restricted to facility members. Null when membership restriction is unknown — callers should treat null as unknown and fall back to existing rendering.\n";
|
|
@@ -8259,7 +8272,7 @@ declare const RecommendationSchema: {
|
|
|
8259
8272
|
readonly type: "boolean";
|
|
8260
8273
|
};
|
|
8261
8274
|
readonly name: {
|
|
8262
|
-
readonly description: "Display name for the recommendation card.";
|
|
8275
|
+
readonly description: "Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.\n";
|
|
8263
8276
|
readonly type: "string";
|
|
8264
8277
|
};
|
|
8265
8278
|
readonly participant_count: {
|
|
@@ -8303,8 +8316,8 @@ declare const RecommendationSchema: {
|
|
|
8303
8316
|
readonly type: "array";
|
|
8304
8317
|
};
|
|
8305
8318
|
readonly type: {
|
|
8306
|
-
readonly description: "The entity type. Determines what kind of detail page to navigate to.\n";
|
|
8307
|
-
readonly enum: readonly ["CLASS_ACTIVITY", "EVENT_ACTIVITY", "COURSE_ACTIVITY", "MATCH_ACTIVITY"];
|
|
8319
|
+
readonly description: "The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.\n";
|
|
8320
|
+
readonly enum: readonly ["CLASS_ACTIVITY", "EVENT_ACTIVITY", "COURSE_ACTIVITY", "MATCH_ACTIVITY", "MATCH_PUBLIC"];
|
|
8308
8321
|
readonly type: "string";
|
|
8309
8322
|
};
|
|
8310
8323
|
};
|
package/dist/main/index.d.ts
CHANGED
|
@@ -4253,19 +4253,27 @@ type Recommendation = {
|
|
|
4253
4253
|
};
|
|
4254
4254
|
date_end: string;
|
|
4255
4255
|
date_start: string;
|
|
4256
|
+
/**
|
|
4257
|
+
* Facility ID. 0 for matches without facility details available.
|
|
4258
|
+
*
|
|
4259
|
+
*/
|
|
4256
4260
|
facility_id: number;
|
|
4261
|
+
/**
|
|
4262
|
+
* Facility name. Empty string for matches without facility details available.
|
|
4263
|
+
*
|
|
4264
|
+
*/
|
|
4257
4265
|
facility_name: string;
|
|
4258
4266
|
/**
|
|
4259
|
-
* The recommended entity's ID. Use together with type to navigate to the appropriate detail page.
|
|
4267
|
+
* The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.
|
|
4260
4268
|
*
|
|
4261
4269
|
*/
|
|
4262
4270
|
id: string;
|
|
4263
4271
|
/**
|
|
4264
|
-
* Maximum skill level
|
|
4272
|
+
* Maximum skill level. Null if not set.
|
|
4265
4273
|
*/
|
|
4266
4274
|
level_max?: number | null;
|
|
4267
4275
|
/**
|
|
4268
|
-
* Minimum skill level
|
|
4276
|
+
* Minimum skill level. Null if not set.
|
|
4269
4277
|
*/
|
|
4270
4278
|
level_min?: number | null;
|
|
4271
4279
|
/**
|
|
@@ -4274,7 +4282,8 @@ type Recommendation = {
|
|
|
4274
4282
|
*/
|
|
4275
4283
|
members_only?: boolean | null;
|
|
4276
4284
|
/**
|
|
4277
|
-
* Display name for the recommendation card.
|
|
4285
|
+
* Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.
|
|
4286
|
+
*
|
|
4278
4287
|
*/
|
|
4279
4288
|
name: string;
|
|
4280
4289
|
/**
|
|
@@ -4309,10 +4318,10 @@ type Recommendation = {
|
|
|
4309
4318
|
*/
|
|
4310
4319
|
tags: Array<string>;
|
|
4311
4320
|
/**
|
|
4312
|
-
* The entity type. Determines what kind of detail page to navigate to.
|
|
4321
|
+
* The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.
|
|
4313
4322
|
*
|
|
4314
4323
|
*/
|
|
4315
|
-
type: 'CLASS_ACTIVITY' | 'EVENT_ACTIVITY' | 'COURSE_ACTIVITY' | 'MATCH_ACTIVITY';
|
|
4324
|
+
type: 'CLASS_ACTIVITY' | 'EVENT_ACTIVITY' | 'COURSE_ACTIVITY' | 'MATCH_ACTIVITY' | 'MATCH_PUBLIC';
|
|
4316
4325
|
};
|
|
4317
4326
|
type RecommendationList = {
|
|
4318
4327
|
items: Array<Recommendation>;
|
|
@@ -6264,10 +6273,10 @@ type GetRecommendationsData = {
|
|
|
6264
6273
|
};
|
|
6265
6274
|
query: {
|
|
6266
6275
|
/**
|
|
6267
|
-
* The category of recommendations to return. ACTIVITIES includes all activity-based occasions (classes, events, courses, and matches).
|
|
6276
|
+
* The category of recommendations to return. ACTIVITIES includes all activity-based occasions (classes, events, courses, and matches). MATCHES returns a blended feed of venue-created (MATCH_ACTIVITY) and player-created (MATCH_PUBLIC) matches, ordered by relevance score.
|
|
6268
6277
|
*
|
|
6269
6278
|
*/
|
|
6270
|
-
type: 'ACTIVITIES';
|
|
6279
|
+
type: 'ACTIVITIES' | 'MATCHES';
|
|
6271
6280
|
/**
|
|
6272
6281
|
* Caller gender for filtering gender-restricted activities. Omit to show all.
|
|
6273
6282
|
*/
|
|
@@ -8234,24 +8243,28 @@ declare const RecommendationSchema: {
|
|
|
8234
8243
|
readonly type: "string";
|
|
8235
8244
|
};
|
|
8236
8245
|
readonly facility_id: {
|
|
8246
|
+
readonly description: "Facility ID. 0 for matches without facility details available.\n";
|
|
8237
8247
|
readonly type: "integer";
|
|
8238
8248
|
};
|
|
8239
8249
|
readonly facility_name: {
|
|
8250
|
+
readonly description: "Facility name. Empty string for matches without facility details available.\n";
|
|
8240
8251
|
readonly type: "string";
|
|
8241
8252
|
};
|
|
8242
8253
|
readonly id: {
|
|
8243
|
-
readonly description: "The recommended entity's ID. Use together with type to navigate to the appropriate detail page.
|
|
8254
|
+
readonly description: "The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.\n";
|
|
8244
8255
|
readonly type: "string";
|
|
8245
8256
|
};
|
|
8246
8257
|
readonly level_max: {
|
|
8247
|
-
readonly description: "Maximum skill level
|
|
8258
|
+
readonly description: "Maximum skill level. Null if not set.";
|
|
8259
|
+
readonly format: "float";
|
|
8248
8260
|
readonly nullable: true;
|
|
8249
|
-
readonly type: "
|
|
8261
|
+
readonly type: "number";
|
|
8250
8262
|
};
|
|
8251
8263
|
readonly level_min: {
|
|
8252
|
-
readonly description: "Minimum skill level
|
|
8264
|
+
readonly description: "Minimum skill level. Null if not set.";
|
|
8265
|
+
readonly format: "float";
|
|
8253
8266
|
readonly nullable: true;
|
|
8254
|
-
readonly type: "
|
|
8267
|
+
readonly type: "number";
|
|
8255
8268
|
};
|
|
8256
8269
|
readonly members_only: {
|
|
8257
8270
|
readonly description: "Whether the activity is restricted to facility members. Null when membership restriction is unknown — callers should treat null as unknown and fall back to existing rendering.\n";
|
|
@@ -8259,7 +8272,7 @@ declare const RecommendationSchema: {
|
|
|
8259
8272
|
readonly type: "boolean";
|
|
8260
8273
|
};
|
|
8261
8274
|
readonly name: {
|
|
8262
|
-
readonly description: "Display name for the recommendation card.";
|
|
8275
|
+
readonly description: "Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.\n";
|
|
8263
8276
|
readonly type: "string";
|
|
8264
8277
|
};
|
|
8265
8278
|
readonly participant_count: {
|
|
@@ -8303,8 +8316,8 @@ declare const RecommendationSchema: {
|
|
|
8303
8316
|
readonly type: "array";
|
|
8304
8317
|
};
|
|
8305
8318
|
readonly type: {
|
|
8306
|
-
readonly description: "The entity type. Determines what kind of detail page to navigate to.\n";
|
|
8307
|
-
readonly enum: readonly ["CLASS_ACTIVITY", "EVENT_ACTIVITY", "COURSE_ACTIVITY", "MATCH_ACTIVITY"];
|
|
8319
|
+
readonly description: "The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.\n";
|
|
8320
|
+
readonly enum: readonly ["CLASS_ACTIVITY", "EVENT_ACTIVITY", "COURSE_ACTIVITY", "MATCH_ACTIVITY", "MATCH_PUBLIC"];
|
|
8308
8321
|
readonly type: "string";
|
|
8309
8322
|
};
|
|
8310
8323
|
};
|
package/dist/main/index.js
CHANGED
|
@@ -20,11 +20,14 @@ PRIVATE (placeholder for users with searchable=false), distinguished by
|
|
|
20
20
|
the \`kind\` property on each variant. See
|
|
21
21
|
openspec/specs/match-participant-privacy/spec.md in team-discovery-docs.
|
|
22
22
|
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantSummary"},{$ref:"#/components/schemas/PrivateParticipantSummary"}]},As={properties:{is_read:{type:"boolean"}},type:"object"},Gs={properties:{is_read:{type:"boolean"}},type:"object"},Ls={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"},ws={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"},Ms={properties:{latitude:{format:"double",type:"number"},longitude:{format:"double",type:"number"}},required:["latitude","longitude"],type:"object"},qs={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"},reactions:{items:{$ref:"#/components/schemas/ReactionGroup"},type:"array"},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"},Fs={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},js={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},zs={enum:["ADMINS","MEMBERS"],type:"string"},Bs={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"},Ks={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},$s={description:"PRIVATE variant of ParticipantDetail. Carries only kind, participation_id, and joined_at.",properties:{joined_at:{format:"date-time",type:"string"},kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},Vs={description:"Minimal placeholder for a participant whose User.searchable is false. Carries only kind and participation_id \u2014 no PII.",properties:{kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"}},required:["kind","participation_id"],type:"object"},Qs={properties:{first_name:{nullable:!0,type:"string"},joined_at:{format:"date-time",type:"string"},kind:{enum:["PUBLIC"],type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},participation_id:{type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},Hs={properties:{first_name:{nullable:!0,type:"string"},kind:{enum:["PUBLIC"],type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},participation_id:{description:"Opaque per-row identifier sourced from Participation.id.",type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{description:"Matchi user ID. Null for guest customers (no Matchi user).",format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id"],type:"object"},Ys={properties:{authors:{items:{$ref:"#/components/schemas/Author"},type:"array"},reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type","authors"],type:"object"},Js={properties:{reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type"],type:"object"},Ws={enum:["THUMBS_UP","HEART","SWEAT_SMILE","LAUGHING","HUSHED","FIRE"],type:"string"},Xs={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
23
|
-
`,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:{
|
|
24
|
-
`,type:"
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Zs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},en={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},tn={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},rn={properties:{description:{type:"string"},facility_id:{type:"integer"},id:{type:"integer"},indoor:{type:"boolean"},name:{type:"string"},sport:{description:"Sport type. Available sports are served from the /config endpoint.",type:"string"},surface:{description:"Court surface type. Available surfaces are served from the /config endpoint.",type:"string"}},required:["id","name","facility_id"],type:"object"},on={enum:["FACILITY"],type:"string"},sn={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},nn={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},an={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},pn={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},cn={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},ln={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},un={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},mn={enum:["FACILITY_MESSAGE"],type:"string"},dn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},yn={properties:{level:{type:"string"}},required:["level"],type:"object"},fn={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},hn={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},gn={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},bn={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"},Pn={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Rn={enum:["HIDDEN","VISIBLE"],type:"string"},On={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},Sn={properties:{message:{description:"The error message",type:"string"}},type:"object"},En={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Cn={description:"String filter in PostgREST format: `operator.value`\n\n**Allowed operators:** eq, like, ilike, is, in\n**Negation:** Prefix with `not.` (e.g., `not.eq.value`)\n\n**Supported use cases:**\n- International names: Any Unicode letters (Chinese, Arabic, Cyrillic, etc.)\n- Names with apostrophes: `eq.O'Brien`, `eq.D'Angelo`\n- Email addresses: `eq.user@example.com`\n- Nordic characters: `eq.K\xF8benhavn`, `like.tr\xE4ning*`\n- Wildcards: `like.train*`, `ilike.*search*`\n- Special chars: dots, hyphens, underscores, @, +, spaces, etc.\n- Lists: `in.(value1,value2,value3)` or `not.in.(value1,value2,value3)`\n\nExamples:\n- `eq.training` - Exact match\n- `eq.O'Brien` - Name with apostrophe\n- `eq.user@example.com` - Email address\n- `eq.\u540D\u524D` - Japanese characters\n- `eq.Bj\xF6rk` - Nordic characters\n- `like.m\xFCnchen*` - German with wildcard\n- `ilike.*jos\xE9*` - Spanish name search\n- `is.null` - Is NULL\n- `not.eq.value` - Not equal\n- `in.(value1,value2,value3)` - List of values\n- `not.in.(value1,value2,value3)` - Not in list\n",example:"eq.training",maxLength:500,pattern:"^(eq|like|ilike|not\\.(eq|like|ilike))\\..+$|^(is|not\\.is)\\.null$|^(in|not\\.in)\\.\\(.+(,.+)*\\)$",type:"string"},Dn={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"}},required:["offset","limit","more_results"],type:"object"},xn={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var ye=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},pt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ut=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},yt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ft=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Pt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},Rt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},St=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Dt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},xt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},It=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ut=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Tt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},vt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},kt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},_t=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},At=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Se=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Gt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},wt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ee=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},qt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ft=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},jt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},zt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Bt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Kt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Qr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Hr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Yr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Wr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Xr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Zr={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},eo={FACILITY:"FACILITY"},to={FACILITY_MESSAGE:"FACILITY_MESSAGE"},ro={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},oo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},io={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var $t={};W($t,{acceptInvitationMutation:()=>An,addUserSportProfileLevelMutation:()=>Ta,createCommentMutation:()=>Bn,createFacilityOfferOrderMutation:()=>ta,createMatchParticipationMutation:()=>na,createPostMutation:()=>wn,createUserSportProfileMutation:()=>xa,deleteCommentMutation:()=>Kn,deleteCommentReactionMutation:()=>Vn,deleteMatchParticipationMutation:()=>aa,deletePostMutation:()=>Mn,deletePostReactionMutation:()=>Hn,deleteUserSportProfileLevelMutation:()=>va,deleteUserSportProfileMutation:()=>Ia,getCommunityOptions:()=>Tn,getCommunityQueryKey:()=>ao,getFacilityOptions:()=>Xn,getFacilityQueryKey:()=>bo,getMatchOptions:()=>sa,getMatchQueryKey:()=>Co,getMatchUserPriceOptions:()=>pa,getMatchUserPriceQueryKey:()=>Do,getNotificationByIdOptions:()=>ya,getNotificationByIdQueryKey:()=>To,getNotificationsInfiniteOptions:()=>la,getNotificationsInfiniteQueryKey:()=>Io,getNotificationsOptions:()=>ca,getNotificationsPreferencesOptions:()=>ma,getNotificationsPreferencesQueryKey:()=>Uo,getNotificationsQueryKey:()=>xo,getPostOptions:()=>qn,getPostQueryKey:()=>mo,getRecommendationsInfiniteOptions:()=>Ca,getRecommendationsInfiniteQueryKey:()=>Lo,getRecommendationsOptions:()=>Ea,getRecommendationsQueryKey:()=>Go,getResourceOptions:()=>ha,getResourceQueryKey:()=>vo,getSportAuthoritiesOptions:()=>ga,getSportAuthoritiesQueryKey:()=>ko,getUserFacilityPermissionsOptions:()=>Oa,getUserFacilityPermissionsQueryKey:()=>Ao,getUserSportProfileOptions:()=>Ua,getUserSportProfileQueryKey:()=>Mo,getUserSportProfilesOptions:()=>Da,getUserSportProfilesQueryKey:()=>wo,joinCommunityMutation:()=>_n,leaveCommunityMutation:()=>Nn,listCommentsInfiniteOptions:()=>zn,listCommentsInfiniteQueryKey:()=>fo,listCommentsOptions:()=>jn,listCommentsQueryKey:()=>yo,listCommunitiesInfiniteOptions:()=>Un,listCommunitiesInfiniteQueryKey:()=>no,listCommunitiesOptions:()=>In,listCommunitiesQueryKey:()=>so,listFacilitiesInfiniteOptions:()=>Wn,listFacilitiesInfiniteQueryKey:()=>go,listFacilitiesOptions:()=>Jn,listFacilitiesQueryKey:()=>ho,listFacilityOffersInfiniteOptions:()=>ea,listFacilityOffersInfiniteQueryKey:()=>Ro,listFacilityOffersOptions:()=>Zn,listFacilityOffersQueryKey:()=>Po,listFacilityResourcesOptions:()=>ra,listFacilityResourcesQueryKey:()=>Oo,listMatchesInfiniteOptions:()=>ia,listMatchesInfiniteQueryKey:()=>Eo,listMatchesOptions:()=>oa,listMatchesQueryKey:()=>So,listMembersInfiniteOptions:()=>kn,listMembersInfiniteQueryKey:()=>co,listMembersOptions:()=>vn,listMembersQueryKey:()=>po,listPostsInfiniteOptions:()=>Ln,listPostsInfiniteQueryKey:()=>uo,listPostsOptions:()=>Gn,listPostsQueryKey:()=>lo,markCommentReadMutation:()=>$n,markPostReadMutation:()=>Fn,registerDeviceMutation:()=>Ra,searchUsersInfiniteOptions:()=>Pa,searchUsersInfiniteQueryKey:()=>No,searchUsersOptions:()=>ba,searchUsersQueryKey:()=>_o,updateAllNotificationsMutation:()=>ua,updateNotificationMutation:()=>fa,updateNotificationsPreferencesMutation:()=>da,updateUserProfileMutation:()=>Sa,updateUserSportProfileLevelMutation:()=>ka,upsertCommentReactionMutation:()=>Qn,upsertPostReactionMutation:()=>Yn});var C=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},so=t=>C("listCommunities",t),In=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:so(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},no=t=>C("listCommunities",t,!0),Un=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ye(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:no(t)}),ao=t=>C("getCommunity",t),Tn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield nt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),po=t=>C("listMembers",t),vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:po(t)}),co=t=>C("listMembers",t,!0),kn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield fe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:co(t)}),_n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(d(i(i({},t),r),{throwOnError:!0}));return o})}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),An=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),lo=t=>C("listPosts",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:lo(t)}),uo=t=>C("listPosts",t,!0),Ln=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield he(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:uo(t)}),wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield lt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),mo=t=>C("getPost",t),qn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:mo(t)}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),yo=t=>C("listComments",t),jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),fo=t=>C("listComments",t,!0),zn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ge(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:fo(t)}),Bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(d(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(d(i(i({},t),r),{throwOnError:!0}));return o})}),Vn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Qn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Hn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Yn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),ho=t=>C("ListFacilities",t),Jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ho(t)}),go=t=>C("ListFacilities",t,!0),Wn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield be(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:go(t)}),bo=t=>C("GetFacility",t),Xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Po=t=>C("ListFacilityOffers",t),Zn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ro=t=>C("ListFacilityOffers",t,!0),ea=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Pe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Ro(t)}),ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(d(i(i({},t),r),{throwOnError:!0}));return o})}),Oo=t=>C("ListFacilityResources",t),ra=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Et(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Oo(t)}),So=t=>C("ListMatches",t),oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>C("ListMatches",t,!0),ia=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Re(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Eo(t)}),Co=t=>C("GetMatch",t),sa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ct(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),aa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Do=t=>C("GetMatchUserPrice",t),pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield It(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Do(t)}),xo=t=>C("GetNotifications",t),ca=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Io=t=>C("GetNotifications",t,!0),la=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Oe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Io(t)}),ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetNotificationsPreferences",t),ma=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Uo(t)}),da=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield vt(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("GetNotificationById",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield kt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),fa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _t(d(i(i({},t),r),{throwOnError:!0}));return o})}),vo=t=>C("GetResource",t),ha=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Nt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),ko=t=>C("getSportAuthorities",t),ga=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield At(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ko(t)}),_o=t=>C("searchUsers",t),ba=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),No=t=>C("searchUsers",t,!0),Pa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Se(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:No(t)}),Ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ao=t=>C("getUserFacilityPermissions",t),Oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Lt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield wt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Go=t=>C("GetRecommendations",t),Ea=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ee(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Go(t)}),Lo=t=>C("GetRecommendations",t,!0),Ca=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Ee(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Lo(t)}),wo=t=>C("getUserSportProfiles",t),Da=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),xa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ft(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>C("getUserSportProfile",t),Ua=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield jt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield zt(d(i(i({},t),r),{throwOnError:!0}));return o})}),va=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Bt(d(i(i({},t),r),{throwOnError:!0}));return o})}),ka=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Kt(d(i(i({},t),r),{throwOnError:!0}));return o})});var sr={};W(sr,{NotificationResourceIcon:()=>Vo,NotificationSource:()=>Qo,NotificationType:()=>Ho,Topic:()=>Yo,TopicSource:()=>Jo,client:()=>A,getNotificationById:()=>er,getNotifications:()=>xe,getNotificationsPreferences:()=>Xt,queries:()=>ir,registerDevice:()=>rr,schemas:()=>Jt,updateAllNotifications:()=>Wt,updateNotification:()=>tr,updateNotificationsPreferences:()=>Zt});var vr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var _a={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},hu=Object.entries(_a);var qo=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:a,sseMaxRetryDelay:n,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(T=>new Promise(I=>setTimeout(I,T)));return{stream:function(){return Te(this,null,function*(){var v,L,P;let T=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let nr=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(nr($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",ie=()=>{try{Y.cancel()}catch(se){}};k.addEventListener("abort",ie);try{for(;;){let{done:se,value:ar}=yield new N(Y.read());if(se)break;M+=ar,M=M.replace(/\r\n/g,`
|
|
23
|
+
`,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:{description:`Facility ID. 0 for matches without facility details available.
|
|
24
|
+
`,type:"integer"},facility_name:{description:`Facility name. Empty string for matches without facility details available.
|
|
25
|
+
`,type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.
|
|
26
|
+
`,type:"string"},level_max:{description:"Maximum skill level. Null if not set.",format:"float",nullable:!0,type:"number"},level_min:{description:"Minimum skill level. Null if not set.",format:"float",nullable:!0,type:"number"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
|
|
27
|
+
`,nullable:!0,type:"boolean"},name:{description:`Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.
|
|
28
|
+
`,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.
|
|
29
|
+
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.
|
|
30
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY","MATCH_PUBLIC"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Zs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},en={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},tn={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},rn={properties:{description:{type:"string"},facility_id:{type:"integer"},id:{type:"integer"},indoor:{type:"boolean"},name:{type:"string"},sport:{description:"Sport type. Available sports are served from the /config endpoint.",type:"string"},surface:{description:"Court surface type. Available surfaces are served from the /config endpoint.",type:"string"}},required:["id","name","facility_id"],type:"object"},on={enum:["FACILITY"],type:"string"},sn={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},nn={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},an={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},pn={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},cn={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},ln={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},un={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},mn={enum:["FACILITY_MESSAGE"],type:"string"},dn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},yn={properties:{level:{type:"string"}},required:["level"],type:"object"},fn={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},hn={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},gn={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},bn={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"},Pn={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Rn={enum:["HIDDEN","VISIBLE"],type:"string"},On={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},Sn={properties:{message:{description:"The error message",type:"string"}},type:"object"},En={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Cn={description:"String filter in PostgREST format: `operator.value`\n\n**Allowed operators:** eq, like, ilike, is, in\n**Negation:** Prefix with `not.` (e.g., `not.eq.value`)\n\n**Supported use cases:**\n- International names: Any Unicode letters (Chinese, Arabic, Cyrillic, etc.)\n- Names with apostrophes: `eq.O'Brien`, `eq.D'Angelo`\n- Email addresses: `eq.user@example.com`\n- Nordic characters: `eq.K\xF8benhavn`, `like.tr\xE4ning*`\n- Wildcards: `like.train*`, `ilike.*search*`\n- Special chars: dots, hyphens, underscores, @, +, spaces, etc.\n- Lists: `in.(value1,value2,value3)` or `not.in.(value1,value2,value3)`\n\nExamples:\n- `eq.training` - Exact match\n- `eq.O'Brien` - Name with apostrophe\n- `eq.user@example.com` - Email address\n- `eq.\u540D\u524D` - Japanese characters\n- `eq.Bj\xF6rk` - Nordic characters\n- `like.m\xFCnchen*` - German with wildcard\n- `ilike.*jos\xE9*` - Spanish name search\n- `is.null` - Is NULL\n- `not.eq.value` - Not equal\n- `in.(value1,value2,value3)` - List of values\n- `not.in.(value1,value2,value3)` - Not in list\n",example:"eq.training",maxLength:500,pattern:"^(eq|like|ilike|not\\.(eq|like|ilike))\\..+$|^(is|not\\.is)\\.null$|^(in|not\\.in)\\.\\(.+(,.+)*\\)$",type:"string"},Dn={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"}},required:["offset","limit","more_results"],type:"object"},xn={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var ye=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},pt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ut=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},yt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ft=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Pt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},Rt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},be=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},St=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Dt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},xt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},It=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ut=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Tt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},vt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},kt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},_t=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Nt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},At=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Se=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Gt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},wt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ee=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},qt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ft=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},jt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},zt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Bt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Kt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Qr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Hr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Yr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Wr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Xr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Zr={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},eo={FACILITY:"FACILITY"},to={FACILITY_MESSAGE:"FACILITY_MESSAGE"},ro={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},oo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},io={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var $t={};W($t,{acceptInvitationMutation:()=>An,addUserSportProfileLevelMutation:()=>Ta,createCommentMutation:()=>Bn,createFacilityOfferOrderMutation:()=>ta,createMatchParticipationMutation:()=>na,createPostMutation:()=>wn,createUserSportProfileMutation:()=>xa,deleteCommentMutation:()=>Kn,deleteCommentReactionMutation:()=>Vn,deleteMatchParticipationMutation:()=>aa,deletePostMutation:()=>Mn,deletePostReactionMutation:()=>Hn,deleteUserSportProfileLevelMutation:()=>va,deleteUserSportProfileMutation:()=>Ia,getCommunityOptions:()=>Tn,getCommunityQueryKey:()=>ao,getFacilityOptions:()=>Xn,getFacilityQueryKey:()=>bo,getMatchOptions:()=>sa,getMatchQueryKey:()=>Co,getMatchUserPriceOptions:()=>pa,getMatchUserPriceQueryKey:()=>Do,getNotificationByIdOptions:()=>ya,getNotificationByIdQueryKey:()=>To,getNotificationsInfiniteOptions:()=>la,getNotificationsInfiniteQueryKey:()=>Io,getNotificationsOptions:()=>ca,getNotificationsPreferencesOptions:()=>ma,getNotificationsPreferencesQueryKey:()=>Uo,getNotificationsQueryKey:()=>xo,getPostOptions:()=>qn,getPostQueryKey:()=>mo,getRecommendationsInfiniteOptions:()=>Ca,getRecommendationsInfiniteQueryKey:()=>Lo,getRecommendationsOptions:()=>Ea,getRecommendationsQueryKey:()=>Go,getResourceOptions:()=>ha,getResourceQueryKey:()=>vo,getSportAuthoritiesOptions:()=>ga,getSportAuthoritiesQueryKey:()=>ko,getUserFacilityPermissionsOptions:()=>Oa,getUserFacilityPermissionsQueryKey:()=>Ao,getUserSportProfileOptions:()=>Ua,getUserSportProfileQueryKey:()=>Mo,getUserSportProfilesOptions:()=>Da,getUserSportProfilesQueryKey:()=>wo,joinCommunityMutation:()=>_n,leaveCommunityMutation:()=>Nn,listCommentsInfiniteOptions:()=>zn,listCommentsInfiniteQueryKey:()=>fo,listCommentsOptions:()=>jn,listCommentsQueryKey:()=>yo,listCommunitiesInfiniteOptions:()=>Un,listCommunitiesInfiniteQueryKey:()=>no,listCommunitiesOptions:()=>In,listCommunitiesQueryKey:()=>so,listFacilitiesInfiniteOptions:()=>Wn,listFacilitiesInfiniteQueryKey:()=>go,listFacilitiesOptions:()=>Jn,listFacilitiesQueryKey:()=>ho,listFacilityOffersInfiniteOptions:()=>ea,listFacilityOffersInfiniteQueryKey:()=>Ro,listFacilityOffersOptions:()=>Zn,listFacilityOffersQueryKey:()=>Po,listFacilityResourcesOptions:()=>ra,listFacilityResourcesQueryKey:()=>Oo,listMatchesInfiniteOptions:()=>ia,listMatchesInfiniteQueryKey:()=>Eo,listMatchesOptions:()=>oa,listMatchesQueryKey:()=>So,listMembersInfiniteOptions:()=>kn,listMembersInfiniteQueryKey:()=>co,listMembersOptions:()=>vn,listMembersQueryKey:()=>po,listPostsInfiniteOptions:()=>Ln,listPostsInfiniteQueryKey:()=>uo,listPostsOptions:()=>Gn,listPostsQueryKey:()=>lo,markCommentReadMutation:()=>$n,markPostReadMutation:()=>Fn,registerDeviceMutation:()=>Ra,searchUsersInfiniteOptions:()=>Pa,searchUsersInfiniteQueryKey:()=>No,searchUsersOptions:()=>ba,searchUsersQueryKey:()=>_o,updateAllNotificationsMutation:()=>ua,updateNotificationMutation:()=>fa,updateNotificationsPreferencesMutation:()=>da,updateUserProfileMutation:()=>Sa,updateUserSportProfileLevelMutation:()=>ka,upsertCommentReactionMutation:()=>Qn,upsertPostReactionMutation:()=>Yn});var C=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},so=t=>C("listCommunities",t),In=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:so(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},no=t=>C("listCommunities",t,!0),Un=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ye(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:no(t)}),ao=t=>C("getCommunity",t),Tn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield nt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),po=t=>C("listMembers",t),vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:po(t)}),co=t=>C("listMembers",t,!0),kn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield fe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:co(t)}),_n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield at(d(i(i({},t),r),{throwOnError:!0}));return o})}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),An=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),lo=t=>C("listPosts",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:lo(t)}),uo=t=>C("listPosts",t,!0),Ln=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield he(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:uo(t)}),wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield lt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),mo=t=>C("getPost",t),qn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:mo(t)}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),yo=t=>C("listComments",t),jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),fo=t=>C("listComments",t,!0),zn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ge(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:fo(t)}),Bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(d(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(d(i(i({},t),r),{throwOnError:!0}));return o})}),Vn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Qn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Hn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Pt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Yn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),ho=t=>C("ListFacilities",t),Jn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ho(t)}),go=t=>C("ListFacilities",t,!0),Wn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield be(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:go(t)}),bo=t=>C("GetFacility",t),Xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Po=t=>C("ListFacilityOffers",t),Zn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ro=t=>C("ListFacilityOffers",t,!0),ea=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Pe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Ro(t)}),ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(d(i(i({},t),r),{throwOnError:!0}));return o})}),Oo=t=>C("ListFacilityResources",t),ra=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Et(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Oo(t)}),So=t=>C("ListMatches",t),oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>C("ListMatches",t,!0),ia=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Re(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Eo(t)}),Co=t=>C("GetMatch",t),sa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ct(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),aa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Do=t=>C("GetMatchUserPrice",t),pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield It(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Do(t)}),xo=t=>C("GetNotifications",t),ca=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Io=t=>C("GetNotifications",t,!0),la=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Oe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Io(t)}),ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetNotificationsPreferences",t),ma=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Uo(t)}),da=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield vt(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("GetNotificationById",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield kt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),fa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _t(d(i(i({},t),r),{throwOnError:!0}));return o})}),vo=t=>C("GetResource",t),ha=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Nt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),ko=t=>C("getSportAuthorities",t),ga=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield At(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ko(t)}),_o=t=>C("searchUsers",t),ba=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),No=t=>C("searchUsers",t,!0),Pa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Se(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:No(t)}),Ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ao=t=>C("getUserFacilityPermissions",t),Oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Lt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield wt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Go=t=>C("GetRecommendations",t),Ea=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ee(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Go(t)}),Lo=t=>C("GetRecommendations",t,!0),Ca=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Ee(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Lo(t)}),wo=t=>C("getUserSportProfiles",t),Da=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),xa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ft(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>C("getUserSportProfile",t),Ua=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield jt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield zt(d(i(i({},t),r),{throwOnError:!0}));return o})}),va=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Bt(d(i(i({},t),r),{throwOnError:!0}));return o})}),ka=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Kt(d(i(i({},t),r),{throwOnError:!0}));return o})});var sr={};W(sr,{NotificationResourceIcon:()=>Vo,NotificationSource:()=>Qo,NotificationType:()=>Ho,Topic:()=>Yo,TopicSource:()=>Jo,client:()=>A,getNotificationById:()=>er,getNotifications:()=>xe,getNotificationsPreferences:()=>Xt,queries:()=>ir,registerDevice:()=>rr,schemas:()=>Jt,updateAllNotifications:()=>Wt,updateNotification:()=>tr,updateNotificationsPreferences:()=>Zt});var vr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var _a={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},hu=Object.entries(_a);var qo=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:a,sseMaxRetryDelay:n,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(T=>new Promise(I=>setTimeout(I,T)));return{stream:function(){return Te(this,null,function*(){var v,L,P;let T=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let nr=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(nr($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",ie=()=>{try{Y.cancel()}catch(se){}};k.addEventListener("abort",ie);try{for(;;){let{done:se,value:ar}=yield new N(Y.read());if(se)break;M+=ar,M=M.replace(/\r\n/g,`
|
|
28
31
|
`).replace(/\r/g,`
|
|
29
32
|
`);let ne=M.split(`
|
|
30
33
|
|
package/dist/main/index.mjs
CHANGED
|
@@ -20,11 +20,14 @@ PRIVATE (placeholder for users with searchable=false), distinguished by
|
|
|
20
20
|
the \`kind\` property on each variant. See
|
|
21
21
|
openspec/specs/match-participant-privacy/spec.md in team-discovery-docs.
|
|
22
22
|
`,oneOf:[{$ref:"#/components/schemas/PublicParticipantSummary"},{$ref:"#/components/schemas/PrivateParticipantSummary"}]},vs={properties:{is_read:{type:"boolean"}},type:"object"},ks={properties:{is_read:{type:"boolean"}},type:"object"},_s={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"},Ns={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"},As={properties:{latitude:{format:"double",type:"number"},longitude:{format:"double",type:"number"}},required:["latitude","longitude"],type:"object"},Gs={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"},reactions:{items:{$ref:"#/components/schemas/ReactionGroup"},type:"array"},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"},Ls={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},ws={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ms={enum:["ADMINS","MEMBERS"],type:"string"},qs={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"},Fs={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},js={description:"PRIVATE variant of ParticipantDetail. Carries only kind, participation_id, and joined_at.",properties:{joined_at:{format:"date-time",type:"string"},kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},zs={description:"Minimal placeholder for a participant whose User.searchable is false. Carries only kind and participation_id \u2014 no PII.",properties:{kind:{enum:["PRIVATE"],type:"string"},participation_id:{type:"string"}},required:["kind","participation_id"],type:"object"},Bs={properties:{first_name:{nullable:!0,type:"string"},joined_at:{format:"date-time",type:"string"},kind:{enum:["PUBLIC"],type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},participation_id:{type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id","joined_at"],type:"object"},Ks={properties:{first_name:{nullable:!0,type:"string"},kind:{enum:["PUBLIC"],type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},participation_id:{description:"Opaque per-row identifier sourced from Participation.id.",type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{description:"Matchi user ID. Null for guest customers (no Matchi user).",format:"uuid",nullable:!0,type:"string"}},required:["kind","participation_id"],type:"object"},$s={properties:{authors:{items:{$ref:"#/components/schemas/Author"},type:"array"},reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type","authors"],type:"object"},Vs={properties:{reaction_type:{$ref:"#/components/schemas/ReactionType"}},required:["reaction_type"],type:"object"},Qs={enum:["THUMBS_UP","HEART","SWEAT_SMILE","LAUGHING","HUSHED","FIRE"],type:"string"},Hs={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
23
|
-
`,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:{
|
|
24
|
-
`,type:"
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Ys={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Js={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Ws={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Xs={properties:{description:{type:"string"},facility_id:{type:"integer"},id:{type:"integer"},indoor:{type:"boolean"},name:{type:"string"},sport:{description:"Sport type. Available sports are served from the /config endpoint.",type:"string"},surface:{description:"Court surface type. Available surfaces are served from the /config endpoint.",type:"string"}},required:["id","name","facility_id"],type:"object"},Zs={enum:["FACILITY"],type:"string"},en={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},tn={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},rn={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},on={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},sn={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},nn={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},an={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},pn={enum:["FACILITY_MESSAGE"],type:"string"},cn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ln={properties:{level:{type:"string"}},required:["level"],type:"object"},un={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},mn={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},dn={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},yn={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"},fn={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},hn={enum:["HIDDEN","VISIBLE"],type:"string"},gn={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},bn={properties:{message:{description:"The error message",type:"string"}},type:"object"},Pn={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Rn={description:"String filter in PostgREST format: `operator.value`\n\n**Allowed operators:** eq, like, ilike, is, in\n**Negation:** Prefix with `not.` (e.g., `not.eq.value`)\n\n**Supported use cases:**\n- International names: Any Unicode letters (Chinese, Arabic, Cyrillic, etc.)\n- Names with apostrophes: `eq.O'Brien`, `eq.D'Angelo`\n- Email addresses: `eq.user@example.com`\n- Nordic characters: `eq.K\xF8benhavn`, `like.tr\xE4ning*`\n- Wildcards: `like.train*`, `ilike.*search*`\n- Special chars: dots, hyphens, underscores, @, +, spaces, etc.\n- Lists: `in.(value1,value2,value3)` or `not.in.(value1,value2,value3)`\n\nExamples:\n- `eq.training` - Exact match\n- `eq.O'Brien` - Name with apostrophe\n- `eq.user@example.com` - Email address\n- `eq.\u540D\u524D` - Japanese characters\n- `eq.Bj\xF6rk` - Nordic characters\n- `like.m\xFCnchen*` - German with wildcard\n- `ilike.*jos\xE9*` - Spanish name search\n- `is.null` - Is NULL\n- `not.eq.value` - Not equal\n- `in.(value1,value2,value3)` - List of values\n- `not.in.(value1,value2,value3)` - Not in list\n",example:"eq.training",maxLength:500,pattern:"^(eq|like|ilike|not\\.(eq|like|ilike))\\..+$|^(is|not\\.is)\\.null$|^(in|not\\.in)\\.\\(.+(,.+)*\\)$",type:"string"},On={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"}},required:["offset","limit","more_results"],type:"object"},Sn={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},Le=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Be=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ot=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},at=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},pt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},yt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Qr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Hr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Yr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Wr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Xr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Zr={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},eo={FACILITY:"FACILITY"},to={FACILITY_MESSAGE:"FACILITY_MESSAGE"},ro={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},oo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},io={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var Pt={};X(Pt,{acceptInvitationMutation:()=>vn,addUserSportProfileLevelMutation:()=>Da,createCommentMutation:()=>qn,createFacilityOfferOrderMutation:()=>Wn,createMatchParticipationMutation:()=>ra,createPostMutation:()=>Nn,createUserSportProfileMutation:()=>Sa,deleteCommentMutation:()=>Fn,deleteCommentReactionMutation:()=>zn,deleteMatchParticipationMutation:()=>oa,deletePostMutation:()=>An,deletePostReactionMutation:()=>Kn,deleteUserSportProfileLevelMutation:()=>xa,deleteUserSportProfileMutation:()=>Ea,getCommunityOptions:()=>Dn,getCommunityQueryKey:()=>ao,getFacilityOptions:()=>Hn,getFacilityQueryKey:()=>bo,getMatchOptions:()=>ta,getMatchQueryKey:()=>Co,getMatchUserPriceOptions:()=>ia,getMatchUserPriceQueryKey:()=>Do,getNotificationByIdOptions:()=>la,getNotificationByIdQueryKey:()=>To,getNotificationsInfiniteOptions:()=>na,getNotificationsInfiniteQueryKey:()=>Io,getNotificationsOptions:()=>sa,getNotificationsPreferencesOptions:()=>pa,getNotificationsPreferencesQueryKey:()=>Uo,getNotificationsQueryKey:()=>xo,getPostOptions:()=>Gn,getPostQueryKey:()=>mo,getRecommendationsInfiniteOptions:()=>Ra,getRecommendationsInfiniteQueryKey:()=>Lo,getRecommendationsOptions:()=>Pa,getRecommendationsQueryKey:()=>Go,getResourceOptions:()=>ma,getResourceQueryKey:()=>vo,getSportAuthoritiesOptions:()=>da,getSportAuthoritiesQueryKey:()=>ko,getUserFacilityPermissionsOptions:()=>ga,getUserFacilityPermissionsQueryKey:()=>Ao,getUserSportProfileOptions:()=>Ca,getUserSportProfileQueryKey:()=>Mo,getUserSportProfilesOptions:()=>Oa,getUserSportProfilesQueryKey:()=>wo,joinCommunityMutation:()=>Un,leaveCommunityMutation:()=>Tn,listCommentsInfiniteOptions:()=>Mn,listCommentsInfiniteQueryKey:()=>fo,listCommentsOptions:()=>wn,listCommentsQueryKey:()=>yo,listCommunitiesInfiniteOptions:()=>Cn,listCommunitiesInfiniteQueryKey:()=>no,listCommunitiesOptions:()=>En,listCommunitiesQueryKey:()=>so,listFacilitiesInfiniteOptions:()=>Qn,listFacilitiesInfiniteQueryKey:()=>go,listFacilitiesOptions:()=>Vn,listFacilitiesQueryKey:()=>ho,listFacilityOffersInfiniteOptions:()=>Jn,listFacilityOffersInfiniteQueryKey:()=>Ro,listFacilityOffersOptions:()=>Yn,listFacilityOffersQueryKey:()=>Po,listFacilityResourcesOptions:()=>Xn,listFacilityResourcesQueryKey:()=>Oo,listMatchesInfiniteOptions:()=>ea,listMatchesInfiniteQueryKey:()=>Eo,listMatchesOptions:()=>Zn,listMatchesQueryKey:()=>So,listMembersInfiniteOptions:()=>In,listMembersInfiniteQueryKey:()=>co,listMembersOptions:()=>xn,listMembersQueryKey:()=>po,listPostsInfiniteOptions:()=>_n,listPostsInfiniteQueryKey:()=>uo,listPostsOptions:()=>kn,listPostsQueryKey:()=>lo,markCommentReadMutation:()=>jn,markPostReadMutation:()=>Ln,registerDeviceMutation:()=>ha,searchUsersInfiniteOptions:()=>fa,searchUsersInfiniteQueryKey:()=>No,searchUsersOptions:()=>ya,searchUsersQueryKey:()=>_o,updateAllNotificationsMutation:()=>aa,updateNotificationMutation:()=>ua,updateNotificationsPreferencesMutation:()=>ca,updateUserProfileMutation:()=>ba,updateUserSportProfileLevelMutation:()=>Ia,upsertCommentReactionMutation:()=>Bn,upsertPostReactionMutation:()=>$n});var C=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},so=t=>C("listCommunities",t),En=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield de(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:so(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},no=t=>C("listCommunities",t,!0),Cn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield de(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:no(t)}),ao=t=>C("getCommunity",t),Dn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),po=t=>C("listMembers",t),xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:po(t)}),co=t=>C("listMembers",t,!0),In=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ye(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:co(t)}),Un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(d(i(i({},t),r),{throwOnError:!0}));return o})}),Tn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(d(i(i({},t),r),{throwOnError:!0}));return o})}),vn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(d(i(i({},t),r),{throwOnError:!0}));return o})}),lo=t=>C("listPosts",t),kn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:lo(t)}),uo=t=>C("listPosts",t,!0),_n=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield fe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:uo(t)}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(d(i(i({},t),r),{throwOnError:!0}));return o})}),An=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),mo=t=>C("getPost",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:mo(t)}),Ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(d(i(i({},t),r),{throwOnError:!0}));return o})}),yo=t=>C("listComments",t),wn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),fo=t=>C("listComments",t,!0),Mn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield he(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:fo(t)}),qn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(d(i(i({},t),r),{throwOnError:!0}));return o})}),jn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(d(i(i({},t),r),{throwOnError:!0}));return o})}),zn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(d(i(i({},t),r),{throwOnError:!0}));return o})}),Bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ve(d(i(i({},t),r),{throwOnError:!0}));return o})}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(d(i(i({},t),r),{throwOnError:!0}));return o})}),ho=t=>C("ListFacilities",t),Vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ho(t)}),go=t=>C("ListFacilities",t,!0),Qn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ge(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:go(t)}),bo=t=>C("GetFacility",t),Hn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Po=t=>C("ListFacilityOffers",t),Yn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ro=t=>C("ListFacilityOffers",t,!0),Jn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield be(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Ro(t)}),Wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Je(d(i(i({},t),r),{throwOnError:!0}));return o})}),Oo=t=>C("ListFacilityResources",t),Xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield We(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Oo(t)}),So=t=>C("ListMatches",t),Zn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>C("ListMatches",t,!0),ea=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Pe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Eo(t)}),Co=t=>C("GetMatch",t),ta=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Xe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(d(i(i({},t),r),{throwOnError:!0}));return o})}),Do=t=>C("GetMatchUserPrice",t),ia=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Do(t)}),xo=t=>C("GetNotifications",t),sa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Io=t=>C("GetNotifications",t,!0),na=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Re(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Io(t)}),aa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetNotificationsPreferences",t),pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Uo(t)}),ca=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("GetNotificationById",t),la=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield st(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(d(i(i({},t),r),{throwOnError:!0}));return o})}),vo=t=>C("GetResource",t),ma=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),ko=t=>C("getSportAuthorities",t),da=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ko(t)}),_o=t=>C("searchUsers",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),No=t=>C("searchUsers",t,!0),fa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Oe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:No(t)}),ha=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ao=t=>C("getUserFacilityPermissions",t),ga=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield lt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),ba=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),Go=t=>C("GetRecommendations",t),Pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Go(t)}),Lo=t=>C("GetRecommendations",t,!0),Ra=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Se(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Lo(t)}),wo=t=>C("getUserSportProfiles",t),Oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>C("getUserSportProfile",t),Ca=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ft(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Da=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(d(i(i({},t),r),{throwOnError:!0}));return o})}),xa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(d(i(i({},t),r),{throwOnError:!0}));return o})});var Or={};X(Or,{NotificationResourceIcon:()=>Vo,NotificationSource:()=>Qo,NotificationType:()=>Ho,Topic:()=>Yo,TopicSource:()=>Jo,client:()=>A,getNotificationById:()=>It,getNotifications:()=>De,getNotificationsPreferences:()=>Dt,queries:()=>kt,registerDevice:()=>Tt,schemas:()=>Et,updateAllNotifications:()=>Ct,updateNotification:()=>Ut,updateNotificationsPreferences:()=>xt});var hr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Ua={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},uu=Object.entries(Ua);var qo=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:a,sseMaxRetryDelay:n,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(T=>new Promise(I=>setTimeout(I,T)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let T=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let _t=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(_t($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Nt}=yield new N(Y.read());if(ie)break;M+=Nt,M=M.replace(/\r\n/g,`
|
|
23
|
+
`,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:{description:`Facility ID. 0 for matches without facility details available.
|
|
24
|
+
`,type:"integer"},facility_name:{description:`Facility name. Empty string for matches without facility details available.
|
|
25
|
+
`,type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. For activity occasions this is the occasion ID; for public matches it is the session ID.
|
|
26
|
+
`,type:"string"},level_max:{description:"Maximum skill level. Null if not set.",format:"float",nullable:!0,type:"number"},level_min:{description:"Minimum skill level. Null if not set.",format:"float",nullable:!0,type:"number"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
|
|
27
|
+
`,nullable:!0,type:"boolean"},name:{description:`Display name for the recommendation card. Empty string for MATCH_PUBLIC type which has no name set.
|
|
28
|
+
`,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.
|
|
29
|
+
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to. MATCH_ACTIVITY is a venue/facility-created match; MATCH_PUBLIC is a player-created public match.
|
|
30
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY","MATCH_PUBLIC"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Ys={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Js={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Ws={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Xs={properties:{description:{type:"string"},facility_id:{type:"integer"},id:{type:"integer"},indoor:{type:"boolean"},name:{type:"string"},sport:{description:"Sport type. Available sports are served from the /config endpoint.",type:"string"},surface:{description:"Court surface type. Available surfaces are served from the /config endpoint.",type:"string"}},required:["id","name","facility_id"],type:"object"},Zs={enum:["FACILITY"],type:"string"},en={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},tn={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},rn={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},on={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},sn={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},nn={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},an={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},pn={enum:["FACILITY_MESSAGE"],type:"string"},cn={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},ln={properties:{level:{type:"string"}},required:["level"],type:"object"},un={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},mn={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},dn={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},yn={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"},fn={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},hn={enum:["HIDDEN","VISIBLE"],type:"string"},gn={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},bn={properties:{message:{description:"The error message",type:"string"}},type:"object"},Pn={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},Rn={description:"String filter in PostgREST format: `operator.value`\n\n**Allowed operators:** eq, like, ilike, is, in\n**Negation:** Prefix with `not.` (e.g., `not.eq.value`)\n\n**Supported use cases:**\n- International names: Any Unicode letters (Chinese, Arabic, Cyrillic, etc.)\n- Names with apostrophes: `eq.O'Brien`, `eq.D'Angelo`\n- Email addresses: `eq.user@example.com`\n- Nordic characters: `eq.K\xF8benhavn`, `like.tr\xE4ning*`\n- Wildcards: `like.train*`, `ilike.*search*`\n- Special chars: dots, hyphens, underscores, @, +, spaces, etc.\n- Lists: `in.(value1,value2,value3)` or `not.in.(value1,value2,value3)`\n\nExamples:\n- `eq.training` - Exact match\n- `eq.O'Brien` - Name with apostrophe\n- `eq.user@example.com` - Email address\n- `eq.\u540D\u524D` - Japanese characters\n- `eq.Bj\xF6rk` - Nordic characters\n- `like.m\xFCnchen*` - German with wildcard\n- `ilike.*jos\xE9*` - Spanish name search\n- `is.null` - Is NULL\n- `not.eq.value` - Not equal\n- `in.(value1,value2,value3)` - List of values\n- `not.in.(value1,value2,value3)` - Not in list\n",example:"eq.training",maxLength:500,pattern:"^(eq|like|ilike|not\\.(eq|like|ilike))\\..+$|^(is|not\\.is)\\.null$|^(in|not\\.in)\\.\\(.+(,.+)*\\)$",type:"string"},On={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"}},required:["offset","limit","more_results"],type:"object"},Sn={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var de=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/communities/{communityId}/members"},t))},Le=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},he=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Be=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/communities/{communityId}/posts/{postId}/reactions"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ge=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/facilities"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}"},t))},be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},We=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/resources"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},Re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ot=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},it=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},st=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},at=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/resources/{resource_id}"},t))},pt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},Oe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},ct=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},lt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).patch(d(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Se=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},mt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},yt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).post(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},gt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},bt=t=>{var e;return((e=t.client)!=null?e:h).put(d(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var Qr={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},Hr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},Yr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},Jr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Wr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},Xr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},Zr={THUMBS_UP:"THUMBS_UP",HEART:"HEART",SWEAT_SMILE:"SWEAT_SMILE",LAUGHING:"LAUGHING",HUSHED:"HUSHED",FIRE:"FIRE"},eo={FACILITY:"FACILITY"},to={FACILITY_MESSAGE:"FACILITY_MESSAGE"},ro={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},oo={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},io={HIDDEN:"HIDDEN",VISIBLE:"VISIBLE"};var Pt={};X(Pt,{acceptInvitationMutation:()=>vn,addUserSportProfileLevelMutation:()=>Da,createCommentMutation:()=>qn,createFacilityOfferOrderMutation:()=>Wn,createMatchParticipationMutation:()=>ra,createPostMutation:()=>Nn,createUserSportProfileMutation:()=>Sa,deleteCommentMutation:()=>Fn,deleteCommentReactionMutation:()=>zn,deleteMatchParticipationMutation:()=>oa,deletePostMutation:()=>An,deletePostReactionMutation:()=>Kn,deleteUserSportProfileLevelMutation:()=>xa,deleteUserSportProfileMutation:()=>Ea,getCommunityOptions:()=>Dn,getCommunityQueryKey:()=>ao,getFacilityOptions:()=>Hn,getFacilityQueryKey:()=>bo,getMatchOptions:()=>ta,getMatchQueryKey:()=>Co,getMatchUserPriceOptions:()=>ia,getMatchUserPriceQueryKey:()=>Do,getNotificationByIdOptions:()=>la,getNotificationByIdQueryKey:()=>To,getNotificationsInfiniteOptions:()=>na,getNotificationsInfiniteQueryKey:()=>Io,getNotificationsOptions:()=>sa,getNotificationsPreferencesOptions:()=>pa,getNotificationsPreferencesQueryKey:()=>Uo,getNotificationsQueryKey:()=>xo,getPostOptions:()=>Gn,getPostQueryKey:()=>mo,getRecommendationsInfiniteOptions:()=>Ra,getRecommendationsInfiniteQueryKey:()=>Lo,getRecommendationsOptions:()=>Pa,getRecommendationsQueryKey:()=>Go,getResourceOptions:()=>ma,getResourceQueryKey:()=>vo,getSportAuthoritiesOptions:()=>da,getSportAuthoritiesQueryKey:()=>ko,getUserFacilityPermissionsOptions:()=>ga,getUserFacilityPermissionsQueryKey:()=>Ao,getUserSportProfileOptions:()=>Ca,getUserSportProfileQueryKey:()=>Mo,getUserSportProfilesOptions:()=>Oa,getUserSportProfilesQueryKey:()=>wo,joinCommunityMutation:()=>Un,leaveCommunityMutation:()=>Tn,listCommentsInfiniteOptions:()=>Mn,listCommentsInfiniteQueryKey:()=>fo,listCommentsOptions:()=>wn,listCommentsQueryKey:()=>yo,listCommunitiesInfiniteOptions:()=>Cn,listCommunitiesInfiniteQueryKey:()=>no,listCommunitiesOptions:()=>En,listCommunitiesQueryKey:()=>so,listFacilitiesInfiniteOptions:()=>Qn,listFacilitiesInfiniteQueryKey:()=>go,listFacilitiesOptions:()=>Vn,listFacilitiesQueryKey:()=>ho,listFacilityOffersInfiniteOptions:()=>Jn,listFacilityOffersInfiniteQueryKey:()=>Ro,listFacilityOffersOptions:()=>Yn,listFacilityOffersQueryKey:()=>Po,listFacilityResourcesOptions:()=>Xn,listFacilityResourcesQueryKey:()=>Oo,listMatchesInfiniteOptions:()=>ea,listMatchesInfiniteQueryKey:()=>Eo,listMatchesOptions:()=>Zn,listMatchesQueryKey:()=>So,listMembersInfiniteOptions:()=>In,listMembersInfiniteQueryKey:()=>co,listMembersOptions:()=>xn,listMembersQueryKey:()=>po,listPostsInfiniteOptions:()=>_n,listPostsInfiniteQueryKey:()=>uo,listPostsOptions:()=>kn,listPostsQueryKey:()=>lo,markCommentReadMutation:()=>jn,markPostReadMutation:()=>Ln,registerDeviceMutation:()=>ha,searchUsersInfiniteOptions:()=>fa,searchUsersInfiniteQueryKey:()=>No,searchUsersOptions:()=>ya,searchUsersQueryKey:()=>_o,updateAllNotificationsMutation:()=>aa,updateNotificationMutation:()=>ua,updateNotificationsPreferencesMutation:()=>ca,updateUserProfileMutation:()=>ba,updateUserSportProfileLevelMutation:()=>Ia,upsertCommentReactionMutation:()=>Bn,upsertPostReactionMutation:()=>$n});var C=(t,e,r,o)=>{var l;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((l=e==null?void 0:e.client)!=null?l:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},so=t=>C("listCommunities",t),En=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield de(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:so(t)}),K=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},no=t=>C("listCommunities",t,!0),Cn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield de(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:no(t)}),ao=t=>C("getCommunity",t),Dn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ao(t)}),po=t=>C("listMembers",t),xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:po(t)}),co=t=>C("listMembers",t,!0),In=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ye(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:co(t)}),Un=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(d(i(i({},t),r),{throwOnError:!0}));return o})}),Tn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Le(d(i(i({},t),r),{throwOnError:!0}));return o})}),vn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(d(i(i({},t),r),{throwOnError:!0}));return o})}),lo=t=>C("listPosts",t),kn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:lo(t)}),uo=t=>C("listPosts",t,!0),_n=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield fe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:uo(t)}),Nn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(d(i(i({},t),r),{throwOnError:!0}));return o})}),An=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),mo=t=>C("getPost",t),Gn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Fe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:mo(t)}),Ln=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(d(i(i({},t),r),{throwOnError:!0}));return o})}),yo=t=>C("listComments",t),wn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield he(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:yo(t)}),fo=t=>C("listComments",t,!0),Mn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield he(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:fo(t)}),qn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),Fn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Be(d(i(i({},t),r),{throwOnError:!0}));return o})}),jn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(d(i(i({},t),r),{throwOnError:!0}));return o})}),zn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(d(i(i({},t),r),{throwOnError:!0}));return o})}),Bn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ve(d(i(i({},t),r),{throwOnError:!0}));return o})}),Kn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(d(i(i({},t),r),{throwOnError:!0}));return o})}),$n=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(d(i(i({},t),r),{throwOnError:!0}));return o})}),ho=t=>C("ListFacilities",t),Vn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ge(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ho(t)}),go=t=>C("ListFacilities",t,!0),Qn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield ge(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:go(t)}),bo=t=>C("GetFacility",t),Hn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ye(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:bo(t)}),Po=t=>C("ListFacilityOffers",t),Yn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield be(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Po(t)}),Ro=t=>C("ListFacilityOffers",t,!0),Jn=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield be(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Ro(t)}),Wn=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Je(d(i(i({},t),r),{throwOnError:!0}));return o})}),Oo=t=>C("ListFacilityResources",t),Xn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield We(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Oo(t)}),So=t=>C("ListMatches",t),Zn=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:So(t)}),Eo=t=>C("ListMatches",t,!0),ea=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Pe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Eo(t)}),Co=t=>C("GetMatch",t),ta=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Xe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Co(t)}),ra=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(d(i(i({},t),r),{throwOnError:!0}));return o})}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(d(i(i({},t),r),{throwOnError:!0}));return o})}),Do=t=>C("GetMatchUserPrice",t),ia=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield tt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Do(t)}),xo=t=>C("GetNotifications",t),sa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Re(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xo(t)}),Io=t=>C("GetNotifications",t,!0),na=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{cursor:e}}),{data:n}=yield Re(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Io(t)}),aa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield rt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Uo=t=>C("GetNotificationsPreferences",t),pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Uo(t)}),ca=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(d(i(i({},t),r),{throwOnError:!0}));return o})}),To=t=>C("GetNotificationById",t),la=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield st(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:To(t)}),ua=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(d(i(i({},t),r),{throwOnError:!0}));return o})}),vo=t=>C("GetResource",t),ma=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vo(t)}),ko=t=>C("getSportAuthorities",t),da=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:ko(t)}),_o=t=>C("searchUsers",t),ya=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Oe(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:_o(t)}),No=t=>C("searchUsers",t,!0),fa=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Oe(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:No(t)}),ha=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ct(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ao=t=>C("getUserFacilityPermissions",t),ga=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield lt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ao(t)}),ba=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(d(i(i({},t),r),{throwOnError:!0}));return o})}),Go=t=>C("GetRecommendations",t),Pa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Se(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Go(t)}),Lo=t=>C("GetRecommendations",t,!0),Ra=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let a=K(r,typeof e=="object"?e:{query:{offset:e}}),{data:n}=yield Se(d(i(i({},t),a),{signal:o,throwOnError:!0}));return n}),queryKey:Lo(t)}),wo=t=>C("getUserSportProfiles",t),Oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wo(t)}),Sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield yt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Mo=t=>C("getUserSportProfile",t),Ca=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ft(d(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mo(t)}),Da=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ht(d(i(i({},t),r),{throwOnError:!0}));return o})}),xa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(d(i(i({},t),r),{throwOnError:!0}));return o})}),Ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(d(i(i({},t),r),{throwOnError:!0}));return o})});var Or={};X(Or,{NotificationResourceIcon:()=>Vo,NotificationSource:()=>Qo,NotificationType:()=>Ho,Topic:()=>Yo,TopicSource:()=>Jo,client:()=>A,getNotificationById:()=>It,getNotifications:()=>De,getNotificationsPreferences:()=>Dt,queries:()=>kt,registerDevice:()=>Tt,schemas:()=>Et,updateAllNotifications:()=>Ct,updateNotification:()=>Ut,updateNotificationsPreferences:()=>xt});var hr={bodySerializer:t=>JSON.stringify(t,(e,r)=>typeof r=="bigint"?r.toString():r)};var Ua={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},uu=Object.entries(Ua);var qo=O=>{var R=O,{onRequest:t,onSseError:e,onSseEvent:r,responseTransformer:o,responseValidator:s,sseDefaultRetryDelay:l,sseMaxRetryAttempts:a,sseMaxRetryDelay:n,sseSleepFn:m,url:f}=R,u=j(R,["onRequest","onSseError","onSseEvent","responseTransformer","responseValidator","sseDefaultRetryDelay","sseMaxRetryAttempts","sseMaxRetryDelay","sseSleepFn","url"]);let g,G=m!=null?m:(T=>new Promise(I=>setTimeout(I,T)));return{stream:function(){return Ie(this,null,function*(){var v,L,P;let T=l!=null?l:3e3,I=0,k=(v=u.signal)!=null?v:new AbortController().signal;for(;!k.aborted;){I++;let E=u.headers instanceof Headers?u.headers:new Headers(u.headers);g!==void 0&&E.set("Last-Event-ID",g);try{let S=d(i({redirect:"follow"},u),{body:u.serializedBody,headers:E,signal:k}),$=new Request(f,S);t&&($=yield new N(t(f,S)));let _t=(L=u.fetch)!=null?L:globalThis.fetch,w=yield new N(_t($));if(!w.ok)throw new Error(`SSE failed: ${w.status} ${w.statusText}`);if(!w.body)throw new Error("No body in SSE response");let Y=w.body.pipeThrough(new TextDecoderStream).getReader(),M="",oe=()=>{try{Y.cancel()}catch(ie){}};k.addEventListener("abort",oe);try{for(;;){let{done:ie,value:Nt}=yield new N(Y.read());if(ie)break;M+=Nt,M=M.replace(/\r\n/g,`
|
|
28
31
|
`).replace(/\r/g,`
|
|
29
32
|
`);let se=M.split(`
|
|
30
33
|
|