tonightpass 0.0.262 → 0.0.264

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 CHANGED
@@ -2,7 +2,6 @@ import * as pathcat from 'pathcat';
2
2
  import { Query, ParamValue } from 'pathcat';
3
3
  export * from 'pathcat';
4
4
  import { Options, Response as Response$1 } from 'redaxios';
5
- import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
6
5
  import * as Stripe from 'stripe';
7
6
  import Stripe__default from 'stripe';
8
7
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
@@ -116,109 +115,6 @@ type ArtistEndpoints = Endpoint<"GET", "/artists/top", ArrayResult<Artist>, List
116
115
  isFollowing: boolean;
117
116
  }> | Endpoint<"GET", "/artists/:idOrPermalink/events", ArrayResult<OrganizationEvent>, ListArtistEventsOptions>;
118
117
 
119
- declare enum UserNotificationType {
120
- Follow = "follow"
121
- }
122
- type UserNotificationBase = Base & {
123
- type: UserNotificationType.Follow;
124
- isSeen: boolean;
125
- };
126
- type UserNotificationFollow = UserNotificationBase & {
127
- type: UserNotificationType.Follow;
128
- follower: UserProfile;
129
- };
130
- type UserNotification = UserNotificationFollow;
131
- type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
132
- unseen?: boolean;
133
- }> | Endpoint<"PUT", "/users/~me/notifications/read", void, undefined>;
134
-
135
- declare class CreateUserPostCommentDto {
136
- content: string;
137
- replyToId?: string;
138
- }
139
-
140
- declare class UpdateUserPostCommentDto {
141
- content: string;
142
- }
143
-
144
- declare class CreateUserPostDto {
145
- content?: string;
146
- mediaUrls: string[];
147
- visibility?: UserPostVisibility;
148
- }
149
-
150
- declare class CreateUserPostRepostDto {
151
- comment?: string;
152
- }
153
-
154
- declare class UpdateUserPostDto {
155
- content?: string;
156
- visibility?: UserPostVisibility;
157
- }
158
-
159
- type UserPostComment = Base & {
160
- post: UserPost;
161
- author: UserProfile;
162
- content: string;
163
- replyTo?: UserPostComment;
164
- isEdited: boolean;
165
- editedAt?: Date;
166
- };
167
- type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void, null>;
168
-
169
- declare enum UserPostMediaType {
170
- Image = "image",
171
- Video = "video"
172
- }
173
- type UserPostMedia = {
174
- url: string;
175
- type: UserPostMediaType;
176
- width: number;
177
- height: number;
178
- description?: string;
179
- isNSFW: boolean;
180
- thumbnailUrl?: string;
181
- duration?: number;
182
- };
183
- type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
184
-
185
- type UserPostRepost = Base & {
186
- originalPost: UserPost;
187
- author: UserProfile;
188
- comment?: string;
189
- };
190
- type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
191
-
192
- type UserPostViewOptions = {
193
- posts: string | string[];
194
- };
195
- type UserPostViewResult = {
196
- postId: string;
197
- viewsCount: number;
198
- };
199
- type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
200
-
201
- declare enum UserPostVisibility {
202
- Public = "public",
203
- Followers = "followers",
204
- Private = "private"
205
- }
206
- type UserPost = Base & {
207
- author: UserProfile;
208
- content?: string;
209
- media: UserPostMedia[];
210
- visibility: UserPostVisibility;
211
- metrics: {
212
- reposts: number;
213
- comments: number;
214
- views: number;
215
- };
216
- isReposted?: boolean;
217
- isEdited: boolean;
218
- editedAt?: Date;
219
- };
220
- type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
221
-
222
118
  /**
223
119
  * All currencies supported by Stripe for card payments.
224
120
  * Source: https://docs.stripe.com/currencies#presentment-currencies
@@ -425,7 +321,14 @@ type OrderItem = {
425
321
  declare enum OrderTransferStatus {
426
322
  Completed = "completed",
427
323
  Pending = "pending",
428
- Transferred = "transferred"
324
+ Transferred = "transferred",
325
+ Cancelled = "cancelled"
326
+ }
327
+ declare enum OrderRefundStatus {
328
+ Pending = "pending",
329
+ Succeeded = "succeeded",
330
+ Failed = "failed",
331
+ RequiresAction = "requires_action"
429
332
  }
430
333
  type OrderDiscount = {
431
334
  code: string;
@@ -442,32 +345,67 @@ type Order = Base & {
442
345
  fee: number;
443
346
  total: number;
444
347
  transferStatus: OrderTransferStatus;
348
+ transferReversed?: boolean;
349
+ refundId?: string;
350
+ refundedAt?: Date;
351
+ refundAmount?: number;
352
+ refundedFeeAmount?: number;
353
+ refundStatus?: OrderRefundStatus;
354
+ refundFailureReason?: string;
355
+ /** Number of times the refund cron has attempted this order. Defaults to 0. */
356
+ refundRetryCount?: number;
357
+ refundLastAttemptAt?: Date;
445
358
  user: UserProfile;
446
359
  };
447
360
  type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
448
361
 
