tonightpass 0.0.245 → 0.0.246
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.d.mts +33 -10
- package/dist/index.d.ts +33 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {pathcat}from'pathcat';import qo 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,IsEmail,IsPhoneNumber,registerDecorator}from'class-validator';import {Transform,Type}from'class-transformer';var Ho=Object.defineProperty;var o=(e,t)=>Ho(e,"name",{value:t,configurable:true});var Yt="https://api.tonightpass.com";var p={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 Di=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 Mi=function(e){return e.Follow="follow",e}({});var Bi=function(e){return e.Image="image",e.Video="video",e}({});var T=function(e){return e.Public="public",e.Followers="followers",e.Private="private",e}({});var qi=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 Ge=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),$=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Ki=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var dt={[f.Owner]:3,[f.Admin]:2,[f.Manager]:1,[f.Member]:0},ta={[Ge.Admin]:2,[Ge.Developer]:1,[Ge.User]:0};var Ie=class{static{o(this,"CacheManager");}cache=new Map;options;constructor(t){this.options={enabled:t.enabled,ttl:t.ttl??6e4,methods:t.methods??["GET"]};}generateKey(t,n){return `${t}:${n}`}shouldCache(t){return this.options.enabled&&this.options.methods.includes(t)}isValid(t){return Date.now()-t.timestamp<this.options.ttl}get(t,n){if(!this.shouldCache(t))return null;let s=this.generateKey(t,n),i=this.cache.get(s);return i?this.isValid(i)?i.data:(this.cache.delete(s),null):null}set(t,n,s){if(!this.shouldCache(t))return;let i=this.generateKey(t,n);this.cache.set(i,{data:s,timestamp:Date.now()});}clear(){this.cache.clear();}stats(){return {size:this.cache.size,keys:Array.from(this.cache.keys())}}};var le=typeof window<"u";function X(e,t){let n=new FormData,s=o(i=>i!==null&&typeof i=="object"&&"uri"in i&&"name"in i&&"type"in i,"isFileObject");return typeof File<"u"&&t instanceof File?n.append(e,t):typeof FileList<"u"&&t instanceof FileList?Array.from(t).forEach(i=>n.append(e,i)):s(t)?n.append(e,t):Array.isArray(t)&&t.forEach(i=>n.append(e,i)),n}o(X,"buildFileFormData");function da(e,t){return dt[e]>=dt[t]}o(da,"isMemberRoleAtLeast");var Wo=qo.create({headers:{Accept:"application/json",...!le&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[(e,t)=>{if(e instanceof FormData){if(t&&typeof t=="object"){let n={};for(let[s,i]of Object.entries(t)){let r=s.toLowerCase();r!=="content-type"&&(n[r]=i);}Object.keys(t).forEach(s=>delete t[s]),Object.assign(t,n);}return e}if(e!=null)return t&&(t["Content-Type"]="application/json"),JSON.stringify(e)}],withCredentials:le}),Jt=o(async(e,t)=>{let{apiKey:n,accessToken:s,...i}=t||{},r={...i.headers,...n&&{"X-API-Key":n},...s&&{Authorization:`Bearer ${s}`}};return Wo(e,{...i,headers:r}).then(c=>c).catch(c=>{throw c.data||console.error(c),c.data})},"request");var ft=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},ke=class{static{o(this,"Client");}options;apiKey;accessToken;cacheManager;url;constructor(t){this.options=t,this.apiKey=t.apiKey,this.accessToken=t.accessToken,this.url=(n,s)=>{let i=this.options.baseURL||Yt;return pathcat(i,n,s)},t.cache?.enabled&&(this.cacheManager=new Ie(t.cache));}setOptions(t){this.options=t,this.apiKey=t.apiKey,this.accessToken=t.accessToken,t.cache?.enabled?this.cacheManager=new Ie(t.cache):this.cacheManager=void 0;}setAccessToken(t){this.accessToken=t;}clearCache(){this.cacheManager?.clear();}getCacheStats(){return this.cacheManager?.stats()}async get(t,n,s){return this.requester("GET",t,void 0,n,s)}async post(t,n,s,i){return this.requester("POST",t,n,s,i)}async put(t,n,s,i){return this.requester("PUT",t,n,s,i)}async patch(t,n,s,i){return this.requester("PATCH",t,n,s,i)}async delete(t,n,s,i){return this.requester("DELETE",t,n,s,i)}async requester(t,n,s,i={},r={}){let a=this.url(n,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");if(this.cacheManager){let Se=this.cacheManager.get(t,a);if(Se!==null)return Se}let c=await Jt(a,{method:t,data:s,apiKey:this.apiKey,accessToken:this.accessToken,...r}),E=c.data;if(!E.success)throw new ft(c,E);return this.cacheManager&&this.cacheManager.set(t,a,E.data),E.data}};var Z=function(e){return e.PUBLIC="public",e.INTERNAL="internal",e}({}),Y=function(e){return e.User="user",e.App="app",e}({});function He(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(He,"_ts_decorate");function qe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(qe,"_ts_metadata");var me=class{static{o(this,"CreateApiKeyDto");}name;type;tier;allowedOrigins};He([IsString(),Length(1,100),qe("design:type",String)],me.prototype,"name",void 0);He([IsEnum(Y),IsOptional(),qe("design:type",typeof Y>"u"?Object:Y)],me.prototype,"type",void 0);He([IsEnum(Z),IsOptional(),qe("design:type",typeof Z>"u"?Object:Z)],me.prototype,"tier",void 0);He([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),qe("design:type",Array)],me.prototype,"allowedOrigins",void 0);function _e(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(_e,"_ts_decorate");function Ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ae,"_ts_metadata");var ae=class{static{o(this,"UpdateApiKeyDto");}name;isActive;type;tier;allowedOrigins};_e([IsString(),IsOptional(),Length(1,100),Ae("design:type",String)],ae.prototype,"name",void 0);_e([IsBoolean(),IsOptional(),Ae("design:type",Boolean)],ae.prototype,"isActive",void 0);_e([IsEnum(Y),IsOptional(),Ae("design:type",typeof Y>"u"?Object:Y)],ae.prototype,"type",void 0);_e([IsEnum(Z),IsOptional(),Ae("design:type",typeof Z>"u"?Object:Z)],ae.prototype,"tier",void 0);_e([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),Ae("design:type",Array)],ae.prototype,"allowedOrigins",void 0);function rr(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(rr,"_ts_decorate");function sr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(sr,"_ts_metadata");var mt=class{static{o(this,"AddParticipantDto");}username};rr([IsString(),Matches(p.USERNAME,{message:"user.username.format"}),sr("design:type",String)],mt.prototype,"username",void 0);var Ga=function(e){return e.Google="google",e.Facebook="facebook",e.Twitter="twitter",e}({}),ka=function(e){return e.SignUp="signup",e.SignIn="signin",e}({});var We=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 ce=function(e){return e.Private="private",e.Group="group",e}({}),Wa=function(e){return e.Member="member",e.Admin="admin",e}({}),Ka=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var J=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.BGN="BGN",e.CZK="CZK",e.DKK="DKK",e.HUF="HUF",e.PLN="PLN",e.RON="RON",e.SEK="SEK",e.CHF="CHF",e.NOK="NOK",e.ISK="ISK",e.TRY="TRY",e.RUB="RUB",e.UAH="UAH",e.BAM="BAM",e.MKD="MKD",e.ALL="ALL",e.RSD="RSD",e.MDL="MDL",e.GEL="GEL",e.BYN="BYN",e}({});var Za=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 Ja=function(e){return e.Following="following",e.Discover="discover",e}({});var ec=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var Q=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),ee=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 te=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}({}),ne=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),oc=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({}),rc=function(e){return e.Upcoming="upcoming",e.Ongoing="ongoing",e.Ended="ended",e}({});var dc=function(e){return e.InvitationLink="invitation_link",e}({});var lc=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Rc=function(e){return e.User="user",e.Organization="organization",e}({});var Sc=["\u{1F44D}","\u2764\uFE0F","\u{1F389}","\u{1F440}","\u{1F680}"],Ic=function(e){return e.ComingSoon="coming-soon",e.Shipped="shipped",e}({});var Ac=function(e){return e.FR="fr",e.EN="en",e}({});function gt(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(gt,"_ts_decorate");function yt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(yt,"_ts_metadata");var je=class{static{o(this,"CreateChannelDto");}type;participantUsernames;name};gt([IsEnum(ce),yt("design:type",typeof ce>"u"?Object:ce)],je.prototype,"type",void 0);gt([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===ce.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===ce.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(p.USERNAME,{each:true,message:"user.username.format"}),yt("design:type",Array)],je.prototype,"participantUsernames",void 0);gt([IsOptional(),ValidateIf(e=>e.type===ce.Group),IsString(),Length(1,100),yt("design:type",String)],je.prototype,"name",void 0);function mr(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(mr,"_ts_decorate");function ur(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ur,"_ts_metadata");var ht=class{static{o(this,"AddReactionDto");}emoji};mr([IsString(),Length(1,10),ur("design:type",String)],ht.prototype,"emoji",void 0);function Ke(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Ke,"_ts_decorate");function vt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(vt,"_ts_metadata");var we=class{static{o(this,"ContentOrAttachmentsConstraint");}validate(t,n){let s=n.object,i=!!(s.content&&s.content.trim().length>0),r=!!(s.attachments&&s.attachments.length>0);return i||r}defaultMessage(t){return "Either content or attachments must be provided"}};we=Ke([ValidatorConstraint({name:"contentOrAttachments",async:false})],we);var ze=class{static{o(this,"CreateChannelMessageDto");}content;attachments;replyToId};Ke([IsOptional(),IsString(),ValidateIf(e=>e.content!==void 0),Length(1,1024),vt("design:type",String)],ze.prototype,"content",void 0);Ke([IsOptional(),IsArray(),ArrayMaxSize(10),Matches(p.CHANNEL_MESSAGE_ATTACHMENT,{each:true}),Validate(we),vt("design:type",Array)],ze.prototype,"attachments",void 0);Ke([IsOptional(),IsMongoId(),vt("design:type",String)],ze.prototype,"replyToId",void 0);function rn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(rn,"_ts_decorate");function sn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(sn,"_ts_metadata");var Te=class{static{o(this,"ReportChannelMessageDto");}reason;description};rn([IsEnum(We),sn("design:type",typeof We>"u"?Object:We)],Te.prototype,"reason",void 0);rn([IsOptional(),IsString(),ValidateIf(e=>e.description&&e.description.trim().length>0),Length(1,500),sn("design:type",String)],Te.prototype,"description",void 0);function Nr(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Nr,"_ts_decorate");function Dr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Dr,"_ts_metadata");var Rt=class{static{o(this,"UpdateChannelMessageDto");}content};Nr([IsOptional(),IsString(),Length(1,1024),Dr("design:type",String)],Rt.prototype,"content",void 0);function Er(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Er,"_ts_decorate");function Br(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Br,"_ts_metadata");var xt=class{static{o(this,"UpdateChannelDto");}name};Er([IsOptional(),IsString(),Length(1,100),Br("design:type",String)],xt.prototype,"name",void 0);var $e=o((e,t)=>{if(!e)return e;let n=e.split(",").map(K=>K.trim()),s=t.zipCode?.toLowerCase(),i=t.city?.toLowerCase(),r=t.country?.toLowerCase(),a=[s,i,r].filter(K=>!!K),c=s&&i?`${s} ${i}`:void 0,E=o(K=>{let Zt=K.toLowerCase();return !!(a.includes(Zt)||c&&Zt===c)},"isNoise"),Se=[];for(let K of n)E(K)||Se.push(K);return Se.join(", ").trim()||e},"normalizeAddress");function B(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(B,"_ts_decorate");function oe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(oe,"_ts_metadata");var St=class{static{o(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[n,s]=t;return s>=-90&&s<=90&&n>=-180&&n<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};St=B([ValidatorConstraint({name:"coordinatesRange",async:false})],St);var z=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};B([IsString(),IsNotEmpty(),oe("design:type",String)],z.prototype,"type",void 0);B([IsArray(),IsNotEmpty(),Validate(St),oe("design:type",Array)],z.prototype,"coordinates",void 0);var x=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([IsOptional(),IsString(),Length(1,128),oe("design:type",String)],x.prototype,"name",void 0);B([Transform(({value:e,obj:t})=>$e(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),IsNotEmpty(),Length(1,256),oe("design:type",String)],x.prototype,"address",void 0);B([IsString(),IsNotEmpty(),Length(1,32),oe("design:type",String)],x.prototype,"zipCode",void 0);B([IsString(),IsNotEmpty(),Length(1,128),oe("design:type",String)],x.prototype,"city",void 0);B([IsString(),IsNotEmpty(),Length(1,128),oe("design:type",String)],x.prototype,"country",void 0);B([ValidateNested(),Type(()=>z),IsNotEmpty(),oe("design:type",typeof z>"u"?Object:z)],x.prototype,"geometry",void 0);function ge(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ge,"_ts_decorate");function ye(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ye,"_ts_metadata");var S=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"name",void 0);ge([IsOptional(),Transform(({value:e,obj:t})=>$e(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),Length(1,256),ye("design:type",String)],S.prototype,"address",void 0);ge([IsOptional(),IsString(),Length(1,32),ye("design:type",String)],S.prototype,"zipCode",void 0);ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"city",void 0);ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"country",void 0);ge([IsOptional(),ValidateNested(),Type(()=>z),ye("design:type",typeof z>"u"?Object:z)],S.prototype,"geometry",void 0);function V(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(V,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(C,"_ts_metadata");var ve=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};V([IsOptional(),IsString(),IsLowercase(),Length(1,48),C("design:type",String)],ve.prototype,"organizationSlug",void 0);V([IsObject(),C("design:type",typeof F>"u"?Object:F)],ve.prototype,"identity",void 0);V([IsArray(),C("design:type",Array)],ve.prototype,"members",void 0);V([IsOptional(),IsObject(),C("design:type",typeof Location>"u"?Object:Location)],ve.prototype,"location",void 0);var F=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};V([IsString(),IsNotEmpty(),Length(1,32),C("design:type",String)],F.prototype,"displayName",void 0);V([IsString(),Length(16,1024),IsOptional(),C("design:type",String)],F.prototype,"description",void 0);V([Matches(p.ORGANIZATION_AVATAR_URL,{message:"organization.avatar.url.invalid"}),C("design:type",String)],F.prototype,"avatarUrl",void 0);V([IsOptional(),Matches(p.ORGANIZATION_BANNER_URL,{message:"organization.banner.url.invalid"}),C("design:type",String)],F.prototype,"bannerUrl",void 0);V([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),C("design:type",Array)],F.prototype,"links",void 0);function P(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};P([IsString(),Length(1,128),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),N("design:type",Number)],l.prototype,"price",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),N("design:type",Number)],l.prototype,"quantity",void 0);P([IsEnum(Q),N("design:type",typeof Q>"u"?Object:Q)],l.prototype,"type",void 0);P([IsEnum(ee),N("design:type",typeof ee>"u"?Object:ee)],l.prototype,"category",void 0);P([IsEnum(J),N("design:type",typeof J>"u"?Object:J)],l.prototype,"currency",void 0);P([IsBoolean(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([IsBoolean(),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 D(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(D,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var m=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};D([IsString(),Length(1,128),IsOptional(),U("design:type",String)],m.prototype,"name",void 0);D([IsString(),Length(0,1024),IsOptional(),U("design:type",String)],m.prototype,"description",void 0);D([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),U("design:type",Number)],m.prototype,"price",void 0);D([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),U("design:type",Number)],m.prototype,"quantity",void 0);D([IsEnum(Q),IsOptional(),U("design:type",typeof Q>"u"?Object:Q)],m.prototype,"type",void 0);D([IsEnum(ee),IsOptional(),U("design:type",typeof ee>"u"?Object:ee)],m.prototype,"category",void 0);D([IsEnum(J),IsOptional(),U("design:type",typeof J>"u"?Object:J)],m.prototype,"currency",void 0);D([IsBoolean(),IsOptional(),U("design:type",Boolean)],m.prototype,"isVisible",void 0);D([IsBoolean(),IsOptional(),U("design:type",Boolean)],m.prototype,"isFeesIncluded",void 0);D([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),U("design:type",typeof Date>"u"?Object:Date)],m.prototype,"startAt",void 0);D([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),U("design:type",typeof Date>"u"?Object:Date)],m.prototype,"endAt",void 0);function b(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(b,"_ts_decorate");function I(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(I,"_ts_metadata");var Le=class{static{o(this,"AtLeastOneMediaConstraint");}validate(t,n){let s=n.object,i=s.flyers||[],r=s.trailers||[];return i.length>0||r.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};Le=b([ValidatorConstraint({name:"atLeastOneMedia",async:false})],Le);function as(e){return (t,n)=>{registerDecorator({target:t.constructor,propertyName:n,options:e,constraints:[],validator:Le});}}o(as,"AtLeastOneMedia");var h=class{static{o(this,"BaseOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;styles;startAt;endAt};b([IsString(),IsNotEmpty(),Length(1,64),I("design:type",String)],h.prototype,"title",void 0);b([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.SLUG,{message:"organization.event.slug.format"}),I("design:type",String)],h.prototype,"slug",void 0);b([IsString(),IsNotEmpty(),Length(16,2048),I("design:type",String)],h.prototype,"description",void 0);b([IsEnum(te),IsNotEmpty(),I("design:type",typeof te>"u"?Object:te)],h.prototype,"type",void 0);b([IsEnum(ne),IsNotEmpty(),I("design:type",typeof ne>"u"?Object:ne)],h.prototype,"visibility",void 0);b([IsArray(),ArrayMaxSize(25),Matches(p.EVENT_FLYER_URL,{each:true,message:"organization.event.flyers.url.invalid"}),as(),I("design:type",Array)],h.prototype,"flyers",void 0);b([IsArray(),ArrayMaxSize(25),Matches(p.EVENT_TRAILER_URL,{each:true,message:"organization.event.trailers.url.invalid"}),I("design:type",Array)],h.prototype,"trailers",void 0);b([IsObject(),ValidateNested(),Type(()=>x),IsNotEmpty(),I("design:type",typeof x>"u"?Object:x)],h.prototype,"location",void 0);b([IsArray(),IsString({each:true}),ArrayMinSize(1),I("design:type",Array)],h.prototype,"styles",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),I("design:type",typeof Date>"u"?Object:Date)],h.prototype,"startAt",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),I("design:type",typeof Date>"u"?Object:Date)],h.prototype,"endAt",void 0);var wt=class extends h{static{o(this,"CreateOrganizationEventDto");}tickets};b([IsArray(),ValidateNested({each:true}),Type(()=>l),IsNotEmpty(),I("design:type",Array)],wt.prototype,"tickets",void 0);function cs(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(cs,"_ts_decorate");function ps(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ps,"_ts_metadata");var Nt=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};cs([IsArray(),IsString({each:true}),ps("design:type",Array)],Nt.prototype,"cart",void 0);var Qe=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var zn=class extends Qe{static{o(this,"UpdateOrganizationEventStyleDto");}};function R(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(R,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var Me=class{static{o(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,n){let s=n.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"}};Me=R([ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],Me);function ys(e){return (t,n)=>{registerDecorator({target:t.constructor,propertyName:n,options:e,constraints:[],validator:Me});}}o(ys,"AtLeastOneMediaOnUpdate");var v=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};R([IsOptional(),IsString(),Length(1,64),_("design:type",String)],v.prototype,"title",void 0);R([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.SLUG,{message:"organization.event.slug.format"}),_("design:type",String)],v.prototype,"slug",void 0);R([IsOptional(),IsString(),Length(16,2048),_("design:type",String)],v.prototype,"description",void 0);R([IsOptional(),IsEnum(te),_("design:type",typeof te>"u"?Object:te)],v.prototype,"type",void 0);R([IsOptional(),IsEnum(ne),_("design:type",typeof ne>"u"?Object:ne)],v.prototype,"visibility",void 0);R([IsOptional(),IsArray(),Matches(p.EVENT_FLYER_URL_UPDATE,{each:true,message:"organization.event.flyers.url.invalid"}),ys(),_("design:type",Array)],v.prototype,"flyers",void 0);R([IsOptional(),IsArray(),Matches(p.EVENT_TRAILER_URL_UPDATE,{each:true,message:"organization.event.trailers.url.invalid"}),_("design:type",Array)],v.prototype,"trailers",void 0);R([IsOptional(),IsObject(),ValidateNested(),Type(()=>S),_("design:type",typeof S>"u"?Object:S)],v.prototype,"location",void 0);R([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>m),_("design:type",Array)],v.prototype,"tickets",void 0);R([IsOptional(),IsArray(),IsString({each:true}),_("design:type",Array)],v.prototype,"styles",void 0);R([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],v.prototype,"startAt",void 0);R([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],v.prototype,"endAt",void 0);function hs(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(hs,"_ts_decorate");function vs(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(vs,"_ts_metadata");var Lt=class{static{o(this,"AcceptOrganizationMemberInvitationDto");}token};hs([IsString(),IsNotEmpty(),vs("design:type",String)],Lt.prototype,"token",void 0);function En(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(En,"_ts_decorate");function Bn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Bn,"_ts_metadata");var nt=class{static{o(this,"CreateOrganizationMemberDto");}user;role};En([IsString(),IsNotEmpty(),Bn("design:type",String)],nt.prototype,"user",void 0);En([IsEnum(f),IsNotEmpty(),Bn("design:type",typeof f>"u"?Object:f)],nt.prototype,"role",void 0);function Is(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Is,"_ts_decorate");function _s(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_s,"_ts_metadata");var Mt=class{static{o(this,"CreateOrganizationMemberInvitationLinkDto");}role};Is([IsEnum(f),IsOptional(),_s("design:type",typeof f>"u"?Object:f)],Mt.prototype,"role",void 0);function js(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(js,"_ts_decorate");function ws(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ws,"_ts_metadata");var Et=class{static{o(this,"UpdateOrganizationMemberDto");}role};js([IsEnum(f),IsNotEmpty(),ws("design:type",typeof f>"u"?Object:f)],Et.prototype,"role",void 0);function k(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(k,"_ts_decorate");function H(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(H,"_ts_metadata");var be=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};k([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"organization.slug.format"}),H("design:type",String)],be.prototype,"slug",void 0);k([IsObject(),IsOptional(),H("design:type",typeof G>"u"?Object:G)],be.prototype,"identity",void 0);k([IsOptional(),IsArray(),H("design:type",Array)],be.prototype,"members",void 0);k([IsOptional(),IsObject(),H("design:type",typeof Location>"u"?Object:Location)],be.prototype,"location",void 0);var G=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};k([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),H("design:type",String)],G.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),H("design:type",String)],G.prototype,"description",void 0);k([IsOptional(),Matches(p.ORGANIZATION_AVATAR_URL),H("design:type",String)],G.prototype,"avatarUrl",void 0);k([IsOptional(),Matches(p.ORGANIZATION_BANNER_URL),H("design:type",String)],G.prototype,"bannerUrl",void 0);k([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),H("design:type",Array)],G.prototype,"links",void 0);function O(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(O,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(j,"_ts_metadata");var Ee=class{static{o(this,"CreateUserDto");}identifier;identity;password};O([ValidateNested(),Type(()=>Re),j("design:type",typeof Re>"u"?Object:Re)],Ee.prototype,"identifier",void 0);O([ValidateNested(),Type(()=>M),j("design:type",typeof M>"u"?Object:M)],Ee.prototype,"identity",void 0);O([IsString(),Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),j("design:type",String)],Ee.prototype,"password",void 0);var Re=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};O([IsOptional(),IsString(),IsEmail(),j("design:type",String)],Re.prototype,"email",void 0);O([IsOptional(),IsString(),IsPhoneNumber(),j("design:type",String)],Re.prototype,"phoneNumber",void 0);O([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"user.username.format"}),j("design:type",String)],Re.prototype,"username",void 0);var M=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate;links};O([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"First name must be composed of letters only"}),j("design:type",String)],M.prototype,"firstName",void 0);O([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"Last name must be composed of letters only"}),j("design:type",String)],M.prototype,"lastName",void 0);O([IsEnum($),j("design:type",typeof $>"u"?Object:$)],M.prototype,"gender",void 0);O([IsOptional(),Matches(p.USER_AVATAR_URL_CREATE,{message:"user.avatar.url.invalid"}),j("design:type",String)],M.prototype,"avatarUrl",void 0);O([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)],M.prototype,"birthDate",void 0);O([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),j("design:type",Array)],M.prototype,"links",void 0);function qs(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(qs,"_ts_decorate");function Ws(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ws,"_ts_metadata");var Gt=class{static{o(this,"GoogleOneTapDto");}credential};qs([IsNotEmpty(),IsString(),Ws("design:type",String)],Gt.prototype,"credential",void 0);function Hn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Hn,"_ts_decorate");function qn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(qn,"_ts_metadata");var ot=class{static{o(this,"CreateUserPostCommentDto");}content;replyToId};Hn([IsString(),Length(1,280),qn("design:type",String)],ot.prototype,"content",void 0);Hn([IsOptional(),IsString(),qn("design:type",String)],ot.prototype,"replyToId",void 0);function Zs(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Zs,"_ts_decorate");function Ys(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ys,"_ts_metadata");var kt=class{static{o(this,"UpdateUserPostCommentDto");}content};Zs([IsString(),Length(1,280),Ys("design:type",String)],kt.prototype,"content",void 0);function Ht(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Ht,"_ts_decorate");function qt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(qt,"_ts_metadata");var Be=class{static{o(this,"CreateUserPostDto");}content;mediaUrls;visibility};Ht([IsOptional(),IsString(),Length(1,512),qt("design:type",String)],Be.prototype,"content",void 0);Ht([IsArray(),ArrayMinSize(1),ArrayMaxSize(10),Matches(p.USER_POST_MEDIA_URL,{each:true}),qt("design:type",Array)],Be.prototype,"mediaUrls",void 0);Ht([IsOptional(),IsEnum(T),qt("design:type",typeof T>"u"?Object:T)],Be.prototype,"visibility",void 0);function ai(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ai,"_ts_decorate");function ci(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ci,"_ts_metadata");var Wt=class{static{o(this,"CreateUserPostRepostDto");}comment};ai([IsOptional(),IsString(),Length(1,280),ci("design:type",String)],Wt.prototype,"comment",void 0);function Tn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Tn,"_ts_decorate");function $n(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($n,"_ts_metadata");var rt=class{static{o(this,"UpdateUserPostDto");}content;visibility};Tn([IsOptional(),IsString(),Length(1,512),$n("design:type",String)],rt.prototype,"content",void 0);Tn([IsOptional(),IsEnum(T),$n("design:type",typeof T>"u"?Object:T)],rt.prototype,"visibility",void 0);function gi(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(gi,"_ts_decorate");function yi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(yi,"_ts_metadata");var Kt=class{static{o(this,"RecoveryDto");}identifier};gi([IsNotEmpty(),IsString(),yi("design:type",String)],Kt.prototype,"identifier",void 0);function Tt(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Tt,"_ts_decorate");function $t(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($t,"_ts_metadata");var Fe=class{static{o(this,"RecoveryResetDto");}tokenId;tokenValue;password};Tt([IsString(),IsNotEmpty(),$t("design:type",String)],Fe.prototype,"tokenId",void 0);Tt([IsString(),IsNotEmpty(),$t("design:type",String)],Fe.prototype,"tokenValue",void 0);Tt([Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),IsNotEmpty({message:"Password is required"}),$t("design:type",String)],Fe.prototype,"password",void 0);function Yn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Yn,"_ts_decorate");function Jn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Jn,"_ts_metadata");var it=class{static{o(this,"SignInUserDto");}identifier;password};Yn([IsNotEmpty(),IsString(),Jn("design:type",String)],it.prototype,"identifier",void 0);Yn([IsNotEmpty(),IsString(),Jn("design:type",String)],it.prototype,"password",void 0);function u(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var Ve=class{static{o(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>xe),g("design:type",typeof xe>"u"?Object:xe)],Ve.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>w),g("design:type",typeof w>"u"?Object:w)],Ve.prototype,"identity",void 0);u([IsOptional(),IsString(),Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),g("design:type",String)],Ve.prototype,"password",void 0);var xe=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),g("design:type",String)],xe.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],xe.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"user.username.format"}),g("design:type",String)],xe.prototype,"username",void 0);var w=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate;links};u([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],w.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],w.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),g("design:type",String)],w.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),g("design:type",String)],w.prototype,"description",void 0);u([IsOptional(),Matches(p.USER_AVATAR_URL),g("design:type",Object)],w.prototype,"avatarUrl",void 0);u([IsOptional(),Matches(p.USER_BANNER_URL),g("design:type",Object)],w.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum($),g("design:type",typeof $>"u"?Object:$)],w.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)],w.prototype,"birthDate",void 0);u([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),g("design:type",Array)],w.prototype,"links",void 0);function ro(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ro,"_ts_decorate");function so(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(so,"_ts_metadata");var at=class{static{o(this,"VerifyEmailConfirmDto");}tokenId;tokenValue};ro([IsString(),IsNotEmpty(),so("design:type",String)],at.prototype,"tokenId",void 0);ro([IsString(),IsNotEmpty(),so("design:type",String)],at.prototype,"tokenValue",void 0);function d(e){return e}o(d,"sdk");var co=e=>({getAll:o(async()=>e.get("/api-keys"),"getAll"),get:o(async t=>e.get("/api-keys/:apiKeyId",{apiKeyId:t}),"get"),create:o(async t=>e.post("/api-keys",t),"create"),update:o(async(t,n)=>e.put("/api-keys/:apiKeyId",n,{apiKeyId:t}),"update"),delete:o(async t=>e.delete("/api-keys/:apiKeyId",void 0,{apiKeyId:t}),"delete")});var po=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",void 0),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",void 0),"refreshToken"),recovery:o(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:o(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),verifyEmail:{send:o(async()=>e.post("/auth/verify/email/send",void 0),"send"),confirm:o(async t=>e.post("/auth/verify/email/confirm",t),"confirm")},oauth2:{connect:o((t,n)=>e.url("/oauth2/:provider",{provider:t,...n}),"connect"),disconnect:o(async t=>e.delete("/oauth2/:provider",void 0,{provider:t}),"disconnect"),googleOneTap:o(async t=>e.post("/oauth2/google/one-tap",t),"googleOneTap")}});var fo=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var lo=e=>({getAll:o(async(t,n)=>e.get("/channels/~me/:channelId/messages",{channelId:t,...n}),"getAll"),getAllByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:n,...s}),"getAllByOrganization"),get:o(async(t,n)=>e.get("/channels/~me/:channelId/messages/:messageId",{channelId:t,messageId:n}),"get"),getByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:n,messageId:s}),"getByOrganization"),create:o(async(t,n)=>e.post("/channels/~me/:channelId/messages",n,{channelId:t}),"create"),createByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/messages",s,{organizationSlug:t,channelId:n}),"createByOrganization"),update:o(async(t,n,s)=>e.put("/channels/~me/:channelId/messages/:messageId",s,{channelId:t,messageId:n}),"update"),updateByOrganization:o(async(t,n,s,i)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",i,{organizationSlug:t,channelId:n,messageId:s}),"updateByOrganization"),delete:o(async(t,n)=>e.delete("/channels/~me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:n}),"delete"),deleteByOrganization:o(async(t,n,s)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:n,messageId:s}),"deleteByOrganization"),addReaction:o(async(t,n,s)=>e.post("/channels/~me/:channelId/messages/:messageId/reactions",s,{channelId:t,messageId:n}),"addReaction"),addReactionByOrganization:o(async(t,n,s,i)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",i,{organizationSlug:t,channelId:n,messageId:s}),"addReactionByOrganization"),removeReaction:o(async(t,n,s)=>e.delete("/channels/~me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:n,emoji:s}),"removeReaction"),removeReactionByOrganization:o(async(t,n,s,i)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:n,messageId:s,emoji:i}),"removeReactionByOrganization"),markAsRead:o(async(t,n)=>e.post("/channels/~me/:channelId/messages/:messageId/read",void 0,{channelId:t,messageId:n}),"markAsRead"),markAsReadByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",void 0,{organizationSlug:t,channelId:n,messageId:s}),"markAsReadByOrganization"),uploadFile:o(async(t,n)=>e.post("/channels/~me/:channelId/files",n,{channelId:t}),"uploadFile"),uploadFileByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/files",s,{organizationSlug:t,channelId:n}),"uploadFileByOrganization"),report:o(async(t,n,s)=>e.post("/channels/~me/:channelId/messages/:messageId/report",s,{channelId:t,messageId:n}),"report"),reportByOrganization:o(async(t,n,s,i)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/report",i,{organizationSlug:t,channelId:n,messageId:s}),"reportByOrganization")});var mo=e=>({me:o(async t=>e.get("/channels/~me",t),"me"),getByOrganization:o(async(t,n)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...n}),"getByOrganization"),countMe:o(async t=>e.get("/users/~me/channels/count",t),"countMe"),countByOrganization:o(async(t,n)=>e.get("/users/@:organizationSlug/channels/count",{organizationSlug:t,...n}),"countByOrganization"),get:o(async t=>e.get("/channels/~me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:o(async(t,n)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:n}),"getByOrganizationChannel"),create:o(async t=>e.post("/channels/~me",t),"create"),createByOrganization:o(async(t,n)=>e.post("/channels/:organizationSlug",n,{organizationSlug:t}),"createByOrganization"),update:o(async(t,n)=>e.put("/channels/~me/:channelId",n,{channelId:t}),"update"),updateByOrganization:o(async(t,n,s)=>e.put("/channels/:organizationSlug/:channelId",s,{organizationSlug:t,channelId:n}),"updateByOrganization"),delete:o(async t=>e.delete("/channels/~me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:o(async(t,n)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:n}),"deleteByOrganization"),addParticipant:o(async(t,n)=>e.post("/channels/~me/:channelId/participants",n,{channelId:t}),"addParticipant"),addParticipantByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/participants",s,{organizationSlug:t,channelId:n}),"addParticipantByOrganization"),removeParticipant:o(async(t,n)=>e.delete("/channels/~me/:channelId/participants/:username",void 0,{channelId:t,username:n}),"removeParticipant"),removeParticipantByOrganization:o(async(t,n,s)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:n,username:s}),"removeParticipantByOrganization"),getMembers:o(async(t,n)=>e.get("/channels/~me/:channelId/members",{channelId:t,...n}),"getMembers"),getMembersByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:n,...s}),"getMembersByOrganization"),messages:lo(e)});var uo=e=>({getRates:o(()=>e.get("/currencies/rates"),"getRates"),convert:o(t=>e.post("/currencies/convert",t),"convert"),convertAmount:o((t,n,s)=>e.post("/currencies/convert",{from:t,to:n,amount:s}),"convertAmount")});var go=e=>({getFollowing:o(async t=>e.get("/feed/following",t),"getFollowing"),getDiscover:o(async t=>e.get("/feed/discover",t),"getDiscover")});var yo=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app"),memory:o(async()=>e.get("/health/memory"),"memory")});var ho=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var vo=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var bo=o(e=>({account:o(async t=>e.get("/organizations/@:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(le)window.location.href=e.url("/organizations/@:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(le)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 Ro=e=>({getAll:o(async t=>e.get("/organizations/@:organizationSlug/customers",{organizationSlug:t}),"getAll"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/customers/:username",{organizationSlug:t,username:n}),"get")});var xo=o(e=>({create:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var So=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",void 0,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Io=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:s}),"get"),create:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,s,i)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:n,ticketId:s}),"update"),delete:o(async(t,n,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:s}),"delete")}),"organizationsEventsTickets");var _o=o(e=>({record:o(async(t,n)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record"),getStreamUrl:o(t=>e.url("/organizations/events/views/stream",t),"getStreamUrl")}),"organizationsEventsViews");var Ao=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,...n}),"search"),getCalendar:o(async(t,n)=>e.get("/organizations/events/calendar/:year/:month",{year:t.toString(),month:n.toString()}),"getCalendar"),getAll:o(async(t,n)=>t?e.get("/organizations/@:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/@:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,s)=>e.put("/organizations/@:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug",void 0,{organizationSlug:t,eventSlug:n}),"delete"),uploadFile:o(async(t,n)=>e.post("/events/files/:eventFileType",X("file",n),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:o(async(t,n,s,i)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType",X("file",i),{organizationSlug:t,eventSlug:n,eventFileType:s}),"uploadOrganizationFile"),orders:xo(e),styles:So(e),tickets:Io(e),views:_o(e)}),"organizationsEvents");var Oo=o(e=>({getLinks:o(async t=>e.get("/organizations/@:organizationSlug/members/invitations/links",{organizationSlug:t}),"getLinks"),createLink:o(async(t,n={})=>e.post("/organizations/@:organizationSlug/members/invitations/links",n,{organizationSlug:t}),"createLink"),accept:o(async(t,n)=>e.post("/organizations/@:organizationSlug/members/invitations/accept",n,{organizationSlug:t}),"accept")}),"invitations");var jo=o(e=>({me:o(async()=>e.get("/organizations/members/~me"),"me"),get:o(async t=>e.get("/organizations/@:organizationSlug/members",{organizationSlug:t}),"get"),create:o(async(t,n)=>e.post("/organizations/@:organizationSlug/members",n,{organizationSlug:t}),"create"),update:o(async(t,n,s)=>e.put("/organizations/@:organizationSlug/members/:username",s,{organizationSlug:t,username:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/@:organizationSlug/members/:username",void 0,{organizationSlug:t,username:n}),"delete"),invitations:Oo(e),accept:o(async t=>e.put("/organizations/@:organizationSlug/members/~me/accept",void 0,{organizationSlug:t}),"accept"),reject:o(async t=>e.delete("/organizations/@:organizationSlug/members/~me/reject",void 0,{organizationSlug:t}),"reject"),leave:o(async t=>e.delete("/organizations/@:organizationSlug/members/~me",void 0,{organizationSlug:t}),"leave")}),"organizationsMembers");var wo=e=>({getAll:o(async t=>e.get("/organizations/@:organizationSlug/orders",{organizationSlug:t}),"getAll"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/orders/:orderId",{organizationSlug:t,orderId:n}),"get"),getAllByEvent:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/orders",{organizationSlug:t,eventSlug:n}),"getAllByEvent")});var zo=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/@:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/@:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/@:organizationSlug",void 0,{organizationSlug:t}),"delete"),uploadFile:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/files/:organizationFileType",X("file",s),{organizationSlug:t,organizationFileType:n}),"uploadFile"),billing:bo(e),events:Ao(e),members:jo(e),customers:Ro(e),orders:wo(e)});var Po=e=>({countries:{getAll:o(async t=>e.get("/places/countries",t),"getAll"),get:o(async t=>e.get("/places/countries/:countrySlug",{countrySlug:t}),"get"),cities:{getAll:o(async(t,n)=>e.get("/places/countries/:countrySlug/cities",{countrySlug:t,...n}),"getAll"),get:o(async(t,n)=>e.get("/places/countries/:countrySlug/cities/:citySlug",{countrySlug:t,citySlug:n}),"get"),nearby:o(async(t,n,s)=>e.get("/places/countries/:countrySlug/cities/:citySlug/nearby",{countrySlug:t,citySlug:n,...s}),"nearby")}},cities:{getAll:o(async t=>e.get("/places/cities",t),"getAll"),search:o(async(t,n)=>e.get("/places/cities/search",{q:t,...n}),"search")}});var No=e=>({follow:o(async t=>e.post("/profiles/@:username/relationships/follow",void 0,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/@:username/relationships/unfollow",void 0,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/~me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/@:username/relationships/followers",{username:t,...n}),"getFollowers")});var Do=e=>({getAll:o(async t=>e.get("/profiles",t),"getAll"),search:o(async(t,n)=>e.get("/profiles/search",{q:t,...n}),"search"),get:o(async t=>e.get("/profiles/@:username",{username:t}),"get"),relationships:No(e)});var Uo=e=>({reactions:{get:o(async t=>e.get("/roadmap/reactions/:featureId",{featureId:t}),"get"),add:o(async(t,n)=>e.post("/roadmap/reactions/:featureId",{featureId:t,reaction:n}),"add")}});var Lo=e=>({get:o(async t=>e.get("/users/bookings/tickets/:ticketId",{ticketId:t}),"get"),use:o(async(t,n,s)=>e.put("/users/bookings/tickets/:ticketId/use",{tokenId:n,tokenValue:s},{ticketId:t}),"use")});var Mo=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/~me/bookings"),"me"),tickets:Lo(e)});var Eo=e=>({me:o(async()=>e.get("/users/~me/notifications"),"me"),count:o(async t=>e.get("/users/~me/notifications/count",t),"count"),read:o(async()=>e.put("/users/~me/notifications/read",void 0),"read")});var Bo=o(e=>({record:o(async(t,n)=>e.post("/users/@:username/posts/:postId/views",void 0,{username:t,postId:n}),"record")}),"usersPostsViews");var Fo=e=>({getByUsername:o(async(t,n)=>e.get("/users/@:username/posts",{username:t,...n}),"getByUsername"),getByUsernameAndId:o(async(t,n)=>e.get("/users/@:username/posts/:postId",{username:t,postId:n}),"getByUsernameAndId"),create:o(async t=>e.post("/users/~me/posts",t),"create"),update:o(async(t,n)=>e.put("/users/~me/posts/:postId",n,{postId:t}),"update"),delete:o(async t=>e.delete("/users/~me/posts/:postId",void 0,{postId:t}),"delete"),uploadMedia:o(async t=>e.post("/users/~me/posts/media",t),"uploadMedia"),views:Bo(e)});var Vo=e=>({getByPost:o(async(t,n,s)=>e.get("/users/@:username/posts/:postId/comments",{username:t,postId:n,...s}),"getByPost"),create:o(async(t,n)=>e.post("/users/~me/posts/:postId/comments",n,{postId:t}),"create"),update:o(async(t,n,s)=>e.put("/users/~me/posts/:postId/comments/:commentId",s,{postId:t,commentId:n}),"update"),delete:o(async(t,n)=>e.delete("/users/~me/posts/:postId/comments/:commentId",void 0,{postId:t,commentId:n}),"delete")});var Co=e=>({getByUsername:o(async(t,n)=>e.get("/users/@:username/reposts",{username:t,...n}),"getByUsername"),getByPost:o(async(t,n,s)=>e.get("/users/@:username/posts/:postId/reposts",{username:t,postId:n,...s}),"getByPost"),create:o(async(t,n)=>e.post("/users/~me/posts/:postId/reposts",n||{},{postId:t}),"create"),delete:o(async t=>e.delete("/users/~me/posts/:postId/reposts",void 0,{postId:t}),"delete")});var Go=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/@:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/~me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/@:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,s)=>e.post("/users/@:userId/files/:userFileType",X("file",s),{userId:t,userFileType:n}),"uploadFile"),uploadTempFile:o(async(t,n)=>e.post("/users/files/:userFileType",X("file",n),{userFileType:t}),"uploadTempFile"),bookings:Mo(e),notifications:Eo(e),posts:Fo(e),postsComments:Vo(e),postsReposts:Co(e)});var ko=class{static{o(this,"TonightPass");}client;apiKeys;auth;careers;channels;currencies;feed;health;orders;organizations;places;profiles;roadmap;users;notifications;constructor(t){this.client=new ke(t),this.apiKeys=co(this.client),this.auth=po(this.client),this.careers=fo(this.client),this.channels=mo(this.client),this.currencies=uo(this.client),this.feed=go(this.client),this.health=yo(this.client),this.orders=vo(this.client),this.organizations=zo(this.client),this.places=Po(this.client),this.profiles=Do(this.client),this.roadmap=Uo(this.client),this.users=Go(this.client),this.notifications=ho(this.client);}};var ct=class{static{o(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,...n){this.options.debug&&console.log(`[WebSocketClient] ${t}`,...n);}getWebSocketURL(t,n){let s={};Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&r!=="token"&&(s[r]=a);});let i=pathcat(t,s);return `${this.options.baseURL}${i}`}async connect(t,n){return new Promise((s,i)=>{try{let r=this.getWebSocketURL(t,n);this.log("Connecting to",r);let a=[];"token"in n&&typeof n.token=="string"&&a.push(`access_token.${n.token}`),this.ws=a.length>0?new WebSocket(r,a):new WebSocket(r),this.ws.onopen=()=>{this.log("Connected successfully"),this.isConnected=!0,this.isReconnecting=!1,this.reconnectAttempts=0,s();},this.ws.onmessage=c=>{try{let E=JSON.parse(c.data);this.handleEvent(E);}catch(E){this.log("Error parsing message:",E);}},this.ws.onclose=c=>{this.log("Connection closed",c.code),this.isConnected=!1,this.options.maxReconnectAttempts&&!this.isReconnecting&&this.handleReconnect(t,n);},this.ws.onerror=c=>{this.log("WebSocket error:",c),this.isConnected=!1,i(c);};}catch(r){i(r);}})}handleReconnect(t,n){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,n).catch(s=>{this.log("Reconnection failed:",s);});},this.options.reconnectInterval);}handleEvent(t){this.log("Received event:",t.type);let n=this.eventHandlers.get(t.type);n&&n.forEach(i=>i(t));let s=this.eventHandlers.get("*");s&&s.forEach(i=>i(t));}on(t,n){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set);let s=o(i=>{n(i);},"wrappedHandler");return this.eventHandlers.get(t)?.add(s),()=>{let i=this.eventHandlers.get(t);i&&(i.delete(s),i.size===0&&this.eventHandlers.delete(t));}}off(t,n){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 pt=class extends ct{static{o(this,"ChannelWebSocketClient");}async connectToChannel(t,n={}){return this.connect("/channels/~me/:channelId/ws",{...n,channelId:t})}async connectToOrganizationChannel(t,n,s={}){return this.connect("/channels/:organizationSlug/:channelId/ws",{...s,organizationSlug:t,channelId:n})}async connectToUserChannels(t={}){return this.connect("/channels/~me/ws",t)}async connectToOrganizationChannels(t,n={}){return this.connect("/channels/:organizationSlug/ws",{...n,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 Sg(e){let t=new pt(e);return {connect:o((n,s)=>t.connectToChannel(n,{token:s}),"connect"),connectToOrganization:o((n,s,i)=>t.connectToOrganizationChannel(n,s,{token:i}),"connectToOrganization"),connectToUserChannels:o(n=>t.connectToUserChannels({token:n}),"connectToUserChannels"),connectToOrganizationChannels:o((n,s)=>t.connectToOrganizationChannels(n,{token:s}),"connectToOrganizationChannels"),onMessageCreate:o(n=>t.onMessageCreate(n),"onMessageCreate"),onMessageUpdate:o(n=>t.onMessageUpdate(n),"onMessageUpdate"),onMessageDelete:o(n=>t.onMessageDelete(n),"onMessageDelete"),onChannelUpdate:o(n=>t.onChannelUpdate(n),"onChannelUpdate"),onChannelDelete:o(n=>t.onChannelDelete(n),"onChannelDelete"),onMemberJoin:o(n=>t.onMemberJoin(n),"onMemberJoin"),onMemberLeave:o(n=>t.onMemberLeave(n),"onMemberLeave"),onTypingStart:o(n=>t.onTypingStart(n),"onTypingStart"),onTypingStop:o(n=>t.onTypingStop(n),"onTypingStop"),onAny:o(n=>t.on("*",n),"onAny"),startTyping:o(n=>t.startTyping(n),"startTyping"),stopTyping:o(n=>t.stopTyping(n),"stopTyping"),subscribeToChannel:o(n=>t.subscribeToChannel(n),"subscribeToChannel"),unsubscribeFromChannel:o(n=>t.unsubscribeFromChannel(n),"unsubscribeFromChannel"),disconnect:o(()=>t.disconnect(),"disconnect"),get connected(){return t.connected},get reconnecting(){return t.reconnecting},client:t}}o(Sg,"channelsWS");
|
|
2
|
-
export{
|
|
1
|
+
import {pathcat}from'pathcat';import Wo 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,IsEmail,IsPhoneNumber,registerDecorator}from'class-validator';import {Transform,Type}from'class-transformer';var qo=Object.defineProperty;var o=(e,t)=>qo(e,"name",{value:t,configurable:true});var Jt="https://api.tonightpass.com";var p={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 Ui=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 Ei=function(e){return e.Follow="follow",e}({});var Fi=function(e){return e.Image="image",e.Video="video",e}({});var T=function(e){return e.Public="public",e.Followers="followers",e.Private="private",e}({});var Wi=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 Ge=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),$=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Ti=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var ft={[f.Owner]:3,[f.Admin]:2,[f.Manager]:1,[f.Member]:0},na={[Ge.Admin]:2,[Ge.Developer]:1,[Ge.User]:0};var ke=class{static{o(this,"MemoryCacheStore");}cache=new Map;maxSize;constructor(t=1e3){this.maxSize=t;}async get(t){return this.cache.get(t)??null}async set(t,n){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,n);}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 Ie=class{static{o(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 ke(this.options.maxSize);}generateKey(t,n){return `${t}:${n}`}shouldCache(t){return this.options.enabled&&this.options.methods.includes(t)}isValid(t){return Date.now()-t.timestamp<this.options.ttl}async get(t,n){if(!this.shouldCache(t))return null;let s=this.generateKey(t,n),i=await this.store.get(s);return i?this.isValid(i)?i.data:(await this.store.delete(s),null):null}async set(t,n,s){if(!this.shouldCache(t))return;let i=this.generateKey(t,n);await this.store.set(i,{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 le=typeof window<"u";function X(e,t){let n=new FormData,s=o(i=>i!==null&&typeof i=="object"&&"uri"in i&&"name"in i&&"type"in i,"isFileObject");return typeof File<"u"&&t instanceof File?n.append(e,t):typeof FileList<"u"&&t instanceof FileList?Array.from(t).forEach(i=>n.append(e,i)):s(t)?n.append(e,t):Array.isArray(t)&&t.forEach(i=>n.append(e,i)),n}o(X,"buildFileFormData");function ba(e,t){return ft[e]>=ft[t]}o(ba,"isMemberRoleAtLeast");var Ko=Wo.create({headers:{Accept:"application/json",...!le&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[(e,t)=>{if(e instanceof FormData){if(t&&typeof t=="object"){let n={};for(let[s,i]of Object.entries(t)){let r=s.toLowerCase();r!=="content-type"&&(n[r]=i);}Object.keys(t).forEach(s=>delete t[s]),Object.assign(t,n);}return e}if(e!=null)return t&&(t["Content-Type"]="application/json"),JSON.stringify(e)}],withCredentials:le}),Qt=o(async(e,t)=>{let{apiKey:n,accessToken:s,...i}=t||{},r={...i.headers,...n&&{"X-API-Key":n},...s&&{Authorization:`Bearer ${s}`}};return Ko(e,{...i,headers:r}).then(c=>c).catch(c=>{throw c.data||console.error(c),c.data})},"request");var lt=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},He=class{static{o(this,"Client");}options;apiKey;accessToken;cacheManager;url;constructor(t){this.options=t,this.apiKey=t.apiKey,this.accessToken=t.accessToken,this.url=(n,s)=>{let i=this.options.baseURL||Jt;return pathcat(i,n,s)},t.cache?.enabled&&(this.cacheManager=new Ie(t.cache));}setOptions(t){this.options=t,this.apiKey=t.apiKey,this.accessToken=t.accessToken,t.cache?.enabled?this.cacheManager=new Ie(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,n,s){return this.requester("GET",t,void 0,n,s)}async post(t,n,s,i){return this.requester("POST",t,n,s,i)}async put(t,n,s,i){return this.requester("PUT",t,n,s,i)}async patch(t,n,s,i){return this.requester("PATCH",t,n,s,i)}async delete(t,n,s,i){return this.requester("DELETE",t,n,s,i)}async requester(t,n,s,i={},r={}){let a=this.url(n,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");if(this.cacheManager){let Se=await this.cacheManager.get(t,a);if(Se!==null)return Se}let c=await Qt(a,{method:t,data:s,apiKey:this.apiKey,accessToken:this.accessToken,...r}),E=c.data;if(!E.success)throw new lt(c,E);return this.cacheManager&&await this.cacheManager.set(t,a,E.data),E.data}};var Z=function(e){return e.PUBLIC="public",e.INTERNAL="internal",e}({}),Y=function(e){return e.User="user",e.App="app",e}({});function qe(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(qe,"_ts_decorate");function We(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(We,"_ts_metadata");var me=class{static{o(this,"CreateApiKeyDto");}name;type;tier;allowedOrigins};qe([IsString(),Length(1,100),We("design:type",String)],me.prototype,"name",void 0);qe([IsEnum(Y),IsOptional(),We("design:type",typeof Y>"u"?Object:Y)],me.prototype,"type",void 0);qe([IsEnum(Z),IsOptional(),We("design:type",typeof Z>"u"?Object:Z)],me.prototype,"tier",void 0);qe([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),We("design:type",Array)],me.prototype,"allowedOrigins",void 0);function _e(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(_e,"_ts_decorate");function Ae(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ae,"_ts_metadata");var ae=class{static{o(this,"UpdateApiKeyDto");}name;isActive;type;tier;allowedOrigins};_e([IsString(),IsOptional(),Length(1,100),Ae("design:type",String)],ae.prototype,"name",void 0);_e([IsBoolean(),IsOptional(),Ae("design:type",Boolean)],ae.prototype,"isActive",void 0);_e([IsEnum(Y),IsOptional(),Ae("design:type",typeof Y>"u"?Object:Y)],ae.prototype,"type",void 0);_e([IsEnum(Z),IsOptional(),Ae("design:type",typeof Z>"u"?Object:Z)],ae.prototype,"tier",void 0);_e([IsArray(),IsUrl({require_protocol:true,require_tld:false},{each:true,message:"Each allowed origin must be a valid URL"}),ArrayMaxSize(20),IsOptional(),Ae("design:type",Array)],ae.prototype,"allowedOrigins",void 0);function sr(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(sr,"_ts_decorate");function ir(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ir,"_ts_metadata");var ut=class{static{o(this,"AddParticipantDto");}username};sr([IsString(),Matches(p.USERNAME,{message:"user.username.format"}),ir("design:type",String)],ut.prototype,"username",void 0);var Za=function(e){return e.Google="google",e.Facebook="facebook",e.Twitter="twitter",e}({}),Ya=function(e){return e.SignUp="signup",e.SignIn="signin",e}({});var Ke=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 ce=function(e){return e.Private="private",e.Group="group",e}({}),ec=function(e){return e.Member="member",e.Admin="admin",e}({}),tc=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var J=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.BGN="BGN",e.CZK="CZK",e.DKK="DKK",e.HUF="HUF",e.PLN="PLN",e.RON="RON",e.SEK="SEK",e.CHF="CHF",e.NOK="NOK",e.ISK="ISK",e.TRY="TRY",e.RUB="RUB",e.UAH="UAH",e.BAM="BAM",e.MKD="MKD",e.ALL="ALL",e.RSD="RSD",e.MDL="MDL",e.GEL="GEL",e.BYN="BYN",e}({});var sc=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 ac=function(e){return e.Following="following",e.Discover="discover",e}({});var pc=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var Q=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),ee=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 te=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}({}),ne=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),lc=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({}),mc=function(e){return e.Upcoming="upcoming",e.Ongoing="ongoing",e.Ended="ended",e}({});var bc=function(e){return e.InvitationLink="invitation_link",e}({});var xc=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var zc=function(e){return e.User="user",e.Organization="organization",e}({});var Nc=["\u{1F44D}","\u2764\uFE0F","\u{1F389}","\u{1F440}","\u{1F680}"],Dc=function(e){return e.ComingSoon="coming-soon",e.Shipped="shipped",e}({});var Lc=function(e){return e.FR="fr",e.EN="en",e}({});function yt(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(yt,"_ts_decorate");function ht(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ht,"_ts_metadata");var we=class{static{o(this,"CreateChannelDto");}type;participantUsernames;name};yt([IsEnum(ce),ht("design:type",typeof ce>"u"?Object:ce)],we.prototype,"type",void 0);yt([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===ce.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===ce.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(p.USERNAME,{each:true,message:"user.username.format"}),ht("design:type",Array)],we.prototype,"participantUsernames",void 0);yt([IsOptional(),ValidateIf(e=>e.type===ce.Group),IsString(),Length(1,100),ht("design:type",String)],we.prototype,"name",void 0);function ur(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ur,"_ts_decorate");function gr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(gr,"_ts_metadata");var vt=class{static{o(this,"AddReactionDto");}emoji};ur([IsString(),Length(1,10),gr("design:type",String)],vt.prototype,"emoji",void 0);function Te(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Te,"_ts_decorate");function bt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(bt,"_ts_metadata");var je=class{static{o(this,"ContentOrAttachmentsConstraint");}validate(t,n){let s=n.object,i=!!(s.content&&s.content.trim().length>0),r=!!(s.attachments&&s.attachments.length>0);return i||r}defaultMessage(t){return "Either content or attachments must be provided"}};je=Te([ValidatorConstraint({name:"contentOrAttachments",async:false})],je);var ze=class{static{o(this,"CreateChannelMessageDto");}content;attachments;replyToId};Te([IsOptional(),IsString(),ValidateIf(e=>e.content!==void 0),Length(1,1024),bt("design:type",String)],ze.prototype,"content",void 0);Te([IsOptional(),IsArray(),ArrayMaxSize(10),Matches(p.CHANNEL_MESSAGE_ATTACHMENT,{each:true}),Validate(je),bt("design:type",Array)],ze.prototype,"attachments",void 0);Te([IsOptional(),IsMongoId(),bt("design:type",String)],ze.prototype,"replyToId",void 0);function sn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(sn,"_ts_decorate");function an(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(an,"_ts_metadata");var $e=class{static{o(this,"ReportChannelMessageDto");}reason;description};sn([IsEnum(Ke),an("design:type",typeof Ke>"u"?Object:Ke)],$e.prototype,"reason",void 0);sn([IsOptional(),IsString(),ValidateIf(e=>e.description&&e.description.trim().length>0),Length(1,500),an("design:type",String)],$e.prototype,"description",void 0);function Dr(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Dr,"_ts_decorate");function Ur(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ur,"_ts_metadata");var xt=class{static{o(this,"UpdateChannelMessageDto");}content};Dr([IsOptional(),IsString(),Length(1,1024),Ur("design:type",String)],xt.prototype,"content",void 0);function Br(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Br,"_ts_decorate");function Fr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Fr,"_ts_metadata");var St=class{static{o(this,"UpdateChannelDto");}name};Br([IsOptional(),IsString(),Length(1,100),Fr("design:type",String)],St.prototype,"name",void 0);var Xe=o((e,t)=>{if(!e)return e;let n=e.split(",").map(K=>K.trim()),s=t.zipCode?.toLowerCase(),i=t.city?.toLowerCase(),r=t.country?.toLowerCase(),a=[s,i,r].filter(K=>!!K),c=s&&i?`${s} ${i}`:void 0,E=o(K=>{let Yt=K.toLowerCase();return !!(a.includes(Yt)||c&&Yt===c)},"isNoise"),Se=[];for(let K of n)E(K)||Se.push(K);return Se.join(", ").trim()||e},"normalizeAddress");function B(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(B,"_ts_decorate");function oe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(oe,"_ts_metadata");var It=class{static{o(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[n,s]=t;return s>=-90&&s<=90&&n>=-180&&n<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};It=B([ValidatorConstraint({name:"coordinatesRange",async:false})],It);var z=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};B([IsString(),IsNotEmpty(),oe("design:type",String)],z.prototype,"type",void 0);B([IsArray(),IsNotEmpty(),Validate(It),oe("design:type",Array)],z.prototype,"coordinates",void 0);var x=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([IsOptional(),IsString(),Length(1,128),oe("design:type",String)],x.prototype,"name",void 0);B([Transform(({value:e,obj:t})=>Xe(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),IsNotEmpty(),Length(1,256),oe("design:type",String)],x.prototype,"address",void 0);B([IsString(),IsNotEmpty(),Length(1,32),oe("design:type",String)],x.prototype,"zipCode",void 0);B([IsString(),IsNotEmpty(),Length(1,128),oe("design:type",String)],x.prototype,"city",void 0);B([IsString(),IsNotEmpty(),Length(1,128),oe("design:type",String)],x.prototype,"country",void 0);B([ValidateNested(),Type(()=>z),IsNotEmpty(),oe("design:type",typeof z>"u"?Object:z)],x.prototype,"geometry",void 0);function ge(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ge,"_ts_decorate");function ye(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ye,"_ts_metadata");var S=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"name",void 0);ge([IsOptional(),Transform(({value:e,obj:t})=>Xe(e,{zipCode:t.zipCode,city:t.city,country:t.country})),IsString(),Length(1,256),ye("design:type",String)],S.prototype,"address",void 0);ge([IsOptional(),IsString(),Length(1,32),ye("design:type",String)],S.prototype,"zipCode",void 0);ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"city",void 0);ge([IsOptional(),IsString(),Length(1,128),ye("design:type",String)],S.prototype,"country",void 0);ge([IsOptional(),ValidateNested(),Type(()=>z),ye("design:type",typeof z>"u"?Object:z)],S.prototype,"geometry",void 0);function V(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(V,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(C,"_ts_metadata");var ve=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};V([IsOptional(),IsString(),IsLowercase(),Length(1,48),C("design:type",String)],ve.prototype,"organizationSlug",void 0);V([IsObject(),C("design:type",typeof F>"u"?Object:F)],ve.prototype,"identity",void 0);V([IsArray(),C("design:type",Array)],ve.prototype,"members",void 0);V([IsOptional(),IsObject(),C("design:type",typeof Location>"u"?Object:Location)],ve.prototype,"location",void 0);var F=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};V([IsString(),IsNotEmpty(),Length(1,32),C("design:type",String)],F.prototype,"displayName",void 0);V([IsString(),Length(16,1024),IsOptional(),C("design:type",String)],F.prototype,"description",void 0);V([Matches(p.ORGANIZATION_AVATAR_URL,{message:"organization.avatar.url.invalid"}),C("design:type",String)],F.prototype,"avatarUrl",void 0);V([IsOptional(),Matches(p.ORGANIZATION_BANNER_URL,{message:"organization.banner.url.invalid"}),C("design:type",String)],F.prototype,"bannerUrl",void 0);V([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),C("design:type",Array)],F.prototype,"links",void 0);function P(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};P([IsString(),Length(1,128),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),N("design:type",Number)],l.prototype,"price",void 0);P([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),N("design:type",Number)],l.prototype,"quantity",void 0);P([IsEnum(Q),N("design:type",typeof Q>"u"?Object:Q)],l.prototype,"type",void 0);P([IsEnum(ee),N("design:type",typeof ee>"u"?Object:ee)],l.prototype,"category",void 0);P([IsEnum(J),N("design:type",typeof J>"u"?Object:J)],l.prototype,"currency",void 0);P([IsBoolean(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([IsBoolean(),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 D(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(D,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var m=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};D([IsString(),Length(1,128),IsOptional(),U("design:type",String)],m.prototype,"name",void 0);D([IsString(),Length(0,1024),IsOptional(),U("design:type",String)],m.prototype,"description",void 0);D([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),U("design:type",Number)],m.prototype,"price",void 0);D([Transform(({value:e})=>Number(e)),IsNumber(),Min(0),IsOptional(),U("design:type",Number)],m.prototype,"quantity",void 0);D([IsEnum(Q),IsOptional(),U("design:type",typeof Q>"u"?Object:Q)],m.prototype,"type",void 0);D([IsEnum(ee),IsOptional(),U("design:type",typeof ee>"u"?Object:ee)],m.prototype,"category",void 0);D([IsEnum(J),IsOptional(),U("design:type",typeof J>"u"?Object:J)],m.prototype,"currency",void 0);D([IsBoolean(),IsOptional(),U("design:type",Boolean)],m.prototype,"isVisible",void 0);D([IsBoolean(),IsOptional(),U("design:type",Boolean)],m.prototype,"isFeesIncluded",void 0);D([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),U("design:type",typeof Date>"u"?Object:Date)],m.prototype,"startAt",void 0);D([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),U("design:type",typeof Date>"u"?Object:Date)],m.prototype,"endAt",void 0);function b(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(b,"_ts_decorate");function I(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(I,"_ts_metadata");var Le=class{static{o(this,"AtLeastOneMediaConstraint");}validate(t,n){let s=n.object,i=s.flyers||[],r=s.trailers||[];return i.length>0||r.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};Le=b([ValidatorConstraint({name:"atLeastOneMedia",async:false})],Le);function cs(e){return (t,n)=>{registerDecorator({target:t.constructor,propertyName:n,options:e,constraints:[],validator:Le});}}o(cs,"AtLeastOneMedia");var h=class{static{o(this,"BaseOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;styles;startAt;endAt};b([IsString(),IsNotEmpty(),Length(1,64),I("design:type",String)],h.prototype,"title",void 0);b([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.SLUG,{message:"organization.event.slug.format"}),I("design:type",String)],h.prototype,"slug",void 0);b([IsString(),IsNotEmpty(),Length(16,2048),I("design:type",String)],h.prototype,"description",void 0);b([IsEnum(te),IsNotEmpty(),I("design:type",typeof te>"u"?Object:te)],h.prototype,"type",void 0);b([IsEnum(ne),IsNotEmpty(),I("design:type",typeof ne>"u"?Object:ne)],h.prototype,"visibility",void 0);b([IsArray(),ArrayMaxSize(25),Matches(p.EVENT_FLYER_URL,{each:true,message:"organization.event.flyers.url.invalid"}),cs(),I("design:type",Array)],h.prototype,"flyers",void 0);b([IsArray(),ArrayMaxSize(25),Matches(p.EVENT_TRAILER_URL,{each:true,message:"organization.event.trailers.url.invalid"}),I("design:type",Array)],h.prototype,"trailers",void 0);b([IsObject(),ValidateNested(),Type(()=>x),IsNotEmpty(),I("design:type",typeof x>"u"?Object:x)],h.prototype,"location",void 0);b([IsArray(),IsString({each:true}),ArrayMinSize(1),I("design:type",Array)],h.prototype,"styles",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),I("design:type",typeof Date>"u"?Object:Date)],h.prototype,"startAt",void 0);b([Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),IsNotEmpty(),MinDate(new Date),I("design:type",typeof Date>"u"?Object:Date)],h.prototype,"endAt",void 0);var zt=class extends h{static{o(this,"CreateOrganizationEventDto");}tickets};b([IsArray(),ValidateNested({each:true}),Type(()=>l),IsNotEmpty(),I("design:type",Array)],zt.prototype,"tickets",void 0);function ps(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ps,"_ts_decorate");function ds(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ds,"_ts_metadata");var Dt=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};ps([IsArray(),IsString({each:true}),ds("design:type",Array)],Dt.prototype,"cart",void 0);var et=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Pn=class extends et{static{o(this,"UpdateOrganizationEventStyleDto");}};function R(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(R,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var Me=class{static{o(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,n){let s=n.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"}};Me=R([ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],Me);function hs(e){return (t,n)=>{registerDecorator({target:t.constructor,propertyName:n,options:e,constraints:[],validator:Me});}}o(hs,"AtLeastOneMediaOnUpdate");var v=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};R([IsOptional(),IsString(),Length(1,64),_("design:type",String)],v.prototype,"title",void 0);R([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.SLUG,{message:"organization.event.slug.format"}),_("design:type",String)],v.prototype,"slug",void 0);R([IsOptional(),IsString(),Length(16,2048),_("design:type",String)],v.prototype,"description",void 0);R([IsOptional(),IsEnum(te),_("design:type",typeof te>"u"?Object:te)],v.prototype,"type",void 0);R([IsOptional(),IsEnum(ne),_("design:type",typeof ne>"u"?Object:ne)],v.prototype,"visibility",void 0);R([IsOptional(),IsArray(),Matches(p.EVENT_FLYER_URL_UPDATE,{each:true,message:"organization.event.flyers.url.invalid"}),hs(),_("design:type",Array)],v.prototype,"flyers",void 0);R([IsOptional(),IsArray(),Matches(p.EVENT_TRAILER_URL_UPDATE,{each:true,message:"organization.event.trailers.url.invalid"}),_("design:type",Array)],v.prototype,"trailers",void 0);R([IsOptional(),IsObject(),ValidateNested(),Type(()=>S),_("design:type",typeof S>"u"?Object:S)],v.prototype,"location",void 0);R([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>m),_("design:type",Array)],v.prototype,"tickets",void 0);R([IsOptional(),IsArray(),IsString({each:true}),_("design:type",Array)],v.prototype,"styles",void 0);R([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],v.prototype,"startAt",void 0);R([IsOptional(),Transform(({value:e})=>e instanceof Date?e:new Date(e)),IsDate(),MinDate(new Date),_("design:type",typeof Date>"u"?Object:Date)],v.prototype,"endAt",void 0);function vs(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(vs,"_ts_decorate");function bs(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(bs,"_ts_metadata");var Mt=class{static{o(this,"AcceptOrganizationMemberInvitationDto");}token};vs([IsString(),IsNotEmpty(),bs("design:type",String)],Mt.prototype,"token",void 0);function Bn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Bn,"_ts_decorate");function Fn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Fn,"_ts_metadata");var ot=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Bn([IsString(),IsNotEmpty(),Fn("design:type",String)],ot.prototype,"user",void 0);Bn([IsEnum(f),IsNotEmpty(),Fn("design:type",typeof f>"u"?Object:f)],ot.prototype,"role",void 0);function _s(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(_s,"_ts_decorate");function As(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(As,"_ts_metadata");var Et=class{static{o(this,"CreateOrganizationMemberInvitationLinkDto");}role};_s([IsEnum(f),IsOptional(),As("design:type",typeof f>"u"?Object:f)],Et.prototype,"role",void 0);function js(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(js,"_ts_decorate");function zs(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(zs,"_ts_metadata");var Bt=class{static{o(this,"UpdateOrganizationMemberDto");}role};js([IsEnum(f),IsNotEmpty(),zs("design:type",typeof f>"u"?Object:f)],Bt.prototype,"role",void 0);function k(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(k,"_ts_decorate");function H(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(H,"_ts_metadata");var be=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};k([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"organization.slug.format"}),H("design:type",String)],be.prototype,"slug",void 0);k([IsObject(),IsOptional(),H("design:type",typeof G>"u"?Object:G)],be.prototype,"identity",void 0);k([IsOptional(),IsArray(),H("design:type",Array)],be.prototype,"members",void 0);k([IsOptional(),IsObject(),H("design:type",typeof Location>"u"?Object:Location)],be.prototype,"location",void 0);var G=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;links};k([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),H("design:type",String)],G.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),H("design:type",String)],G.prototype,"description",void 0);k([IsOptional(),Matches(p.ORGANIZATION_AVATAR_URL),H("design:type",String)],G.prototype,"avatarUrl",void 0);k([IsOptional(),Matches(p.ORGANIZATION_BANNER_URL),H("design:type",String)],G.prototype,"bannerUrl",void 0);k([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),H("design:type",Array)],G.prototype,"links",void 0);function O(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(O,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var Ee=class{static{o(this,"CreateUserDto");}identifier;identity;password};O([ValidateNested(),Type(()=>Re),w("design:type",typeof Re>"u"?Object:Re)],Ee.prototype,"identifier",void 0);O([ValidateNested(),Type(()=>M),w("design:type",typeof M>"u"?Object:M)],Ee.prototype,"identity",void 0);O([IsString(),Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),w("design:type",String)],Ee.prototype,"password",void 0);var Re=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};O([IsOptional(),IsString(),IsEmail(),w("design:type",String)],Re.prototype,"email",void 0);O([IsOptional(),IsString(),IsPhoneNumber(),w("design:type",String)],Re.prototype,"phoneNumber",void 0);O([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"user.username.format"}),w("design:type",String)],Re.prototype,"username",void 0);var M=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate;links};O([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"First name must be composed of letters only"}),w("design:type",String)],M.prototype,"firstName",void 0);O([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"Last name must be composed of letters only"}),w("design:type",String)],M.prototype,"lastName",void 0);O([IsEnum($),w("design:type",typeof $>"u"?Object:$)],M.prototype,"gender",void 0);O([IsOptional(),Matches(p.USER_AVATAR_URL_CREATE,{message:"user.avatar.url.invalid"}),w("design:type",String)],M.prototype,"avatarUrl",void 0);O([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return Number.isNaN(t.getTime())?e:t}),IsDate(),w("design:type",typeof Date>"u"?Object:Date)],M.prototype,"birthDate",void 0);O([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),w("design:type",Array)],M.prototype,"links",void 0);function Ws(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Ws,"_ts_decorate");function Ks(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ks,"_ts_metadata");var kt=class{static{o(this,"GoogleOneTapDto");}credential};Ws([IsNotEmpty(),IsString(),Ks("design:type",String)],kt.prototype,"credential",void 0);function qn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(qn,"_ts_decorate");function Wn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Wn,"_ts_metadata");var rt=class{static{o(this,"CreateUserPostCommentDto");}content;replyToId};qn([IsString(),Length(1,280),Wn("design:type",String)],rt.prototype,"content",void 0);qn([IsOptional(),IsString(),Wn("design:type",String)],rt.prototype,"replyToId",void 0);function Ys(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Ys,"_ts_decorate");function Js(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Js,"_ts_metadata");var Ht=class{static{o(this,"UpdateUserPostCommentDto");}content};Ys([IsString(),Length(1,280),Js("design:type",String)],Ht.prototype,"content",void 0);function qt(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(qt,"_ts_decorate");function Wt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Wt,"_ts_metadata");var Be=class{static{o(this,"CreateUserPostDto");}content;mediaUrls;visibility};qt([IsOptional(),IsString(),Length(1,512),Wt("design:type",String)],Be.prototype,"content",void 0);qt([IsArray(),ArrayMinSize(1),ArrayMaxSize(10),Matches(p.USER_POST_MEDIA_URL,{each:true}),Wt("design:type",Array)],Be.prototype,"mediaUrls",void 0);qt([IsOptional(),IsEnum(T),Wt("design:type",typeof T>"u"?Object:T)],Be.prototype,"visibility",void 0);function ci(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(ci,"_ts_decorate");function pi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(pi,"_ts_metadata");var Kt=class{static{o(this,"CreateUserPostRepostDto");}comment};ci([IsOptional(),IsString(),Length(1,280),pi("design:type",String)],Kt.prototype,"comment",void 0);function $n(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o($n,"_ts_decorate");function Xn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Xn,"_ts_metadata");var st=class{static{o(this,"UpdateUserPostDto");}content;visibility};$n([IsOptional(),IsString(),Length(1,512),Xn("design:type",String)],st.prototype,"content",void 0);$n([IsOptional(),IsEnum(T),Xn("design:type",typeof T>"u"?Object:T)],st.prototype,"visibility",void 0);function yi(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(yi,"_ts_decorate");function hi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(hi,"_ts_metadata");var Tt=class{static{o(this,"RecoveryDto");}identifier};yi([IsNotEmpty(),IsString(),hi("design:type",String)],Tt.prototype,"identifier",void 0);function $t(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o($t,"_ts_decorate");function Xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Xt,"_ts_metadata");var Fe=class{static{o(this,"RecoveryResetDto");}tokenId;tokenValue;password};$t([IsString(),IsNotEmpty(),Xt("design:type",String)],Fe.prototype,"tokenId",void 0);$t([IsString(),IsNotEmpty(),Xt("design:type",String)],Fe.prototype,"tokenValue",void 0);$t([Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),IsNotEmpty({message:"Password is required"}),Xt("design:type",String)],Fe.prototype,"password",void 0);function Jn(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(Jn,"_ts_decorate");function Qn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Qn,"_ts_metadata");var at=class{static{o(this,"SignInUserDto");}identifier;password};Jn([IsNotEmpty(),IsString(),Qn("design:type",String)],at.prototype,"identifier",void 0);Jn([IsNotEmpty(),IsString(),Qn("design:type",String)],at.prototype,"password",void 0);function u(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var Ve=class{static{o(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>xe),g("design:type",typeof xe>"u"?Object:xe)],Ve.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>j),g("design:type",typeof j>"u"?Object:j)],Ve.prototype,"identity",void 0);u([IsOptional(),IsString(),Matches(p.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(p.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(p.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(p.PASSWORD,{message:"Password must be secure."}),g("design:type",String)],Ve.prototype,"password",void 0);var xe=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),g("design:type",String)],xe.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],xe.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(p.USERNAME,{message:"user.username.format"}),g("design:type",String)],xe.prototype,"username",void 0);var j=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate;links};u([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],j.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(p.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],j.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),g("design:type",String)],j.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),g("design:type",String)],j.prototype,"description",void 0);u([IsOptional(),Matches(p.USER_AVATAR_URL),g("design:type",Object)],j.prototype,"avatarUrl",void 0);u([IsOptional(),Matches(p.USER_BANNER_URL),g("design:type",Object)],j.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum($),g("design:type",typeof $>"u"?Object:$)],j.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)],j.prototype,"birthDate",void 0);u([IsOptional(),IsArray(),IsUrl({},{each:true}),ArrayMaxSize(5),g("design:type",Array)],j.prototype,"links",void 0);function so(e,t,n,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,n):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}o(so,"_ts_decorate");function io(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(io,"_ts_metadata");var ct=class{static{o(this,"VerifyEmailConfirmDto");}tokenId;tokenValue};so([IsString(),IsNotEmpty(),io("design:type",String)],ct.prototype,"tokenId",void 0);so([IsString(),IsNotEmpty(),io("design:type",String)],ct.prototype,"tokenValue",void 0);function d(e){return e}o(d,"sdk");var po=e=>({getAll:o(async()=>e.get("/api-keys"),"getAll"),get:o(async t=>e.get("/api-keys/:apiKeyId",{apiKeyId:t}),"get"),create:o(async t=>e.post("/api-keys",t),"create"),update:o(async(t,n)=>e.put("/api-keys/:apiKeyId",n,{apiKeyId:t}),"update"),delete:o(async t=>e.delete("/api-keys/:apiKeyId",void 0,{apiKeyId:t}),"delete")});var fo=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",void 0),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",void 0),"refreshToken"),recovery:o(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:o(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),verifyEmail:{send:o(async()=>e.post("/auth/verify/email/send",void 0),"send"),confirm:o(async t=>e.post("/auth/verify/email/confirm",t),"confirm")},oauth2:{connect:o((t,n)=>e.url("/oauth2/:provider",{provider:t,...n}),"connect"),disconnect:o(async t=>e.delete("/oauth2/:provider",void 0,{provider:t}),"disconnect"),googleOneTap:o(async t=>e.post("/oauth2/google/one-tap",t),"googleOneTap")}});var lo=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var mo=e=>({getAll:o(async(t,n)=>e.get("/channels/~me/:channelId/messages",{channelId:t,...n}),"getAll"),getAllByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:n,...s}),"getAllByOrganization"),get:o(async(t,n)=>e.get("/channels/~me/:channelId/messages/:messageId",{channelId:t,messageId:n}),"get"),getByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:n,messageId:s}),"getByOrganization"),create:o(async(t,n)=>e.post("/channels/~me/:channelId/messages",n,{channelId:t}),"create"),createByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/messages",s,{organizationSlug:t,channelId:n}),"createByOrganization"),update:o(async(t,n,s)=>e.put("/channels/~me/:channelId/messages/:messageId",s,{channelId:t,messageId:n}),"update"),updateByOrganization:o(async(t,n,s,i)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",i,{organizationSlug:t,channelId:n,messageId:s}),"updateByOrganization"),delete:o(async(t,n)=>e.delete("/channels/~me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:n}),"delete"),deleteByOrganization:o(async(t,n,s)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:n,messageId:s}),"deleteByOrganization"),addReaction:o(async(t,n,s)=>e.post("/channels/~me/:channelId/messages/:messageId/reactions",s,{channelId:t,messageId:n}),"addReaction"),addReactionByOrganization:o(async(t,n,s,i)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",i,{organizationSlug:t,channelId:n,messageId:s}),"addReactionByOrganization"),removeReaction:o(async(t,n,s)=>e.delete("/channels/~me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:n,emoji:s}),"removeReaction"),removeReactionByOrganization:o(async(t,n,s,i)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:n,messageId:s,emoji:i}),"removeReactionByOrganization"),markAsRead:o(async(t,n)=>e.post("/channels/~me/:channelId/messages/:messageId/read",void 0,{channelId:t,messageId:n}),"markAsRead"),markAsReadByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",void 0,{organizationSlug:t,channelId:n,messageId:s}),"markAsReadByOrganization"),uploadFile:o(async(t,n)=>e.post("/channels/~me/:channelId/files",n,{channelId:t}),"uploadFile"),uploadFileByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/files",s,{organizationSlug:t,channelId:n}),"uploadFileByOrganization"),report:o(async(t,n,s)=>e.post("/channels/~me/:channelId/messages/:messageId/report",s,{channelId:t,messageId:n}),"report"),reportByOrganization:o(async(t,n,s,i)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/report",i,{organizationSlug:t,channelId:n,messageId:s}),"reportByOrganization")});var uo=e=>({me:o(async t=>e.get("/channels/~me",t),"me"),getByOrganization:o(async(t,n)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...n}),"getByOrganization"),countMe:o(async t=>e.get("/users/~me/channels/count",t),"countMe"),countByOrganization:o(async(t,n)=>e.get("/users/@:organizationSlug/channels/count",{organizationSlug:t,...n}),"countByOrganization"),get:o(async t=>e.get("/channels/~me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:o(async(t,n)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:n}),"getByOrganizationChannel"),create:o(async t=>e.post("/channels/~me",t),"create"),createByOrganization:o(async(t,n)=>e.post("/channels/:organizationSlug",n,{organizationSlug:t}),"createByOrganization"),update:o(async(t,n)=>e.put("/channels/~me/:channelId",n,{channelId:t}),"update"),updateByOrganization:o(async(t,n,s)=>e.put("/channels/:organizationSlug/:channelId",s,{organizationSlug:t,channelId:n}),"updateByOrganization"),delete:o(async t=>e.delete("/channels/~me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:o(async(t,n)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:n}),"deleteByOrganization"),addParticipant:o(async(t,n)=>e.post("/channels/~me/:channelId/participants",n,{channelId:t}),"addParticipant"),addParticipantByOrganization:o(async(t,n,s)=>e.post("/channels/:organizationSlug/:channelId/participants",s,{organizationSlug:t,channelId:n}),"addParticipantByOrganization"),removeParticipant:o(async(t,n)=>e.delete("/channels/~me/:channelId/participants/:username",void 0,{channelId:t,username:n}),"removeParticipant"),removeParticipantByOrganization:o(async(t,n,s)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:n,username:s}),"removeParticipantByOrganization"),getMembers:o(async(t,n)=>e.get("/channels/~me/:channelId/members",{channelId:t,...n}),"getMembers"),getMembersByOrganization:o(async(t,n,s)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:n,...s}),"getMembersByOrganization"),messages:mo(e)});var go=e=>({getRates:o(()=>e.get("/currencies/rates"),"getRates"),convert:o(t=>e.post("/currencies/convert",t),"convert"),convertAmount:o((t,n,s)=>e.post("/currencies/convert",{from:t,to:n,amount:s}),"convertAmount")});var yo=e=>({getFollowing:o(async t=>e.get("/feed/following",t),"getFollowing"),getDiscover:o(async t=>e.get("/feed/discover",t),"getDiscover")});var ho=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app"),memory:o(async()=>e.get("/health/memory"),"memory")});var vo=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var bo=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ro=o(e=>({account:o(async t=>e.get("/organizations/@:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(le)window.location.href=e.url("/organizations/@:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(le)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 xo=e=>({getAll:o(async t=>e.get("/organizations/@:organizationSlug/customers",{organizationSlug:t}),"getAll"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/customers/:username",{organizationSlug:t,username:n}),"get")});var So=o(e=>({create:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var Io=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",void 0,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var _o=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,s)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:s}),"get"),create:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,s,i)=>e.put("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:n,ticketId:s}),"update"),delete:o(async(t,n,s)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:s}),"delete")}),"organizationsEventsTickets");var Ao=o(e=>({record:o(async(t,n)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record"),getStreamUrl:o(t=>e.url("/organizations/events/views/stream",t),"getStreamUrl")}),"organizationsEventsViews");var Oo=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,...n}),"search"),getCalendar:o(async(t,n)=>e.get("/organizations/events/calendar/:year/:month",{year:t.toString(),month:n.toString()}),"getCalendar"),getAll:o(async(t,n)=>t?e.get("/organizations/@:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/@:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,s)=>e.put("/organizations/@:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/@:organizationSlug/events/:eventSlug",void 0,{organizationSlug:t,eventSlug:n}),"delete"),uploadFile:o(async(t,n)=>e.post("/events/files/:eventFileType",X("file",n),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:o(async(t,n,s,i)=>e.post("/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType",X("file",i),{organizationSlug:t,eventSlug:n,eventFileType:s}),"uploadOrganizationFile"),orders:So(e),styles:Io(e),tickets:_o(e),views:Ao(e)}),"organizationsEvents");var wo=o(e=>({getLinks:o(async t=>e.get("/organizations/@:organizationSlug/members/invitations/links",{organizationSlug:t}),"getLinks"),createLink:o(async(t,n={})=>e.post("/organizations/@:organizationSlug/members/invitations/links",n,{organizationSlug:t}),"createLink"),accept:o(async(t,n)=>e.post("/organizations/@:organizationSlug/members/invitations/accept",n,{organizationSlug:t}),"accept")}),"invitations");var jo=o(e=>({me:o(async()=>e.get("/organizations/members/~me"),"me"),get:o(async t=>e.get("/organizations/@:organizationSlug/members",{organizationSlug:t}),"get"),create:o(async(t,n)=>e.post("/organizations/@:organizationSlug/members",n,{organizationSlug:t}),"create"),update:o(async(t,n,s)=>e.put("/organizations/@:organizationSlug/members/:username",s,{organizationSlug:t,username:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/@:organizationSlug/members/:username",void 0,{organizationSlug:t,username:n}),"delete"),invitations:wo(e),accept:o(async t=>e.put("/organizations/@:organizationSlug/members/~me/accept",void 0,{organizationSlug:t}),"accept"),reject:o(async t=>e.delete("/organizations/@:organizationSlug/members/~me/reject",void 0,{organizationSlug:t}),"reject"),leave:o(async t=>e.delete("/organizations/@:organizationSlug/members/~me",void 0,{organizationSlug:t}),"leave")}),"organizationsMembers");var zo=e=>({getAll:o(async t=>e.get("/organizations/@:organizationSlug/orders",{organizationSlug:t}),"getAll"),get:o(async(t,n)=>e.get("/organizations/@:organizationSlug/orders/:orderId",{organizationSlug:t,orderId:n}),"get"),getAllByEvent:o(async(t,n)=>e.get("/organizations/@:organizationSlug/events/:eventSlug/orders",{organizationSlug:t,eventSlug:n}),"getAllByEvent")});var Po=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/@:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/@:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/@:organizationSlug",void 0,{organizationSlug:t}),"delete"),uploadFile:o(async(t,n,s)=>e.post("/organizations/@:organizationSlug/files/:organizationFileType",X("file",s),{organizationSlug:t,organizationFileType:n}),"uploadFile"),billing:Ro(e),events:Oo(e),members:jo(e),customers:xo(e),orders:zo(e)});var No=e=>({countries:{getAll:o(async t=>e.get("/places/countries",t),"getAll"),get:o(async t=>e.get("/places/countries/:countrySlug",{countrySlug:t}),"get"),cities:{getAll:o(async(t,n)=>e.get("/places/countries/:countrySlug/cities",{countrySlug:t,...n}),"getAll"),get:o(async(t,n)=>e.get("/places/countries/:countrySlug/cities/:citySlug",{countrySlug:t,citySlug:n}),"get"),nearby:o(async(t,n,s)=>e.get("/places/countries/:countrySlug/cities/:citySlug/nearby",{countrySlug:t,citySlug:n,...s}),"nearby")}},cities:{getAll:o(async t=>e.get("/places/cities",t),"getAll"),search:o(async(t,n)=>e.get("/places/cities/search",{q:t,...n}),"search")}});var Do=e=>({follow:o(async t=>e.post("/profiles/@:username/relationships/follow",void 0,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/@:username/relationships/unfollow",void 0,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/~me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/@:username/relationships/followers",{username:t,...n}),"getFollowers")});var Uo=e=>({getAll:o(async t=>e.get("/profiles",t),"getAll"),search:o(async(t,n)=>e.get("/profiles/search",{q:t,...n}),"search"),get:o(async t=>e.get("/profiles/@:username",{username:t}),"get"),relationships:Do(e)});var Lo=e=>({reactions:{get:o(async t=>e.get("/roadmap/reactions/:featureId",{featureId:t}),"get"),add:o(async(t,n)=>e.post("/roadmap/reactions/:featureId",{featureId:t,reaction:n}),"add")}});var Mo=e=>({get:o(async t=>e.get("/users/bookings/tickets/:ticketId",{ticketId:t}),"get"),use:o(async(t,n,s)=>e.put("/users/bookings/tickets/:ticketId/use",{tokenId:n,tokenValue:s},{ticketId:t}),"use")});var Eo=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/~me/bookings"),"me"),tickets:Mo(e)});var Bo=e=>({me:o(async()=>e.get("/users/~me/notifications"),"me"),count:o(async t=>e.get("/users/~me/notifications/count",t),"count"),read:o(async()=>e.put("/users/~me/notifications/read",void 0),"read")});var Fo=o(e=>({record:o(async(t,n)=>e.post("/users/@:username/posts/:postId/views",void 0,{username:t,postId:n}),"record")}),"usersPostsViews");var Vo=e=>({getByUsername:o(async(t,n)=>e.get("/users/@:username/posts",{username:t,...n}),"getByUsername"),getByUsernameAndId:o(async(t,n)=>e.get("/users/@:username/posts/:postId",{username:t,postId:n}),"getByUsernameAndId"),create:o(async t=>e.post("/users/~me/posts",t),"create"),update:o(async(t,n)=>e.put("/users/~me/posts/:postId",n,{postId:t}),"update"),delete:o(async t=>e.delete("/users/~me/posts/:postId",void 0,{postId:t}),"delete"),uploadMedia:o(async t=>e.post("/users/~me/posts/media",t),"uploadMedia"),views:Fo(e)});var Co=e=>({getByPost:o(async(t,n,s)=>e.get("/users/@:username/posts/:postId/comments",{username:t,postId:n,...s}),"getByPost"),create:o(async(t,n)=>e.post("/users/~me/posts/:postId/comments",n,{postId:t}),"create"),update:o(async(t,n,s)=>e.put("/users/~me/posts/:postId/comments/:commentId",s,{postId:t,commentId:n}),"update"),delete:o(async(t,n)=>e.delete("/users/~me/posts/:postId/comments/:commentId",void 0,{postId:t,commentId:n}),"delete")});var Go=e=>({getByUsername:o(async(t,n)=>e.get("/users/@:username/reposts",{username:t,...n}),"getByUsername"),getByPost:o(async(t,n,s)=>e.get("/users/@:username/posts/:postId/reposts",{username:t,postId:n,...s}),"getByPost"),create:o(async(t,n)=>e.post("/users/~me/posts/:postId/reposts",n||{},{postId:t}),"create"),delete:o(async t=>e.delete("/users/~me/posts/:postId/reposts",void 0,{postId:t}),"delete")});var ko=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/@:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/~me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/@:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,s)=>e.post("/users/@:userId/files/:userFileType",X("file",s),{userId:t,userFileType:n}),"uploadFile"),uploadTempFile:o(async(t,n)=>e.post("/users/files/:userFileType",X("file",n),{userFileType:t}),"uploadTempFile"),bookings:Eo(e),notifications:Bo(e),posts:Vo(e),postsComments:Co(e),postsReposts:Go(e)});var Ho=class{static{o(this,"TonightPass");}client;apiKeys;auth;careers;channels;currencies;feed;health;orders;organizations;places;profiles;roadmap;users;notifications;constructor(t){this.client=new He(t),this.apiKeys=po(this.client),this.auth=fo(this.client),this.careers=lo(this.client),this.channels=uo(this.client),this.currencies=go(this.client),this.feed=yo(this.client),this.health=ho(this.client),this.orders=bo(this.client),this.organizations=Po(this.client),this.places=No(this.client),this.profiles=Uo(this.client),this.roadmap=Lo(this.client),this.users=ko(this.client),this.notifications=vo(this.client);}};var pt=class{static{o(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,...n){this.options.debug&&console.log(`[WebSocketClient] ${t}`,...n);}getWebSocketURL(t,n){let s={};Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&r!=="token"&&(s[r]=a);});let i=pathcat(t,s);return `${this.options.baseURL}${i}`}async connect(t,n){return new Promise((s,i)=>{try{let r=this.getWebSocketURL(t,n);this.log("Connecting to",r);let a=[];"token"in n&&typeof n.token=="string"&&a.push(`access_token.${n.token}`),this.ws=a.length>0?new WebSocket(r,a):new WebSocket(r),this.ws.onopen=()=>{this.log("Connected successfully"),this.isConnected=!0,this.isReconnecting=!1,this.reconnectAttempts=0,s();},this.ws.onmessage=c=>{try{let E=JSON.parse(c.data);this.handleEvent(E);}catch(E){this.log("Error parsing message:",E);}},this.ws.onclose=c=>{this.log("Connection closed",c.code),this.isConnected=!1,this.options.maxReconnectAttempts&&!this.isReconnecting&&this.handleReconnect(t,n);},this.ws.onerror=c=>{this.log("WebSocket error:",c),this.isConnected=!1,i(c);};}catch(r){i(r);}})}handleReconnect(t,n){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,n).catch(s=>{this.log("Reconnection failed:",s);});},this.options.reconnectInterval);}handleEvent(t){this.log("Received event:",t.type);let n=this.eventHandlers.get(t.type);n&&n.forEach(i=>i(t));let s=this.eventHandlers.get("*");s&&s.forEach(i=>i(t));}on(t,n){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set);let s=o(i=>{n(i);},"wrappedHandler");return this.eventHandlers.get(t)?.add(s),()=>{let i=this.eventHandlers.get(t);i&&(i.delete(s),i.size===0&&this.eventHandlers.delete(t));}}off(t,n){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 dt=class extends pt{static{o(this,"ChannelWebSocketClient");}async connectToChannel(t,n={}){return this.connect("/channels/~me/:channelId/ws",{...n,channelId:t})}async connectToOrganizationChannel(t,n,s={}){return this.connect("/channels/:organizationSlug/:channelId/ws",{...s,organizationSlug:t,channelId:n})}async connectToUserChannels(t={}){return this.connect("/channels/~me/ws",t)}async connectToOrganizationChannels(t,n={}){return this.connect("/channels/:organizationSlug/ws",{...n,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 Ng(e){let t=new dt(e);return {connect:o((n,s)=>t.connectToChannel(n,{token:s}),"connect"),connectToOrganization:o((n,s,i)=>t.connectToOrganizationChannel(n,s,{token:i}),"connectToOrganization"),connectToUserChannels:o(n=>t.connectToUserChannels({token:n}),"connectToUserChannels"),connectToOrganizationChannels:o((n,s)=>t.connectToOrganizationChannels(n,{token:s}),"connectToOrganizationChannels"),onMessageCreate:o(n=>t.onMessageCreate(n),"onMessageCreate"),onMessageUpdate:o(n=>t.onMessageUpdate(n),"onMessageUpdate"),onMessageDelete:o(n=>t.onMessageDelete(n),"onMessageDelete"),onChannelUpdate:o(n=>t.onChannelUpdate(n),"onChannelUpdate"),onChannelDelete:o(n=>t.onChannelDelete(n),"onChannelDelete"),onMemberJoin:o(n=>t.onMemberJoin(n),"onMemberJoin"),onMemberLeave:o(n=>t.onMemberLeave(n),"onMemberLeave"),onTypingStart:o(n=>t.onTypingStart(n),"onTypingStart"),onTypingStop:o(n=>t.onTypingStop(n),"onTypingStop"),onAny:o(n=>t.on("*",n),"onAny"),startTyping:o(n=>t.startTyping(n),"startTyping"),stopTyping:o(n=>t.stopTyping(n),"stopTyping"),subscribeToChannel:o(n=>t.subscribeToChannel(n),"subscribeToChannel"),unsubscribeFromChannel:o(n=>t.unsubscribeFromChannel(n),"unsubscribeFromChannel"),disconnect:o(()=>t.disconnect(),"disconnect"),get connected(){return t.connected},get reconnecting(){return t.reconnecting},client:t}}o(Ng,"channelsWS");
|
|
2
|
+
export{Mt as AcceptOrganizationMemberInvitationDto,ut as AddParticipantDto,vt as AddReactionDto,Z as ApiKeyTier,Y as ApiKeyType,cs as AtLeastOneMedia,Le as AtLeastOneMediaConstraint,hs as AtLeastOneMediaOnUpdate,Me as AtLeastOneMediaOnUpdateConstraint,Ya as AuthFlow,h as BaseOrganizationEventDto,Ie as CacheManager,ec as ChannelMemberRole,Ke as ChannelMessageReportReason,tc as ChannelStatus,ce as ChannelType,dt as ChannelWebSocketClient,He as Client,je as ContentOrAttachmentsConstraint,me as CreateApiKeyDto,we as CreateChannelDto,ze as CreateChannelMessageDto,x as CreateLocationDto,ve as CreateOrganizationDto,zt as CreateOrganizationEventDto,Dt as CreateOrganizationEventOrderDto,et as CreateOrganizationEventStyleDto,l as CreateOrganizationEventTicketDto,F as CreateOrganizationIdentityDto,ot as CreateOrganizationMemberDto,Et as CreateOrganizationMemberInvitationLinkDto,Ee as CreateUserDto,M as CreateUserIdentityDto,rt as CreateUserPostCommentDto,Be as CreateUserPostDto,Kt as CreateUserPostRepostDto,J as Currency,Jt as DEFAULT_API_URL,sc as ErrorType,ac as FeedType,z as GeoPointDto,kt as GoogleOneTapDto,Lc as Language,ke as MemoryCacheStore,Za as OAuth2Provider,lc as OrganizationEventFileType,mc as OrganizationEventStatus,pc as OrganizationEventStyleType,ee as OrganizationEventTicketCategory,Q as OrganizationEventTicketType,te as OrganizationEventType,ne as OrganizationEventVisibilityType,xc as OrganizationFileType,f as OrganizationMemberRole,ft as OrganizationMemberRolePower,Ui as OrganizationMemberStatus,bc as OrganizationTokenType,zc as ProfileType,p as REGEX,Nc as ROADMAP_REACTIONS,Tt as RecoveryDto,Fe as RecoveryResetDto,$e as ReportChannelMessageDto,Dc as RoadmapFeatureStatus,at as SignInUserDto,Ho as TonightPass,lt as TonightPassAPIError,ae as UpdateApiKeyDto,St as UpdateChannelDto,xt as UpdateChannelMessageDto,S as UpdateLocationDto,be as UpdateOrganizationDto,v as UpdateOrganizationEventDto,Pn as UpdateOrganizationEventStyleDto,m as UpdateOrganizationEventTicketDto,G as UpdateOrganizationIdentityDto,Bt as UpdateOrganizationMemberDto,Ve as UpdateUserDto,Ht as UpdateUserPostCommentDto,st as UpdateUserPostDto,Ti as UserFileType,$ as UserIdentityGender,Ei as UserNotificationType,Fi as UserPostMediaType,T as UserPostVisibility,Ge as UserRole,na as UserRolePower,Wi as UserTokenType,ct as VerifyEmailConfirmDto,pt as WebSocketClient,po as apiKeys,fo as auth,X as buildFileFormData,lo as careers,uo as channels,Ng as channelsWS,go as currencies,yo as feed,ho as health,le as isBrowser,ba as isMemberRoleAtLeast,Xe as normalizeAddress,vo as notifications,bo as orders,Po as organizations,No as places,Uo as profiles,Qt as request,Lo as roadmap,d as sdk,ko as users};//# sourceMappingURL=index.mjs.map
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|