@matchi/api 0.20260610.1 → 0.20260610.2
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 +10 -0
- package/dist/main/index.d.ts +10 -0
- package/dist/main/index.js +2 -1
- package/dist/main/index.mjs +2 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -3918,6 +3918,11 @@ type MatchOccasion = {
|
|
|
3918
3918
|
*
|
|
3919
3919
|
*/
|
|
3920
3920
|
type MatchOccasionDetail = MatchOccasion & {
|
|
3921
|
+
/**
|
|
3922
|
+
* Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.
|
|
3923
|
+
*
|
|
3924
|
+
*/
|
|
3925
|
+
access_code?: string | null;
|
|
3921
3926
|
can_be_cancelled_by_user: boolean;
|
|
3922
3927
|
event: MatchEvent;
|
|
3923
3928
|
external_services: Array<ExternalService>;
|
|
@@ -7291,6 +7296,11 @@ declare const MatchOccasionDetailSchema: {
|
|
|
7291
7296
|
readonly $ref: "#/components/schemas/MatchOccasion";
|
|
7292
7297
|
}, {
|
|
7293
7298
|
readonly properties: {
|
|
7299
|
+
readonly access_code: {
|
|
7300
|
+
readonly description: "Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. \"0666\") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.\n";
|
|
7301
|
+
readonly nullable: true;
|
|
7302
|
+
readonly type: "string";
|
|
7303
|
+
};
|
|
7294
7304
|
readonly can_be_cancelled_by_user: {
|
|
7295
7305
|
readonly type: "boolean";
|
|
7296
7306
|
};
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3918,6 +3918,11 @@ type MatchOccasion = {
|
|
|
3918
3918
|
*
|
|
3919
3919
|
*/
|
|
3920
3920
|
type MatchOccasionDetail = MatchOccasion & {
|
|
3921
|
+
/**
|
|
3922
|
+
* Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.
|
|
3923
|
+
*
|
|
3924
|
+
*/
|
|
3925
|
+
access_code?: string | null;
|
|
3921
3926
|
can_be_cancelled_by_user: boolean;
|
|
3922
3927
|
event: MatchEvent;
|
|
3923
3928
|
external_services: Array<ExternalService>;
|
|
@@ -7291,6 +7296,11 @@ declare const MatchOccasionDetailSchema: {
|
|
|
7291
7296
|
readonly $ref: "#/components/schemas/MatchOccasion";
|
|
7292
7297
|
}, {
|
|
7293
7298
|
readonly properties: {
|
|
7299
|
+
readonly access_code: {
|
|
7300
|
+
readonly description: "Venue door/gate access code for the match. Display-only and informational — it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. \"0666\") or, while a code is still being provisioned, a short localized placeholder sentence — do not parse or validate it.\n";
|
|
7301
|
+
readonly nullable: true;
|
|
7302
|
+
readonly type: "string";
|
|
7303
|
+
};
|
|
7294
7304
|
readonly can_be_cancelled_by_user: {
|
|
7295
7305
|
readonly type: "boolean";
|
|
7296
7306
|
};
|
package/dist/main/index.js
CHANGED
|
@@ -10,7 +10,8 @@ UNKNOWN \u2014 the community member who authored the post or comment
|
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Ci={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},xi={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},Di={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ii={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ti={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ui={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},vi={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},ki={description:"At least one of `content` or `links` must be provided. When `links` is\npresent and non-empty, `content` may be omitted.\n",properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},type:"object"},_i={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Ni={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Ai={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},Gi={properties:{active:{type:"boolean"},address:{$ref:"#/components/schemas/Address"},bookable:{type:"boolean"},currency:{type:"string"},description:{type:"string"},email:{format:"email",type:"string"},id:{type:"integer"},logo_url:{format:"uri",type:"string"},name:{type:"string"},phone_number:{type:"string"},position:{$ref:"#/components/schemas/Position"},resource_types:{items:{type:"string"},type:"array"},sports:{items:{type:"string"},type:"array"},website:{format:"uri",type:"string"}},required:["id","name","logo_url","address","position","resource_types"],type:"object"},Li={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},result_set:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["result_set","items"],type:"object"},wi={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Mi={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},qi={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Fi={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},zi={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},ji={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Bi={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Ki={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},$i={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Qi={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Vi={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Hi={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Yi={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Wi={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Ji={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Xi={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Zi={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},es={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},ts={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},rs={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},os={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},is={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ss={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},as={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
|
-
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ns={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{
|
|
13
|
+
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ns={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{access_code:{description:`Venue door/gate access code for the match. Display-only and informational \u2014 it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence \u2014 do not parse or validate it.
|
|
14
|
+
`,nullable:!0,type:"string"},can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
15
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
15
16
|
`},ps={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},cs={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},ls={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},us={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},ms={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ds={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ys={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"},fs={enum:["ACTIVE","INVITED","LEFT"],type:"string"},hs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},gs={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},bs={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},Ps={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Os={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Rs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Ss={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Es={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Cs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},xs={description:`Player-facing participant row with join timestamp. Tagged union over
|
|
16
17
|
PUBLIC and PRIVATE variants \u2014 see ParticipantSummary.
|
package/dist/main/index.mjs
CHANGED
|
@@ -10,7 +10,8 @@ UNKNOWN \u2014 the community member who authored the post or comment
|
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Oi={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Ri={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},Si={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ei={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ci={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},xi={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Di={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Ii={description:"At least one of `content` or `links` must be provided. When `links` is\npresent and non-empty, `content` may be omitted.\n",properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},type:"object"},Ti={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Ui={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},vi={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},ki={properties:{active:{type:"boolean"},address:{$ref:"#/components/schemas/Address"},bookable:{type:"boolean"},currency:{type:"string"},description:{type:"string"},email:{format:"email",type:"string"},id:{type:"integer"},logo_url:{format:"uri",type:"string"},name:{type:"string"},phone_number:{type:"string"},position:{$ref:"#/components/schemas/Position"},resource_types:{items:{type:"string"},type:"array"},sports:{items:{type:"string"},type:"array"},website:{format:"uri",type:"string"}},required:["id","name","logo_url","address","position","resource_types"],type:"object"},_i={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},result_set:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["result_set","items"],type:"object"},Ni={properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ai={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},Gi={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Li={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},wi={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Mi={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},qi={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Fi={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},zi={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},ji={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Bi={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Ki={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},$i={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Qi={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Vi={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},Hi={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},Yi={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},Wi={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},Ji={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},Xi={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},Zi={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},es={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ts={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},rs={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
|
-
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},os={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{
|
|
13
|
+
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},os={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{access_code:{description:`Venue door/gate access code for the match. Display-only and informational \u2014 it does not gate anything. Returned only when the requesting user has joined the match (user_status == PARTICIPATING) and the match has access codes enabled; null otherwise. Surface verbatim: the value may be a real code (e.g. "0666") or, while a code is still being provisioned, a short localized placeholder sentence \u2014 do not parse or validate it.
|
|
14
|
+
`,nullable:!0,type:"string"},can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
15
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
15
16
|
`},is={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},ss={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},as={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},ns={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},ps={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},cs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ls={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"},us={enum:["ACTIVE","INVITED","LEFT"],type:"string"},ms={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},ds={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},ys={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"}]},fs={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},hs={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},gs={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},bs={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Ps={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Os={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Rs={description:`Player-facing participant row with join timestamp. Tagged union over
|
|
16
17
|
PUBLIC and PRIVATE variants \u2014 see ParticipantSummary.
|