449
- type UserBookingTicket = Base & {
450
- booking: UserBookingWithoutTickets;
451
- ticket: OrganizationEventTicket;
452
- token: UserToken;
453
- useCount: number;
362
+ type OrganizationAnalyticsOverview = {
363
+ metrics: {
364
+ totalRevenue: {
365
+ current: number;
366
+ previous: number;
367
+ percentageChange: number;
368
+ };
369
+ totalOrders: {
370
+ current: number;
371
+ previous: number;
372
+ percentageChange: number;
373
+ };
374
+ totalTicketsSold: {
375
+ current: number;
376
+ previous: number;
377
+ percentageChange: number;
378
+ };
379
+ activeEvents: number;
380
+ };
381
+ chartData: {
382
+ date: string;
383
+ revenues: number;
384
+ orders: number;
385
+ ticketsSold: number;
386
+ events: number;
387
+ }[];
454
388
  };
455
- type UserBookingTicketEndpoints = Endpoint<"GET", "/users/bookings/tickets/:ticketId", UserBookingTicket, {
456
- tokenId: string;
457
- tokenValue: string;
458
- }> | Endpoint<"PUT", "/users/bookings/tickets/:ticketId/use", UserBookingTicket, {
459
- tokenId: string;
460
- tokenValue: string;
461
- }>;
462
-
463
- type UserBookingWithoutTickets = Omit<UserBooking, "tickets">;
464
- type UserBooking = Base & {
465
- tickets: UserBookingTicket[];
466
- order: Order;
467
- customer: OrganizationCustomer;
389
+ type OrganizationEventAnalytics = {
468
390
  event: OrganizationEvent;
391
+ metrics: {
392
+ views: number;
393
+ visits: number;
394
+ visitors: number;
395
+ totalRevenue: number;
396
+ totalOrders: number;
397
+ totalTicketsSold: number;
398
+ };
469
399
  };
470
- type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/~me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/~me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
400
+ type AnalyticsOptions = {
401
+ period?: "7d" | "30d" | "90d" | "12m";
402
+ startDate?: string;
403
+ endDate?: string;
404
+ };
405
+ type EventAnalyticsOptions = AnalyticsOptions & {
406
+ status?: "upcoming" | "past" | "all";
407
+ };
408
+ type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/analytics/overview", OrganizationAnalyticsOverview, AnalyticsOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/analytics/events", ArrayResult<OrganizationEventAnalytics>, ArrayOptions<OrganizationEventAnalytics> & EventAnalyticsOptions>;
471
409
 
472
410
  declare enum ProfileType {
473
411
  User = "user",
@@ -508,6 +446,8 @@ type UserProfileMetadata = BaseProfileMetadata & {
508
446
  type OrganizationProfileMetadata = BaseProfileMetadata & {
509
447
  eventsCount: number;
510
448
  viewsCount: number;
449
+ visitsCount: number;
450
+ visitorsCount: number;
511
451
  membersCount: number;
512
452
  };
513
453
  type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
@@ -516,551 +456,271 @@ type SearchProfilesOptions = ArrayOptions<Profile> & {
516
456
  };
517
457
  type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/@:username", Profile> | Endpoint<"GET", "/profiles/~me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/@:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/@:username/relationships/follow", boolean, undefined> | Endpoint<"POST", "/profiles/@:username/relationships/unfollow", boolean, undefined>;
518
458
 
519
- type UserCustomer = UserProfile & {
459
+ type OrganizationCustomer = UserProfile & {
520
460
  email?: string;
521
461
  phoneNumber?: string;
522
462
  firstName: string;
523
463
  lastName: string;
524
464
  fullName: string;
525
- metadata: UserCustomerMetadata;
465
+ birthDate: Date;
466
+ metadata: OrganizationCustomerMetadata;
526
467
  };
527
- type UserCustomerMetadata = UserProfileMetadata & {
468
+ type OrganizationCustomerMetadata = UserProfileMetadata & {
528
469
  bookingsCount: number;
529
470
  eventsAttendedCount: number;
530
471
  totalSpent: number;
531
472
  lastBookingAt?: Date;
532
473
  };
474
+ type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/customers", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/customers/:username", OrganizationCustomer>;
533
475
 
534
- type UserToken = Omit<Base, "updatedAt"> & {
535
- type: UserTokenType;
536
- value: string;
537
- expiresAt: Date;
538
- user?: User;
539
- identifier?: string;
476
+ type OrganizationEventTicket = Base & {
477
+ name: string;
478
+ description?: string;
479
+ price: Stripe__default.Price;
480
+ product: Stripe__default.Product;
481
+ fee: number;
482
+ quantity: number;
483
+ type: OrganizationEventTicketType;
484
+ category: OrganizationEventTicketCategory;
485
+ externalId?: string;
486
+ isVisible: boolean;
487
+ isFeesIncluded: boolean;
488
+ startAt?: Date;
489
+ endAt?: Date;
490
+ event: OrganizationEvent;
540
491
  };
541
- declare enum UserTokenType {
542
- Authentication = "authentication",
543
- BookingTicket = "booking_ticket",
544
- OrganizationInvite = "organization_invite",
545
- PasswordRecovery = "password_recovery",
546
- EmailValidation = "email_validation",
547
- PhoneValidation = "phone_validation"
492
+ declare enum OrganizationEventTicketType {
493
+ ETicket = "e-ticket",
494
+ Other = "other"
495
+ }
496
+ declare enum OrganizationEventTicketCategory {
497
+ Entry = "entry",
498
+ Package = "package",
499
+ Meal = "meal",
500
+ Drink = "drink",
501
+ Parking = "parking",
502
+ Accommodation = "accommodation",
503
+ Camping = "camping",
504
+ Locker = "locker",
505
+ Shuttle = "shuttle",
506
+ Other = "other"
548
507
  }
508
+ type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
549
509
 
550
- type User = Base & {
551
- identifier: UserIdentifier;
552
- password?: string;
553
- identity: UserIdentity;
554
- role: UserRole;
555
- addresses: Location$1[];
556
- preferences: UserPreferences;
557
- connections: UserConnection[];
558
- oauthProviders: UserOAuthProvider[];
559
- isVerified: boolean;
560
- isOfficial: boolean;
561
- };
562
- type UserIdentifier = {
563
- email?: string;
564
- emailVerified?: boolean;
565
- phoneNumber?: string;
566
- phoneNumberVerified?: boolean;
567
- username: string;
510
+ declare enum OrganizationNotificationType {
511
+ OrganizationCreated = "organization_created",
512
+ Follow = "follow",
513
+ OrganizationMemberInvited = "organization_member_invited",
514
+ OrganizationMemberJoined = "organization_member_joined",
515
+ OrganizationMemberLeft = "organization_member_left",
516
+ OrganizationMemberRoleUpdated = "organization_member_role_updated",
517
+ OrganizationEventCreated = "organization_event_created",
518
+ OrganizationEventUpdated = "organization_event_updated",
519
+ OrganizationEventCancelled = "organization_event_cancelled",
520
+ OrganizationEventPostponed = "organization_event_postponed",
521
+ OrganizationEventRescheduled = "organization_event_rescheduled",
522
+ OrganizationEventCancelRefundsCompleted = "organization_event_cancel_refunds_completed",
523
+ OrganizationEventCancelRefundsPartial = "organization_event_cancel_refunds_partial",
524
+ OrganizationEventMilestone = "organization_event_milestone",
525
+ OrderReceived = "order_received",
526
+ PayoutCompleted = "payout_completed",
527
+ BillingAccountConnected = "billing_account_connected"
528
+ }
529
+ type OrganizationNotificationBase = Base & {
530
+ type: OrganizationNotificationType;
531
+ isSeen: boolean;
532
+ message?: string;
533
+ metadata?: Record<string, unknown>;
568
534
  };
569
- type UserIdentity = UserProfile & {
570
- firstName: string;
571
- lastName: string;
572
- fullName: string;
573
- gender: UserIdentityGender;
574
- birthDate: Date;
575
- birthDateLastUpdatedAt?: Date;
535
+ type OrganizationNotificationWithActor = OrganizationNotificationBase & {
536
+ actor?: UserProfile;
576
537
  };
577
- declare enum UserRole {
578
- User = "user",
579
- Developer = "developer",
580
- Admin = "admin"
581
- }
582
- declare enum UserIdentityGender {
583
- Male = "male",
584
- Female = "female",
585
- NonBinary = "non-binary"
586
- }
587
- type UserPreferences = {
588
- language: Language;
589
- currency: Currency;
590
- notifications: {
591
- email: {
592
- newsletter: boolean;
593
- message: boolean;
594
- };
595
- push: {
596
- message: boolean;
597
- };
598
- };
538
+ type OrganizationNotification = OrganizationNotificationWithActor;
539
+ type OrganizationNotificationEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/notifications", ArrayResult<OrganizationNotification>, ArrayOptions<OrganizationNotification>> | Endpoint<"GET", "/organizations/@:organizationSlug/notifications/count", number, {
540
+ unseen?: boolean;
541
+ }> | Endpoint<"PUT", "/organizations/@:organizationSlug/notifications/read", void, undefined>;
542
+
543
+ type UserBookingTicket = Base & {
544
+ booking: UserBookingWithoutTickets;
545
+ ticket: OrganizationEventTicket;
546
+ token: UserToken;
547
+ useCount: number;
599
548
  };
600
- type UserConnection = {
601
- ip: string;
602
- os: UserConnectionOS;
603
- device: UserConnectionDevice;
604
- client: UserConnectionClient;
605
- updatedAt: Date;
606
- createdAt: Date;
549
+ type UserBookingTicketEndpoints = Endpoint<"GET", "/users/bookings/tickets/:ticketId", UserBookingTicket, {
550
+ tokenId: string;
551
+ tokenValue: string;
552
+ }> | Endpoint<"PUT", "/users/bookings/tickets/:ticketId/use", UserBookingTicket, {
553
+ tokenId: string;
554
+ tokenValue: string;
555
+ }>;
556
+
557
+ type UserBookingWithoutTickets = Omit<UserBooking, "tickets">;
558
+ type UserBooking = Base & {
559
+ tickets: UserBookingTicket[];
560
+ order: Order;
561
+ customer: OrganizationCustomer;
562
+ event: OrganizationEvent;
563
+ cancelledAt?: Date;
564
+ cancellationReason?: string;
607
565
  };
608
- type UserOAuthProvider = Base & {
609
- provider: OAuth2Provider;
610
- providerId: string;
611
- displayName?: string;
612
- username?: string;
613
- email?: string;
614
- emailVerified: boolean;
615
- lastUsedAt?: Date;
566
+ type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/~me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/~me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
567
+
568
+ type OrganizationOrder = Omit<Order, "user"> & {
569
+ customer: OrganizationCustomer;
616
570
  };
617
- type UserConnectionOS = {
618
- name: string;
619
- version: string;
571
+ type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/orders/:orderId", OrganizationOrder> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants/export", string>;
572
+
573
+ type OrganizationToken = Omit<Base, "updatedAt"> & {
574
+ type: OrganizationTokenType;
575
+ value: string;
576
+ expiresAt: Date;
577
+ organization?: Organization;
578
+ role?: OrganizationMemberRole;
620
579
  };
621
- type UserConnectionDevice = {
622
- type: string;
623
- brand: string;
580
+ declare enum OrganizationTokenType {
581
+ InvitationLink = "invitation_link"
582
+ }
583
+
584
+ type Organization = Base & {
585
+ slug: string;
586
+ identity: OrganizationIdentity;
587
+ members: OrganizationMember[];
588
+ location?: Location$1;
589
+ events: OrganizationEvent[];
590
+ savedTickets: OrganizationEventTicket[];
591
+ verified: boolean;
592
+ billing: OrganizationBilling;
624
593
  };
625
- type UserConnectionClient = {
626
- name: string;
627
- version: string;
594
+ type OrganizationBilling = {
595
+ account: string;
596
+ vatRate: number;
628
597
  };
629
- declare enum UserFileType {
598
+ type OrganizationBillingAccount = Stripe__default.Account;
599
+ declare enum OrganizationPayoutStatus {
600
+ Paid = "paid",
601
+ Pending = "pending",
602
+ InTransit = "in_transit",
603
+ Failed = "failed",
604
+ Canceled = "canceled"
605
+ }
606
+ type OrganizationBillingBalance = {
607
+ balance: {
608
+ amount: number;
609
+ currency: Currency;
610
+ }[];
611
+ pending: {
612
+ amount: number;
613
+ currency: Currency;
614
+ }[];
615
+ payouts: {
616
+ id: string;
617
+ amount: number;
618
+ currency: Currency;
619
+ status: OrganizationPayoutStatus;
620
+ arrival_date: number;
621
+ }[];
622
+ };
623
+ type OrganizationBillingPendingRevenue = {
624
+ amount: number;
625
+ count: number;
626
+ currency: Currency;
627
+ }[];
628
+ type OrganizationIdentity = OrganizationProfile;
629
+ declare enum OrganizationFileType {
630
630
  Avatar = "avatar",
631
631
  Banner = "banner"
632
632
  }
633
- type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
634
- exists: boolean;
635
- identifier: Partial<UserIdentifier>;
636
- suggestions?: string[];
637
- }, {
638
- identifier: boolean;
639
- suggestions?: boolean;
640
- }> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
633
+ type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
634
+ q: string;
635
+ limit?: number;
636
+ }> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationNotificationEndpoints | OrganizationOrdersEndpoints;
641
637
 
642
- declare enum OAuth2Provider {
643
- Google = "google",
644
- Facebook = "facebook",
645
- Twitter = "twitter"
638
+ type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
639
+
640
+ declare class CreateOrganizationEventStyleDto {
641
+ type: OrganizationEventStyleType;
642
+ emoji: string;
643
+ name: string;
646
644
  }
647
- type AuthMethod = OAuth2Provider | "password";
648
- declare enum AuthFlow {
649
- SignUp = "signup",
650
- SignIn = "signin"
645
+
646
+ declare class UpdateOrganizationEventStyleDto extends CreateOrganizationEventStyleDto {
651
647
  }
652
- type RecoveryResponse = {
653
- to: string;
648
+
649
+ type OrganizationEventStyle = Base & {
650
+ type: OrganizationEventStyleType;
651
+ emoji: string;
652
+ name: string;
653
+ slug: string;
654
654
  };
655
- type VerifyEmailResponse = {
656
- to: string;
655
+ declare enum OrganizationEventStyleType {
656
+ Music = "music",
657
+ Dress = "dress",
658
+ Sport = "sport",
659
+ Food = "food",
660
+ Art = "art"
661
+ }
662
+ type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
663
+
664
+ type OrganizationEventViewOptions = {
665
+ events: string | string[];
657
666
  };
658
- type AuthResponse = {
659
- user: User;
660
- accessToken: string;
661
- refreshToken: string;
662
- flow: AuthFlow;
667
+ type OrganizationEventViewResult = {
668
+ eventId: string;
669
+ visitsCount: number;
663
670
  };
664
- type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, undefined> | Endpoint<"POST", "/auth/refresh-token", AuthResponse, undefined> | Endpoint<"POST", "/auth/recovery", RecoveryResponse, RecoveryDto> | Endpoint<"POST", "/auth/recovery/reset", null, RecoveryResetDto> | Endpoint<"GET", "/oauth2/:provider", void> | Endpoint<"GET", "/oauth2/:provider/callback", void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}/callback`, void> | Endpoint<"POST", `/oauth2/${OAuth2Provider.Google}/one-tap`, AuthResponse, GoogleOneTapDto> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}/callback`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}/callback`, void> | Endpoint<"DELETE", "/oauth2/:provider", void, undefined> | Endpoint<"POST", "/auth/verify/email/send", VerifyEmailResponse, undefined> | Endpoint<"POST", "/auth/verify/email/confirm", null, VerifyEmailConfirmDto>;
671
+ type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
665
672
 
666
- type CareersOffice = {
667
- id: number | null;
668
- isDefault: boolean | null;
669
- name: string | null;
670
- city: string | null;
671
- countryIso: string | null;
673
+ type OrganizationEventStatusInput = {
674
+ lifecycleStatus?: OrganizationEventLifecycleStatus | null;
675
+ startAt: Date | string;
676
+ endAt: Date | string;
672
677
  };
673
- declare enum CareersJobStatus {
674
- All = "ALL",
675
- Online = "ONLINE",
676
- Archived = "ARCHIVED"
677
- }
678
- declare enum CareersWorkplaceType {
679
- Onsite = "ONSITE",
680
- Remote = "REMOTE",
681
- Hybrid = "HYBRID"
682
- }
683
- declare enum CareersRemoteType {
684
- Anywhere = "ANYWHERE",
685
- Country = "COUNTRY"
686
- }
687
- type CareersJob = {
688
- id: number;
689
- createdAt: string;
690
- lastUpdatedAt: string;
691
- externalId: null | string;
678
+ /**
679
+ * Resolves the canonical {@link OrganizationEventStatus} for an event.
680
+ *
681
+ * Priority: a sticky lifecycle status (cancelled/postponed) overrides time-based
682
+ * resolution. A rescheduled event falls back to temporal status once its new
683
+ * startAt passes, so it can transition into Ongoing/Ended naturally.
684
+ */
685
+ declare function computeOrganizationEventStatus(event: OrganizationEventStatusInput, now?: Date): OrganizationEventStatus;
686
+
687
+ type OrganizationEvent = Base & {
692
688
  title: string;
693
- status: CareersJobStatus;
694
- remote: boolean;
695
- office: CareersOffice;
696
- workplaceType: CareersWorkplaceType;
697
- remoteType?: CareersRemoteType;
698
- description?: string;
699
- categoryId?: number;
700
- employmentTypeId?: number;
701
- };
702
- type CareersCategory = {
703
- slug: string;
704
- name: string;
705
- subCategories?: (CareersCategory & {
706
- id: number;
707
- })[];
708
- };
709
- type CareersEmploymentType = {
710
- id: number;
711
- name: string;
689
+ description: string;
712
690
  slug: string;
713
- };
714
- type CareersJobsOptions = ArrayOptions<CareersJob> & {
715
- createdAtGte?: string;
716
- createdAtLt?: string;
717
- updatedAtGte?: string;
718
- updatedAtLt?: string;
719
- status?: CareersJobStatus;
720
- content?: boolean;
721
- titleLike?: string;
722
- countryCode?: string;
723
- externalId?: string;
724
- };
725
- type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
726
- countryCode?: string;
727
- cityNameLike?: string;
728
- };
729
- type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
730
- language?: string;
731
- };
732
- type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
733
- language?: string;
734
- };
735
- type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
736
- jobId: number;
737
- }> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
738
-
739
- declare enum ChannelMessageReportReason {
740
- Dislike = "dislike",
741
- HarassmentSelf = "harassment_self",
742
- HarassmentOther = "harassment_other",
743
- SexualHarassmentSelf = "sexual_harassment_self",
744
- NudesSelf = "nudes_self",
745
- SexualContent = "sexual_content",
746
- ChildInvolved = "child_involved",
747
- ThreatTarget = "threat_target",
748
- ViolentContent = "violent_content",
749
- HateSpeech = "hate_speech",
750
- Terrorism = "terrorism",
751
- DrugSale = "drug_sale",
752
- WeaponSale = "weapon_sale",
753
- SelfHarmConcern = "self_harm_concern",
754
- SelfHarmPromotion = "self_harm_promotion",
755
- Other = "other"
756
- }
757
- type ChannelMessageReadByEntry = {
758
- participant: ChannelParticipant;
759
- readAt: Date;
760
- };
761
- type ChannelMessageReaction = {
762
- emoji: string;
763
- participants: ChannelParticipant[];
764
- };
765
- type ChannelMessage = Base & {
766
- channel: Channel;
767
- sender: ChannelParticipant;
768
- content?: string;
769
- attachments: string[];
770
- isSent: boolean;
771
- isDelivered: boolean;
772
- isRead: boolean;
773
- readBy?: ChannelMessageReadByEntry[];
774
- isEdited: boolean;
775
- editedAt?: Date;
776
- replyTo?: ChannelMessage;
777
- reactions?: ChannelMessageReaction[];
778
- };
779
- type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
780
-
781
- declare enum ChannelType {
782
- Private = "private",
783
- Group = "group"
784
- }
785
- declare enum ChannelMemberRole {
786
- Member = "member",
787
- Admin = "admin"
788
- }
789
- type ChannelParticipant = Profile;
790
- declare enum ChannelStatus {
791
- Sent = "sent",
792
- Delivered = "delivered",
793
- Read = "read",
794
- Received = "received",
795
- Opened = "opened"
796
- }
797
- type Channel = Base & {
798
- type: ChannelType;
799
- participants: ChannelParticipant[];
800
- name?: string;
801
- lastMessageAt?: Date;
802
- status?: ChannelStatus;
803
- unreadCount?: number;
804
- };
805
- type ChannelMember = {
806
- participant: ChannelParticipant;
807
- joinedAt: Date;
808
- role?: ChannelMemberRole;
809
- lastReadAt?: Date;
810
- };
811
- type UserChannelCountOptions = {
812
- unseen?: boolean;
813
- };
814
- type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
815
-
816
- declare enum ErrorType {
817
- AuthEmailAlreadyExists = "auth.email-already-exists",
818
- AuthUsernameAlreadyExists = "auth.username-already-exists",
819
- AuthPhoneNumberAlreadyExists = "auth.phone-number-already-exists",
820
- AuthInvalidCredentials = "auth.invalid-credentials",
821
- AuthUserNotFound = "auth.user-not-found",
822
- AuthInvalidToken = "auth.invalid-token",
823
- AuthTokenExpired = "auth.token-expired",
824
- AuthUnauthorized = "auth.unauthorized",
825
- AuthPasswordMismatch = "auth.password-mismatch",
826
- AuthInvalidOAuth2Provider = "auth.invalid-oauth2-provider",
827
- AuthOAuth2Error = "auth.oauth2-error",
828
- UserNotFound = "user.not-found",
829
- UserInvalidUsername = "user.invalid-username",
830
- UserInvalidEmail = "user.invalid-email",
831
- UserInvalidPhoneNumber = "user.invalid-phone-number",
832
- UserInvalidPassword = "user.invalid-password",
833
- UserInvalidBirthDate = "user.invalid-birth-date",
834
- UserInvalidGender = "user.invalid-gender",
835
- UserInvalidRole = "user.invalid-role",
836
- UserInvalidPreferences = "user.invalid-preferences",
837
- UserInvalidLocation = "user.invalid-location",
838
- UserInvalidFile = "user.invalid-file",
839
- UserFileTooLarge = "user.file-too-large",
840
- UserUnsupportedFileType = "user.unsupported-file-type",
841
- OrganizationNotFound = "organization.not-found",
842
- OrganizationInvalidSlug = "organization.invalid-slug",
843
- OrganizationInvalidName = "organization.invalid-name",
844
- OrganizationInvalidDescription = "organization.invalid-description",
845
- OrganizationInvalidLocation = "organization.invalid-location",
846
- OrganizationInvalidSocialLink = "organization.invalid-social-link",
847
- OrganizationAlreadyExists = "organization.already-exists",
848
- OrganizationUnauthorized = "organization.unauthorized",
849
- OrganizationMemberNotFound = "organization.member-not-found",
850
- OrganizationMemberInvalidRole = "organization.member-invalid-role",
851
- OrganizationMemberAlreadyExists = "organization.member-already-exists",
852
- EventNotFound = "event.not-found",
853
- EventInvalidTitle = "event.invalid-title",
854
- EventInvalidDescription = "event.invalid-description",
855
- EventInvalidLocation = "event.invalid-location",
856
- EventInvalidDates = "event.invalid-dates",
857
- EventInvalidTickets = "event.invalid-tickets",
858
- EventInvalidStyles = "event.invalid-styles",
859
- EventInvalidType = "event.invalid-type",
860
- EventInvalidVisibility = "event.invalid-visibility",
861
- EventUnavailable = "event.unavailable",
862
- EventTicketNotFound = "event.ticket-not-found",
863
- EventTicketUnavailable = "event.ticket-unavailable",
864
- EventTicketInvalidQuantity = "event.ticket-invalid-quantity",
865
- OrderNotFound = "order.not-found",
866
- OrderInvalidStatus = "order.invalid-status",
867
- OrderInvalidPayment = "order.invalid-payment",
868
- OrderPaymentFailed = "order.payment-failed",
869
- OrderAlreadyPaid = "order.already-paid",
870
- OrderCancelled = "order.cancelled",
871
- OrderRefunded = "order.refunded",
872
- OrderExpired = "order.expired",
873
- BookingNotFound = "booking.not-found",
874
- BookingInvalidStatus = "booking.invalid-status",
875
- BookingInvalidTickets = "booking.invalid-tickets",
876
- BookingTicketNotFound = "booking.ticket-not-found",
877
- BookingTicketInvalidToken = "booking.ticket-invalid-token",
878
- BookingTicketExpired = "booking.ticket-expired",
879
- BookingTicketUsed = "booking.ticket-used",
880
- FileNotFound = "file.not-found",
881
- FileInvalidType = "file.invalid-type",
882
- FileTooLarge = "file.too-large",
883
- FileUploadFailed = "file.upload-failed",
884
- ValidationError = "validation.error",
885
- DatabaseError = "database.error",
886
- InternalServerError = "server.internal-error",
887
- NotFound = "not-found",
888
- BadRequest = "bad-request",
889
- Unauthorized = "unauthorized",
890
- Forbidden = "forbidden",
891
- TooManyRequests = "too-many-requests",
892
- ServiceUnavailable = "service-unavailable",
893
- TooManyRequestsAuth = "rate-limit.auth",
894
- TooManyRequestsApi = "rate-limit.api",
895
- WebhookInvalidSignature = "webhook.invalid-signature",
896
- WebhookInvalidEvent = "webhook.invalid-event",
897
- WebhookProcessingFailed = "webhook.processing-failed",
898
- PaymentRequired = "payment.required",
899
- PaymentMethodRequired = "payment.method-required",
900
- PaymentFailed = "payment.failed",
901
- PaymentCancelled = "payment.cancelled",
902
- PaymentRefunded = "payment.refunded",
903
- BillingInvalidAccount = "billing.invalid-account",
904
- BillingAccountRequired = "billing.account-required",
905
- NotificationInvalidType = "notification.invalid-type",
906
- NotificationSendingFailed = "notification.sending-failed",
907
- CacheError = "cache.error",
908
- CacheMiss = "cache.miss",
909
- ExternalServiceError = "external-service.error",
910
- ExternalServiceTimeout = "external-service.timeout",
911
- ExternalServiceUnavailable = "external-service.unavailable"
912
- }
913
-
914
- declare enum FeedType {
915
- Following = "following",
916
- Discover = "discover"
917
- }
918
- type FeedPost = UserPost | OrganizationEvent[];
919
- type FeedEndpoints = Endpoint<"GET", "/feed/following", ArrayResult<FeedPost>, ArrayOptions<FeedPost>> | Endpoint<"GET", "/feed/discover", ArrayResult<FeedPost>, ArrayOptions<FeedPost>>;
920
-
921
- interface Health<T extends string = string> extends HealthCheckResult {
922
- info?: Record<T, HealthIndicatorResult[T]>;
923
- error?: Record<T, HealthIndicatorResult[T]>;
924
- details: Record<T, HealthIndicatorResult[T]>;
925
- }
926
- type MemorySnapshot = {
927
- heapUsed: number;
928
- heapTotal: number;
929
- rss: number;
930
- external: number;
931
- };
932
- type HealthMemory = {
933
- before: MemorySnapshot;
934
- afterGc: MemorySnapshot;
935
- };
936
- type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">> | Endpoint<"GET", "/health/memory", HealthMemory>;
937
-
938
- /**
939
- * Represents a GeoJSON point with specific geographic coordinates.
940
- *
941
- * @see https://geojson.org/geojson-spec.html#point
942
- *
943
- * @property {"Point"} type - The type of the geometry, which is always "Point" for a GeoJSON point.
944
- * @property {[number, number]} coordinates - The coordinates of the point, represented as [longitude, latitude].
945
- */
946
- type GeoPoint = {
947
- type: "Point";
948
- coordinates: [number, number];
949
- };
950
- type Location$1 = {
951
- name?: string;
952
- address: string;
953
- zipCode: string;
954
- city: string;
955
- country: string;
956
- geometry: GeoPoint;
957
- };
958
- type GeoSearchAggregation<T> = {
959
- metadata: {
960
- total: number;
961
- }[];
962
- data: T[];
963
- };
964
- type Distance<T> = T & {
965
- distance: number;
966
- };
967
-
968
- type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
969
- email: string;
970
- }>;
971
-
972
- type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
973
-
974
- declare class CreateOrganizationEventStyleDto {
975
- type: OrganizationEventStyleType;
976
- emoji: string;
977
- name: string;
978
- }
979
-
980
- declare class UpdateOrganizationEventStyleDto extends CreateOrganizationEventStyleDto {
981
- }
982
-
983
- type OrganizationEventStyle = Base & {
984
- type: OrganizationEventStyleType;
985
- emoji: string;
986
- name: string;
987
- slug: string;
988
- };
989
- declare enum OrganizationEventStyleType {
990
- Music = "music",
991
- Dress = "dress",
992
- Sport = "sport",
993
- Food = "food",
994
- Art = "art"
995
- }
996
- type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
997
-
998
- type OrganizationEventViewOptions = {
999
- events: string | string[];
1000
- };
1001
- type OrganizationEventViewResult = {
1002
- eventId: string;
1003
- viewsCount: number;
1004
- };
1005
- type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
1006
-
1007
- type OrganizationEventTicket = Base & {
1008
- name: string;
1009
- description?: string;
1010
- price: Stripe__default.Price;
1011
- product: Stripe__default.Product;
1012
- fee: number;
1013
- quantity: number;
1014
- type: OrganizationEventTicketType;
1015
- category: OrganizationEventTicketCategory;
1016
- externalId?: string;
1017
- isVisible: boolean;
1018
- isFeesIncluded: boolean;
1019
- startAt?: Date;
1020
- endAt?: Date;
1021
- event: OrganizationEvent;
1022
- };
1023
- declare enum OrganizationEventTicketType {
1024
- ETicket = "e-ticket",
1025
- Other = "other"
1026
- }
1027
- declare enum OrganizationEventTicketCategory {
1028
- Entry = "entry",
1029
- Package = "package",
1030
- Meal = "meal",
1031
- Drink = "drink",
1032
- Parking = "parking",
1033
- Accommodation = "accommodation",
1034
- Camping = "camping",
1035
- Locker = "locker",
1036
- Shuttle = "shuttle",
1037
- Other = "other"
1038
- }
1039
- type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
1040
-
1041
- type OrganizationEvent = Base & {
1042
- title: string;
1043
- description: string;
1044
- slug: string;
1045
- organization: OrganizationProfile;
1046
- type: OrganizationEventType;
1047
- visibility: OrganizationEventVisibilityType;
1048
- currency: Currency;
1049
- flyers: string[];
1050
- trailers: string[];
1051
- location: Location$1;
1052
- tickets: OrganizationEventTicket[];
1053
- styles: OrganizationEventStyle[];
1054
- artists: EventArtistRef[];
1055
- status: OrganizationEventStatus;
1056
- viewsCount: number;
1057
- sessionsCount: number;
1058
- totalViewsCount: number;
1059
- averageViewsPerSessionCount: number;
1060
- hypeCount: number;
1061
- minPrice: number;
1062
- startAt: Date;
1063
- endAt: Date;
691
+ organization: OrganizationProfile;
692
+ type: OrganizationEventType;
693
+ visibility: OrganizationEventVisibilityType;
694
+ currency: Currency;
695
+ flyers: string[];
696
+ trailers: string[];
697
+ location: Location$1;
698
+ tickets: OrganizationEventTicket[];
699
+ styles: OrganizationEventStyle[];
700
+ artists: EventArtistRef[];
701
+ status: OrganizationEventStatus;
702
+ lifecycleStatus?: OrganizationEventLifecycleStatus;
703
+ cancelledAt?: Date;
704
+ cancelledReason?: string;
705
+ cancelledBy?: OrganizationEventCancelledBy;
706
+ postponedAt?: Date;
707
+ postponedReason?: string;
708
+ rescheduledFromAt?: Date;
709
+ rescheduledFromEndAt?: Date;
710
+ rescheduledAt?: Date;
711
+ rescheduledReason?: string;
712
+ viewsCount: number;
713
+ visitsCount: number;
714
+ visitorsCount: number;
715
+ bouncesCount: number;
716
+ totalDurationSeconds: number;
717
+ averageViewsPerVisitorCount: number;
718
+ bounceRate: number;
719
+ averageVisitDurationSeconds: number;
720
+ hypeCount: number;
721
+ minPrice: number;
722
+ startAt: Date;
723
+ endAt: Date;
1064
724
  };
1065
725
  declare enum OrganizationEventType {
1066
726
  Clubbing = "clubbing",
@@ -1091,215 +751,645 @@ declare enum OrganizationEventVisibilityType {
1091
751
  Unlisted = "unlisted",
1092
752
  Private = "private"
1093
753
  }
1094
- declare enum OrganizationEventFileType {
1095
- Flyer = "flyer",
1096
- Trailer = "trailer"
754
+ declare enum OrganizationEventFileType {
755
+ Flyer = "flyer",
756
+ Trailer = "trailer"
757
+ }
758
+ declare enum OrganizationEventStatus {
759
+ Upcoming = "upcoming",
760
+ Ongoing = "ongoing",
761
+ Ended = "ended",
762
+ Cancelled = "cancelled",
763
+ Postponed = "postponed",
764
+ Rescheduled = "rescheduled"
765
+ }
766
+ declare enum OrganizationEventLifecycleStatus {
767
+ Cancelled = "cancelled",
768
+ Postponed = "postponed",
769
+ Rescheduled = "rescheduled"
770
+ }
771
+ declare enum OrganizationEventCancelledBy {
772
+ Organizer = "organizer",
773
+ Support = "support",
774
+ ExternalSource = "external_source"
775
+ }
776
+ type ExternalOffer = {
777
+ name: string;
778
+ description?: string;
779
+ price: number;
780
+ available: boolean;
781
+ };
782
+ type ExternalContact = {
783
+ type: "phone" | "email" | "website";
784
+ value: string;
785
+ };
786
+ type ExternalSource = {
787
+ organizerName: string;
788
+ contacts: ExternalContact[];
789
+ offers: ExternalOffer[];
790
+ };
791
+ type OrganizationEventRequestResponse = {
792
+ contacts: ExternalContact[];
793
+ };
794
+ type OrganizationEventNearbyOptions = ArrayOptions<OrganizationEvent> & {
795
+ latitude: number;
796
+ longitude: number;
797
+ radius?: number;
798
+ };
799
+ type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
800
+ status?: OrganizationEventStatus | OrganizationEventStatus[];
801
+ types?: OrganizationEventType | OrganizationEventType[];
802
+ styles?: string | string[];
803
+ city?: string;
804
+ country?: string;
805
+ };
806
+ type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
807
+ q: string;
808
+ };
809
+ type OrganizationEventCalendar = {
810
+ [date: string]: OrganizationEvent[];
811
+ };
812
+ type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/cancel", OrganizationEvent, CancelOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/postpone", OrganizationEvent, PostponeOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/reschedule", OrganizationEvent, RescheduleOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/reactivate", OrganizationEvent, undefined> | OrganizationEventOrderEndpoints | OrganizationEventPromoCodeEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
813
+
814
+ declare enum UserNotificationType {
815
+ Follow = "follow",
816
+ OrganizationEventCancelled = "organization_event_cancelled",
817
+ OrganizationEventPostponed = "organization_event_postponed",
818
+ OrganizationEventRescheduled = "organization_event_rescheduled"
819
+ }
820
+ type UserNotificationBase = Base & {
821
+ type: UserNotificationType;
822
+ isSeen: boolean;
823
+ };
824
+ type UserNotificationFollow = UserNotificationBase & {
825
+ type: UserNotificationType.Follow;
826
+ follower: UserProfile;
827
+ };
828
+ type UserNotificationOrganizationEventCancelled = UserNotificationBase & {
829
+ type: UserNotificationType.OrganizationEventCancelled;
830
+ event: OrganizationEvent;
831
+ reason?: string;
832
+ refundAmount?: number;
833
+ refundStatus?: OrderRefundStatus;
834
+ };
835
+ type UserNotificationOrganizationEventPostponed = UserNotificationBase & {
836
+ type: UserNotificationType.OrganizationEventPostponed;
837
+ event: OrganizationEvent;
838
+ reason?: string;
839
+ };
840
+ type UserNotificationOrganizationEventRescheduled = UserNotificationBase & {
841
+ type: UserNotificationType.OrganizationEventRescheduled;
842
+ event: OrganizationEvent;
843
+ reason?: string;
844
+ previousStartAt: Date;
845
+ previousEndAt: Date;
846
+ };
847
+ type UserNotification = UserNotificationFollow | UserNotificationOrganizationEventCancelled | UserNotificationOrganizationEventPostponed | UserNotificationOrganizationEventRescheduled;
848
+ type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
849
+ unseen?: boolean;
850
+ }> | Endpoint<"PUT", "/users/~me/notifications/read", void, undefined>;
851
+
852
+ declare class CreateUserPostCommentDto {
853
+ content: string;
854
+ replyToId?: string;
855
+ }
856
+
857
+ declare class UpdateUserPostCommentDto {
858
+ content: string;
859
+ }
860
+
861
+ declare class CreateUserPostDto {
862
+ content?: string;
863
+ mediaUrls: string[];
864
+ visibility?: UserPostVisibility;
865
+ }
866
+
867
+ declare class CreateUserPostRepostDto {
868
+ comment?: string;
869
+ }
870
+
871
+ declare class UpdateUserPostDto {
872
+ content?: string;
873
+ visibility?: UserPostVisibility;
874
+ }
875
+
876
+ type UserPostComment = Base & {
877
+ post: UserPost;
878
+ author: UserProfile;
879
+ content: string;
880
+ replyTo?: UserPostComment;
881
+ isEdited: boolean;
882
+ editedAt?: Date;
883
+ };
884
+ type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void, null>;
885
+
886
+ declare enum UserPostMediaType {
887
+ Image = "image",
888
+ Video = "video"
889
+ }
890
+ type UserPostMedia = {
891
+ url: string;
892
+ type: UserPostMediaType;
893
+ width: number;
894
+ height: number;
895
+ description?: string;
896
+ isNSFW: boolean;
897
+ thumbnailUrl?: string;
898
+ duration?: number;
899
+ };
900
+ type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
901
+
902
+ type UserPostRepost = Base & {
903
+ originalPost: UserPost;
904
+ author: UserProfile;
905
+ comment?: string;
906
+ };
907
+ type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
908
+
909
+ type UserPostViewOptions = {
910
+ posts: string | string[];
911
+ };
912
+ type UserPostViewResult = {
913
+ postId: string;
914
+ visitsCount: number;
915
+ };
916
+ type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
917
+
918
+ declare enum UserPostVisibility {
919
+ Public = "public",
920
+ Followers = "followers",
921
+ Private = "private"
922
+ }
923
+ type UserPost = Base & {
924
+ author: UserProfile;
925
+ content?: string;
926
+ media: UserPostMedia[];
927
+ visibility: UserPostVisibility;
928
+ metrics: {
929
+ reposts: number;
930
+ comments: number;
931
+ views: number;
932
+ visits: number;
933
+ visitors: number;
934
+ };
935
+ isReposted?: boolean;
936
+ isEdited: boolean;
937
+ editedAt?: Date;
938
+ };
939
+ type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
940
+
941
+ type UserCustomer = UserProfile & {
942
+ email?: string;
943
+ phoneNumber?: string;
944
+ firstName: string;
945
+ lastName: string;
946
+ fullName: string;
947
+ metadata: UserCustomerMetadata;
948
+ };
949
+ type UserCustomerMetadata = UserProfileMetadata & {
950
+ bookingsCount: number;
951
+ eventsAttendedCount: number;
952
+ totalSpent: number;
953
+ lastBookingAt?: Date;
954
+ };
955
+
956
+ type UserToken = Omit<Base, "updatedAt"> & {
957
+ type: UserTokenType;
958
+ value: string;
959
+ expiresAt: Date;
960
+ user?: User;
961
+ identifier?: string;
962
+ };
963
+ declare enum UserTokenType {
964
+ Authentication = "authentication",
965
+ BookingTicket = "booking_ticket",
966
+ OrganizationInvite = "organization_invite",
967
+ PasswordRecovery = "password_recovery",
968
+ EmailValidation = "email_validation",
969
+ PhoneValidation = "phone_validation"
970
+ }
971
+
972
+ type User = Base & {
973
+ identifier: UserIdentifier;
974
+ password?: string;
975
+ identity: UserIdentity;
976
+ role: UserRole;
977
+ addresses: Location$1[];
978
+ preferences: UserPreferences;
979
+ connections: UserConnection[];
980
+ oauthProviders: UserOAuthProvider[];
981
+ isVerified: boolean;
982
+ isOfficial: boolean;
983
+ };
984
+ type UserIdentifier = {
985
+ email?: string;
986
+ emailVerified?: boolean;
987
+ phoneNumber?: string;
988
+ phoneNumberVerified?: boolean;
989
+ username: string;
990
+ };
991
+ type UserIdentity = UserProfile & {
992
+ firstName: string;
993
+ lastName: string;
994
+ fullName: string;
995
+ gender: UserIdentityGender;
996
+ birthDate: Date;
997
+ birthDateLastUpdatedAt?: Date;
998
+ };
999
+ declare enum UserRole {
1000
+ User = "user",
1001
+ Developer = "developer",
1002
+ Admin = "admin"
1003
+ }
1004
+ declare enum UserIdentityGender {
1005
+ Male = "male",
1006
+ Female = "female",
1007
+ NonBinary = "non-binary"
1008
+ }
1009
+ type UserPreferences = {
1010
+ language: Language;
1011
+ currency: Currency;
1012
+ notifications: {
1013
+ email: {
1014
+ newsletter: boolean;
1015
+ message: boolean;
1016
+ };
1017
+ push: {
1018
+ message: boolean;
1019
+ };
1020
+ };
1021
+ };
1022
+ type UserConnection = {
1023
+ ip: string;
1024
+ os: UserConnectionOS;
1025
+ device: UserConnectionDevice;
1026
+ client: UserConnectionClient;
1027
+ updatedAt: Date;
1028
+ createdAt: Date;
1029
+ };
1030
+ type UserOAuthProvider = Base & {
1031
+ provider: OAuth2Provider;
1032
+ providerId: string;
1033
+ displayName?: string;
1034
+ username?: string;
1035
+ email?: string;
1036
+ emailVerified: boolean;
1037
+ lastUsedAt?: Date;
1038
+ };
1039
+ type UserConnectionOS = {
1040
+ name: string;
1041
+ version: string;
1042
+ };
1043
+ type UserConnectionDevice = {
1044
+ type: string;
1045
+ brand: string;
1046
+ };
1047
+ type UserConnectionClient = {
1048
+ name: string;
1049
+ version: string;
1050
+ };
1051
+ declare enum UserFileType {
1052
+ Avatar = "avatar",
1053
+ Banner = "banner"
1054
+ }
1055
+ type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
1056
+ exists: boolean;
1057
+ identifier: Partial<UserIdentifier>;
1058
+ suggestions?: string[];
1059
+ }, {
1060
+ identifier: boolean;
1061
+ suggestions?: boolean;
1062
+ }> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
1063
+
1064
+ declare enum OAuth2Provider {
1065
+ Google = "google",
1066
+ Facebook = "facebook",
1067
+ Twitter = "twitter"
1097
1068
  }
1098
- declare enum OrganizationEventStatus {
1099
- Upcoming = "upcoming",
1100
- Ongoing = "ongoing",
1101
- Ended = "ended"
1069
+ type AuthMethod = OAuth2Provider | "password";
1070
+ declare enum AuthFlow {
1071
+ SignUp = "signup",
1072
+ SignIn = "signin"
1102
1073
  }
1103
- type ExternalOffer = {
1104
- name: string;
1105
- description?: string;
1106
- price: number;
1107
- available: boolean;
1108
- };
1109
- type ExternalContact = {
1110
- type: "phone" | "email" | "website";
1111
- value: string;
1074
+ type RecoveryResponse = {
1075
+ to: string;
1112
1076
  };
1113
- type ExternalSource = {
1114
- organizerName: string;
1115
- contacts: ExternalContact[];
1116
- offers: ExternalOffer[];
1077
+ type VerifyEmailResponse = {
1078
+ to: string;
1117
1079
  };
1118
- type OrganizationEventRequestResponse = {
1119
- contacts: ExternalContact[];
1080
+ type AuthResponse = {
1081
+ user: User;
1082
+ accessToken: string;
1083
+ refreshToken: string;
1084
+ flow: AuthFlow;
1120
1085
  };
1121
- type OrganizationEventNearbyOptions = ArrayOptions<OrganizationEvent> & {
1122
- latitude: number;
1123
- longitude: number;
1124
- radius?: number;
1086
+ type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, undefined> | Endpoint<"POST", "/auth/refresh-token", AuthResponse, undefined> | Endpoint<"POST", "/auth/recovery", RecoveryResponse, RecoveryDto> | Endpoint<"POST", "/auth/recovery/reset", null, RecoveryResetDto> | Endpoint<"GET", "/oauth2/:provider", void> | Endpoint<"GET", "/oauth2/:provider/callback", void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}/callback`, void> | Endpoint<"POST", `/oauth2/${OAuth2Provider.Google}/one-tap`, AuthResponse, GoogleOneTapDto> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}/callback`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}/callback`, void> | Endpoint<"DELETE", "/oauth2/:provider", void, undefined> | Endpoint<"POST", "/auth/verify/email/send", VerifyEmailResponse, undefined> | Endpoint<"POST", "/auth/verify/email/confirm", null, VerifyEmailConfirmDto>;
1087
+
1088
+ type CareersOffice = {
1089
+ id: number | null;
1090
+ isDefault: boolean | null;
1091
+ name: string | null;
1092
+ city: string | null;
1093
+ countryIso: string | null;
1125
1094
  };
1126
- type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
1127
- status?: OrganizationEventStatus | OrganizationEventStatus[];
1128
- types?: OrganizationEventType | OrganizationEventType[];
1129
- styles?: string | string[];
1130
- city?: string;
1131
- country?: string;
1095
+ declare enum CareersJobStatus {
1096
+ All = "ALL",
1097
+ Online = "ONLINE",
1098
+ Archived = "ARCHIVED"
1099
+ }
1100
+ declare enum CareersWorkplaceType {
1101
+ Onsite = "ONSITE",
1102
+ Remote = "REMOTE",
1103
+ Hybrid = "HYBRID"
1104
+ }
1105
+ declare enum CareersRemoteType {
1106
+ Anywhere = "ANYWHERE",
1107
+ Country = "COUNTRY"
1108
+ }
1109
+ type CareersJob = {
1110
+ id: number;
1111
+ createdAt: string;
1112
+ lastUpdatedAt: string;
1113
+ externalId: null | string;
1114
+ title: string;
1115
+ status: CareersJobStatus;
1116
+ remote: boolean;
1117
+ office: CareersOffice;
1118
+ workplaceType: CareersWorkplaceType;
1119
+ remoteType?: CareersRemoteType;
1120
+ description?: string;
1121
+ categoryId?: number;
1122
+ employmentTypeId?: number;
1132
1123
  };
1133
- type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
1134
- q: string;
1124
+ type CareersCategory = {
1125
+ slug: string;
1126
+ name: string;
1127
+ subCategories?: (CareersCategory & {
1128
+ id: number;
1129
+ })[];
1135
1130
  };
1136
- type OrganizationEventCalendar = {
1137
- [date: string]: OrganizationEvent[];
1131
+ type CareersEmploymentType = {
1132
+ id: number;
1133
+ name: string;
1134
+ slug: string;
1138
1135
  };
1139
- type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | OrganizationEventOrderEndpoints | OrganizationEventPromoCodeEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
1140
-
1141
- type OrganizationAnalyticsOverview = {
1142
- metrics: {
1143
- totalRevenue: {
1144
- current: number;
1145
- previous: number;
1146
- percentageChange: number;
1147
- };
1148
- totalOrders: {
1149
- current: number;
1150
- previous: number;
1151
- percentageChange: number;
1152
- };
1153
- totalTicketsSold: {
1154
- current: number;
1155
- previous: number;
1156
- percentageChange: number;
1157
- };
1158
- activeEvents: number;
1159
- };
1160
- chartData: {
1161
- date: string;
1162
- revenues: number;
1163
- orders: number;
1164
- ticketsSold: number;
1165
- events: number;
1166
- }[];
1136
+ type CareersJobsOptions = ArrayOptions<CareersJob> & {
1137
+ createdAtGte?: string;
1138
+ createdAtLt?: string;
1139
+ updatedAtGte?: string;
1140
+ updatedAtLt?: string;
1141
+ status?: CareersJobStatus;
1142
+ content?: boolean;
1143
+ titleLike?: string;
1144
+ countryCode?: string;
1145
+ externalId?: string;
1167
1146
  };
1168
- type OrganizationEventAnalytics = {
1169
- event: OrganizationEvent;
1170
- metrics: {
1171
- totalViews: number;
1172
- uniqueViews: number;
1173
- sessionsCount: number;
1174
- totalRevenue: number;
1175
- totalOrders: number;
1176
- totalTicketsSold: number;
1177
- };
1147
+ type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
1148
+ countryCode?: string;
1149
+ cityNameLike?: string;
1178
1150
  };
1179
- type AnalyticsOptions = {
1180
- period?: "7d" | "30d" | "90d" | "12m";
1181
- startDate?: string;
1182
- endDate?: string;
1151
+ type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
1152
+ language?: string;
1183
1153
  };
1184
- type EventAnalyticsOptions = AnalyticsOptions & {
1185
- status?: "upcoming" | "past" | "all";
1154
+ type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
1155
+ language?: string;
1186
1156
  };
1187
- type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/analytics/overview", OrganizationAnalyticsOverview, AnalyticsOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/analytics/events", ArrayResult<OrganizationEventAnalytics>, ArrayOptions<OrganizationEventAnalytics> & EventAnalyticsOptions>;
1157
+ type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
1158
+ jobId: number;
1159
+ }> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
1188
1160
 
1189
- type OrganizationCustomer = UserProfile & {
1190
- email?: string;
1191
- phoneNumber?: string;
1192
- firstName: string;
1193
- lastName: string;
1194
- fullName: string;
1195
- birthDate: Date;
1196
- metadata: OrganizationCustomerMetadata;
1161
+ declare enum ChannelMessageReportReason {
1162
+ Dislike = "dislike",
1163
+ HarassmentSelf = "harassment_self",
1164
+ HarassmentOther = "harassment_other",
1165
+ SexualHarassmentSelf = "sexual_harassment_self",
1166
+ NudesSelf = "nudes_self",
1167
+ SexualContent = "sexual_content",
1168
+ ChildInvolved = "child_involved",
1169
+ ThreatTarget = "threat_target",
1170
+ ViolentContent = "violent_content",
1171
+ HateSpeech = "hate_speech",
1172
+ Terrorism = "terrorism",
1173
+ DrugSale = "drug_sale",
1174
+ WeaponSale = "weapon_sale",
1175
+ SelfHarmConcern = "self_harm_concern",
1176
+ SelfHarmPromotion = "self_harm_promotion",
1177
+ Other = "other"
1178
+ }
1179
+ type ChannelMessageReadByEntry = {
1180
+ participant: ChannelParticipant;
1181
+ readAt: Date;
1197
1182
  };
1198
- type OrganizationCustomerMetadata = UserProfileMetadata & {
1199
- bookingsCount: number;
1200
- eventsAttendedCount: number;
1201
- totalSpent: number;
1202
- lastBookingAt?: Date;
1183
+ type ChannelMessageReaction = {
1184
+ emoji: string;
1185
+ participants: ChannelParticipant[];
1203
1186
  };
1204
- type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/customers", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/customers/:username", OrganizationCustomer>;
1187
+ type ChannelMessage = Base & {
1188
+ channel: Channel;
1189
+ sender: ChannelParticipant;
1190
+ content?: string;
1191
+ attachments: string[];
1192
+ isSent: boolean;
1193
+ isDelivered: boolean;
1194
+ isRead: boolean;
1195
+ readBy?: ChannelMessageReadByEntry[];
1196
+ isEdited: boolean;
1197
+ editedAt?: Date;
1198
+ replyTo?: ChannelMessage;
1199
+ reactions?: ChannelMessageReaction[];
1200
+ };
1201
+ type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
1205
1202
 
1206
- declare enum OrganizationNotificationType {
1207
- OrganizationCreated = "organization_created",
1208
- Follow = "follow",
1209
- MemberInvited = "member_invited",
1210
- MemberJoined = "member_joined",
1211
- MemberLeft = "member_left",
1212
- MemberRoleUpdated = "member_role_updated",
1213
- EventCreated = "event_created",
1214
- EventUpdated = "event_updated",
1215
- OrderReceived = "order_received",
1216
- PayoutCompleted = "payout_completed",
1217
- EventMilestone = "event_milestone",
1218
- BillingAccountConnected = "billing_account_connected"
1203
+ declare enum ChannelType {
1204
+ Private = "private",
1205
+ Group = "group"
1206
+ }
1207
+ declare enum ChannelMemberRole {
1208
+ Member = "member",
1209
+ Admin = "admin"
1210
+ }
1211
+ type ChannelParticipant = Profile;
1212
+ declare enum ChannelStatus {
1213
+ Sent = "sent",
1214
+ Delivered = "delivered",
1215
+ Read = "read",
1216
+ Received = "received",
1217
+ Opened = "opened"
1219
1218
  }
1220
- type OrganizationNotificationBase = Base & {
1221
- type: OrganizationNotificationType;
1222
- isSeen: boolean;
1223
- message?: string;
1224
- metadata?: Record<string, unknown>;
1219
+ type Channel = Base & {
1220
+ type: ChannelType;
1221
+ participants: ChannelParticipant[];
1222
+ name?: string;
1223
+ lastMessageAt?: Date;
1224
+ status?: ChannelStatus;
1225
+ unreadCount?: number;
1225
1226
  };
1226
- type OrganizationNotificationWithActor = OrganizationNotificationBase & {
1227
- actor?: UserProfile;
1227
+ type ChannelMember = {
1228
+ participant: ChannelParticipant;
1229
+ joinedAt: Date;
1230
+ role?: ChannelMemberRole;
1231
+ lastReadAt?: Date;
1228
1232
  };
1229
- type OrganizationNotification = OrganizationNotificationWithActor;
1230
- type OrganizationNotificationEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/notifications", ArrayResult<OrganizationNotification>, ArrayOptions<OrganizationNotification>> | Endpoint<"GET", "/organizations/@:organizationSlug/notifications/count", number, {
1233
+ type UserChannelCountOptions = {
1231
1234
  unseen?: boolean;
1232
- }> | Endpoint<"PUT", "/organizations/@:organizationSlug/notifications/read", void, undefined>;
1233
-
1234
- type OrganizationOrder = Omit<Order, "user"> & {
1235
- customer: OrganizationCustomer;
1236
1235
  };
1237
- type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/orders/:orderId", OrganizationOrder> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants/export", string>;
1236
+ type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
1238
1237
 
1239
- type OrganizationToken = Omit<Base, "updatedAt"> & {
1240
- type: OrganizationTokenType;
1241
- value: string;
1242
- expiresAt: Date;
1243
- organization?: Organization;
1244
- role?: OrganizationMemberRole;
1245
- };
1246
- declare enum OrganizationTokenType {
1247
- InvitationLink = "invitation_link"
1238
+ declare enum ErrorType {
1239
+ AuthEmailAlreadyExists = "auth.email-already-exists",
1240
+ AuthUsernameAlreadyExists = "auth.username-already-exists",
1241
+ AuthPhoneNumberAlreadyExists = "auth.phone-number-already-exists",
1242
+ AuthInvalidCredentials = "auth.invalid-credentials",
1243
+ AuthUserNotFound = "auth.user-not-found",
1244
+ AuthInvalidToken = "auth.invalid-token",
1245
+ AuthTokenExpired = "auth.token-expired",
1246
+ AuthUnauthorized = "auth.unauthorized",
1247
+ AuthPasswordMismatch = "auth.password-mismatch",
1248
+ AuthInvalidOAuth2Provider = "auth.invalid-oauth2-provider",
1249
+ AuthOAuth2Error = "auth.oauth2-error",
1250
+ UserNotFound = "user.not-found",
1251
+ UserInvalidUsername = "user.invalid-username",
1252
+ UserInvalidEmail = "user.invalid-email",
1253
+ UserInvalidPhoneNumber = "user.invalid-phone-number",
1254
+ UserInvalidPassword = "user.invalid-password",
1255
+ UserInvalidBirthDate = "user.invalid-birth-date",
1256
+ UserInvalidGender = "user.invalid-gender",
1257
+ UserInvalidRole = "user.invalid-role",
1258
+ UserInvalidPreferences = "user.invalid-preferences",
1259
+ UserInvalidLocation = "user.invalid-location",
1260
+ UserInvalidFile = "user.invalid-file",
1261
+ UserFileTooLarge = "user.file-too-large",
1262
+ UserUnsupportedFileType = "user.unsupported-file-type",
1263
+ OrganizationNotFound = "organization.not-found",
1264
+ OrganizationInvalidSlug = "organization.invalid-slug",
1265
+ OrganizationInvalidName = "organization.invalid-name",
1266
+ OrganizationInvalidDescription = "organization.invalid-description",
1267
+ OrganizationInvalidLocation = "organization.invalid-location",
1268
+ OrganizationInvalidSocialLink = "organization.invalid-social-link",
1269
+ OrganizationAlreadyExists = "organization.already-exists",
1270
+ OrganizationUnauthorized = "organization.unauthorized",
1271
+ OrganizationMemberNotFound = "organization.member-not-found",
1272
+ OrganizationMemberInvalidRole = "organization.member-invalid-role",
1273
+ OrganizationMemberAlreadyExists = "organization.member-already-exists",
1274
+ EventNotFound = "event.not-found",
1275
+ EventInvalidTitle = "event.invalid-title",
1276
+ EventInvalidDescription = "event.invalid-description",
1277
+ EventInvalidLocation = "event.invalid-location",
1278
+ EventInvalidDates = "event.invalid-dates",
1279
+ EventInvalidTickets = "event.invalid-tickets",
1280
+ EventInvalidStyles = "event.invalid-styles",
1281
+ EventInvalidType = "event.invalid-type",
1282
+ EventInvalidVisibility = "event.invalid-visibility",
1283
+ EventUnavailable = "event.unavailable",
1284
+ EventTicketNotFound = "event.ticket-not-found",
1285
+ EventTicketUnavailable = "event.ticket-unavailable",
1286
+ EventTicketInvalidQuantity = "event.ticket-invalid-quantity",
1287
+ OrderNotFound = "order.not-found",
1288
+ OrderInvalidStatus = "order.invalid-status",
1289
+ OrderInvalidPayment = "order.invalid-payment",
1290
+ OrderPaymentFailed = "order.payment-failed",
1291
+ OrderAlreadyPaid = "order.already-paid",
1292
+ OrderCancelled = "order.cancelled",
1293
+ OrderRefunded = "order.refunded",
1294
+ OrderExpired = "order.expired",
1295
+ BookingNotFound = "booking.not-found",
1296
+ BookingInvalidStatus = "booking.invalid-status",
1297
+ BookingInvalidTickets = "booking.invalid-tickets",
1298
+ BookingTicketNotFound = "booking.ticket-not-found",
1299
+ BookingTicketInvalidToken = "booking.ticket-invalid-token",
1300
+ BookingTicketExpired = "booking.ticket-expired",
1301
+ BookingTicketUsed = "booking.ticket-used",
1302
+ FileNotFound = "file.not-found",
1303
+ FileInvalidType = "file.invalid-type",
1304
+ FileTooLarge = "file.too-large",
1305
+ FileUploadFailed = "file.upload-failed",
1306
+ ValidationError = "validation.error",
1307
+ DatabaseError = "database.error",
1308
+ InternalServerError = "server.internal-error",
1309
+ NotFound = "not-found",
1310
+ BadRequest = "bad-request",
1311
+ Unauthorized = "unauthorized",
1312
+ Forbidden = "forbidden",
1313
+ TooManyRequests = "too-many-requests",
1314
+ ServiceUnavailable = "service-unavailable",
1315
+ TooManyRequestsAuth = "rate-limit.auth",
1316
+ TooManyRequestsApi = "rate-limit.api",
1317
+ WebhookInvalidSignature = "webhook.invalid-signature",
1318
+ WebhookInvalidEvent = "webhook.invalid-event",
1319
+ WebhookProcessingFailed = "webhook.processing-failed",
1320
+ PaymentRequired = "payment.required",
1321
+ PaymentMethodRequired = "payment.method-required",
1322
+ PaymentFailed = "payment.failed",
1323
+ PaymentCancelled = "payment.cancelled",
1324
+ PaymentRefunded = "payment.refunded",
1325
+ BillingInvalidAccount = "billing.invalid-account",
1326
+ BillingAccountRequired = "billing.account-required",
1327
+ NotificationInvalidType = "notification.invalid-type",
1328
+ NotificationSendingFailed = "notification.sending-failed",
1329
+ CacheError = "cache.error",
1330
+ CacheMiss = "cache.miss",
1331
+ ExternalServiceError = "external-service.error",
1332
+ ExternalServiceTimeout = "external-service.timeout",
1333
+ ExternalServiceUnavailable = "external-service.unavailable"
1248
1334
  }
1249
1335
 
1250
- type Organization = Base & {
1251
- slug: string;
1252
- identity: OrganizationIdentity;
1253
- members: OrganizationMember[];
1254
- location?: Location$1;
1255
- events: OrganizationEvent[];
1256
- savedTickets: OrganizationEventTicket[];
1257
- verified: boolean;
1258
- billing: OrganizationBilling;
1336
+ declare enum FeedType {
1337
+ Following = "following",
1338
+ Discover = "discover"
1339
+ }
1340
+ type FeedPost = UserPost | OrganizationEvent[];
1341
+ type FeedEndpoints = Endpoint<"GET", "/feed/following", ArrayResult<FeedPost>, ArrayOptions<FeedPost>> | Endpoint<"GET", "/feed/discover", ArrayResult<FeedPost>, ArrayOptions<FeedPost>>;
1342
+
1343
+ interface Health<T extends string = string> extends HealthCheckResult {
1344
+ info?: Record<T, HealthIndicatorResult[T]>;
1345
+ error?: Record<T, HealthIndicatorResult[T]>;
1346
+ details: Record<T, HealthIndicatorResult[T]>;
1347
+ }
1348
+ type MemorySnapshot = {
1349
+ heapUsed: number;
1350
+ heapTotal: number;
1351
+ rss: number;
1352
+ external: number;
1259
1353
  };
1260
- type OrganizationBilling = {
1261
- account: string;
1262
- vatRate: number;
1354
+ type HealthMemory = {
1355
+ before: MemorySnapshot;
1356
+ afterGc: MemorySnapshot;
1263
1357
  };
1264
- type OrganizationBillingAccount = Stripe__default.Account;
1265
- declare enum OrganizationPayoutStatus {
1266
- Paid = "paid",
1267
- Pending = "pending",
1268
- InTransit = "in_transit",
1269
- Failed = "failed",
1270
- Canceled = "canceled"
1271
- }
1272
- type OrganizationBillingBalance = {
1273
- balance: {
1274
- amount: number;
1275
- currency: Currency;
1276
- }[];
1277
- pending: {
1278
- amount: number;
1279
- currency: Currency;
1280
- }[];
1281
- payouts: {
1282
- id: string;
1283
- amount: number;
1284
- currency: Currency;
1285
- status: OrganizationPayoutStatus;
1286
- arrival_date: number;
1358
+ type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">> | Endpoint<"GET", "/health/memory", HealthMemory>;
1359
+
1360
+ /**
1361
+ * Represents a GeoJSON point with specific geographic coordinates.
1362
+ *
1363
+ * @see https://geojson.org/geojson-spec.html#point
1364
+ *
1365
+ * @property {"Point"} type - The type of the geometry, which is always "Point" for a GeoJSON point.
1366
+ * @property {[number, number]} coordinates - The coordinates of the point, represented as [longitude, latitude].
1367
+ */
1368
+ type GeoPoint = {
1369
+ type: "Point";
1370
+ coordinates: [number, number];
1371
+ };
1372
+ type Location$1 = {
1373
+ name?: string;
1374
+ address: string;
1375
+ zipCode: string;
1376
+ city: string;
1377
+ country: string;
1378
+ geometry: GeoPoint;
1379
+ };
1380
+ type GeoSearchAggregation<T> = {
1381
+ metadata: {
1382
+ total: number;
1287
1383
  }[];
1384
+ data: T[];
1288
1385
  };
1289
- type OrganizationBillingPendingRevenue = {
1290
- amount: number;
1291
- count: number;
1292
- currency: Currency;
1293
- }[];
1294
- type OrganizationIdentity = OrganizationProfile;
1295
- declare enum OrganizationFileType {
1296
- Avatar = "avatar",
1297
- Banner = "banner"
1298
- }
1299
- type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
1300
- q: string;
1301
- limit?: number;
1302
- }> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationNotificationEndpoints | OrganizationOrdersEndpoints;
1386
+ type Distance<T> = T & {
1387
+ distance: number;
1388
+ };
1389
+
1390
+ type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
1391
+ email: string;
1392
+ }>;
1303
1393
 
1304
1394
  type PlaceCountry = Base & {
1305
1395
  geonameId: number;
@@ -1544,10 +1634,6 @@ declare class AddReactionDto {
1544
1634
  emoji: string;
1545
1635
  }
1546
1636
 
1547
- declare class ContentOrAttachmentsConstraint implements ValidatorConstraintInterface {
1548
- validate(_value: unknown, args: ValidationArguments): boolean;
1549
- defaultMessage(_args: ValidationArguments): string;
1550
- }
1551
1637
  declare class CreateChannelMessageDto {
1552
1638
  content?: string;
1553
1639
  attachments?: string[];
@@ -1626,6 +1712,13 @@ declare class CreateOrganizationIdentityDto {
1626
1712
  links?: string[];
1627
1713
  }
1628
1714
 
1715
+ declare class CancelOrganizationEventDto {
1716
+ reason?: string;
1717
+ refundOrders?: boolean;
1718
+ notifyHolders?: boolean;
1719
+ allowEndedCancel?: boolean;
1720
+ }
1721
+
1629
1722
  declare class EventArtistDto implements EventArtistRef {
1630
1723
  id: string;
1631
1724
  permalink: string;
@@ -1662,12 +1755,7 @@ declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrga
1662
1755
  endAt?: Date;
1663
1756
  }
1664
1757
 
1665
- declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface {
1666
- validate(_value: unknown, args: ValidationArguments): boolean;
1667
- defaultMessage(): string;
1668
- }
1669
- declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
1670
- type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount" | "minPrice"> & {
1758
+ type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "visitsCount" | "visitorsCount" | "bouncesCount" | "totalDurationSeconds" | "averageViewsPerVisitorCount" | "bounceRate" | "averageVisitDurationSeconds" | "hypeCount" | "minPrice"> & {
1671
1759
  slug?: string;
1672
1760
  styles: string[];
1673
1761
  tickets: CreateOrganizationEventTicketInput[];
@@ -1697,6 +1785,11 @@ declare class CreateOrganizationEventOrderDto {
1697
1785
  promoCode?: string;
1698
1786
  }
1699
1787
 
1788
+ declare class PostponeOrganizationEventDto {
1789
+ reason?: string;
1790
+ notifyHolders?: boolean;
1791
+ }
1792
+
1700
1793
  declare class CreateOrganizationEventPromoCodeDto {
1701
1794
  code: string;
1702
1795
  type: OrganizationEventPromoCodeType;
@@ -1719,11 +1812,13 @@ declare class UpdateOrganizationEventPromoCodeDto {
1719
1812
  ticketIds?: string[];
1720
1813
  }
1721
1814
 
1722
- declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
1723
- validate(_value: unknown, args: ValidationArguments): boolean;
1724
- defaultMessage(): string;
1815
+ declare class RescheduleOrganizationEventDto {
1816
+ startAt: Date;
1817
+ endAt: Date;
1818
+ reason?: string;
1819
+ notifyHolders?: boolean;
1725
1820
  }
1726
- declare function AtLeastOneMediaOnUpdate(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
1821
+
1727
1822
  declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
1728
1823
  title?: string;
1729
1824
  slug?: string;
@@ -2132,6 +2227,34 @@ declare function toSmallestUnit(amount: number, currency: Currency): number;
2132
2227
  * For JPY: 500 → 500
2133
2228
  */
2134
2229
  declare function fromSmallestUnit(amount: number, currency: Currency): number;
2230
+ /**
2231
+ * Resolve the narrow currency symbol for a currency code. Falls back to the
2232
+ * ISO code itself when the Intl runtime does not know the currency.
2233
+ * Examples: `getCurrencySymbol(Currency.EUR)` → `"€"`, `Currency.JPY` → `"¥"`.
2234
+ */
2235
+ declare function getCurrencySymbol(currency: Currency): string;
2236
+ /**
2237
+ * Format a currency code with its symbol: `"USD ($)"`, `"EUR (€)"`, `"JPY (¥)"`.
2238
+ * Falls back to just the ISO code when the runtime resolves the symbol to the
2239
+ * same code (e.g. `"AWG"`).
2240
+ */
2241
+ declare function formatCurrencyLabel(currency: Currency): string;
2242
+ type FormatPriceOptions = {
2243
+ /** Returned when `amount` is `null` / `undefined`. Default: `"--.-- <symbol>"`. */
2244
+ emptyPlaceholder?: string;
2245
+ /** Returned when `amount === 0`. Default: `"Free"`. */
2246
+ freeLabel?: string;
2247
+ };
2248
+ /**
2249
+ * Format a price expressed in the smallest currency unit as a `"<amount> <symbol>"`
2250
+ * string. Honours zero-decimal currencies (JPY, KRW, …) — they render without
2251
+ * decimals. Examples:
2252
+ * `formatPrice(258800, Currency.EUR)` → `"2588.00 €"`
2253
+ * `formatPrice(500, Currency.JPY)` → `"500 ¥"`
2254
+ * `formatPrice(null, Currency.EUR)` → `"--.-- €"`
2255
+ * `formatPrice(0, Currency.EUR)` → `"Free"`
2256
+ */
2257
+ declare function formatPrice(amount: number | null | undefined, currency: Currency, options?: FormatPriceOptions): string;
2135
2258
  type StripeFees = {
2136
2259
  transactionFee: number;
2137
2260
  europeRate: number;
@@ -2392,7 +2515,7 @@ declare const users: (client: Client) => {
2392
2515
  };
2393
2516
  };
2394
2517
  notifications: {
2395
- me: () => Promise<ArrayResult<UserNotificationFollow>>;
2518
+ me: () => Promise<ArrayResult<UserNotification>>;
2396
2519
  count: (options: {
2397
2520
  unseen?: boolean;
2398
2521
  }) => Promise<number>;
@@ -2679,7 +2802,7 @@ declare class TonightPass {
2679
2802
  };
2680
2803
  };
2681
2804
  notifications: {
2682
- me: () => Promise<ArrayResult<UserNotificationFollow>>;
2805
+ me: () => Promise<ArrayResult<UserNotification>>;
2683
2806
  count: (options: {
2684
2807
  unseen?: boolean;
2685
2808
  }) => Promise<number>;
@@ -2871,4 +2994,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
2871
2994
  client: ChannelWebSocketClient;
2872
2995
  };
2873
2996
 
2874
- export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Artist, type ArtistEndpoints, type ArtistSoundcloudBadges, type ArtistSoundcloudData, type ArtistSoundcloudWebProfile, type ArtistTonightPassData, type ArtistTrack, type ArtistWithTracks, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, BillingLocality, type BillingParameters, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, type CareerEndpoints, type CareersCategoriesOptions, type CareersCategory, type CareersEmploymentType, type CareersEmploymentTypesOptions, type CareersJob, CareersJobStatus, type CareersJobsOptions, type CareersOffice, type CareersOfficesOptions, CareersRemoteType, CareersWorkplaceType, type CartTicket, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, ContentOrAttachmentsConstraint, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventPromoCodeDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, DEFAULT_BILLING_PARAMETERS, DEFAULT_STRIPE_FEES, DEFAULT_TONIGHTPASS_FEES, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, EventArtistDto, type EventArtistRef, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type GetArtistOptions, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type ListArtistEventsOptions, type ListPlaceCountriesOptions, type ListTopArtistsOptions, type Location$1 as Location, MINIMUM_CHARGEABLE_AMOUNT, MINIMUM_CHARGE_AMOUNTS, MINIMUM_COMMISSION, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderDiscount, type OrderEndpoints, type OrderItem, type OrderTotals, OrderTransferStatus, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationBillingBalance, type OrganizationBillingPendingRevenue, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventPromoCode, type OrganizationEventPromoCodeEndpoints, OrganizationEventPromoCodeType, type OrganizationEventPromoCodeValidation, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationNotification, type OrganizationNotificationBase, type OrganizationNotificationEndpoints, OrganizationNotificationType, type OrganizationNotificationWithActor, type OrganizationOrder, type OrganizationOrdersEndpoints, OrganizationPayoutStatus, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchArtistsOptions, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type StripeFees, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TonightPassFees, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventPromoCodeDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, type UserPostViewOptions, type UserPostViewResult, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, type WeatherEndpoints, type WeatherForecast, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, ZERO_DECIMAL_CURRENCIES, apiKeys, applyMinimumChargeableAmount, artists, auth, buildFileFormData, calculateOrderTotal, calculateTicketFee, calculateTicketFeeWithCurrency, careers, channels, channelsWS, currencies, feed, fromSmallestUnit, getMinimumChargeableAmount, health, isBrowser, isMemberRoleAtLeast, isZeroDecimalCurrency, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, toSmallestUnit, users };
2997
+ export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Artist, type ArtistEndpoints, type ArtistSoundcloudBadges, type ArtistSoundcloudData, type ArtistSoundcloudWebProfile, type ArtistTonightPassData, type ArtistTrack, type ArtistWithTracks, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, BillingLocality, type BillingParameters, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, CancelOrganizationEventDto, type CareerEndpoints, type CareersCategoriesOptions, type CareersCategory, type CareersEmploymentType, type CareersEmploymentTypesOptions, type CareersJob, CareersJobStatus, type CareersJobsOptions, type CareersOffice, type CareersOfficesOptions, CareersRemoteType, CareersWorkplaceType, type CartTicket, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventPromoCodeDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, DEFAULT_BILLING_PARAMETERS, DEFAULT_STRIPE_FEES, DEFAULT_TONIGHTPASS_FEES, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, EventArtistDto, type EventArtistRef, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type FormatPriceOptions, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type GetArtistOptions, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type ListArtistEventsOptions, type ListPlaceCountriesOptions, type ListTopArtistsOptions, type Location$1 as Location, MINIMUM_CHARGEABLE_AMOUNT, MINIMUM_CHARGE_AMOUNTS, MINIMUM_COMMISSION, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderDiscount, type OrderEndpoints, type OrderItem, OrderRefundStatus, type OrderTotals, OrderTransferStatus, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationBillingBalance, type OrganizationBillingPendingRevenue, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, OrganizationEventCancelledBy, type OrganizationEventEndpoints, OrganizationEventFileType, OrganizationEventLifecycleStatus, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventPromoCode, type OrganizationEventPromoCodeEndpoints, OrganizationEventPromoCodeType, type OrganizationEventPromoCodeValidation, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStatusInput, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationNotification, type OrganizationNotificationBase, type OrganizationNotificationEndpoints, OrganizationNotificationType, type OrganizationNotificationWithActor, type OrganizationOrder, type OrganizationOrdersEndpoints, OrganizationPayoutStatus, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, PostponeOrganizationEventDto, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, RescheduleOrganizationEventDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchArtistsOptions, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type StripeFees, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TonightPassFees, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventPromoCodeDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, type UserNotificationOrganizationEventCancelled, type UserNotificationOrganizationEventPostponed, type UserNotificationOrganizationEventRescheduled, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, type UserPostViewOptions, type UserPostViewResult, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, type WeatherEndpoints, type WeatherForecast, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, ZERO_DECIMAL_CURRENCIES, apiKeys, applyMinimumChargeableAmount, artists, auth, buildFileFormData, calculateOrderTotal, calculateTicketFee, calculateTicketFeeWithCurrency, careers, channels, channelsWS, computeOrganizationEventStatus, currencies, feed, formatCurrencyLabel, formatPrice, fromSmallestUnit, getCurrencySymbol, getMinimumChargeableAmount, health, isBrowser, isMemberRoleAtLeast, isZeroDecimalCurrency, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, toSmallestUnit, users };