tonightpass 0.0.258 → 0.0.259

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/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import {pathcat}from'pathcat';import Ri from'redaxios';import'reflect-metadata';import {IsString,Length,IsEnum,IsOptional,IsArray,IsUrl,ArrayMaxSize,IsBoolean,Matches,ArrayMinSize,ValidateIf,ValidatorConstraint,Validate,IsMongoId,IsNotEmpty,ValidateNested,IsLowercase,IsObject,IsNumber,Min,IsDate,MinDate,Max,IsEmail,IsPhoneNumber,registerDecorator}from'class-validator';import {Transform,Type}from'class-transformer';var gi=Object.defineProperty;var n=(e,t)=>gi(e,"name",{value:t,configurable:true});var uo="https://api.tonightpass.com";var c={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i,ORGANIZATION_AVATAR_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/organizations\/[\w-]+\/avatars\//,ORGANIZATION_BANNER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/organizations\/[\w-]+\/banners\//,EVENT_FLYER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/events\/flyers\/|organizations\/[\w-]+\/events\/[\w-]+\/flyers\/)/,EVENT_FLYER_URL_UPDATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com|cdn\.payload\.tonightpass\.com)\/(temp\/events\/flyers\/|organizations\/[\w-]+\/events\/[\w-]+\/flyers\/|[\w-]+\.\w+$)/,EVENT_TRAILER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/events\/trailers\/|organizations\/[\w-]+\/events\/[\w-]+\/trailers\/)/,EVENT_TRAILER_URL_UPDATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com|cdn\.payload\.tonightpass\.com)\/(temp\/events\/trailers\/|organizations\/[\w-]+\/events\/[\w-]+\/trailers\/|[\w-]+\.\w+$)/,USER_AVATAR_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/users\/[\w-]+\/avatars\//,USER_AVATAR_URL_CREATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(users\/[\w-]+\/avatars\/|temp\/users\/avatars\/)/,USER_BANNER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/users\/[\w-]+\/banners\//,CHANNEL_MESSAGE_ATTACHMENT:/^channels\/[\w-]+\/messages\/[\w-]+\/private\/[\w-]+$/,USER_POST_MEDIA_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/posts\/media\/|users\/[\w-]+\/posts\/[\w-]+\/media\/)/};var Ra=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),f=function(e){return e.Owner="owner",e.Admin="admin",e.Manager="manager",e.Member="member",e}({});var Ia=function(e){return e.Follow="follow",e}({});var _a=function(e){return e.Image="image",e.Video="video",e}({});var J=function(e){return e.Public="public",e.Followers="followers",e.Private="private",e}({});var Na=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Je=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Q=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),La=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var It={[f.Owner]:3,[f.Admin]:2,[f.Manager]:1,[f.Member]:0},Va={[Je.Admin]:2,[Je.Developer]:1,[Je.User]:0};var Qe=class{static{n(this,"MemoryCacheStore");}cache=new Map;maxSize;constructor(t=1e3){this.maxSize=t;}async get(t){return this.cache.get(t)??null}async set(t,o){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){let s=this.cache.keys().next().value;s!==void 0&&this.cache.delete(s);}this.cache.set(t,o);}async delete(t){this.cache.delete(t);}async clear(){this.cache.clear();}async size(){return this.cache.size}async keys(){return Array.from(this.cache.keys())}};var ze=class{static{n(this,"CacheManager");}store;options;constructor(t){this.options={enabled:t.enabled,ttl:t.ttl??6e4,maxSize:t.maxSize??1e3,methods:t.methods??["GET"]},this.store=t.store??new Qe(this.options.maxSize);}generateKey(t,o){return `${t}:${o}`}shouldCache(t){return this.options.enabled&&this.options.methods.includes(t)}isValid(t){return Date.now()-t.timestamp<this.options.ttl}async get(t,o){if(!this.shouldCache(t))return null;let s=this.generateKey(t,o),r=await this.store.get(s);return r?this.isValid(r)?r.data:(await this.store.delete(s),null):null}async set(t,o,s){if(!this.shouldCache(t))return;let r=this.generateKey(t,o);await this.store.set(r,{data:s,timestamp:Date.now()});}async clear(){await this.store.clear();}async stats(){return {size:await this.store.size(),keys:await this.store.keys()}}};var At={name:"tonightpass",version:"0.0.258"};var Ce=function(e){return e.USD="USD",e.EUR="EUR",e.GBP="GBP",e.ARS="ARS",e.AWG="AWG",e.BBD="BBD",e.BMD="BMD",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BZD="BZD",e.CAD="CAD",e.CLP="CLP",e.COP="COP",e.CRC="CRC",e.DOP="DOP",e.FKP="FKP",e.GTQ="GTQ",e.GYD="GYD",e.HNL="HNL",e.HTG="HTG",e.JMD="JMD",e.KYD="KYD",e.MXN="MXN",e.NIO="NIO",e.PAB="PAB",e.PEN="PEN",e.PYG="PYG",e.SRD="SRD",e.TTD="TTD",e.UYU="UYU",e.XCD="XCD",e.ALL="ALL",e.BAM="BAM",e.BGN="BGN",e.BYN="BYN",e.CHF="CHF",e.CZK="CZK",e.DKK="DKK",e.GEL="GEL",e.GIP="GIP",e.HUF="HUF",e.ISK="ISK",e.MDL="MDL",e.MKD="MKD",e.NOK="NOK",e.PLN="PLN",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.SEK="SEK",e.TRY="TRY",e.UAH="UAH",e.AED="AED",e.AFN="AFN",e.AMD="AMD",e.AZN="AZN",e.BDT="BDT",e.BND="BND",e.CNY="CNY",e.HKD="HKD",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.JPY="JPY",e.KGS="KGS",e.KHR="KHR",e.KRW="KRW",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MVR="MVR",e.MYR="MYR",e.NPR="NPR",e.PHP="PHP",e.PKR="PKR",e.QAR="QAR",e.SAR="SAR",e.SGD="SGD",e.THB="THB",e.TJS="TJS",e.TWD="TWD",e.UZS="UZS",e.VND="VND",e.YER="YER",e.AOA="AOA",e.BWP="BWP",e.CDF="CDF",e.CVE="CVE",e.DJF="DJF",e.DZD="DZD",e.EGP="EGP",e.ETB="ETB",e.GMD="GMD",e.GNF="GNF",e.KES="KES",e.KMF="KMF",e.LRD="LRD",e.LSL="LSL",e.MAD="MAD",e.MGA="MGA",e.MUR="MUR",e.MWK="MWK",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.RWF="RWF",e.SCR="SCR",e.SHP="SHP",e.SLE="SLE",e.SOS="SOS",e.STD="STD",e.SZL="SZL",e.TZS="TZS",e.UGX="UGX",e.XAF="XAF",e.XOF="XOF",e.ZAR="ZAR",e.ZMW="ZMW",e.ANG="ANG",e.AUD="AUD",e.BIF="BIF",e.FJD="FJD",e.NZD="NZD",e.PGK="PGK",e.SBD="SBD",e.TOP="TOP",e.VUV="VUV",e.WST="WST",e.XCG="XCG",e.XPF="XPF",e}({}),go=["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"],yo={USD:50,AED:200,ARS:50,AUD:50,BRL:50,CAD:50,CHF:50,COP:50,CZK:1500,DKK:250,EUR:50,GBP:30,HKD:400,HUF:17500,IDR:50,ILS:50,INR:50,JPY:50,KRW:50,MXN:1e3,MYR:200,NOK:300,NZD:50,PHP:50,PLN:200,RON:200,RUB:50,SEK:300,SGD:50,THB:1e3,ZAR:50};function ho(e){return go.includes(e)}n(ho,"isZeroDecimalCurrency");function pp(e,t){return ho(t)?Math.round(e):Math.round(e*100)}n(pp,"toSmallestUnit");function cp(e,t){return ho(t)?e:e/100}n(cp,"fromSmallestUnit");var dp=function(e){return e.Europe="Europe",e.NonEurope="Non Europe",e}({}),Pe=95,fp=Pe,hi={transactionFee:25,europeRate:1.5,nonEuropeRate:3.25,connectRate:.25},vi={percentage:50,minimumCommission:Pe},bi={locality:"Europe"};function lp(e){let t=yo[e];return t?Math.max(t,Pe):Pe}n(lp,"getMinimumChargeableAmount");function mp(e,t,o=hi,s=vi,r=bi){if(e<=0)return 0;let a=(r.locality==="Europe"?o.europeRate:o.nonEuropeRate)*e/100,p=o.connectRate*e/100,h=o.transactionFee+a+p,Y=s.minimumCommission;return Math.max(t?h+h*s.percentage/100:h/(1-s.percentage/100),Y)}n(mp,"calculateTicketFee");function up(e,t=Pe){return e<=0?e:e<t?t:e}n(up,"applyMinimumChargeableAmount");var Re=typeof window<"u";function C(e,t){let o=new FormData,s=n(r=>r!==null&&typeof r=="object"&&"uri"in r&&"name"in r&&"type"in r,"isFileObject");if(typeof File<"u"&&t instanceof File)o.append(e,t);else if(typeof FileList<"u"&&t instanceof FileList)for(let r of Array.from(t))o.append(e,r);else if(s(t))o.append(e,t);else if(Array.isArray(t))for(let r of t)o.append(e,r);return o}n(C,"buildFileFormData");function Sp(e,t){return It[e]>=It[t]}n(Sp,"isMemberRoleAtLeast");var Si=Ri.create({headers:{Accept:"application/json",...!Re&&{"User-Agent":`${At.name}/${At.version}`}},responseType:"json",transformRequest:[(e,t)=>{if(e instanceof FormData){if(t&&typeof t=="object"){let o={};for(let[s,r]of Object.entries(t)){let i=s.toLowerCase();i!=="content-type"&&(o[i]=r);}Object.keys(t).forEach(s=>delete t[s]),Object.assign(t,o);}return e}if(e!=null)return t&&(t["Content-Type"]="application/json"),JSON.stringify(e)}],withCredentials:Re}),vo=n(async(e,t)=>{let{apiKey:o,accessToken:s,...r}=t||{},i={...r.headers,...o&&{"X-API-Key":o},...s&&{Authorization:`Bearer ${s}`}};return Si(e,{...r,headers:i}).then(p=>p).catch(p=>{throw p.data?new Ne(p,p.data):(console.error(p),p)})},"request");var Ne=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},et=class{static{n(this,"Client");}apiKey;accessToken;cacheManager;baseURL;url;constructor(t){this.baseURL=t.baseURL||uo,this.apiKey=t.apiKey,this.accessToken=t.accessToken,this.url=(o,s)=>pathcat(this.baseURL,o,s),t.cache?.enabled&&(this.cacheManager=new ze(t.cache));}setOptions(t){t.baseURL&&(this.baseURL=t.baseURL),this.apiKey=t.apiKey,this.accessToken=t.accessToken,t.cache?.enabled?this.cacheManager=new ze(t.cache):this.cacheManager=void 0;}setAccessToken(t){this.accessToken=t;}async clearCache(){await this.cacheManager?.clear();}async getCacheStats(){return this.cacheManager?.stats()}async get(t,o,s){return this.requester("GET",t,void 0,o,s)}async post(t,o,s,r){return this.requester("POST",t,o,s,r)}async put(t,o,s,r){return this.requester("PUT",t,o,s,r)}async patch(t,o,s,r){return this.requester("PATCH",t,o,s,r)}async delete(t,o,s,r){return this.requester("DELETE",t,o,s,r)}async requester(t,o,s,r={},i={}){let a=this.url(o,r);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");if(this.cacheManager){let Y=await this.cacheManager.get(t,a);if(Y!==null)return Y}let p=await vo(a,{method:t,data:s,apiKey:this.apiKey,accessToken:this.accessToken,...i}),h=p.data;if(!h.success)throw new Ne(p,h);return this.cacheManager&&await this.cacheManager.set(t,a,h.data),h.data}};var ee=function(e){return e.PUBLIC="public",e.INTERNAL="internal",e}({}),te=function(e){return e.User="user",e.App="app",e}({});function tt(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(tt,"_ts_decorate");function ot(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ot,"_ts_metadata");var Se=class{static{n(this,"CreateApiKeyDto");}name;type;tier;allowedOrigins};tt([IsString(),Length(1,100),ot("design:type",String)],Se.prototype,"name",void 0);tt([IsEnum(te),IsOptional(),ot("design:type",typeof te>"u"?Object:te)],Se.prototype,"type",void 0);tt([IsEnum(ee),IsOptional(),ot("design:type",typeof ee>"u"?Object:ee)],Se.prototype,"tier",void 0);tt([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),ot("design:type",Array)],Se.prototype,"allowedOrigins",void 0);function Me(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Me,"_ts_decorate");function Le(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Le,"_ts_metadata");var ge=class{static{n(this,"UpdateApiKeyDto");}name;isActive;type;tier;allowedOrigins};Me([IsString(),IsOptional(),Length(1,100),Le("design:type",String)],ge.prototype,"name",void 0);Me([IsBoolean(),IsOptional(),Le("design:type",Boolean)],ge.prototype,"isActive",void 0);Me([IsEnum(te),IsOptional(),Le("design:type",typeof te>"u"?Object:te)],ge.prototype,"type",void 0);Me([IsEnum(ee),IsOptional(),Le("design:type",typeof ee>"u"?Object:ee)],ge.prototype,"tier",void 0);Me([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),Le("design:type",Array)],ge.prototype,"allowedOrigins",void 0);function Li(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Li,"_ts_decorate");function Ui(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ui,"_ts_metadata");var Ot=class{static{n(this,"AddParticipantDto");}username};Li([IsString(),Matches(c.USERNAME,{message:"user.username.format"}),Ui("design:type",String)],Ot.prototype,"username",void 0);var sc=function(e){return e.Google="google",e.Facebook="facebook",e.Twitter="twitter",e}({}),rc=function(e){return e.SignUp="signup",e.SignIn="signin",e}({});var pc=function(e){return e.All="ALL",e.Online="ONLINE",e.Archived="ARCHIVED",e}({}),cc=function(e){return e.Onsite="ONSITE",e.Remote="REMOTE",e.Hybrid="HYBRID",e}({}),dc=function(e){return e.Anywhere="ANYWHERE",e.Country="COUNTRY",e}({});var nt=function(e){return e.Dislike="dislike",e.HarassmentSelf="harassment_self",e.HarassmentOther="harassment_other",e.SexualHarassmentSelf="sexual_harassment_self",e.NudesSelf="nudes_self",e.SexualContent="sexual_content",e.ChildInvolved="child_involved",e.ThreatTarget="threat_target",e.ViolentContent="violent_content",e.HateSpeech="hate_speech",e.Terrorism="terrorism",e.DrugSale="drug_sale",e.WeaponSale="weapon_sale",e.SelfHarmConcern="self_harm_concern",e.SelfHarmPromotion="self_harm_promotion",e.Other="other",e}({});var ye=function(e){return e.Private="private",e.Group="group",e}({}),mc=function(e){return e.Member="member",e.Admin="admin",e}({}),uc=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var hc=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var bc=function(e){return e.Following="following",e.Discover="discover",e}({});var Sc=function(e){return e.Completed="completed",e.Pending="pending",e.Transferred="transferred",e}({});var oe=function(e){return e.Percentage="percentage",e.Fixed="fixed",e}({});var Ac=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var ne=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),ie=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var se=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Festival="festival",e.HouseParty="house_party",e.FriendsParty="friends_party",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),re=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),wc=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({}),jc=function(e){return e.Upcoming="upcoming",e.Ongoing="ongoing",e.Ended="ended",e}({});var Uc=function(e){return e.InvitationLink="invitation_link",e}({});var Bc=function(e){return e.Paid="paid",e.Pending="pending",e.InTransit="in_transit",e.Failed="failed",e.Canceled="canceled",e}({}),Fc=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Zc=function(e){return e.User="user",e.Organization="organization",e}({});var Xc=["\u{1F44D}","\u2764\uFE0F","\u{1F389}","\u{1F440}","\u{1F680}"],Yc=function(e){return e.ComingSoon="coming-soon",e.Shipped="shipped",e}({});var Jc=function(e){return e.FR="fr",e.EN="en",e}({});function jt(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(jt,"_ts_decorate");function Dt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Dt,"_ts_metadata");var Ee=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};jt([IsEnum(ye),Dt("design:type",typeof ye>"u"?Object:ye)],Ee.prototype,"type",void 0);jt([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===ye.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===ye.Group),ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),IsString({each:true}),Matches(c.USERNAME,{each:true,message:"user.username.format"}),Dt("design:type",Array)],Ee.prototype,"participantUsernames",void 0);jt([IsOptional(),ValidateIf(e=>e.type===ye.Group),IsString(),Length(1,100),Dt("design:type",String)],Ee.prototype,"name",void 0);function Vi(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Vi,"_ts_decorate");function Wi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Wi,"_ts_metadata");var zt=class{static{n(this,"AddReactionDto");}emoji};Vi([IsString(),Length(1,10),Wi("design:type",String)],zt.prototype,"emoji",void 0);function it(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(it,"_ts_decorate");function Pt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Pt,"_ts_metadata");var Be=class{static{n(this,"ContentOrAttachmentsConstraint");}validate(t,o){let s=o.object,r=!!(s.content&&s.content.trim().length>0),i=!!(s.attachments&&s.attachments.length>0);return r||i}defaultMessage(t){return "Either content or attachments must be provided"}};Be=it([ValidatorConstraint({name:"contentOrAttachments",async:false})],Be);var Fe=class{static{n(this,"CreateChannelMessageDto");}content;attachments;replyToId};it([IsOptional(),IsString(),ValidateIf(e=>e.content!==void 0),Length(1,1024),Pt("design:type",String)],Fe.prototype,"content",void 0);it([IsOptional(),IsArray(),ArrayMaxSize(10),Matches(c.CHANNEL_MESSAGE_ATTACHMENT,{each:true}),Validate(Be),Pt("design:type",Array)],Fe.prototype,"attachments",void 0);it([IsOptional(),IsMongoId(),Pt("design:type",String)],Fe.prototype,"replyToId",void 0);function Ao(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Ao,"_ts_decorate");function _o(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_o,"_ts_metadata");var st=class{static{n(this,"ReportChannelMessageDto");}reason;description};Ao([IsEnum(nt),_o("design:type",typeof nt>"u"?Object:nt)],st.prototype,"reason",void 0);Ao([IsOptional(),IsString(),ValidateIf(e=>e.description&&e.description.trim().length>0),Length(1,500),_o("design:type",String)],st.prototype,"description",void 0);function as(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(as,"_ts_decorate");function ps(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ps,"_ts_metadata");var Mt=class{static{n(this,"UpdateChannelMessageDto");}content};as([IsOptional(),IsString(),Length(1,1024),ps("design:type",String)],Mt.prototype,"content",void 0);function ls(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(ls,"_ts_decorate");function ms(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ms,"_ts_metadata");var Lt=class{static{n(this,"UpdateChannelDto");}name};ls([IsOptional(),IsString(),Length(1,100),ms("design:type",String)],Lt.prototype,"name",void 0);var rt=n((e,t)=>{if(!e)return e;let o=e.split(",").map($=>$.trim()),s=t.zipCode?.toLowerCase(),r=t.city?.toLowerCase(),i=t.country?.toLowerCase(),a=[s,r,i].filter($=>!!$),p=s&&r?`${s} ${r}`:void 0,h=n($=>{let mo=$.toLowerCase();return !!(a.includes(mo)||p&&mo===p)},"isNoise"),Y=[];for(let $ of o)h($)||Y.push($);return Y.join(", ").trim()||e},"normalizeAddress");function G(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(G,"_ts_decorate");function ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ae,"_ts_metadata");var Ut=class{static{n(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[o,s]=t;return s>=-90&&s<=90&&o>=-180&&o<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};Ut=G([ValidatorConstraint({name:"coordinatesRange",async:false})],Ut);var z=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};G([IsString(),IsNotEmpty(),ae("design:type",String)],z.prototype,"type",void 0);G([IsArray(),IsNotEmpty(),Validate(Ut),ae("design:type",Array)],z.prototype,"coordinates",void 0);var I=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};G([IsOptional(),IsString(),Length(1,128),ae("design:type",String)],I.prototype,"name",void 0);G([Transform(({value:e,obj:t})=>rt(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),IsNotEmpty(),Length(1,256),ae("design:type",String)],I.prototype,"address",void 0);G([IsString(),IsNotEmpty(),Length(1,32),ae("design:type",String)],I.prototype,"zipCode",void 0);G([IsString(),IsNotEmpty(),Length(1,128),ae("design:type",String)],I.prototype,"city",void 0);G([IsString(),IsNotEmpty(),Length(1,128),ae("design:type",String)],I.prototype,"country",void 0);G([ValidateNested(),Type(()=>z),IsNotEmpty(),ae("design:type",typeof z>"u"?Object:z)],I.prototype,"geometry",void 0);function Ie(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Ie,"_ts_decorate");function Ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ae,"_ts_metadata");var A=class{static{n(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"name",void 0);Ie([IsOptional(),Transform(({value:e,obj:t})=>rt(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),Length(1,256),Ae("design:type",String)],A.prototype,"address",void 0);Ie([IsOptional(),IsString(),Length(1,32),Ae("design:type",String)],A.prototype,"zipCode",void 0);Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"city",void 0);Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"country",void 0);Ie([IsOptional(),ValidateNested(),Type(()=>z),Ae("design:type",typeof z>"u"?Object:z)],A.prototype,"geometry",void 0);function T(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(T,"_ts_decorate");function H(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(H,"_ts_metadata");var Oe=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};T([IsOptional(),IsString(),IsLowercase(),Length(1,48),H("design:type",String)],Oe.prototype,"organizationSlug",void 0);T([IsObject(),H("design:type",typeof K>"u"?Object:K)],Oe.prototype,"identity",void 0);T([IsArray(),H("design:type",Array)],Oe.prototype,"members",void 0);T([IsOptional(),IsObject(),H("design:type",typeof Location>"u"?Object:Location)],Oe.prototype,"location",void 0);var K=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};T([IsString(),IsNotEmpty(),Length(1,32),H("design:type",String)],K.prototype,"displayName",void 0);T([IsString(),Length(16,1024),IsOptional(),H("design:type",String)],K.prototype,"description",void 0);T([Matches(c.ORGANIZATION_AVATAR_URL,{message:"organization.avatar.url.invalid"}),H("design:type",String)],K.prototype,"avatarUrl",void 0);T([IsOptional(),Matches(c.ORGANIZATION_BANNER_URL,{message:"organization.banner.url.invalid"}),H("design:type",String)],K.prototype,"bannerUrl",void 0);T([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),H("design:type",Array)],K.prototype,"links",void 0);function U(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(U,"_ts_decorate");function E(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(E,"_ts_metadata");var v=class{static{n(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;isVisible;isFeesIncluded;startAt;endAt};U([IsString(),Length(1,128),E("design:type",String)],v.prototype,"name",void 0);U([IsString(),Length(0,1024),IsOptional(),E("design:type",String)],v.prototype,"description",void 0);U([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),E("design:type",Number)],v.prototype,"price",void 0);U([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),E("design:type",Number)],v.prototype,"quantity",void 0);U([IsEnum(ne),E("design:type",typeof ne>"u"?Object:ne)],v.prototype,"type",void 0);U([IsEnum(ie),E("design:type",typeof ie>"u"?Object:ie)],v.prototype,"category",void 0);U([IsBoolean(),E("design:type",Boolean)],v.prototype,"isVisible",void 0);U([IsBoolean(),E("design:type",Boolean)],v.prototype,"isFeesIncluded",void 0);U([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),E("design:type",typeof Date>"u"?Object:Date)],v.prototype,"startAt",void 0);U([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),E("design:type",typeof Date>"u"?Object:Date)],v.prototype,"endAt",void 0);function P(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(N,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}id;name;description;price;quantity;type;category;isVisible;isFeesIncluded;startAt;endAt};P([IsString(),IsOptional(),N("design:type",String)],l.prototype,"id",void 0);P([IsString(),Length(1,128),IsOptional(),N("design:type",String)],l.prototype,"name",void 0);P([IsString(),Length(0,1024),IsOptional(),N("design:type",String)],l.prototype,"description",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),N("design:type",Number)],l.prototype,"price",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),N("design:type",Number)],l.prototype,"quantity",void 0);P([IsEnum(ne),IsOptional(),N("design:type",typeof ne>"u"?Object:ne)],l.prototype,"type",void 0);P([IsEnum(ie),IsOptional(),N("design:type",typeof ie>"u"?Object:ie)],l.prototype,"category",void 0);P([IsBoolean(),IsOptional(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([IsBoolean(),IsOptional(),N("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);P([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);P([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function b(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(b,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");var Ve=class{static{n(this,"AtLeastOneMediaConstraint");}validate(t,o){let s=o.object,r=s.flyers||[],i=s.trailers||[];return r.length>0||i.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};Ve=b([ValidatorConstraint({name:"atLeastOneMedia",async:false})],Ve);function Bs(e){return (t,o)=>{registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:Ve});}}n(Bs,"AtLeastOneMedia");var m=class{static{n(this,"BaseOrganizationEventDto");}title;slug;description;type;visibility;currency;flyers;trailers;location;styles;startAt;endAt};b([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],m.prototype,"title",void 0);b([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.SLUG,{message:"organization.event.slug.format"}),S("design:type",String)],m.prototype,"slug",void 0);b([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],m.prototype,"description",void 0);b([IsEnum(se),IsNotEmpty(),S("design:type",typeof se>"u"?Object:se)],m.prototype,"type",void 0);b([IsEnum(re),IsNotEmpty(),S("design:type",typeof re>"u"?Object:re)],m.prototype,"visibility",void 0);b([IsEnum(Ce),IsNotEmpty(),S("design:type",typeof Ce>"u"?Object:Ce)],m.prototype,"currency",void 0);b([IsArray(),ArrayMaxSize(25),Matches(c.EVENT_FLYER_URL,{each:true,message:"organization.event.flyers.url.invalid"}),Bs(),S("design:type",Array)],m.prototype,"flyers",void 0);b([IsArray(),ArrayMaxSize(25),Matches(c.EVENT_TRAILER_URL,{each:true,message:"organization.event.trailers.url.invalid"}),S("design:type",Array)],m.prototype,"trailers",void 0);b([IsObject(),ValidateNested(),Type(()=>I),IsNotEmpty(),S("design:type",typeof I>"u"?Object:I)],m.prototype,"location",void 0);b([IsArray(),IsString({each:true}),ArrayMinSize(1),S("design:type",Array)],m.prototype,"styles",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],m.prototype,"startAt",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],m.prototype,"endAt",void 0);var Kt=class extends m{static{n(this,"CreateOrganizationEventDto");}tickets};b([IsArray(),ValidateNested({each:true}),Type(()=>v),IsNotEmpty(),S("design:type",Array)],Kt.prototype,"tickets",void 0);function Xo(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Xo,"_ts_decorate");function Yo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Yo,"_ts_metadata");var ft=class{static{n(this,"CreateOrganizationEventOrderDto");}cart;promoCode};Xo([IsArray(),IsString({each:true}),Yo("design:type",Array)],ft.prototype,"cart",void 0);Xo([IsOptional(),IsString(),Yo("design:type",String)],ft.prototype,"promoCode",void 0);function pe(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(pe,"_ts_decorate");function ce(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ce,"_ts_metadata");var B=class{static{n(this,"CreateOrganizationEventPromoCodeDto");}code;type;value;maxUses;isActive;minCartAmount;expiresAt;ticketIds};pe([IsString(),Length(1,32),ce("design:type",String)],B.prototype,"code",void 0);pe([IsEnum(oe),ce("design:type",typeof oe>"u"?Object:oe)],B.prototype,"type",void 0);pe([IsNumber(),Min(1),Max(1e4),ce("design:type",Number)],B.prototype,"value",void 0);pe([IsOptional(),IsNumber(),Min(1),ce("design:type",Number)],B.prototype,"maxUses",void 0);pe([IsOptional(),IsBoolean(),ce("design:type",Boolean)],B.prototype,"isActive",void 0);pe([IsOptional(),IsNumber(),Min(0),ce("design:type",Number)],B.prototype,"minCartAmount",void 0);pe([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),ce("design:type",typeof Date>"u"?Object:Date)],B.prototype,"expiresAt",void 0);pe([IsOptional(),IsArray(),IsString({each:true}),ce("design:type",Array)],B.prototype,"ticketIds",void 0);function de(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(de,"_ts_decorate");function fe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(fe,"_ts_metadata");var F=class{static{n(this,"UpdateOrganizationEventPromoCodeDto");}code;type;value;maxUses;isActive;minCartAmount;expiresAt;ticketIds};de([IsOptional(),IsString(),Length(1,32),fe("design:type",String)],F.prototype,"code",void 0);de([IsOptional(),IsEnum(oe),fe("design:type",typeof oe>"u"?Object:oe)],F.prototype,"type",void 0);de([IsOptional(),IsNumber(),Min(1),Max(1e4),fe("design:type",Number)],F.prototype,"value",void 0);de([IsOptional(),IsNumber(),Min(1),fe("design:type",Number)],F.prototype,"maxUses",void 0);de([IsOptional(),IsBoolean(),fe("design:type",Boolean)],F.prototype,"isActive",void 0);de([IsOptional(),IsNumber(),Min(0),fe("design:type",Number)],F.prototype,"minCartAmount",void 0);de([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),fe("design:type",typeof Date>"u"?Object:Date)],F.prototype,"expiresAt",void 0);de([IsOptional(),IsArray(),IsString({each:true}),fe("design:type",Array)],F.prototype,"ticketIds",void 0);var lt=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Co=class extends lt{static{n(this,"UpdateOrganizationEventStyleDto");}};function x(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(x,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_,"_ts_metadata");var ke=class{static{n(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,o){let s=o.object;return s.flyers!==void 0&&s.trailers!==void 0?s.flyers.length>0||s.trailers.length>0:s.flyers!==void 0&&s.trailers===void 0?s.flyers.length>0:s.trailers!==void 0&&s.flyers===void 0?s.trailers.length>0:true}defaultMessage(){return "Cannot remove all media from event. At least one flyer or trailer must remain"}};ke=x([ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],ke);function ir(e){return (t,o)=>{registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:ke});}}n(ir,"AtLeastOneMediaOnUpdate");var R=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([IsOptional(),IsString(),Length(1,64),_("design:type",String)],R.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.SLUG,{message:"organization.event.slug.format"}),_("design:type",String)],R.prototype,"slug",void 0);x([IsOptional(),IsString(),Length(16,2048),_("design:type",String)],R.prototype,"description",void 0);x([IsOptional(),IsEnum(se),_("design:type",typeof se>"u"?Object:se)],R.prototype,"type",void 0);x([IsOptional(),IsEnum(re),_("design:type",typeof re>"u"?Object:re)],R.prototype,"visibility",void 0);x([IsOptional(),IsArray(),Matches(c.EVENT_FLYER_URL_UPDATE,{each:true,message:"organization.event.flyers.url.invalid"}),ir(),_("design:type",Array)],R.prototype,"flyers",void 0);x([IsOptional(),IsArray(),Matches(c.EVENT_TRAILER_URL_UPDATE,{each:true,message:"organization.event.trailers.url.invalid"}),_("design:type",Array)],R.prototype,"trailers",void 0);x([IsOptional(),IsObject(),ValidateNested(),Type(()=>A),_("design:type",typeof A>"u"?Object:A)],R.prototype,"location",void 0);x([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>l),_("design:type",Array)],R.prototype,"tickets",void 0);x([IsOptional(),IsArray(),IsString({each:true}),_("design:type",Array)],R.prototype,"styles",void 0);x([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],R.prototype,"startAt",void 0);x([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],R.prototype,"endAt",void 0);function sr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(sr,"_ts_decorate");function rr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(rr,"_ts_metadata");var $t=class{static{n(this,"AcceptOrganizationMemberInvitationDto");}token};sr([IsString(),IsNotEmpty(),rr("design:type",String)],$t.prototype,"token",void 0);function an(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(an,"_ts_decorate");function pn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(pn,"_ts_metadata");var gt=class{static{n(this,"CreateOrganizationMemberDto");}user;role};an([IsString(),IsNotEmpty(),pn("design:type",String)],gt.prototype,"user",void 0);an([IsEnum(f),IsNotEmpty(),pn("design:type",typeof f>"u"?Object:f)],gt.prototype,"role",void 0);function fr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(fr,"_ts_decorate");function lr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(lr,"_ts_metadata");var Jt=class{static{n(this,"CreateOrganizationMemberInvitationLinkDto");}role};fr([IsEnum(f),IsOptional(),lr("design:type",typeof f>"u"?Object:f)],Jt.prototype,"role",void 0);function gr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(gr,"_ts_decorate");function yr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(yr,"_ts_metadata");var Qt=class{static{n(this,"UpdateOrganizationMemberDto");}role};gr([IsEnum(f),IsNotEmpty(),yr("design:type",typeof f>"u"?Object:f)],Qt.prototype,"role",void 0);function k(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(k,"_ts_decorate");function Z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Z,"_ts_metadata");var we=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};k([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"organization.slug.format"}),Z("design:type",String)],we.prototype,"slug",void 0);k([IsObject(),IsOptional(),Z("design:type",typeof W>"u"?Object:W)],we.prototype,"identity",void 0);k([IsOptional(),IsArray(),Z("design:type",Array)],we.prototype,"members",void 0);k([IsOptional(),IsObject(),Z("design:type",typeof Location>"u"?Object:Location)],we.prototype,"location",void 0);var W=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};k([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),Z("design:type",String)],W.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),Z("design:type",String)],W.prototype,"description",void 0);k([IsOptional(),Matches(c.ORGANIZATION_AVATAR_URL),Z("design:type",String)],W.prototype,"avatarUrl",void 0);k([IsOptional(),Matches(c.ORGANIZATION_BANNER_URL),Z("design:type",String)],W.prototype,"bannerUrl",void 0);k([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),Z("design:type",Array)],W.prototype,"links",void 0);function w(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(w,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(j,"_ts_metadata");var Ze=class{static{n(this,"CreateUserDto");}identifier;identity;password};w([ValidateNested(),Type(()=>je),j("design:type",typeof je>"u"?Object:je)],Ze.prototype,"identifier",void 0);w([ValidateNested(),Type(()=>L),j("design:type",typeof L>"u"?Object:L)],Ze.prototype,"identity",void 0);w([IsString(),Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),j("design:type",String)],Ze.prototype,"password",void 0);var je=class{static{n(this,"CreateUserIdentifierDto");}email;phoneNumber;username};w([IsOptional(),IsString(),IsEmail(),j("design:type",String)],je.prototype,"email",void 0);w([IsOptional(),IsString(),IsPhoneNumber(),j("design:type",String)],je.prototype,"phoneNumber",void 0);w([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"user.username.format"}),j("design:type",String)],je.prototype,"username",void 0);var L=class{static{n(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate;links};w([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"First name must be composed of letters only"}),j("design:type",String)],L.prototype,"firstName",void 0);w([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"Last name must be composed of letters only"}),j("design:type",String)],L.prototype,"lastName",void 0);w([IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],L.prototype,"gender",void 0);w([IsOptional(),Matches(c.USER_AVATAR_URL_CREATE,{message:"user.avatar.url.invalid"}),j("design:type",String)],L.prototype,"avatarUrl",void 0);w([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?e:t}),IsDate(),j("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);w([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),j("design:type",Array)],L.prototype,"links",void 0);function Nr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Nr,"_ts_decorate");function Mr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Mr,"_ts_metadata");var no=class{static{n(this,"GoogleOneTapDto");}credential};Nr([IsNotEmpty(),IsString(),Mr("design:type",String)],no.prototype,"credential",void 0);function un(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(un,"_ts_decorate");function gn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(gn,"_ts_metadata");var yt=class{static{n(this,"CreateUserPostCommentDto");}content;replyToId};un([IsString(),Length(1,280),gn("design:type",String)],yt.prototype,"content",void 0);un([IsOptional(),IsString(),gn("design:type",String)],yt.prototype,"replyToId",void 0);function Fr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Fr,"_ts_decorate");function Gr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Gr,"_ts_metadata");var io=class{static{n(this,"UpdateUserPostCommentDto");}content};Fr([IsString(),Length(1,280),Gr("design:type",String)],io.prototype,"content",void 0);function so(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(so,"_ts_decorate");function ro(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ro,"_ts_metadata");var qe=class{static{n(this,"CreateUserPostDto");}content;mediaUrls;visibility};so([IsOptional(),IsString(),Length(1,512),ro("design:type",String)],qe.prototype,"content",void 0);so([IsArray(),ArrayMinSize(1),ArrayMaxSize(10),Matches(c.USER_POST_MEDIA_URL,{each:true}),ro("design:type",Array)],qe.prototype,"mediaUrls",void 0);so([IsOptional(),IsEnum(J),ro("design:type",typeof J>"u"?Object:J)],qe.prototype,"visibility",void 0);function Yr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Yr,"_ts_decorate");function $r(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n($r,"_ts_metadata");var ao=class{static{n(this,"CreateUserPostRepostDto");}comment};Yr([IsOptional(),IsString(),Length(1,280),$r("design:type",String)],ao.prototype,"comment",void 0);function vn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(vn,"_ts_decorate");function bn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(bn,"_ts_metadata");var ht=class{static{n(this,"UpdateUserPostDto");}content;visibility};vn([IsOptional(),IsString(),Length(1,512),bn("design:type",String)],ht.prototype,"content",void 0);vn([IsOptional(),IsEnum(J),bn("design:type",typeof J>"u"?Object:J)],ht.prototype,"visibility",void 0);function na(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(na,"_ts_decorate");function ia(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ia,"_ts_metadata");var po=class{static{n(this,"RecoveryDto");}identifier};na([IsNotEmpty(),IsString(),ia("design:type",String)],po.prototype,"identifier",void 0);function co(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(co,"_ts_decorate");function fo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(fo,"_ts_metadata");var Xe=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};co([IsString(),IsNotEmpty(),fo("design:type",String)],Xe.prototype,"tokenId",void 0);co([IsString(),IsNotEmpty(),fo("design:type",String)],Xe.prototype,"tokenValue",void 0);co([Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),IsNotEmpty({message:"Password is required"}),fo("design:type",String)],Xe.prototype,"password",void 0);function xn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(xn,"_ts_decorate");function In(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(In,"_ts_metadata");var bt=class{static{n(this,"SignInUserDto");}identifier;password};xn([IsNotEmpty(),IsString(),In("design:type",String)],bt.prototype,"identifier",void 0);xn([IsNotEmpty(),IsString(),In("design:type",String)],bt.prototype,"password",void 0);function u(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(g,"_ts_metadata");var Ye=class{static{n(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>De),g("design:type",typeof De>"u"?Object:De)],Ye.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>D),g("design:type",typeof D>"u"?Object:D)],Ye.prototype,"identity",void 0);u([IsOptional(),IsString(),Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),g("design:type",String)],Ye.prototype,"password",void 0);var De=class{static{n(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),g("design:type",String)],De.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],De.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"user.username.format"}),g("design:type",String)],De.prototype,"username",void 0);var D=class{static{n(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate;links};u([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],D.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],D.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),g("design:type",String)],D.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),g("design:type",String)],D.prototype,"description",void 0);u([IsOptional(),Matches(c.USER_AVATAR_URL),g("design:type",Object)],D.prototype,"avatarUrl",void 0);u([IsOptional(),Matches(c.USER_BANNER_URL),g("design:type",Object)],D.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum(Q),g("design:type",typeof Q>"u"?Object:Q)],D.prototype,"gender",void 0);u([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?e:t}),IsDate(),g("design:type",typeof Date>"u"?Object:Date)],D.prototype,"birthDate",void 0);u([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),g("design:type",Array)],D.prototype,"links",void 0);function Dn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Dn,"_ts_decorate");function zn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(zn,"_ts_metadata");var Rt=class{static{n(this,"VerifyEmailConfirmDto");}tokenId;tokenValue};Dn([IsString(),IsNotEmpty(),zn("design:type",String)],Rt.prototype,"tokenId",void 0);Dn([IsString(),IsNotEmpty(),zn("design:type",String)],Rt.prototype,"tokenValue",void 0);function d(e){return e}n(d,"sdk");var Mn=e=>({getAll:n(async()=>e.get("/api-keys"),"getAll"),get:n(async t=>e.get("/api-keys/:apiKeyId",{apiKeyId:t}),"get"),create:n(async t=>e.post("/api-keys",t),"create"),update:n(async(t,o)=>e.put("/api-keys/:apiKeyId",o,{apiKeyId:t}),"update"),delete:n(async t=>e.delete("/api-keys/:apiKeyId",void 0,{apiKeyId:t}),"delete")});var Ln=e=>({signIn:n(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:n(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:n(async()=>e.post("/auth/sign-out",void 0),"signOut"),refreshToken:n(async()=>e.post("/auth/refresh-token",void 0),"refreshToken"),recovery:n(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:n(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),verifyEmail:{send:n(async()=>e.post("/auth/verify/email/send",void 0),"send"),confirm:n(async t=>e.post("/auth/verify/email/confirm",t),"confirm")},oauth2:{connect:n((t,o)=>e.url("/oauth2/:provider",{provider:t,...o}),"connect"),disconnect:n(async t=>e.delete("/oauth2/:provider",void 0,{provider:t}),"disconnect"),googleOneTap:n(async t=>e.post("/oauth2/google/one-tap",t),"googleOneTap")}});var Un=e=>({categories:{getAll:n(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:n(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:n(async t=>e.get("/careers/jobs",t),"getAll"),get:n(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:n(async t=>e.get("/careers/offices",t),"getAll")}});var En=e=>({getAll:n(async(t,o)=>e.get("/channels/~me/:channelId/messages",{channelId:t,...o}),"getAll"),getAllByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:o,...s}),"getAllByOrganization"),get:n(async(t,o)=>e.get("/channels/~me/:channelId/messages/:messageId",{channelId:t,messageId:o}),"get"),getByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:o,messageId:s}),"getByOrganization"),create:n(async(t,o)=>e.post("/channels/~me/:channelId/messages",o,{channelId:t}),"create"),createByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/messages",s,{organizationSlug:t,channelId:o}),"createByOrganization"),update:n(async(t,o,s)=>e.put("/channels/~me/:channelId/messages/:messageId",s,{channelId:t,messageId:o}),"update"),updateByOrganization:n(async(t,o,s,r)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",r,{organizationSlug:t,channelId:o,messageId:s}),"updateByOrganization"),delete:n(async(t,o)=>e.delete("/channels/~me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:o}),"delete"),deleteByOrganization:n(async(t,o,s)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:o,messageId:s}),"deleteByOrganization"),addReaction:n(async(t,o,s)=>e.post("/channels/~me/:channelId/messages/:messageId/reactions",s,{channelId:t,messageId:o}),"addReaction"),addReactionByOrganization:n(async(t,o,s,r)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",r,{organizationSlug:t,channelId:o,messageId:s}),"addReactionByOrganization"),removeReaction:n(async(t,o,s)=>e.delete("/channels/~me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:o,emoji:s}),"removeReaction"),removeReactionByOrganization:n(async(t,o,s,r)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:o,messageId:s,emoji:r}),"removeReactionByOrganization"),markAsRead:n(async(t,o)=>e.post("/channels/~me/:channelId/messages/:messageId/read",void 0,{channelId:t,messageId:o}),"markAsRead"),markAsReadByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",void 0,{organizationSlug:t,channelId:o,messageId:s}),"markAsReadByOrganization"),uploadFile:n(async(t,o)=>e.post("/channels/~me/:channelId/files",o,{channelId:t}),"uploadFile"),uploadFileByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/files",s,{organizationSlug:t,channelId:o}),"uploadFileByOrganization"),report:n(async(t,o,s)=>e.post("/channels/~me/:channelId/messages/:messageId/report",s,{channelId:t,messageId:o}),"report"),reportByOrganization:n(async(t,o,s,r)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/report",r,{organizationSlug:t,channelId:o,messageId:s}),"reportByOrganization")});var Bn=e=>({me:n(async t=>e.get("/channels/~me",t),"me"),getByOrganization:n(async(t,o)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...o}),"getByOrganization"),countMe:n(async t=>e.get("/users/~me/channels/count",t),"countMe"),countByOrganization:n(async(t,o)=>e.get("/users/@:organizationSlug/channels/count",{organizationSlug:t,...o}),"countByOrganization"),get:n(async t=>e.get("/channels/~me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:n(async(t,o)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:o}),"getByOrganizationChannel"),create:n(async t=>e.post("/channels/~me",t),"create"),createByOrganization:n(async(t,o)=>e.post("/channels/:organizationSlug",o,{organizationSlug:t}),"createByOrganization"),update:n(async(t,o)=>e.put("/channels/~me/:channelId",o,{channelId:t}),"update"),updateByOrganization:n(async(t,o,s)=>e.put("/channels/:organizationSlug/:channelId",s,{organizationSlug:t,channelId:o}),"updateByOrganization"),delete:n(async t=>e.delete("/channels/~me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:n(async(t,o)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:o}),"deleteByOrganization"),addParticipant:n(async(t,o)=>e.post("/channels/~me/:channelId/participants",o,{channelId:t}),"addParticipant"),addParticipantByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/participants",s,{organizationSlug:t,channelId:o}),"addParticipantByOrganization"),removeParticipant:n(async(t,o)=>e.delete("/channels/~me/:channelId/participants/:username",void 0,{channelId:t,username:o}),"removeParticipant"),removeParticipantByOrganization:n(async(t,o,s)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:o,username:s}),"removeParticipantByOrganization"),getMembers:n(async(t,o)=>e.get("/channels/~me/:channelId/members",{channelId:t,...o}),"getMembers"),getMembersByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:o,...s}),"getMembersByOrganization"),messages:En(e)});var Fn=e=>({getRates:n(()=>e.get("/currencies/rates"),"getRates"),convert:n(t=>e.post("/currencies/convert",t),"convert"),convertAmount:n((t,o,s)=>e.post("/currencies/convert",{from:t,to:o,amount:s}),"convertAmount")});var Gn=e=>({getFollowing:n(async t=>e.get("/feed/following",t),"getFollowing"),getDiscover:n(async t=>e.get("/feed/discover",t),"getDiscover")});var Kn=e=>({getAll:n(async()=>e.get("/health"),"getAll"),database:n(async()=>e.get("/health/database"),"database"),api:n(async()=>e.get("/health/api"),"api"),app:n(async()=>e.get("/health/app"),"app"),memory:n(async()=>e.get("/health/memory"),"memory")});var Tn=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Hn=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Vn=n(e=>({account:n(async t=>e.get("/organizations/@:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:n(t=>{if(Re)window.location.href=e.url("/organizations/@:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),balance:n(async t=>e.get("/organizations/@:organizationSlug/billing/balance",{organizationSlug:t}),"balance"),pending:n(async t=>e.get("/organizations/@:organizationSlug/billing/pending",{organizationSlug:t}),"pending"),dashboard:n(t=>{if(Re)window.location.href=e.url("/organizations/@:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var Wn=e=>({getAll:n(async t=>e.get("/organizations/@:organizationSlug/customers",{organizationSlug:t}),"getAll"),get:n(async(t,o)=>e.get("/organizations/@:organizationSlug/customers/:username",{organizationSlug:t,username:o}),"get")});var kn=n(e=>({create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var Zn=n(e=>({getAll:n(async(t,o,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/promo-codes",{organizationSlug:t,eventSlug:o,...s}),"getAll"),create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/promo-codes",s,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,s,r)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId",r,{organizationSlug:t,eventSlug:o,promoCodeId:s}),"update"),delete:n(async(t,o,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId",void 0,{organizationSlug:t,eventSlug:o,promoCodeId:s}),"delete"),validate:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/validate",{code:s},{organizationSlug:t,eventSlug:o}),"validate")}),"organizationsEventsPromoCodes");var qn=n(e=>({getAll:n(async t=>e.get("/organizations/events/styles",t),"getAll"),get:n(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:n(async t=>e.post("/organizations/events/styles",t),"create"),update:n(async(t,o)=>e.put("/organizations/events/styles/:styleSlug",o,{styleSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/events/styles/:styleSlug",void 0,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Xn=n(e=>({getAll:n(async(t,o)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:o}),"getAll"),get:n(async(t,o,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:o,ticketId:s}),"get"),create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,s,r)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",r,{organizationSlug:t,eventSlug:o,ticketId:s}),"update"),delete:n(async(t,o,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:o,ticketId:s}),"delete")}),"organizationsEventsTickets");var Yn=n(e=>({record:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record"),getStreamUrl:n(t=>e.url("/organizations/events/views/stream",t),"getStreamUrl")}),"organizationsEventsViews");var $n=n(e=>({search:n(async(t,o)=>e.get("/organizations/events/search",{q:t,...o}),"search"),getCalendar:n(async(t,o)=>e.get("/organizations/events/calendar/:year/:month",{year:t.toString(),month:o.toString()}),"getCalendar"),getAll:n(async(t,o)=>t?e.get("/organizations/@:organizationSlug/events",{organizationSlug:t,...o}):e.get("/organizations/events",o),"getAll"),getSuggestions:n(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:n(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:n(async(t,o)=>e.get("/organizations/@:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:o}),"get"),create:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events",o,{organizationSlug:t}),"create"),update:n(async(t,o,s)=>e.put("/organizations/@:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug",void 0,{organizationSlug:t,eventSlug:o}),"delete"),uploadFile:n(async(t,o)=>e.post("/events/files/:eventFileType",C("file",o),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:n(async(t,o,s,r)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType",C("file",r),{organizationSlug:t,eventSlug:o,eventFileType:s}),"uploadOrganizationFile"),request:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/request",void 0,{organizationSlug:t,eventSlug:o}),"request"),orders:kn(e),promoCodes:Zn(e),styles:qn(e),tickets:Xn(e),views:Yn(e)}),"organizationsEvents");var Jn=n(e=>({getLinks:n(async t=>e.get("/organizations/@:organizationSlug/members/invitations/links",{organizationSlug:t}),"getLinks"),createLink:n(async(t,o={})=>e.post("/organizations/@:organizationSlug/members/invitations/links",o,{organizationSlug:t}),"createLink"),accept:n(async(t,o)=>e.post("/organizations/@:organizationSlug/members/invitations/accept",o,{organizationSlug:t}),"accept")}),"invitations");var Qn=n(e=>({me:n(async()=>e.get("/organizations/members/~me"),"me"),get:n(async t=>e.get("/organizations/@:organizationSlug/members",{organizationSlug:t}),"get"),create:n(async(t,o)=>e.post("/organizations/@:organizationSlug/members",o,{organizationSlug:t}),"create"),update:n(async(t,o,s)=>e.put("/organizations/@:organizationSlug/members/:username",s,{organizationSlug:t,username:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/@:organizationSlug/members/:username",void 0,{organizationSlug:t,username:o}),"delete"),invitations:Jn(e),accept:n(async t=>e.put("/organizations/@:organizationSlug/members/~me/accept",void 0,{organizationSlug:t}),"accept"),reject:n(async t=>e.delete("/organizations/@:organizationSlug/members/~me/reject",void 0,{organizationSlug:t}),"reject"),leave:n(async t=>e.delete("/organizations/@:organizationSlug/members/~me",void 0,{organizationSlug:t}),"leave")}),"organizationsMembers");var Cn=e=>({getAll:n(async t=>e.get("/organizations/@:organizationSlug/orders",t),"getAll"),get:n(async t=>e.get("/organizations/@:organizationSlug/orders/:orderId",t),"get"),getAllByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/orders",t),"getAllByEvent"),getBookingsByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/bookings",t),"getBookingsByEvent"),getParticipantsByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/participants",t),"getParticipantsByEvent")});var ei=e=>({search:n(async(t,o)=>e.get("/organizations/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/organizations"),"getAll"),get:n(async t=>e.get("/organizations/@:organizationSlug",{organizationSlug:t}),"get"),create:n(async t=>e.post("/organizations",t),"create"),update:n(async(t,o)=>e.put("/organizations/@:organizationSlug",o,{organizationSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/@:organizationSlug",void 0,{organizationSlug:t}),"delete"),uploadFile:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/files/:organizationFileType",C("file",s),{organizationSlug:t,organizationFileType:o}),"uploadFile"),billing:Vn(e),events:$n(e),members:Qn(e),customers:Wn(e),orders:Cn(e)});var ti=e=>({countries:{getAll:n(async t=>e.get("/places/countries",t),"getAll"),get:n(async t=>e.get("/places/countries/:countrySlug",{countrySlug:t}),"get"),cities:{getAll:n(async(t,o)=>e.get("/places/countries/:countrySlug/cities",{countrySlug:t,...o}),"getAll"),get:n(async(t,o)=>e.get("/places/countries/:countrySlug/cities/:citySlug",{countrySlug:t,citySlug:o}),"get"),nearby:n(async(t,o,s)=>e.get("/places/countries/:countrySlug/cities/:citySlug/nearby",{countrySlug:t,citySlug:o,...s}),"nearby")}},cities:{getAll:n(async t=>e.get("/places/cities",t),"getAll"),search:n(async(t,o)=>e.get("/places/cities/search",{q:t,...o}),"search")}});var oi=e=>({follow:n(async t=>e.post("/profiles/@:username/relationships/follow",void 0,{username:t}),"follow"),unfollow:n(async t=>e.post("/profiles/@:username/relationships/unfollow",void 0,{username:t}),"unfollow"),getSuggestions:n(async t=>e.get("/profiles/~me/relationships/suggestions",t),"getSuggestions"),getFollowers:n(async(t,o)=>e.get("/profiles/@:username/relationships/followers",{username:t,...o}),"getFollowers")});var ni=e=>({getAll:n(async t=>e.get("/profiles",t),"getAll"),search:n(async(t,o)=>e.get("/profiles/search",{q:t,...o}),"search"),get:n(async t=>e.get("/profiles/@:username",{username:t}),"get"),relationships:oi(e)});var ii=e=>({reactions:{get:n(async t=>e.get("/roadmap/reactions/:featureId",{featureId:t}),"get"),add:n(async(t,o)=>e.post("/roadmap/reactions/:featureId",{reaction:o},{featureId:t}),"add")}});var si=e=>({getCounts:n(async()=>e.get("/sitemaps/counts"),"getCounts")});var ri=e=>({get:n(async t=>e.get("/users/bookings/tickets/:ticketId",{ticketId:t}),"get"),use:n(async(t,o,s)=>e.put("/users/bookings/tickets/:ticketId/use",{tokenId:o,tokenValue:s},{ticketId:t}),"use")});var ai=e=>({getAll:n(async()=>e.get("/users/bookings"),"getAll"),get:n(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:n(async()=>e.get("/users/~me/bookings"),"me"),tickets:ri(e)});var pi=e=>({me:n(async()=>e.get("/users/~me/notifications"),"me"),count:n(async t=>e.get("/users/~me/notifications/count",t),"count"),read:n(async()=>e.put("/users/~me/notifications/read",void 0),"read")});var ci=n(e=>({record:n(async(t,o)=>e.post("/users/@:username/posts/:postId/views",void 0,{username:t,postId:o}),"record")}),"usersPostsViews");var di=e=>({getByUsername:n(async(t,o)=>e.get("/users/@:username/posts",{username:t,...o}),"getByUsername"),getByUsernameAndId:n(async(t,o)=>e.get("/users/@:username/posts/:postId",{username:t,postId:o}),"getByUsernameAndId"),create:n(async t=>e.post("/users/~me/posts",t),"create"),update:n(async(t,o)=>e.put("/users/~me/posts/:postId",o,{postId:t}),"update"),delete:n(async t=>e.delete("/users/~me/posts/:postId",void 0,{postId:t}),"delete"),uploadMedia:n(async t=>e.post("/users/~me/posts/media",t),"uploadMedia"),views:ci(e)});var fi=e=>({getByPost:n(async(t,o,s)=>e.get("/users/@:username/posts/:postId/comments",{username:t,postId:o,...s}),"getByPost"),create:n(async(t,o)=>e.post("/users/~me/posts/:postId/comments",o,{postId:t}),"create"),update:n(async(t,o,s)=>e.put("/users/~me/posts/:postId/comments/:commentId",s,{postId:t,commentId:o}),"update"),delete:n(async(t,o)=>e.delete("/users/~me/posts/:postId/comments/:commentId",void 0,{postId:t,commentId:o}),"delete")});var li=e=>({getByUsername:n(async(t,o)=>e.get("/users/@:username/reposts",{username:t,...o}),"getByUsername"),getByPost:n(async(t,o,s)=>e.get("/users/@:username/posts/:postId/reposts",{username:t,postId:o,...s}),"getByPost"),create:n(async(t,o)=>e.post("/users/~me/posts/:postId/reposts",o||{},{postId:t}),"create"),delete:n(async t=>e.delete("/users/~me/posts/:postId/reposts",void 0,{postId:t}),"delete")});var mi=e=>({getAll:n(async()=>e.get("/users"),"getAll"),get:n(async t=>e.get("/users/@:userId",{userId:t}),"get"),me:n(async()=>e.get("/users/~me"),"me"),check:n(async(t,o)=>e.get("/users/check/:identifier",{identifier:t,suggestions:o}),"check"),update:n(async(t,o)=>e.put("/users/@:userId",o,{userId:t}),"update"),uploadFile:n(async(t,o,s)=>e.post("/users/@:userId/files/:userFileType",C("file",s),{userId:t,userFileType:o}),"uploadFile"),uploadTempFile:n(async(t,o)=>e.post("/users/files/:userFileType",C("file",o),{userFileType:t}),"uploadTempFile"),bookings:ai(e),notifications:pi(e),posts:di(e),postsComments:fi(e),postsReposts:li(e)});var ui=class{static{n(this,"TonightPass");}client;apiKeys;auth;careers;channels;currencies;feed;health;orders;organizations;places;profiles;roadmap;sitemaps;users;notifications;constructor(t){this.client=new et(t),this.apiKeys=Mn(this.client),this.auth=Ln(this.client),this.careers=Un(this.client),this.channels=Bn(this.client),this.currencies=Fn(this.client),this.feed=Gn(this.client),this.health=Kn(this.client),this.orders=Hn(this.client),this.organizations=ei(this.client),this.places=ti(this.client),this.profiles=ni(this.client),this.roadmap=ii(this.client),this.sitemaps=si(this.client),this.users=mi(this.client),this.notifications=Tn(this.client);}};var St=class{static{n(this,"WebSocketClient");}ws;options;reconnectAttempts=0;reconnectTimer;eventHandlers=new Map;isConnected=false;isReconnecting=false;constructor(t={}){this.options={baseURL:"wss://api.tonightpass.com",maxReconnectAttempts:3,reconnectInterval:1e3,debug:false,...t};}log(t,...o){this.options.debug&&console.log(`[WebSocketClient] ${t}`,...o);}getWebSocketURL(t,o){let s={};Object.entries(o).forEach(([i,a])=>{typeof a=="string"&&i!=="token"&&(s[i]=a);});let r=pathcat(t,s);return `${this.options.baseURL}${r}`}async connect(t,o){return new Promise((s,r)=>{try{let i=this.getWebSocketURL(t,o);this.log("Connecting to",i);let a=[];"token"in o&&typeof o.token=="string"&&a.push(`access_token.${o.token}`),this.ws=a.length>0?new WebSocket(i,a):new WebSocket(i),this.ws.onopen=()=>{this.log("Connected successfully"),this.isConnected=!0,this.isReconnecting=!1,this.reconnectAttempts=0,s();},this.ws.onmessage=p=>{try{let h=JSON.parse(p.data);this.handleEvent(h);}catch(h){this.log("Error parsing message:",h);}},this.ws.onclose=p=>{this.log("Connection closed",p.code),this.isConnected=!1,this.options.maxReconnectAttempts&&!this.isReconnecting&&this.handleReconnect(t,o);},this.ws.onerror=p=>{this.log("WebSocket error:",p),this.isConnected=!1,r(p);};}catch(i){r(i);}})}handleReconnect(t,o){if(this.reconnectAttempts>=this.options.maxReconnectAttempts){this.log("Max reconnect attempts reached");return}this.isReconnecting=true,this.reconnectAttempts++,this.log(`Attempting to reconnect (${this.reconnectAttempts}/${this.options.maxReconnectAttempts})`),this.reconnectTimer=setTimeout(()=>{this.connect(t,o).catch(s=>{this.log("Reconnection failed:",s);});},this.options.reconnectInterval);}handleEvent(t){this.log("Received event:",t.type);let o=this.eventHandlers.get(t.type);o&&o.forEach(r=>r(t));let s=this.eventHandlers.get("*");s&&s.forEach(r=>r(t));}on(t,o){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set);let s=n(r=>{o(r);},"wrappedHandler");return this.eventHandlers.get(t)?.add(s),()=>{let r=this.eventHandlers.get(t);r&&(r.delete(s),r.size===0&&this.eventHandlers.delete(t));}}off(t,o){let s=this.eventHandlers.get(t);s&&(s.clear(),this.eventHandlers.delete(t));}send(t){this.ws&&this.isConnected?this.ws.send(JSON.stringify(t)):this.log("Cannot send data: WebSocket not connected");}disconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.ws&&(this.isConnected=false,this.isReconnecting=false,this.ws.close()),this.eventHandlers.clear();}get connected(){return this.isConnected}get reconnecting(){return this.isReconnecting}};var xt=class extends St{static{n(this,"ChannelWebSocketClient");}async connectToChannel(t,o={}){return this.connect("/channels/~me/:channelId/ws",{...o,channelId:t})}async connectToOrganizationChannel(t,o,s={}){return this.connect("/channels/:organizationSlug/:channelId/ws",{...s,organizationSlug:t,channelId:o})}async connectToUserChannels(t={}){return this.connect("/channels/~me/ws",t)}async connectToOrganizationChannels(t,o={}){return this.connect("/channels/:organizationSlug/ws",{...o,organizationSlug:t})}onMessageCreate(t){return this.on("channel_message_create",t)}onMessageUpdate(t){return this.on("channel_message_update",t)}onMessageDelete(t){return this.on("channel_message_delete",t)}onChannelUpdate(t){return this.on("channel_update",t)}onChannelDelete(t){return this.on("channel_delete",t)}onMemberJoin(t){return this.on("channel_member_join",t)}onMemberLeave(t){return this.on("channel_member_leave",t)}onTypingStart(t){return this.on("typing_start",t)}onTypingStop(t){return this.on("typing_stop",t)}startTyping(t){this.send({type:"typing_start",data:{channelId:t}});}stopTyping(t){this.send({type:"typing_stop",data:{channelId:t}});}subscribeToChannel(t){this.send({type:"subscribe",data:{channelId:t}});}unsubscribeFromChannel(t){this.send({type:"unsubscribe",data:{channelId:t}});}};function hh(e){let t=new xt(e);return {connect:n((o,s)=>t.connectToChannel(o,{token:s}),"connect"),connectToOrganization:n((o,s,r)=>t.connectToOrganizationChannel(o,s,{token:r}),"connectToOrganization"),connectToUserChannels:n(o=>t.connectToUserChannels({token:o}),"connectToUserChannels"),connectToOrganizationChannels:n((o,s)=>t.connectToOrganizationChannels(o,{token:s}),"connectToOrganizationChannels"),onMessageCreate:n(o=>t.onMessageCreate(o),"onMessageCreate"),onMessageUpdate:n(o=>t.onMessageUpdate(o),"onMessageUpdate"),onMessageDelete:n(o=>t.onMessageDelete(o),"onMessageDelete"),onChannelUpdate:n(o=>t.onChannelUpdate(o),"onChannelUpdate"),onChannelDelete:n(o=>t.onChannelDelete(o),"onChannelDelete"),onMemberJoin:n(o=>t.onMemberJoin(o),"onMemberJoin"),onMemberLeave:n(o=>t.onMemberLeave(o),"onMemberLeave"),onTypingStart:n(o=>t.onTypingStart(o),"onTypingStart"),onTypingStop:n(o=>t.onTypingStop(o),"onTypingStop"),onAny:n(o=>t.on("*",o),"onAny"),startTyping:n(o=>t.startTyping(o),"startTyping"),stopTyping:n(o=>t.stopTyping(o),"stopTyping"),subscribeToChannel:n(o=>t.subscribeToChannel(o),"subscribeToChannel"),unsubscribeFromChannel:n(o=>t.unsubscribeFromChannel(o),"unsubscribeFromChannel"),disconnect:n(()=>t.disconnect(),"disconnect"),get connected(){return t.connected},get reconnecting(){return t.reconnecting},client:t}}n(hh,"channelsWS");
2
- export{$t as AcceptOrganizationMemberInvitationDto,Ot as AddParticipantDto,zt as AddReactionDto,ee as ApiKeyTier,te as ApiKeyType,Bs as AtLeastOneMedia,Ve as AtLeastOneMediaConstraint,ir as AtLeastOneMediaOnUpdate,ke as AtLeastOneMediaOnUpdateConstraint,rc as AuthFlow,m as BaseOrganizationEventDto,dp as BillingLocality,ze as CacheManager,pc as CareersJobStatus,dc as CareersRemoteType,cc as CareersWorkplaceType,mc as ChannelMemberRole,nt as ChannelMessageReportReason,uc as ChannelStatus,ye as ChannelType,xt as ChannelWebSocketClient,et as Client,Be as ContentOrAttachmentsConstraint,Se as CreateApiKeyDto,Ee as CreateChannelDto,Fe as CreateChannelMessageDto,I as CreateLocationDto,Oe as CreateOrganizationDto,Kt as CreateOrganizationEventDto,ft as CreateOrganizationEventOrderDto,B as CreateOrganizationEventPromoCodeDto,lt as CreateOrganizationEventStyleDto,v as CreateOrganizationEventTicketDto,K as CreateOrganizationIdentityDto,gt as CreateOrganizationMemberDto,Jt as CreateOrganizationMemberInvitationLinkDto,Ze as CreateUserDto,L as CreateUserIdentityDto,yt as CreateUserPostCommentDto,qe as CreateUserPostDto,ao as CreateUserPostRepostDto,Ce as Currency,uo as DEFAULT_API_URL,bi as DEFAULT_BILLING_PARAMETERS,hi as DEFAULT_STRIPE_FEES,vi as DEFAULT_TONIGHTPASS_FEES,hc as ErrorType,bc as FeedType,z as GeoPointDto,no as GoogleOneTapDto,Jc as Language,fp as MINIMUM_CHARGEABLE_AMOUNT,yo as MINIMUM_CHARGE_AMOUNTS,Pe as MINIMUM_COMMISSION,Qe as MemoryCacheStore,sc as OAuth2Provider,Sc as OrderTransferStatus,wc as OrganizationEventFileType,oe as OrganizationEventPromoCodeType,jc as OrganizationEventStatus,Ac as OrganizationEventStyleType,ie as OrganizationEventTicketCategory,ne as OrganizationEventTicketType,se as OrganizationEventType,re as OrganizationEventVisibilityType,Fc as OrganizationFileType,f as OrganizationMemberRole,It as OrganizationMemberRolePower,Ra as OrganizationMemberStatus,Bc as OrganizationPayoutStatus,Uc as OrganizationTokenType,Zc as ProfileType,c as REGEX,Xc as ROADMAP_REACTIONS,po as RecoveryDto,Xe as RecoveryResetDto,st as ReportChannelMessageDto,Yc as RoadmapFeatureStatus,bt as SignInUserDto,ui as TonightPass,Ne as TonightPassAPIError,ge as UpdateApiKeyDto,Lt as UpdateChannelDto,Mt as UpdateChannelMessageDto,A as UpdateLocationDto,we as UpdateOrganizationDto,R as UpdateOrganizationEventDto,F as UpdateOrganizationEventPromoCodeDto,Co as UpdateOrganizationEventStyleDto,l as UpdateOrganizationEventTicketDto,W as UpdateOrganizationIdentityDto,Qt as UpdateOrganizationMemberDto,Ye as UpdateUserDto,io as UpdateUserPostCommentDto,ht as UpdateUserPostDto,La as UserFileType,Q as UserIdentityGender,Ia as UserNotificationType,_a as UserPostMediaType,J as UserPostVisibility,Je as UserRole,Va as UserRolePower,Na as UserTokenType,Rt as VerifyEmailConfirmDto,St as WebSocketClient,go as ZERO_DECIMAL_CURRENCIES,Mn as apiKeys,up as applyMinimumChargeableAmount,Ln as auth,C as buildFileFormData,mp as calculateTicketFee,Un as careers,Bn as channels,hh as channelsWS,Fn as currencies,Gn as feed,cp as fromSmallestUnit,lp as getMinimumChargeableAmount,Kn as health,Re as isBrowser,Sp as isMemberRoleAtLeast,ho as isZeroDecimalCurrency,rt as normalizeAddress,Tn as notifications,Hn as orders,ei as organizations,ti as places,ni as profiles,vo as request,ii as roadmap,d as sdk,si as sitemaps,pp as toSmallestUnit,mi as users};//# sourceMappingURL=index.mjs.map
1
+ import {pathcat}from'pathcat';import Ri from'redaxios';import'reflect-metadata';import {IsString,Length,IsEnum,IsOptional,IsArray,IsUrl,ArrayMaxSize,IsBoolean,Matches,ArrayMinSize,ValidateIf,ValidatorConstraint,Validate,IsMongoId,IsNotEmpty,ValidateNested,IsLowercase,IsObject,IsNumber,Min,IsDate,MinDate,Max,IsEmail,IsPhoneNumber,registerDecorator}from'class-validator';import {Transform,Type}from'class-transformer';var gi=Object.defineProperty;var n=(e,t)=>gi(e,"name",{value:t,configurable:true});var uo="https://api.tonightpass.com";var c={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i,ORGANIZATION_AVATAR_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/organizations\/[\w-]+\/avatars\//,ORGANIZATION_BANNER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/organizations\/[\w-]+\/banners\//,EVENT_FLYER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/events\/flyers\/|organizations\/[\w-]+\/events\/[\w-]+\/flyers\/)/,EVENT_FLYER_URL_UPDATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com|cdn\.payload\.tonightpass\.com)\/(temp\/events\/flyers\/|organizations\/[\w-]+\/events\/[\w-]+\/flyers\/|[\w-]+\.\w+$)/,EVENT_TRAILER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/events\/trailers\/|organizations\/[\w-]+\/events\/[\w-]+\/trailers\/)/,EVENT_TRAILER_URL_UPDATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com|cdn\.payload\.tonightpass\.com)\/(temp\/events\/trailers\/|organizations\/[\w-]+\/events\/[\w-]+\/trailers\/|[\w-]+\.\w+$)/,USER_AVATAR_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/users\/[\w-]+\/avatars\//,USER_AVATAR_URL_CREATE:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(users\/[\w-]+\/avatars\/|temp\/users\/avatars\/)/,USER_BANNER_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/users\/[\w-]+\/banners\//,CHANNEL_MESSAGE_ATTACHMENT:/^channels\/[\w-]+\/messages\/[\w-]+\/private\/[\w-]+$/,USER_POST_MEDIA_URL:/^https:\/\/(cdn\.staging\.tonightpass\.com|cdn\.tonightpass\.com)\/(temp\/posts\/media\/|users\/[\w-]+\/posts\/[\w-]+\/media\/)/};var Ra=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),f=function(e){return e.Owner="owner",e.Admin="admin",e.Manager="manager",e.Member="member",e}({});var Ia=function(e){return e.Follow="follow",e}({});var _a=function(e){return e.Image="image",e.Video="video",e}({});var J=function(e){return e.Public="public",e.Followers="followers",e.Private="private",e}({});var Na=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Je=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Q=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),La=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var It={[f.Owner]:3,[f.Admin]:2,[f.Manager]:1,[f.Member]:0},Va={[Je.Admin]:2,[Je.Developer]:1,[Je.User]:0};var Qe=class{static{n(this,"MemoryCacheStore");}cache=new Map;maxSize;constructor(t=1e3){this.maxSize=t;}async get(t){return this.cache.get(t)??null}async set(t,o){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){let s=this.cache.keys().next().value;s!==void 0&&this.cache.delete(s);}this.cache.set(t,o);}async delete(t){this.cache.delete(t);}async clear(){this.cache.clear();}async size(){return this.cache.size}async keys(){return Array.from(this.cache.keys())}};var ze=class{static{n(this,"CacheManager");}store;options;constructor(t){this.options={enabled:t.enabled,ttl:t.ttl??6e4,maxSize:t.maxSize??1e3,methods:t.methods??["GET"]},this.store=t.store??new Qe(this.options.maxSize);}generateKey(t,o){return `${t}:${o}`}shouldCache(t){return this.options.enabled&&this.options.methods.includes(t)}isValid(t){return Date.now()-t.timestamp<this.options.ttl}async get(t,o){if(!this.shouldCache(t))return null;let s=this.generateKey(t,o),r=await this.store.get(s);return r?this.isValid(r)?r.data:(await this.store.delete(s),null):null}async set(t,o,s){if(!this.shouldCache(t))return;let r=this.generateKey(t,o);await this.store.set(r,{data:s,timestamp:Date.now()});}async clear(){await this.store.clear();}async stats(){return {size:await this.store.size(),keys:await this.store.keys()}}};var At={name:"tonightpass",version:"0.0.259"};var Ce=function(e){return e.USD="USD",e.EUR="EUR",e.GBP="GBP",e.ARS="ARS",e.AWG="AWG",e.BBD="BBD",e.BMD="BMD",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BZD="BZD",e.CAD="CAD",e.CLP="CLP",e.COP="COP",e.CRC="CRC",e.DOP="DOP",e.FKP="FKP",e.GTQ="GTQ",e.GYD="GYD",e.HNL="HNL",e.HTG="HTG",e.JMD="JMD",e.KYD="KYD",e.MXN="MXN",e.NIO="NIO",e.PAB="PAB",e.PEN="PEN",e.PYG="PYG",e.SRD="SRD",e.TTD="TTD",e.UYU="UYU",e.XCD="XCD",e.ALL="ALL",e.BAM="BAM",e.BGN="BGN",e.BYN="BYN",e.CHF="CHF",e.CZK="CZK",e.DKK="DKK",e.GEL="GEL",e.GIP="GIP",e.HUF="HUF",e.ISK="ISK",e.MDL="MDL",e.MKD="MKD",e.NOK="NOK",e.PLN="PLN",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.SEK="SEK",e.TRY="TRY",e.UAH="UAH",e.AED="AED",e.AFN="AFN",e.AMD="AMD",e.AZN="AZN",e.BDT="BDT",e.BND="BND",e.CNY="CNY",e.HKD="HKD",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.JPY="JPY",e.KGS="KGS",e.KHR="KHR",e.KRW="KRW",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MVR="MVR",e.MYR="MYR",e.NPR="NPR",e.PHP="PHP",e.PKR="PKR",e.QAR="QAR",e.SAR="SAR",e.SGD="SGD",e.THB="THB",e.TJS="TJS",e.TWD="TWD",e.UZS="UZS",e.VND="VND",e.YER="YER",e.AOA="AOA",e.BWP="BWP",e.CDF="CDF",e.CVE="CVE",e.DJF="DJF",e.DZD="DZD",e.EGP="EGP",e.ETB="ETB",e.GMD="GMD",e.GNF="GNF",e.KES="KES",e.KMF="KMF",e.LRD="LRD",e.LSL="LSL",e.MAD="MAD",e.MGA="MGA",e.MUR="MUR",e.MWK="MWK",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.RWF="RWF",e.SCR="SCR",e.SHP="SHP",e.SLE="SLE",e.SOS="SOS",e.STD="STD",e.SZL="SZL",e.TZS="TZS",e.UGX="UGX",e.XAF="XAF",e.XOF="XOF",e.ZAR="ZAR",e.ZMW="ZMW",e.ANG="ANG",e.AUD="AUD",e.BIF="BIF",e.FJD="FJD",e.NZD="NZD",e.PGK="PGK",e.SBD="SBD",e.TOP="TOP",e.VUV="VUV",e.WST="WST",e.XCG="XCG",e.XPF="XPF",e}({}),go=["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"],yo={USD:50,AED:200,ARS:50,AUD:50,BRL:50,CAD:50,CHF:50,COP:50,CZK:1500,DKK:250,EUR:50,GBP:30,HKD:400,HUF:17500,IDR:50,ILS:50,INR:50,JPY:50,KRW:50,MXN:1e3,MYR:200,NOK:300,NZD:50,PHP:50,PLN:200,RON:200,RUB:50,SEK:300,SGD:50,THB:1e3,ZAR:50};function ho(e){return go.includes(e)}n(ho,"isZeroDecimalCurrency");function pp(e,t){return ho(t)?Math.round(e):Math.round(e*100)}n(pp,"toSmallestUnit");function cp(e,t){return ho(t)?e:e/100}n(cp,"fromSmallestUnit");var dp=function(e){return e.Europe="Europe",e.NonEurope="Non Europe",e}({}),Pe=95,fp=Pe,hi={transactionFee:25,europeRate:1.5,nonEuropeRate:3.25,connectRate:.25},vi={percentage:50,minimumCommission:Pe},bi={locality:"Europe"};function lp(e){let t=yo[e];return t?Math.max(t,Pe):Pe}n(lp,"getMinimumChargeableAmount");function mp(e,t,o=hi,s=vi,r=bi){if(e<=0)return 0;let a=(r.locality==="Europe"?o.europeRate:o.nonEuropeRate)*e/100,p=o.connectRate*e/100,h=o.transactionFee+a+p,Y=s.minimumCommission;return Math.max(t?h+h*s.percentage/100:h/(1-s.percentage/100),Y)}n(mp,"calculateTicketFee");function up(e,t=Pe){return e<=0?e:e<t?t:e}n(up,"applyMinimumChargeableAmount");var Re=typeof window<"u";function C(e,t){let o=new FormData,s=n(r=>r!==null&&typeof r=="object"&&"uri"in r&&"name"in r&&"type"in r,"isFileObject");if(typeof File<"u"&&t instanceof File)o.append(e,t);else if(typeof FileList<"u"&&t instanceof FileList)for(let r of Array.from(t))o.append(e,r);else if(s(t))o.append(e,t);else if(Array.isArray(t))for(let r of t)o.append(e,r);return o}n(C,"buildFileFormData");function Sp(e,t){return It[e]>=It[t]}n(Sp,"isMemberRoleAtLeast");var Si=Ri.create({headers:{Accept:"application/json",...!Re&&{"User-Agent":`${At.name}/${At.version}`}},responseType:"json",transformRequest:[(e,t)=>{if(e instanceof FormData){if(t&&typeof t=="object"){let o={};for(let[s,r]of Object.entries(t)){let i=s.toLowerCase();i!=="content-type"&&(o[i]=r);}Object.keys(t).forEach(s=>delete t[s]),Object.assign(t,o);}return e}if(e!=null)return t&&(t["Content-Type"]="application/json"),JSON.stringify(e)}],withCredentials:Re}),vo=n(async(e,t)=>{let{apiKey:o,accessToken:s,...r}=t||{},i={...r.headers,...o&&{"X-API-Key":o},...s&&{Authorization:`Bearer ${s}`}};return Si(e,{...r,headers:i}).then(p=>p).catch(p=>{throw p.data?new Ne(p,p.data):(console.error(p),p)})},"request");var Ne=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},et=class{static{n(this,"Client");}apiKey;accessToken;cacheManager;baseURL;url;constructor(t){this.baseURL=t.baseURL||uo,this.apiKey=t.apiKey,this.accessToken=t.accessToken,this.url=(o,s)=>pathcat(this.baseURL,o,s),t.cache?.enabled&&(this.cacheManager=new ze(t.cache));}setOptions(t){t.baseURL&&(this.baseURL=t.baseURL),this.apiKey=t.apiKey,this.accessToken=t.accessToken,t.cache?.enabled?this.cacheManager=new ze(t.cache):this.cacheManager=void 0;}setAccessToken(t){this.accessToken=t;}async clearCache(){await this.cacheManager?.clear();}async getCacheStats(){return this.cacheManager?.stats()}async get(t,o,s){return this.requester("GET",t,void 0,o,s)}async post(t,o,s,r){return this.requester("POST",t,o,s,r)}async put(t,o,s,r){return this.requester("PUT",t,o,s,r)}async patch(t,o,s,r){return this.requester("PATCH",t,o,s,r)}async delete(t,o,s,r){return this.requester("DELETE",t,o,s,r)}async requester(t,o,s,r={},i={}){let a=this.url(o,r);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");if(this.cacheManager){let Y=await this.cacheManager.get(t,a);if(Y!==null)return Y}let p=await vo(a,{method:t,data:s,apiKey:this.apiKey,accessToken:this.accessToken,...i}),h=p.data;if(!h.success)throw new Ne(p,h);return this.cacheManager&&await this.cacheManager.set(t,a,h.data),h.data}};var ee=function(e){return e.PUBLIC="public",e.INTERNAL="internal",e}({}),te=function(e){return e.User="user",e.App="app",e}({});function tt(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(tt,"_ts_decorate");function ot(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ot,"_ts_metadata");var Se=class{static{n(this,"CreateApiKeyDto");}name;type;tier;allowedOrigins};tt([IsString(),Length(1,100),ot("design:type",String)],Se.prototype,"name",void 0);tt([IsEnum(te),IsOptional(),ot("design:type",typeof te>"u"?Object:te)],Se.prototype,"type",void 0);tt([IsEnum(ee),IsOptional(),ot("design:type",typeof ee>"u"?Object:ee)],Se.prototype,"tier",void 0);tt([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),ot("design:type",Array)],Se.prototype,"allowedOrigins",void 0);function Me(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Me,"_ts_decorate");function Le(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Le,"_ts_metadata");var ge=class{static{n(this,"UpdateApiKeyDto");}name;isActive;type;tier;allowedOrigins};Me([IsString(),IsOptional(),Length(1,100),Le("design:type",String)],ge.prototype,"name",void 0);Me([IsBoolean(),IsOptional(),Le("design:type",Boolean)],ge.prototype,"isActive",void 0);Me([IsEnum(te),IsOptional(),Le("design:type",typeof te>"u"?Object:te)],ge.prototype,"type",void 0);Me([IsEnum(ee),IsOptional(),Le("design:type",typeof ee>"u"?Object:ee)],ge.prototype,"tier",void 0);Me([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),Le("design:type",Array)],ge.prototype,"allowedOrigins",void 0);function Li(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Li,"_ts_decorate");function Ui(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ui,"_ts_metadata");var Ot=class{static{n(this,"AddParticipantDto");}username};Li([IsString(),Matches(c.USERNAME,{message:"user.username.format"}),Ui("design:type",String)],Ot.prototype,"username",void 0);var sc=function(e){return e.Google="google",e.Facebook="facebook",e.Twitter="twitter",e}({}),rc=function(e){return e.SignUp="signup",e.SignIn="signin",e}({});var pc=function(e){return e.All="ALL",e.Online="ONLINE",e.Archived="ARCHIVED",e}({}),cc=function(e){return e.Onsite="ONSITE",e.Remote="REMOTE",e.Hybrid="HYBRID",e}({}),dc=function(e){return e.Anywhere="ANYWHERE",e.Country="COUNTRY",e}({});var nt=function(e){return e.Dislike="dislike",e.HarassmentSelf="harassment_self",e.HarassmentOther="harassment_other",e.SexualHarassmentSelf="sexual_harassment_self",e.NudesSelf="nudes_self",e.SexualContent="sexual_content",e.ChildInvolved="child_involved",e.ThreatTarget="threat_target",e.ViolentContent="violent_content",e.HateSpeech="hate_speech",e.Terrorism="terrorism",e.DrugSale="drug_sale",e.WeaponSale="weapon_sale",e.SelfHarmConcern="self_harm_concern",e.SelfHarmPromotion="self_harm_promotion",e.Other="other",e}({});var ye=function(e){return e.Private="private",e.Group="group",e}({}),mc=function(e){return e.Member="member",e.Admin="admin",e}({}),uc=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var hc=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var bc=function(e){return e.Following="following",e.Discover="discover",e}({});var Sc=function(e){return e.Completed="completed",e.Pending="pending",e.Transferred="transferred",e}({});var oe=function(e){return e.Percentage="percentage",e.Fixed="fixed",e}({});var Ac=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var ne=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),ie=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var se=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Festival="festival",e.HouseParty="house_party",e.FriendsParty="friends_party",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),re=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),wc=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({}),jc=function(e){return e.Upcoming="upcoming",e.Ongoing="ongoing",e.Ended="ended",e}({});var Uc=function(e){return e.InvitationLink="invitation_link",e}({});var Bc=function(e){return e.Paid="paid",e.Pending="pending",e.InTransit="in_transit",e.Failed="failed",e.Canceled="canceled",e}({}),Fc=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Zc=function(e){return e.User="user",e.Organization="organization",e}({});var Xc=["\u{1F44D}","\u2764\uFE0F","\u{1F389}","\u{1F440}","\u{1F680}"],Yc=function(e){return e.ComingSoon="coming-soon",e.Shipped="shipped",e}({});var Jc=function(e){return e.FR="fr",e.EN="en",e}({});function jt(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(jt,"_ts_decorate");function Dt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Dt,"_ts_metadata");var Ee=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};jt([IsEnum(ye),Dt("design:type",typeof ye>"u"?Object:ye)],Ee.prototype,"type",void 0);jt([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===ye.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===ye.Group),ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),IsString({each:true}),Matches(c.USERNAME,{each:true,message:"user.username.format"}),Dt("design:type",Array)],Ee.prototype,"participantUsernames",void 0);jt([IsOptional(),ValidateIf(e=>e.type===ye.Group),IsString(),Length(1,100),Dt("design:type",String)],Ee.prototype,"name",void 0);function Vi(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Vi,"_ts_decorate");function Wi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Wi,"_ts_metadata");var zt=class{static{n(this,"AddReactionDto");}emoji};Vi([IsString(),Length(1,10),Wi("design:type",String)],zt.prototype,"emoji",void 0);function it(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(it,"_ts_decorate");function Pt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Pt,"_ts_metadata");var Be=class{static{n(this,"ContentOrAttachmentsConstraint");}validate(t,o){let s=o.object,r=!!(s.content&&s.content.trim().length>0),i=!!(s.attachments&&s.attachments.length>0);return r||i}defaultMessage(t){return "Either content or attachments must be provided"}};Be=it([ValidatorConstraint({name:"contentOrAttachments",async:false})],Be);var Fe=class{static{n(this,"CreateChannelMessageDto");}content;attachments;replyToId};it([IsOptional(),IsString(),ValidateIf(e=>e.content!==void 0),Length(1,1024),Pt("design:type",String)],Fe.prototype,"content",void 0);it([IsOptional(),IsArray(),ArrayMaxSize(10),Matches(c.CHANNEL_MESSAGE_ATTACHMENT,{each:true}),Validate(Be),Pt("design:type",Array)],Fe.prototype,"attachments",void 0);it([IsOptional(),IsMongoId(),Pt("design:type",String)],Fe.prototype,"replyToId",void 0);function Ao(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Ao,"_ts_decorate");function _o(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_o,"_ts_metadata");var st=class{static{n(this,"ReportChannelMessageDto");}reason;description};Ao([IsEnum(nt),_o("design:type",typeof nt>"u"?Object:nt)],st.prototype,"reason",void 0);Ao([IsOptional(),IsString(),ValidateIf(e=>e.description&&e.description.trim().length>0),Length(1,500),_o("design:type",String)],st.prototype,"description",void 0);function as(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(as,"_ts_decorate");function ps(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ps,"_ts_metadata");var Mt=class{static{n(this,"UpdateChannelMessageDto");}content};as([IsOptional(),IsString(),Length(1,1024),ps("design:type",String)],Mt.prototype,"content",void 0);function ls(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(ls,"_ts_decorate");function ms(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ms,"_ts_metadata");var Lt=class{static{n(this,"UpdateChannelDto");}name};ls([IsOptional(),IsString(),Length(1,100),ms("design:type",String)],Lt.prototype,"name",void 0);var rt=n((e,t)=>{if(!e)return e;let o=e.split(",").map($=>$.trim()),s=t.zipCode?.toLowerCase(),r=t.city?.toLowerCase(),i=t.country?.toLowerCase(),a=[s,r,i].filter($=>!!$),p=s&&r?`${s} ${r}`:void 0,h=n($=>{let mo=$.toLowerCase();return !!(a.includes(mo)||p&&mo===p)},"isNoise"),Y=[];for(let $ of o)h($)||Y.push($);return Y.join(", ").trim()||e},"normalizeAddress");function G(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(G,"_ts_decorate");function ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ae,"_ts_metadata");var Ut=class{static{n(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[o,s]=t;return s>=-90&&s<=90&&o>=-180&&o<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};Ut=G([ValidatorConstraint({name:"coordinatesRange",async:false})],Ut);var z=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};G([IsString(),IsNotEmpty(),ae("design:type",String)],z.prototype,"type",void 0);G([IsArray(),IsNotEmpty(),Validate(Ut),ae("design:type",Array)],z.prototype,"coordinates",void 0);var I=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};G([IsOptional(),IsString(),Length(1,128),ae("design:type",String)],I.prototype,"name",void 0);G([Transform(({value:e,obj:t})=>rt(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),IsNotEmpty(),Length(1,256),ae("design:type",String)],I.prototype,"address",void 0);G([IsString(),IsNotEmpty(),Length(1,32),ae("design:type",String)],I.prototype,"zipCode",void 0);G([IsString(),IsNotEmpty(),Length(1,128),ae("design:type",String)],I.prototype,"city",void 0);G([IsString(),IsNotEmpty(),Length(1,128),ae("design:type",String)],I.prototype,"country",void 0);G([ValidateNested(),Type(()=>z),IsNotEmpty(),ae("design:type",typeof z>"u"?Object:z)],I.prototype,"geometry",void 0);function Ie(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Ie,"_ts_decorate");function Ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ae,"_ts_metadata");var A=class{static{n(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"name",void 0);Ie([IsOptional(),Transform(({value:e,obj:t})=>rt(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),Length(1,256),Ae("design:type",String)],A.prototype,"address",void 0);Ie([IsOptional(),IsString(),Length(1,32),Ae("design:type",String)],A.prototype,"zipCode",void 0);Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"city",void 0);Ie([IsOptional(),IsString(),Length(1,128),Ae("design:type",String)],A.prototype,"country",void 0);Ie([IsOptional(),ValidateNested(),Type(()=>z),Ae("design:type",typeof z>"u"?Object:z)],A.prototype,"geometry",void 0);function T(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(T,"_ts_decorate");function H(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(H,"_ts_metadata");var Oe=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};T([IsOptional(),IsString(),IsLowercase(),Length(1,48),H("design:type",String)],Oe.prototype,"organizationSlug",void 0);T([IsObject(),H("design:type",typeof K>"u"?Object:K)],Oe.prototype,"identity",void 0);T([IsArray(),H("design:type",Array)],Oe.prototype,"members",void 0);T([IsOptional(),IsObject(),H("design:type",typeof Location>"u"?Object:Location)],Oe.prototype,"location",void 0);var K=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};T([IsString(),IsNotEmpty(),Length(1,32),H("design:type",String)],K.prototype,"displayName",void 0);T([IsString(),Length(16,1024),IsOptional(),H("design:type",String)],K.prototype,"description",void 0);T([Matches(c.ORGANIZATION_AVATAR_URL,{message:"organization.avatar.url.invalid"}),H("design:type",String)],K.prototype,"avatarUrl",void 0);T([IsOptional(),Matches(c.ORGANIZATION_BANNER_URL,{message:"organization.banner.url.invalid"}),H("design:type",String)],K.prototype,"bannerUrl",void 0);T([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),H("design:type",Array)],K.prototype,"links",void 0);function U(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(U,"_ts_decorate");function E(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(E,"_ts_metadata");var v=class{static{n(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;isVisible;isFeesIncluded;startAt;endAt};U([IsString(),Length(1,128),E("design:type",String)],v.prototype,"name",void 0);U([IsString(),Length(0,1024),IsOptional(),E("design:type",String)],v.prototype,"description",void 0);U([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),E("design:type",Number)],v.prototype,"price",void 0);U([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),E("design:type",Number)],v.prototype,"quantity",void 0);U([IsEnum(ne),E("design:type",typeof ne>"u"?Object:ne)],v.prototype,"type",void 0);U([IsEnum(ie),E("design:type",typeof ie>"u"?Object:ie)],v.prototype,"category",void 0);U([IsBoolean(),E("design:type",Boolean)],v.prototype,"isVisible",void 0);U([IsBoolean(),E("design:type",Boolean)],v.prototype,"isFeesIncluded",void 0);U([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),E("design:type",typeof Date>"u"?Object:Date)],v.prototype,"startAt",void 0);U([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),E("design:type",typeof Date>"u"?Object:Date)],v.prototype,"endAt",void 0);function P(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(N,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}id;name;description;price;quantity;type;category;isVisible;isFeesIncluded;startAt;endAt};P([IsString(),IsOptional(),N("design:type",String)],l.prototype,"id",void 0);P([IsString(),Length(1,128),IsOptional(),N("design:type",String)],l.prototype,"name",void 0);P([IsString(),Length(0,1024),IsOptional(),N("design:type",String)],l.prototype,"description",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),N("design:type",Number)],l.prototype,"price",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),N("design:type",Number)],l.prototype,"quantity",void 0);P([IsEnum(ne),IsOptional(),N("design:type",typeof ne>"u"?Object:ne)],l.prototype,"type",void 0);P([IsEnum(ie),IsOptional(),N("design:type",typeof ie>"u"?Object:ie)],l.prototype,"category",void 0);P([IsBoolean(),IsOptional(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([IsBoolean(),IsOptional(),N("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);P([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);P([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function b(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(b,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");var Ve=class{static{n(this,"AtLeastOneMediaConstraint");}validate(t,o){let s=o.object,r=s.flyers||[],i=s.trailers||[];return r.length>0||i.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};Ve=b([ValidatorConstraint({name:"atLeastOneMedia",async:false})],Ve);function Bs(e){return (t,o)=>{registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:Ve});}}n(Bs,"AtLeastOneMedia");var m=class{static{n(this,"BaseOrganizationEventDto");}title;slug;description;type;visibility;currency;flyers;trailers;location;styles;startAt;endAt};b([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],m.prototype,"title",void 0);b([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.SLUG,{message:"organization.event.slug.format"}),S("design:type",String)],m.prototype,"slug",void 0);b([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],m.prototype,"description",void 0);b([IsEnum(se),IsNotEmpty(),S("design:type",typeof se>"u"?Object:se)],m.prototype,"type",void 0);b([IsEnum(re),IsNotEmpty(),S("design:type",typeof re>"u"?Object:re)],m.prototype,"visibility",void 0);b([IsEnum(Ce),IsNotEmpty(),S("design:type",typeof Ce>"u"?Object:Ce)],m.prototype,"currency",void 0);b([IsArray(),ArrayMaxSize(25),Matches(c.EVENT_FLYER_URL,{each:true,message:"organization.event.flyers.url.invalid"}),Bs(),S("design:type",Array)],m.prototype,"flyers",void 0);b([IsArray(),ArrayMaxSize(25),Matches(c.EVENT_TRAILER_URL,{each:true,message:"organization.event.trailers.url.invalid"}),S("design:type",Array)],m.prototype,"trailers",void 0);b([IsObject(),ValidateNested(),Type(()=>I),IsNotEmpty(),S("design:type",typeof I>"u"?Object:I)],m.prototype,"location",void 0);b([IsArray(),IsString({each:true}),ArrayMinSize(1),S("design:type",Array)],m.prototype,"styles",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],m.prototype,"startAt",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],m.prototype,"endAt",void 0);var Kt=class extends m{static{n(this,"CreateOrganizationEventDto");}tickets};b([IsArray(),ValidateNested({each:true}),Type(()=>v),IsNotEmpty(),S("design:type",Array)],Kt.prototype,"tickets",void 0);function Xo(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Xo,"_ts_decorate");function Yo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Yo,"_ts_metadata");var ft=class{static{n(this,"CreateOrganizationEventOrderDto");}cart;promoCode};Xo([IsArray(),IsString({each:true}),Yo("design:type",Array)],ft.prototype,"cart",void 0);Xo([IsOptional(),IsString(),Yo("design:type",String)],ft.prototype,"promoCode",void 0);function pe(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(pe,"_ts_decorate");function ce(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ce,"_ts_metadata");var B=class{static{n(this,"CreateOrganizationEventPromoCodeDto");}code;type;value;maxUses;isActive;minCartAmount;expiresAt;ticketIds};pe([IsString(),Length(1,32),ce("design:type",String)],B.prototype,"code",void 0);pe([IsEnum(oe),ce("design:type",typeof oe>"u"?Object:oe)],B.prototype,"type",void 0);pe([IsNumber(),Min(1),Max(1e4),ce("design:type",Number)],B.prototype,"value",void 0);pe([IsOptional(),IsNumber(),Min(1),ce("design:type",Number)],B.prototype,"maxUses",void 0);pe([IsOptional(),IsBoolean(),ce("design:type",Boolean)],B.prototype,"isActive",void 0);pe([IsOptional(),IsNumber(),Min(0),ce("design:type",Number)],B.prototype,"minCartAmount",void 0);pe([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),ce("design:type",typeof Date>"u"?Object:Date)],B.prototype,"expiresAt",void 0);pe([IsOptional(),IsArray(),IsString({each:true}),ce("design:type",Array)],B.prototype,"ticketIds",void 0);function de(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(de,"_ts_decorate");function fe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(fe,"_ts_metadata");var F=class{static{n(this,"UpdateOrganizationEventPromoCodeDto");}code;type;value;maxUses;isActive;minCartAmount;expiresAt;ticketIds};de([IsOptional(),IsString(),Length(1,32),fe("design:type",String)],F.prototype,"code",void 0);de([IsOptional(),IsEnum(oe),fe("design:type",typeof oe>"u"?Object:oe)],F.prototype,"type",void 0);de([IsOptional(),IsNumber(),Min(1),Max(1e4),fe("design:type",Number)],F.prototype,"value",void 0);de([IsOptional(),IsNumber(),Min(1),fe("design:type",Number)],F.prototype,"maxUses",void 0);de([IsOptional(),IsBoolean(),fe("design:type",Boolean)],F.prototype,"isActive",void 0);de([IsOptional(),IsNumber(),Min(0),fe("design:type",Number)],F.prototype,"minCartAmount",void 0);de([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),fe("design:type",typeof Date>"u"?Object:Date)],F.prototype,"expiresAt",void 0);de([IsOptional(),IsArray(),IsString({each:true}),fe("design:type",Array)],F.prototype,"ticketIds",void 0);var lt=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Co=class extends lt{static{n(this,"UpdateOrganizationEventStyleDto");}};function x(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(x,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_,"_ts_metadata");var ke=class{static{n(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,o){let s=o.object;return s.flyers!==void 0&&s.trailers!==void 0?s.flyers.length>0||s.trailers.length>0:s.flyers!==void 0&&s.trailers===void 0?s.flyers.length>0:s.trailers!==void 0&&s.flyers===void 0?s.trailers.length>0:true}defaultMessage(){return "Cannot remove all media from event. At least one flyer or trailer must remain"}};ke=x([ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],ke);function ir(e){return (t,o)=>{registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:ke});}}n(ir,"AtLeastOneMediaOnUpdate");var R=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([IsOptional(),IsString(),Length(1,64),_("design:type",String)],R.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.SLUG,{message:"organization.event.slug.format"}),_("design:type",String)],R.prototype,"slug",void 0);x([IsOptional(),IsString(),Length(16,2048),_("design:type",String)],R.prototype,"description",void 0);x([IsOptional(),IsEnum(se),_("design:type",typeof se>"u"?Object:se)],R.prototype,"type",void 0);x([IsOptional(),IsEnum(re),_("design:type",typeof re>"u"?Object:re)],R.prototype,"visibility",void 0);x([IsOptional(),IsArray(),Matches(c.EVENT_FLYER_URL_UPDATE,{each:true,message:"organization.event.flyers.url.invalid"}),ir(),_("design:type",Array)],R.prototype,"flyers",void 0);x([IsOptional(),IsArray(),Matches(c.EVENT_TRAILER_URL_UPDATE,{each:true,message:"organization.event.trailers.url.invalid"}),_("design:type",Array)],R.prototype,"trailers",void 0);x([IsOptional(),IsObject(),ValidateNested(),Type(()=>A),_("design:type",typeof A>"u"?Object:A)],R.prototype,"location",void 0);x([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>l),_("design:type",Array)],R.prototype,"tickets",void 0);x([IsOptional(),IsArray(),IsString({each:true}),_("design:type",Array)],R.prototype,"styles",void 0);x([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],R.prototype,"startAt",void 0);x([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],R.prototype,"endAt",void 0);function sr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(sr,"_ts_decorate");function rr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(rr,"_ts_metadata");var $t=class{static{n(this,"AcceptOrganizationMemberInvitationDto");}token};sr([IsString(),IsNotEmpty(),rr("design:type",String)],$t.prototype,"token",void 0);function an(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(an,"_ts_decorate");function pn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(pn,"_ts_metadata");var gt=class{static{n(this,"CreateOrganizationMemberDto");}user;role};an([IsString(),IsNotEmpty(),pn("design:type",String)],gt.prototype,"user",void 0);an([IsEnum(f),IsNotEmpty(),pn("design:type",typeof f>"u"?Object:f)],gt.prototype,"role",void 0);function fr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(fr,"_ts_decorate");function lr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(lr,"_ts_metadata");var Jt=class{static{n(this,"CreateOrganizationMemberInvitationLinkDto");}role};fr([IsEnum(f),IsOptional(),lr("design:type",typeof f>"u"?Object:f)],Jt.prototype,"role",void 0);function gr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(gr,"_ts_decorate");function yr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(yr,"_ts_metadata");var Qt=class{static{n(this,"UpdateOrganizationMemberDto");}role};gr([IsEnum(f),IsNotEmpty(),yr("design:type",typeof f>"u"?Object:f)],Qt.prototype,"role",void 0);function k(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(k,"_ts_decorate");function Z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Z,"_ts_metadata");var we=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};k([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"organization.slug.format"}),Z("design:type",String)],we.prototype,"slug",void 0);k([IsObject(),IsOptional(),Z("design:type",typeof W>"u"?Object:W)],we.prototype,"identity",void 0);k([IsOptional(),IsArray(),Z("design:type",Array)],we.prototype,"members",void 0);k([IsOptional(),IsObject(),Z("design:type",typeof Location>"u"?Object:Location)],we.prototype,"location",void 0);var W=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};k([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),Z("design:type",String)],W.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),Z("design:type",String)],W.prototype,"description",void 0);k([IsOptional(),Matches(c.ORGANIZATION_AVATAR_URL),Z("design:type",String)],W.prototype,"avatarUrl",void 0);k([IsOptional(),Matches(c.ORGANIZATION_BANNER_URL),Z("design:type",String)],W.prototype,"bannerUrl",void 0);k([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),Z("design:type",Array)],W.prototype,"links",void 0);function w(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(w,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(j,"_ts_metadata");var Ze=class{static{n(this,"CreateUserDto");}identifier;identity;password};w([ValidateNested(),Type(()=>je),j("design:type",typeof je>"u"?Object:je)],Ze.prototype,"identifier",void 0);w([ValidateNested(),Type(()=>L),j("design:type",typeof L>"u"?Object:L)],Ze.prototype,"identity",void 0);w([IsString(),Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),j("design:type",String)],Ze.prototype,"password",void 0);var je=class{static{n(this,"CreateUserIdentifierDto");}email;phoneNumber;username};w([IsOptional(),IsString(),IsEmail(),j("design:type",String)],je.prototype,"email",void 0);w([IsOptional(),IsString(),IsPhoneNumber(),j("design:type",String)],je.prototype,"phoneNumber",void 0);w([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"user.username.format"}),j("design:type",String)],je.prototype,"username",void 0);var L=class{static{n(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate;links};w([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"First name must be composed of letters only"}),j("design:type",String)],L.prototype,"firstName",void 0);w([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"Last name must be composed of letters only"}),j("design:type",String)],L.prototype,"lastName",void 0);w([IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],L.prototype,"gender",void 0);w([IsOptional(),Matches(c.USER_AVATAR_URL_CREATE,{message:"user.avatar.url.invalid"}),j("design:type",String)],L.prototype,"avatarUrl",void 0);w([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?e:t}),IsDate(),j("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);w([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),j("design:type",Array)],L.prototype,"links",void 0);function Nr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Nr,"_ts_decorate");function Mr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Mr,"_ts_metadata");var no=class{static{n(this,"GoogleOneTapDto");}credential};Nr([IsNotEmpty(),IsString(),Mr("design:type",String)],no.prototype,"credential",void 0);function un(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(un,"_ts_decorate");function gn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(gn,"_ts_metadata");var yt=class{static{n(this,"CreateUserPostCommentDto");}content;replyToId};un([IsString(),Length(1,280),gn("design:type",String)],yt.prototype,"content",void 0);un([IsOptional(),IsString(),gn("design:type",String)],yt.prototype,"replyToId",void 0);function Fr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Fr,"_ts_decorate");function Gr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Gr,"_ts_metadata");var io=class{static{n(this,"UpdateUserPostCommentDto");}content};Fr([IsString(),Length(1,280),Gr("design:type",String)],io.prototype,"content",void 0);function so(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(so,"_ts_decorate");function ro(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ro,"_ts_metadata");var qe=class{static{n(this,"CreateUserPostDto");}content;mediaUrls;visibility};so([IsOptional(),IsString(),Length(1,512),ro("design:type",String)],qe.prototype,"content",void 0);so([IsArray(),ArrayMinSize(1),ArrayMaxSize(10),Matches(c.USER_POST_MEDIA_URL,{each:true}),ro("design:type",Array)],qe.prototype,"mediaUrls",void 0);so([IsOptional(),IsEnum(J),ro("design:type",typeof J>"u"?Object:J)],qe.prototype,"visibility",void 0);function Yr(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Yr,"_ts_decorate");function $r(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n($r,"_ts_metadata");var ao=class{static{n(this,"CreateUserPostRepostDto");}comment};Yr([IsOptional(),IsString(),Length(1,280),$r("design:type",String)],ao.prototype,"comment",void 0);function vn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(vn,"_ts_decorate");function bn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(bn,"_ts_metadata");var ht=class{static{n(this,"UpdateUserPostDto");}content;visibility};vn([IsOptional(),IsString(),Length(1,512),bn("design:type",String)],ht.prototype,"content",void 0);vn([IsOptional(),IsEnum(J),bn("design:type",typeof J>"u"?Object:J)],ht.prototype,"visibility",void 0);function na(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(na,"_ts_decorate");function ia(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ia,"_ts_metadata");var po=class{static{n(this,"RecoveryDto");}identifier};na([IsNotEmpty(),IsString(),ia("design:type",String)],po.prototype,"identifier",void 0);function co(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(co,"_ts_decorate");function fo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(fo,"_ts_metadata");var Xe=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};co([IsString(),IsNotEmpty(),fo("design:type",String)],Xe.prototype,"tokenId",void 0);co([IsString(),IsNotEmpty(),fo("design:type",String)],Xe.prototype,"tokenValue",void 0);co([Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),IsNotEmpty({message:"Password is required"}),fo("design:type",String)],Xe.prototype,"password",void 0);function xn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(xn,"_ts_decorate");function In(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(In,"_ts_metadata");var bt=class{static{n(this,"SignInUserDto");}identifier;password};xn([IsNotEmpty(),IsString(),In("design:type",String)],bt.prototype,"identifier",void 0);xn([IsNotEmpty(),IsString(),In("design:type",String)],bt.prototype,"password",void 0);function u(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(g,"_ts_metadata");var Ye=class{static{n(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>De),g("design:type",typeof De>"u"?Object:De)],Ye.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>D),g("design:type",typeof D>"u"?Object:D)],Ye.prototype,"identity",void 0);u([IsOptional(),IsString(),Matches(c.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(c.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(c.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(c.PASSWORD,{message:"Password must be secure."}),g("design:type",String)],Ye.prototype,"password",void 0);var De=class{static{n(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),g("design:type",String)],De.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],De.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(c.USERNAME,{message:"user.username.format"}),g("design:type",String)],De.prototype,"username",void 0);var D=class{static{n(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate;links};u([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],D.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(c.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],D.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),g("design:type",String)],D.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),g("design:type",String)],D.prototype,"description",void 0);u([IsOptional(),Matches(c.USER_AVATAR_URL),g("design:type",Object)],D.prototype,"avatarUrl",void 0);u([IsOptional(),Matches(c.USER_BANNER_URL),g("design:type",Object)],D.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum(Q),g("design:type",typeof Q>"u"?Object:Q)],D.prototype,"gender",void 0);u([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?e:t}),IsDate(),g("design:type",typeof Date>"u"?Object:Date)],D.prototype,"birthDate",void 0);u([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),g("design:type",Array)],D.prototype,"links",void 0);function Dn(e,t,o,s){var r=arguments.length,i=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,o):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(r<3?a(i):r>3?a(t,o,i):a(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i}n(Dn,"_ts_decorate");function zn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(zn,"_ts_metadata");var Rt=class{static{n(this,"VerifyEmailConfirmDto");}tokenId;tokenValue};Dn([IsString(),IsNotEmpty(),zn("design:type",String)],Rt.prototype,"tokenId",void 0);Dn([IsString(),IsNotEmpty(),zn("design:type",String)],Rt.prototype,"tokenValue",void 0);function d(e){return e}n(d,"sdk");var Mn=e=>({getAll:n(async()=>e.get("/api-keys"),"getAll"),get:n(async t=>e.get("/api-keys/:apiKeyId",{apiKeyId:t}),"get"),create:n(async t=>e.post("/api-keys",t),"create"),update:n(async(t,o)=>e.put("/api-keys/:apiKeyId",o,{apiKeyId:t}),"update"),delete:n(async t=>e.delete("/api-keys/:apiKeyId",void 0,{apiKeyId:t}),"delete")});var Ln=e=>({signIn:n(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:n(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:n(async()=>e.post("/auth/sign-out",void 0),"signOut"),refreshToken:n(async()=>e.post("/auth/refresh-token",void 0),"refreshToken"),recovery:n(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:n(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),verifyEmail:{send:n(async()=>e.post("/auth/verify/email/send",void 0),"send"),confirm:n(async t=>e.post("/auth/verify/email/confirm",t),"confirm")},oauth2:{connect:n((t,o)=>e.url("/oauth2/:provider",{provider:t,...o}),"connect"),disconnect:n(async t=>e.delete("/oauth2/:provider",void 0,{provider:t}),"disconnect"),googleOneTap:n(async t=>e.post("/oauth2/google/one-tap",t),"googleOneTap")}});var Un=e=>({categories:{getAll:n(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:n(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:n(async t=>e.get("/careers/jobs",t),"getAll"),get:n(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:n(async t=>e.get("/careers/offices",t),"getAll")}});var En=e=>({getAll:n(async(t,o)=>e.get("/channels/~me/:channelId/messages",{channelId:t,...o}),"getAll"),getAllByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:o,...s}),"getAllByOrganization"),get:n(async(t,o)=>e.get("/channels/~me/:channelId/messages/:messageId",{channelId:t,messageId:o}),"get"),getByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:o,messageId:s}),"getByOrganization"),create:n(async(t,o)=>e.post("/channels/~me/:channelId/messages",o,{channelId:t}),"create"),createByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/messages",s,{organizationSlug:t,channelId:o}),"createByOrganization"),update:n(async(t,o,s)=>e.put("/channels/~me/:channelId/messages/:messageId",s,{channelId:t,messageId:o}),"update"),updateByOrganization:n(async(t,o,s,r)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",r,{organizationSlug:t,channelId:o,messageId:s}),"updateByOrganization"),delete:n(async(t,o)=>e.delete("/channels/~me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:o}),"delete"),deleteByOrganization:n(async(t,o,s)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:o,messageId:s}),"deleteByOrganization"),addReaction:n(async(t,o,s)=>e.post("/channels/~me/:channelId/messages/:messageId/reactions",s,{channelId:t,messageId:o}),"addReaction"),addReactionByOrganization:n(async(t,o,s,r)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",r,{organizationSlug:t,channelId:o,messageId:s}),"addReactionByOrganization"),removeReaction:n(async(t,o,s)=>e.delete("/channels/~me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:o,emoji:s}),"removeReaction"),removeReactionByOrganization:n(async(t,o,s,r)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:o,messageId:s,emoji:r}),"removeReactionByOrganization"),markAsRead:n(async(t,o)=>e.post("/channels/~me/:channelId/messages/:messageId/read",void 0,{channelId:t,messageId:o}),"markAsRead"),markAsReadByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",void 0,{organizationSlug:t,channelId:o,messageId:s}),"markAsReadByOrganization"),uploadFile:n(async(t,o)=>e.post("/channels/~me/:channelId/files",o,{channelId:t}),"uploadFile"),uploadFileByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/files",s,{organizationSlug:t,channelId:o}),"uploadFileByOrganization"),report:n(async(t,o,s)=>e.post("/channels/~me/:channelId/messages/:messageId/report",s,{channelId:t,messageId:o}),"report"),reportByOrganization:n(async(t,o,s,r)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/report",r,{organizationSlug:t,channelId:o,messageId:s}),"reportByOrganization")});var Bn=e=>({me:n(async t=>e.get("/channels/~me",t),"me"),getByOrganization:n(async(t,o)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...o}),"getByOrganization"),countMe:n(async t=>e.get("/users/~me/channels/count",t),"countMe"),countByOrganization:n(async(t,o)=>e.get("/users/@:organizationSlug/channels/count",{organizationSlug:t,...o}),"countByOrganization"),get:n(async t=>e.get("/channels/~me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:n(async(t,o)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:o}),"getByOrganizationChannel"),create:n(async t=>e.post("/channels/~me",t),"create"),createByOrganization:n(async(t,o)=>e.post("/channels/:organizationSlug",o,{organizationSlug:t}),"createByOrganization"),update:n(async(t,o)=>e.put("/channels/~me/:channelId",o,{channelId:t}),"update"),updateByOrganization:n(async(t,o,s)=>e.put("/channels/:organizationSlug/:channelId",s,{organizationSlug:t,channelId:o}),"updateByOrganization"),delete:n(async t=>e.delete("/channels/~me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:n(async(t,o)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:o}),"deleteByOrganization"),addParticipant:n(async(t,o)=>e.post("/channels/~me/:channelId/participants",o,{channelId:t}),"addParticipant"),addParticipantByOrganization:n(async(t,o,s)=>e.post("/channels/:organizationSlug/:channelId/participants",s,{organizationSlug:t,channelId:o}),"addParticipantByOrganization"),removeParticipant:n(async(t,o)=>e.delete("/channels/~me/:channelId/participants/:username",void 0,{channelId:t,username:o}),"removeParticipant"),removeParticipantByOrganization:n(async(t,o,s)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:o,username:s}),"removeParticipantByOrganization"),getMembers:n(async(t,o)=>e.get("/channels/~me/:channelId/members",{channelId:t,...o}),"getMembers"),getMembersByOrganization:n(async(t,o,s)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:o,...s}),"getMembersByOrganization"),messages:En(e)});var Fn=e=>({getRates:n(()=>e.get("/currencies/rates"),"getRates"),convert:n(t=>e.post("/currencies/convert",t),"convert"),convertAmount:n((t,o,s)=>e.post("/currencies/convert",{from:t,to:o,amount:s}),"convertAmount")});var Gn=e=>({getFollowing:n(async t=>e.get("/feed/following",t),"getFollowing"),getDiscover:n(async t=>e.get("/feed/discover",t),"getDiscover")});var Kn=e=>({getAll:n(async()=>e.get("/health"),"getAll"),database:n(async()=>e.get("/health/database"),"database"),api:n(async()=>e.get("/health/api"),"api"),app:n(async()=>e.get("/health/app"),"app"),memory:n(async()=>e.get("/health/memory"),"memory")});var Tn=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Hn=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Vn=n(e=>({account:n(async t=>e.get("/organizations/@:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:n(t=>{if(Re)window.location.href=e.url("/organizations/@:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),balance:n(async t=>e.get("/organizations/@:organizationSlug/billing/balance",{organizationSlug:t}),"balance"),pending:n(async t=>e.get("/organizations/@:organizationSlug/billing/pending",{organizationSlug:t}),"pending"),dashboard:n(t=>{if(Re)window.location.href=e.url("/organizations/@:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var Wn=e=>({getAll:n(async t=>e.get("/organizations/@:organizationSlug/customers",{organizationSlug:t}),"getAll"),get:n(async(t,o)=>e.get("/organizations/@:organizationSlug/customers/:username",{organizationSlug:t,username:o}),"get")});var kn=n(e=>({create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var Zn=n(e=>({getAll:n(async(t,o,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/promo-codes",{organizationSlug:t,eventSlug:o,...s}),"getAll"),create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/promo-codes",s,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,s,r)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId",r,{organizationSlug:t,eventSlug:o,promoCodeId:s}),"update"),delete:n(async(t,o,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId",void 0,{organizationSlug:t,eventSlug:o,promoCodeId:s}),"delete"),validate:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/promo-codes/validate",{code:s},{organizationSlug:t,eventSlug:o}),"validate")}),"organizationsEventsPromoCodes");var qn=n(e=>({getAll:n(async t=>e.get("/organizations/events/styles",t),"getAll"),get:n(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:n(async t=>e.post("/organizations/events/styles",t),"create"),update:n(async(t,o)=>e.put("/organizations/events/styles/:styleSlug",o,{styleSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/events/styles/:styleSlug",void 0,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Xn=n(e=>({getAll:n(async(t,o)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:o}),"getAll"),get:n(async(t,o,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:o,ticketId:s}),"get"),create:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,s,r)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",r,{organizationSlug:t,eventSlug:o,ticketId:s}),"update"),delete:n(async(t,o,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:o,ticketId:s}),"delete")}),"organizationsEventsTickets");var Yn=n(e=>({record:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record"),getStreamUrl:n(t=>e.url("/organizations/events/views/stream",t),"getStreamUrl")}),"organizationsEventsViews");var $n=n(e=>({search:n(async(t,o)=>e.get("/organizations/events/search",{q:t,...o}),"search"),getCalendar:n(async(t,o)=>e.get("/organizations/events/calendar/:year/:month",{year:t.toString(),month:o.toString()}),"getCalendar"),getAll:n(async(t,o)=>t?e.get("/organizations/@:organizationSlug/events",{organizationSlug:t,...o}):e.get("/organizations/events",o),"getAll"),getSuggestions:n(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:n(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:n(async(t,o)=>e.get("/organizations/@:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:o}),"get"),create:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events",o,{organizationSlug:t}),"create"),update:n(async(t,o,s)=>e.put("/organizations/@:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug",void 0,{organizationSlug:t,eventSlug:o}),"delete"),uploadFile:n(async(t,o)=>e.post("/events/files/:eventFileType",C("file",o),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:n(async(t,o,s,r)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType",C("file",r),{organizationSlug:t,eventSlug:o,eventFileType:s}),"uploadOrganizationFile"),request:n(async(t,o)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/request",void 0,{organizationSlug:t,eventSlug:o}),"request"),orders:kn(e),promoCodes:Zn(e),styles:qn(e),tickets:Xn(e),views:Yn(e)}),"organizationsEvents");var Jn=n(e=>({getLinks:n(async t=>e.get("/organizations/@:organizationSlug/members/invitations/links",{organizationSlug:t}),"getLinks"),createLink:n(async(t,o={})=>e.post("/organizations/@:organizationSlug/members/invitations/links",o,{organizationSlug:t}),"createLink"),accept:n(async(t,o)=>e.post("/organizations/@:organizationSlug/members/invitations/accept",o,{organizationSlug:t}),"accept")}),"invitations");var Qn=n(e=>({me:n(async()=>e.get("/organizations/members/~me"),"me"),get:n(async t=>e.get("/organizations/@:organizationSlug/members",{organizationSlug:t}),"get"),create:n(async(t,o)=>e.post("/organizations/@:organizationSlug/members",o,{organizationSlug:t}),"create"),update:n(async(t,o,s)=>e.put("/organizations/@:organizationSlug/members/:username",s,{organizationSlug:t,username:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/@:organizationSlug/members/:username",void 0,{organizationSlug:t,username:o}),"delete"),invitations:Jn(e),accept:n(async t=>e.put("/organizations/@:organizationSlug/members/~me/accept",void 0,{organizationSlug:t}),"accept"),reject:n(async t=>e.delete("/organizations/@:organizationSlug/members/~me/reject",void 0,{organizationSlug:t}),"reject"),leave:n(async t=>e.delete("/organizations/@:organizationSlug/members/~me",void 0,{organizationSlug:t}),"leave")}),"organizationsMembers");var Cn=e=>({getAll:n(async t=>e.get("/organizations/@:organizationSlug/orders",t),"getAll"),get:n(async t=>e.get("/organizations/@:organizationSlug/orders/:orderId",t),"get"),getAllByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/orders",t),"getAllByEvent"),getBookingsByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/bookings",t),"getBookingsByEvent"),getParticipantsByEvent:n(async t=>e.get("/organizations/@:organizationSlug/events/:eventSlug/participants",t),"getParticipantsByEvent")});var ei=e=>({search:n(async(t,o)=>e.get("/organizations/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/organizations"),"getAll"),get:n(async t=>e.get("/organizations/@:organizationSlug",{organizationSlug:t}),"get"),create:n(async t=>e.post("/organizations",t),"create"),update:n(async(t,o)=>e.put("/organizations/@:organizationSlug",o,{organizationSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/@:organizationSlug",void 0,{organizationSlug:t}),"delete"),uploadFile:n(async(t,o,s)=>e.post("/organizations/@:organizationSlug/files/:organizationFileType",C("file",s),{organizationSlug:t,organizationFileType:o}),"uploadFile"),billing:Vn(e),events:$n(e),members:Qn(e),customers:Wn(e),orders:Cn(e)});var ti=e=>({countries:{getAll:n(async t=>e.get("/places/countries",t),"getAll"),get:n(async t=>e.get("/places/countries/:countrySlug",{countrySlug:t}),"get"),cities:{getAll:n(async(t,o)=>e.get("/places/countries/:countrySlug/cities",{countrySlug:t,...o}),"getAll"),get:n(async(t,o)=>e.get("/places/countries/:countrySlug/cities/:citySlug",{countrySlug:t,citySlug:o}),"get"),nearby:n(async(t,o,s)=>e.get("/places/countries/:countrySlug/cities/:citySlug/nearby",{countrySlug:t,citySlug:o,...s}),"nearby")}},cities:{getAll:n(async t=>e.get("/places/cities",t),"getAll"),search:n(async(t,o)=>e.get("/places/cities/search",{q:t,...o}),"search")}});var oi=e=>({follow:n(async t=>e.post("/profiles/@:username/relationships/follow",void 0,{username:t}),"follow"),unfollow:n(async t=>e.post("/profiles/@:username/relationships/unfollow",void 0,{username:t}),"unfollow"),getSuggestions:n(async t=>e.get("/profiles/~me/relationships/suggestions",t),"getSuggestions"),getFollowers:n(async(t,o)=>e.get("/profiles/@:username/relationships/followers",{username:t,...o}),"getFollowers")});var ni=e=>({getAll:n(async t=>e.get("/profiles",t),"getAll"),search:n(async(t,o)=>e.get("/profiles/search",{q:t,...o}),"search"),get:n(async t=>e.get("/profiles/@:username",{username:t}),"get"),relationships:oi(e)});var ii=e=>({reactions:{get:n(async t=>e.get("/roadmap/reactions/:featureId",{featureId:t}),"get"),add:n(async(t,o)=>e.post("/roadmap/reactions/:featureId",{reaction:o},{featureId:t}),"add")}});var si=e=>({getCounts:n(async()=>e.get("/sitemaps/counts"),"getCounts")});var ri=e=>({get:n(async t=>e.get("/users/bookings/tickets/:ticketId",{ticketId:t}),"get"),use:n(async(t,o,s)=>e.put("/users/bookings/tickets/:ticketId/use",{tokenId:o,tokenValue:s},{ticketId:t}),"use")});var ai=e=>({getAll:n(async()=>e.get("/users/bookings"),"getAll"),get:n(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:n(async()=>e.get("/users/~me/bookings"),"me"),tickets:ri(e)});var pi=e=>({me:n(async()=>e.get("/users/~me/notifications"),"me"),count:n(async t=>e.get("/users/~me/notifications/count",t),"count"),read:n(async()=>e.put("/users/~me/notifications/read",void 0),"read")});var ci=n(e=>({record:n(async(t,o)=>e.post("/users/@:username/posts/:postId/views",void 0,{username:t,postId:o}),"record")}),"usersPostsViews");var di=e=>({getByUsername:n(async(t,o)=>e.get("/users/@:username/posts",{username:t,...o}),"getByUsername"),getByUsernameAndId:n(async(t,o)=>e.get("/users/@:username/posts/:postId",{username:t,postId:o}),"getByUsernameAndId"),create:n(async t=>e.post("/users/~me/posts",t),"create"),update:n(async(t,o)=>e.put("/users/~me/posts/:postId",o,{postId:t}),"update"),delete:n(async t=>e.delete("/users/~me/posts/:postId",void 0,{postId:t}),"delete"),uploadMedia:n(async t=>e.post("/users/~me/posts/media",t),"uploadMedia"),views:ci(e)});var fi=e=>({getByPost:n(async(t,o,s)=>e.get("/users/@:username/posts/:postId/comments",{username:t,postId:o,...s}),"getByPost"),create:n(async(t,o)=>e.post("/users/~me/posts/:postId/comments",o,{postId:t}),"create"),update:n(async(t,o,s)=>e.put("/users/~me/posts/:postId/comments/:commentId",s,{postId:t,commentId:o}),"update"),delete:n(async(t,o)=>e.delete("/users/~me/posts/:postId/comments/:commentId",void 0,{postId:t,commentId:o}),"delete")});var li=e=>({getByUsername:n(async(t,o)=>e.get("/users/@:username/reposts",{username:t,...o}),"getByUsername"),getByPost:n(async(t,o,s)=>e.get("/users/@:username/posts/:postId/reposts",{username:t,postId:o,...s}),"getByPost"),create:n(async(t,o)=>e.post("/users/~me/posts/:postId/reposts",o||{},{postId:t}),"create"),delete:n(async t=>e.delete("/users/~me/posts/:postId/reposts",void 0,{postId:t}),"delete")});var mi=e=>({getAll:n(async()=>e.get("/users"),"getAll"),get:n(async t=>e.get("/users/@:userId",{userId:t}),"get"),me:n(async()=>e.get("/users/~me"),"me"),check:n(async(t,o)=>e.get("/users/check/:identifier",{identifier:t,suggestions:o}),"check"),update:n(async(t,o)=>e.put("/users/@:userId",o,{userId:t}),"update"),uploadFile:n(async(t,o,s)=>e.post("/users/@:userId/files/:userFileType",C("file",s),{userId:t,userFileType:o}),"uploadFile"),uploadTempFile:n(async(t,o)=>e.post("/users/files/:userFileType",C("file",o),{userFileType:t}),"uploadTempFile"),bookings:ai(e),notifications:pi(e),posts:di(e),postsComments:fi(e),postsReposts:li(e)});var ui=class{static{n(this,"TonightPass");}client;apiKeys;auth;careers;channels;currencies;feed;health;orders;organizations;places;profiles;roadmap;sitemaps;users;notifications;constructor(t){this.client=new et(t),this.apiKeys=Mn(this.client),this.auth=Ln(this.client),this.careers=Un(this.client),this.channels=Bn(this.client),this.currencies=Fn(this.client),this.feed=Gn(this.client),this.health=Kn(this.client),this.orders=Hn(this.client),this.organizations=ei(this.client),this.places=ti(this.client),this.profiles=ni(this.client),this.roadmap=ii(this.client),this.sitemaps=si(this.client),this.users=mi(this.client),this.notifications=Tn(this.client);}};var St=class{static{n(this,"WebSocketClient");}ws;options;reconnectAttempts=0;reconnectTimer;eventHandlers=new Map;isConnected=false;isReconnecting=false;constructor(t={}){this.options={baseURL:"wss://api.tonightpass.com",maxReconnectAttempts:3,reconnectInterval:1e3,debug:false,...t};}log(t,...o){this.options.debug&&console.log(`[WebSocketClient] ${t}`,...o);}getWebSocketURL(t,o){let s={};Object.entries(o).forEach(([i,a])=>{typeof a=="string"&&i!=="token"&&(s[i]=a);});let r=pathcat(t,s);return `${this.options.baseURL}${r}`}async connect(t,o){return new Promise((s,r)=>{try{let i=this.getWebSocketURL(t,o);this.log("Connecting to",i);let a=[];"token"in o&&typeof o.token=="string"&&a.push(`access_token.${o.token}`),this.ws=a.length>0?new WebSocket(i,a):new WebSocket(i),this.ws.onopen=()=>{this.log("Connected successfully"),this.isConnected=!0,this.isReconnecting=!1,this.reconnectAttempts=0,s();},this.ws.onmessage=p=>{try{let h=JSON.parse(p.data);this.handleEvent(h);}catch(h){this.log("Error parsing message:",h);}},this.ws.onclose=p=>{this.log("Connection closed",p.code),this.isConnected=!1,this.options.maxReconnectAttempts&&!this.isReconnecting&&this.handleReconnect(t,o);},this.ws.onerror=p=>{this.log("WebSocket error:",p),this.isConnected=!1,r(p);};}catch(i){r(i);}})}handleReconnect(t,o){if(this.reconnectAttempts>=this.options.maxReconnectAttempts){this.log("Max reconnect attempts reached");return}this.isReconnecting=true,this.reconnectAttempts++,this.log(`Attempting to reconnect (${this.reconnectAttempts}/${this.options.maxReconnectAttempts})`),this.reconnectTimer=setTimeout(()=>{this.connect(t,o).catch(s=>{this.log("Reconnection failed:",s);});},this.options.reconnectInterval);}handleEvent(t){this.log("Received event:",t.type);let o=this.eventHandlers.get(t.type);o&&o.forEach(r=>r(t));let s=this.eventHandlers.get("*");s&&s.forEach(r=>r(t));}on(t,o){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set);let s=n(r=>{o(r);},"wrappedHandler");return this.eventHandlers.get(t)?.add(s),()=>{let r=this.eventHandlers.get(t);r&&(r.delete(s),r.size===0&&this.eventHandlers.delete(t));}}off(t,o){let s=this.eventHandlers.get(t);s&&(s.clear(),this.eventHandlers.delete(t));}send(t){this.ws&&this.isConnected?this.ws.send(JSON.stringify(t)):this.log("Cannot send data: WebSocket not connected");}disconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.ws&&(this.isConnected=false,this.isReconnecting=false,this.ws.close()),this.eventHandlers.clear();}get connected(){return this.isConnected}get reconnecting(){return this.isReconnecting}};var xt=class extends St{static{n(this,"ChannelWebSocketClient");}async connectToChannel(t,o={}){return this.connect("/channels/~me/:channelId/ws",{...o,channelId:t})}async connectToOrganizationChannel(t,o,s={}){return this.connect("/channels/:organizationSlug/:channelId/ws",{...s,organizationSlug:t,channelId:o})}async connectToUserChannels(t={}){return this.connect("/channels/~me/ws",t)}async connectToOrganizationChannels(t,o={}){return this.connect("/channels/:organizationSlug/ws",{...o,organizationSlug:t})}onMessageCreate(t){return this.on("channel_message_create",t)}onMessageUpdate(t){return this.on("channel_message_update",t)}onMessageDelete(t){return this.on("channel_message_delete",t)}onChannelUpdate(t){return this.on("channel_update",t)}onChannelDelete(t){return this.on("channel_delete",t)}onMemberJoin(t){return this.on("channel_member_join",t)}onMemberLeave(t){return this.on("channel_member_leave",t)}onTypingStart(t){return this.on("typing_start",t)}onTypingStop(t){return this.on("typing_stop",t)}startTyping(t){this.send({type:"typing_start",data:{channelId:t}});}stopTyping(t){this.send({type:"typing_stop",data:{channelId:t}});}subscribeToChannel(t){this.send({type:"subscribe",data:{channelId:t}});}unsubscribeFromChannel(t){this.send({type:"unsubscribe",data:{channelId:t}});}};function vh(e){let t=new xt(e);return {connect:n((o,s)=>t.connectToChannel(o,{token:s}),"connect"),connectToOrganization:n((o,s,r)=>t.connectToOrganizationChannel(o,s,{token:r}),"connectToOrganization"),connectToUserChannels:n(o=>t.connectToUserChannels({token:o}),"connectToUserChannels"),connectToOrganizationChannels:n((o,s)=>t.connectToOrganizationChannels(o,{token:s}),"connectToOrganizationChannels"),onMessageCreate:n(o=>t.onMessageCreate(o),"onMessageCreate"),onMessageUpdate:n(o=>t.onMessageUpdate(o),"onMessageUpdate"),onMessageDelete:n(o=>t.onMessageDelete(o),"onMessageDelete"),onChannelUpdate:n(o=>t.onChannelUpdate(o),"onChannelUpdate"),onChannelDelete:n(o=>t.onChannelDelete(o),"onChannelDelete"),onMemberJoin:n(o=>t.onMemberJoin(o),"onMemberJoin"),onMemberLeave:n(o=>t.onMemberLeave(o),"onMemberLeave"),onTypingStart:n(o=>t.onTypingStart(o),"onTypingStart"),onTypingStop:n(o=>t.onTypingStop(o),"onTypingStop"),onAny:n(o=>t.on("*",o),"onAny"),startTyping:n(o=>t.startTyping(o),"startTyping"),stopTyping:n(o=>t.stopTyping(o),"stopTyping"),subscribeToChannel:n(o=>t.subscribeToChannel(o),"subscribeToChannel"),unsubscribeFromChannel:n(o=>t.unsubscribeFromChannel(o),"unsubscribeFromChannel"),disconnect:n(()=>t.disconnect(),"disconnect"),get connected(){return t.connected},get reconnecting(){return t.reconnecting},client:t}}n(vh,"channelsWS");
2
+ export{$t as AcceptOrganizationMemberInvitationDto,Ot as AddParticipantDto,zt as AddReactionDto,ee as ApiKeyTier,te as ApiKeyType,Bs as AtLeastOneMedia,Ve as AtLeastOneMediaConstraint,ir as AtLeastOneMediaOnUpdate,ke as AtLeastOneMediaOnUpdateConstraint,rc as AuthFlow,m as BaseOrganizationEventDto,dp as BillingLocality,ze as CacheManager,pc as CareersJobStatus,dc as CareersRemoteType,cc as CareersWorkplaceType,mc as ChannelMemberRole,nt as ChannelMessageReportReason,uc as ChannelStatus,ye as ChannelType,xt as ChannelWebSocketClient,et as Client,Be as ContentOrAttachmentsConstraint,Se as CreateApiKeyDto,Ee as CreateChannelDto,Fe as CreateChannelMessageDto,I as CreateLocationDto,Oe as CreateOrganizationDto,Kt as CreateOrganizationEventDto,ft as CreateOrganizationEventOrderDto,B as CreateOrganizationEventPromoCodeDto,lt as CreateOrganizationEventStyleDto,v as CreateOrganizationEventTicketDto,K as CreateOrganizationIdentityDto,gt as CreateOrganizationMemberDto,Jt as CreateOrganizationMemberInvitationLinkDto,Ze as CreateUserDto,L as CreateUserIdentityDto,yt as CreateUserPostCommentDto,qe as CreateUserPostDto,ao as CreateUserPostRepostDto,Ce as Currency,uo as DEFAULT_API_URL,bi as DEFAULT_BILLING_PARAMETERS,hi as DEFAULT_STRIPE_FEES,vi as DEFAULT_TONIGHTPASS_FEES,hc as ErrorType,bc as FeedType,z as GeoPointDto,no as GoogleOneTapDto,Jc as Language,fp as MINIMUM_CHARGEABLE_AMOUNT,yo as MINIMUM_CHARGE_AMOUNTS,Pe as MINIMUM_COMMISSION,Qe as MemoryCacheStore,sc as OAuth2Provider,Sc as OrderTransferStatus,wc as OrganizationEventFileType,oe as OrganizationEventPromoCodeType,jc as OrganizationEventStatus,Ac as OrganizationEventStyleType,ie as OrganizationEventTicketCategory,ne as OrganizationEventTicketType,se as OrganizationEventType,re as OrganizationEventVisibilityType,Fc as OrganizationFileType,f as OrganizationMemberRole,It as OrganizationMemberRolePower,Ra as OrganizationMemberStatus,Bc as OrganizationPayoutStatus,Uc as OrganizationTokenType,Zc as ProfileType,c as REGEX,Xc as ROADMAP_REACTIONS,po as RecoveryDto,Xe as RecoveryResetDto,st as ReportChannelMessageDto,Yc as RoadmapFeatureStatus,bt as SignInUserDto,ui as TonightPass,Ne as TonightPassAPIError,ge as UpdateApiKeyDto,Lt as UpdateChannelDto,Mt as UpdateChannelMessageDto,A as UpdateLocationDto,we as UpdateOrganizationDto,R as UpdateOrganizationEventDto,F as UpdateOrganizationEventPromoCodeDto,Co as UpdateOrganizationEventStyleDto,l as UpdateOrganizationEventTicketDto,W as UpdateOrganizationIdentityDto,Qt as UpdateOrganizationMemberDto,Ye as UpdateUserDto,io as UpdateUserPostCommentDto,ht as UpdateUserPostDto,La as UserFileType,Q as UserIdentityGender,Ia as UserNotificationType,_a as UserPostMediaType,J as UserPostVisibility,Je as UserRole,Va as UserRolePower,Na as UserTokenType,Rt as VerifyEmailConfirmDto,St as WebSocketClient,go as ZERO_DECIMAL_CURRENCIES,Mn as apiKeys,up as applyMinimumChargeableAmount,Ln as auth,C as buildFileFormData,mp as calculateTicketFee,Un as careers,Bn as channels,vh as channelsWS,Fn as currencies,Gn as feed,cp as fromSmallestUnit,lp as getMinimumChargeableAmount,Kn as health,Re as isBrowser,Sp as isMemberRoleAtLeast,ho as isZeroDecimalCurrency,rt as normalizeAddress,Tn as notifications,Hn as orders,ei as organizations,ti as places,ni as profiles,vo as request,ii as roadmap,d as sdk,si as sitemaps,pp as toSmallestUnit,mi as users};//# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map