tonightpass 0.0.260 → 0.0.262

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,15 +2,21 @@ 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';
5
6
  import * as Stripe from 'stripe';
6
7
  import Stripe__default from 'stripe';
7
- import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
8
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
9
9
 
10
10
  declare const DEFAULT_API_URL = "https://api.tonightpass.com";
11
11
 
12
12
  declare const REGEX: {
13
13
  EMAIL: RegExp;
14
+ INLINE: {
15
+ EMAIL: RegExp;
16
+ URL: RegExp;
17
+ USER_MENTION: RegExp;
18
+ ARTIST_MENTION: RegExp;
19
+ };
14
20
  NAME: RegExp;
15
21
  SLUG: RegExp;
16
22
  USERNAME: RegExp;
@@ -34,6 +40,82 @@ declare const REGEX: {
34
40
  USER_POST_MEDIA_URL: RegExp;
35
41
  };
36
42
 
43
+ type ArtistSoundcloudBadges = {
44
+ pro: boolean;
45
+ proUnlimited: boolean;
46
+ verified: boolean;
47
+ };
48
+ type ArtistSoundcloudWebProfile = {
49
+ network: string;
50
+ url: string;
51
+ title?: string;
52
+ username?: string;
53
+ };
54
+ type ArtistTrack = {
55
+ id: string;
56
+ title: string;
57
+ permalinkUrl: string;
58
+ artworkUrl?: string;
59
+ duration: number;
60
+ playbackCount: number;
61
+ likesCount: number;
62
+ genre?: string;
63
+ createdAt: string;
64
+ };
65
+ type ArtistSoundcloudData = {
66
+ permalinkUrl: string;
67
+ followersCount: number;
68
+ followingsCount: number;
69
+ trackCount: number;
70
+ playlistCount: number;
71
+ likesCount: number;
72
+ badges: ArtistSoundcloudBadges;
73
+ webProfiles: ArtistSoundcloudWebProfile[];
74
+ };
75
+ type ArtistTonightPassData = {
76
+ followersCount: number;
77
+ isFollowing: boolean;
78
+ };
79
+ type Artist = {
80
+ id: string;
81
+ username: string;
82
+ permalink: string;
83
+ fullName?: string;
84
+ city?: string;
85
+ countryCode?: string;
86
+ description?: string;
87
+ avatarUrl: string;
88
+ bannerUrl?: string;
89
+ soundcloud: ArtistSoundcloudData;
90
+ tonightpass: ArtistTonightPassData;
91
+ };
92
+ type ArtistWithTracks = Omit<Artist, "soundcloud"> & {
93
+ soundcloud: ArtistSoundcloudData & {
94
+ tracks: ArtistTrack[];
95
+ topTracks: ArtistTrack[];
96
+ };
97
+ };
98
+ type EventArtistRef = {
99
+ id: string;
100
+ permalink: string;
101
+ username: string;
102
+ };
103
+ type SearchArtistsOptions = ArrayOptions<Artist> & {
104
+ q: string;
105
+ };
106
+ type GetArtistOptions = {
107
+ trackLimit?: number;
108
+ };
109
+ type ListArtistEventsOptions = ArrayOptions<OrganizationEvent> & {
110
+ upcoming?: boolean;
111
+ };
112
+ type ListTopArtistsOptions = ArrayOptions<Artist>;
113
+ type ArtistEndpoints = Endpoint<"GET", "/artists/top", ArrayResult<Artist>, ListTopArtistsOptions> | Endpoint<"GET", "/artists/search", ArrayResult<Artist>, SearchArtistsOptions> | Endpoint<"GET", "/artists/:idOrPermalink", ArtistWithTracks, GetArtistOptions> | Endpoint<"POST", "/artists/:idOrPermalink/follow", {
114
+ isFollowing: boolean;
115
+ }> | Endpoint<"DELETE", "/artists/:idOrPermalink/follow", {
116
+ isFollowing: boolean;
117
+ }> | Endpoint<"GET", "/artists/:idOrPermalink/events", ArrayResult<OrganizationEvent>, ListArtistEventsOptions>;
118
+
37
119
  declare enum UserNotificationType {
38
120
  Follow = "follow"
39
121
  }
@@ -969,6 +1051,7 @@ type OrganizationEvent = Base & {
969
1051
  location: Location$1;
970
1052
  tickets: OrganizationEventTicket[];
971
1053
  styles: OrganizationEventStyle[];
1054
+ artists: EventArtistRef[];
972
1055
  status: OrganizationEventStatus;
973
1056
  viewsCount: number;
974
1057
  sessionsCount: number;
@@ -1252,13 +1335,17 @@ type PlaceCity = Base & {
1252
1335
  citySlug: string;
1253
1336
  countrySlug: string;
1254
1337
  };
1338
+ type ListPlaceCountriesOptions = ArrayOptions<PlaceCountry> & {
1339
+ code?: string;
1340
+ };
1255
1341
  type SearchPlacesOptions = ArrayOptions<PlaceCity> & {
1256
1342
  q: string;
1343
+ countryCode?: string;
1257
1344
  };
1258
1345
  type NearbyCitiesOptions = ArrayOptions<PlaceCity> & {
1259
1346
  radius?: number;
1260
1347
  };
1261
- type PlaceEndpoints = Endpoint<"GET", "/places/countries", ArrayResult<PlaceCountry>, ArrayOptions<PlaceCountry>> | Endpoint<"GET", "/places/countries/:countrySlug", PlaceCountry> | Endpoint<"GET", "/places/countries/:countrySlug/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug", PlaceCity | ExcludeBase<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug/nearby", ArrayResult<Distance<PlaceCity>>, NearbyCitiesOptions> | Endpoint<"GET", "/places/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/cities/search", ArrayResult<PlaceCity>, SearchPlacesOptions>;
1348
+ type PlaceEndpoints = Endpoint<"GET", "/places/countries", ArrayResult<PlaceCountry>, ListPlaceCountriesOptions> | Endpoint<"GET", "/places/countries/:countrySlug", PlaceCountry> | Endpoint<"GET", "/places/countries/:countrySlug/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug", PlaceCity | ExcludeBase<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug/nearby", ArrayResult<Distance<PlaceCity>>, NearbyCitiesOptions> | Endpoint<"GET", "/places/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/cities/search", ArrayResult<PlaceCity>, SearchPlacesOptions>;
1262
1349
 
1263
1350
  type ProxyMediaOptions = {
1264
1351
  token: string;
@@ -1405,7 +1492,7 @@ type SSEEndpoints = Extract<Endpoints, {
1405
1492
  res: ReadableStream<infer _>;
1406
1493
  path: infer P;
1407
1494
  } ? P : never : never;
1408
- type Endpoints = ApiKeyEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | ProxyEndpoints | RoadmapEndpoints | SitemapEndpoints | UserEndpoints | WeatherEndpoints | WebhookEndpoints | NotificationEndpoints;
1495
+ type Endpoints = ApiKeyEndpoints | ArtistEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | ProxyEndpoints | RoadmapEndpoints | SitemapEndpoints | UserEndpoints | WeatherEndpoints | WebhookEndpoints | NotificationEndpoints;
1409
1496
 
1410
1497
  declare enum ApiKeyTier {
1411
1498
  PUBLIC = "public",
@@ -1539,6 +1626,12 @@ declare class CreateOrganizationIdentityDto {
1539
1626
  links?: string[];
1540
1627
  }
1541
1628
 
1629
+ declare class EventArtistDto implements EventArtistRef {
1630
+ id: string;
1631
+ permalink: string;
1632
+ username: string;
1633
+ }
1634
+
1542
1635
  type CreateOrganizationEventTicketInput = Omit<ExcludeBase<OrganizationEventTicket>, "price" | "product" | "event" | "fee"> & {
1543
1636
  price: number;
1544
1637
  };
@@ -1574,10 +1667,11 @@ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface
1574
1667
  defaultMessage(): string;
1575
1668
  }
1576
1669
  declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
1577
- type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount" | "minPrice"> & {
1670
+ type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount" | "minPrice"> & {
1578
1671
  slug?: string;
1579
1672
  styles: string[];
1580
1673
  tickets: CreateOrganizationEventTicketInput[];
1674
+ artists?: EventArtistDto[];
1581
1675
  };
1582
1676
  declare class BaseOrganizationEventDto {
1583
1677
  title: string;
@@ -1590,6 +1684,7 @@ declare class BaseOrganizationEventDto {
1590
1684
  trailers: string[];
1591
1685
  location: CreateLocationDto;
1592
1686
  styles: string[];
1687
+ artists?: EventArtistDto[];
1593
1688
  startAt: Date;
1594
1689
  endAt: Date;
1595
1690
  }
@@ -1640,6 +1735,7 @@ declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizati
1640
1735
  location?: UpdateLocationDto;
1641
1736
  tickets?: UpdateOrganizationEventTicketDto[];
1642
1737
  styles?: string[];
1738
+ artists?: EventArtistDto[];
1643
1739
  startAt?: Date;
1644
1740
  endAt?: Date;
1645
1741
  }
@@ -1899,6 +1995,19 @@ declare const apiKeys: (client: Client) => {
1899
1995
  delete: (apiKeyId: string) => Promise<ApiKey>;
1900
1996
  };
1901
1997
 
1998
+ declare const artists: (client: Client) => {
1999
+ top: (query?: Query<"/artists/top">) => Promise<ArrayResult<Artist>>;
2000
+ search: (query: Query<"/artists/search">) => Promise<ArrayResult<Artist>>;
2001
+ get: (query: Query<"/artists/:idOrPermalink">) => Promise<ArtistWithTracks>;
2002
+ follow: (query: Query<"/artists/:idOrPermalink/follow">) => Promise<{
2003
+ isFollowing: boolean;
2004
+ }>;
2005
+ unfollow: (query: Query<"/artists/:idOrPermalink/follow">) => Promise<{
2006
+ isFollowing: boolean;
2007
+ }>;
2008
+ events: (query: Query<"/artists/:idOrPermalink/events">) => Promise<ArrayResult<OrganizationEvent>>;
2009
+ };
2010
+
1902
2011
  declare const auth: (client: Client) => {
1903
2012
  signIn: (data: SignInUserDto) => Promise<AuthResponse>;
1904
2013
  signUp: (data: CreateUserDto) => Promise<AuthResponse>;
@@ -2224,17 +2333,17 @@ declare const organizations: (client: Client) => {
2224
2333
 
2225
2334
  declare const places: (client: Client) => {
2226
2335
  countries: {
2227
- getAll: (options?: ArrayOptions<PlaceCountry>) => Promise<ArrayResult<PlaceCountry>>;
2228
- get: (countrySlug: string) => Promise<PlaceCountry>;
2336
+ getAll: (query?: Query<"/places/countries">) => Promise<ArrayResult<PlaceCountry>>;
2337
+ get: (query: Query<"/places/countries/:countrySlug">) => Promise<PlaceCountry>;
2229
2338
  cities: {
2230
- getAll: (countrySlug: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2231
- get: (countrySlug: string, citySlug: string) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2232
- nearby: (countrySlug: string, citySlug: string, options?: NearbyCitiesOptions) => Promise<ArrayResult<Distance<PlaceCity>>>;
2339
+ getAll: (query: Query<"/places/countries/:countrySlug/cities">) => Promise<ArrayResult<PlaceCity>>;
2340
+ get: (query: Query<"/places/countries/:countrySlug/cities/:citySlug">) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2341
+ nearby: (query: Query<"/places/countries/:countrySlug/cities/:citySlug/nearby">) => Promise<ArrayResult<Distance<PlaceCity>>>;
2233
2342
  };
2234
2343
  };
2235
2344
  cities: {
2236
- getAll: (options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2237
- search: (query: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2345
+ getAll: (query?: Query<"/places/cities">) => Promise<ArrayResult<PlaceCity>>;
2346
+ search: (query: Query<"/places/cities/search">) => Promise<ArrayResult<PlaceCity>>;
2238
2347
  };
2239
2348
  };
2240
2349
 
@@ -2323,6 +2432,18 @@ declare class TonightPass {
2323
2432
  update: (apiKeyId: string, data: UpdateApiKeyDto) => Promise<ApiKey>;
2324
2433
  delete: (apiKeyId: string) => Promise<ApiKey>;
2325
2434
  };
2435
+ readonly artists: {
2436
+ top: (query?: pathcat.Query<"/artists/top">) => Promise<ArrayResult<Artist>>;
2437
+ search: (query: pathcat.Query<"/artists/search">) => Promise<ArrayResult<Artist>>;
2438
+ get: (query: pathcat.Query<"/artists/:idOrPermalink">) => Promise<ArtistWithTracks>;
2439
+ follow: (query: pathcat.Query<"/artists/:idOrPermalink/follow">) => Promise<{
2440
+ isFollowing: boolean;
2441
+ }>;
2442
+ unfollow: (query: pathcat.Query<"/artists/:idOrPermalink/follow">) => Promise<{
2443
+ isFollowing: boolean;
2444
+ }>;
2445
+ events: (query: pathcat.Query<"/artists/:idOrPermalink/events">) => Promise<ArrayResult<OrganizationEvent>>;
2446
+ };
2326
2447
  readonly auth: {
2327
2448
  signIn: (data: SignInUserDto) => Promise<AuthResponse>;
2328
2449
  signUp: (data: CreateUserDto) => Promise<AuthResponse>;
@@ -2503,17 +2624,17 @@ declare class TonightPass {
2503
2624
  };
2504
2625
  readonly places: {
2505
2626
  countries: {
2506
- getAll: (options?: ArrayOptions<PlaceCountry>) => Promise<ArrayResult<PlaceCountry>>;
2507
- get: (countrySlug: string) => Promise<PlaceCountry>;
2627
+ getAll: (query?: pathcat.Query<"/places/countries">) => Promise<ArrayResult<PlaceCountry>>;
2628
+ get: (query: pathcat.Query<"/places/countries/:countrySlug">) => Promise<PlaceCountry>;
2508
2629
  cities: {
2509
- getAll: (countrySlug: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2510
- get: (countrySlug: string, citySlug: string) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2511
- nearby: (countrySlug: string, citySlug: string, options?: NearbyCitiesOptions) => Promise<ArrayResult<Distance<PlaceCity>>>;
2630
+ getAll: (query: pathcat.Query<"/places/countries/:countrySlug/cities">) => Promise<ArrayResult<PlaceCity>>;
2631
+ get: (query: pathcat.Query<"/places/countries/:countrySlug/cities/:citySlug">) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2632
+ nearby: (query: pathcat.Query<"/places/countries/:countrySlug/cities/:citySlug/nearby">) => Promise<ArrayResult<Distance<PlaceCity>>>;
2512
2633
  };
2513
2634
  };
2514
2635
  cities: {
2515
- getAll: (options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2516
- search: (query: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2636
+ getAll: (query?: pathcat.Query<"/places/cities">) => Promise<ArrayResult<PlaceCity>>;
2637
+ search: (query: pathcat.Query<"/places/cities/search">) => Promise<ArrayResult<PlaceCity>>;
2517
2638
  };
2518
2639
  };
2519
2640
  readonly profiles: {
@@ -2750,4 +2871,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
2750
2871
  client: ChannelWebSocketClient;
2751
2872
  };
2752
2873
 
2753
- 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, 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, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, 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 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, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -2,15 +2,21 @@ 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';
5
6
  import * as Stripe from 'stripe';
6
7
  import Stripe__default from 'stripe';
7
- import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
8
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
9
9
 
10
10
  declare const DEFAULT_API_URL = "https://api.tonightpass.com";
11
11
 
12
12
  declare const REGEX: {
13
13
  EMAIL: RegExp;
14
+ INLINE: {
15
+ EMAIL: RegExp;
16
+ URL: RegExp;
17
+ USER_MENTION: RegExp;
18
+ ARTIST_MENTION: RegExp;
19
+ };
14
20
  NAME: RegExp;
15
21
  SLUG: RegExp;
16
22
  USERNAME: RegExp;
@@ -34,6 +40,82 @@ declare const REGEX: {
34
40
  USER_POST_MEDIA_URL: RegExp;
35
41
  };
36
42
 
43
+ type ArtistSoundcloudBadges = {
44
+ pro: boolean;
45
+ proUnlimited: boolean;
46
+ verified: boolean;
47
+ };
48
+ type ArtistSoundcloudWebProfile = {
49
+ network: string;
50
+ url: string;
51
+ title?: string;
52
+ username?: string;
53
+ };
54
+ type ArtistTrack = {
55
+ id: string;
56
+ title: string;
57
+ permalinkUrl: string;
58
+ artworkUrl?: string;
59
+ duration: number;
60
+ playbackCount: number;
61
+ likesCount: number;
62
+ genre?: string;
63
+ createdAt: string;
64
+ };
65
+ type ArtistSoundcloudData = {
66
+ permalinkUrl: string;
67
+ followersCount: number;
68
+ followingsCount: number;
69
+ trackCount: number;
70
+ playlistCount: number;
71
+ likesCount: number;
72
+ badges: ArtistSoundcloudBadges;
73
+ webProfiles: ArtistSoundcloudWebProfile[];
74
+ };
75
+ type ArtistTonightPassData = {
76
+ followersCount: number;
77
+ isFollowing: boolean;
78
+ };
79
+ type Artist = {
80
+ id: string;
81
+ username: string;
82
+ permalink: string;
83
+ fullName?: string;
84
+ city?: string;
85
+ countryCode?: string;
86
+ description?: string;
87
+ avatarUrl: string;
88
+ bannerUrl?: string;
89
+ soundcloud: ArtistSoundcloudData;
90
+ tonightpass: ArtistTonightPassData;
91
+ };
92
+ type ArtistWithTracks = Omit<Artist, "soundcloud"> & {
93
+ soundcloud: ArtistSoundcloudData & {
94
+ tracks: ArtistTrack[];
95
+ topTracks: ArtistTrack[];
96
+ };
97
+ };
98
+ type EventArtistRef = {
99
+ id: string;
100
+ permalink: string;
101
+ username: string;
102
+ };
103
+ type SearchArtistsOptions = ArrayOptions<Artist> & {
104
+ q: string;
105
+ };
106
+ type GetArtistOptions = {
107
+ trackLimit?: number;
108
+ };
109
+ type ListArtistEventsOptions = ArrayOptions<OrganizationEvent> & {
110
+ upcoming?: boolean;
111
+ };
112
+ type ListTopArtistsOptions = ArrayOptions<Artist>;
113
+ type ArtistEndpoints = Endpoint<"GET", "/artists/top", ArrayResult<Artist>, ListTopArtistsOptions> | Endpoint<"GET", "/artists/search", ArrayResult<Artist>, SearchArtistsOptions> | Endpoint<"GET", "/artists/:idOrPermalink", ArtistWithTracks, GetArtistOptions> | Endpoint<"POST", "/artists/:idOrPermalink/follow", {
114
+ isFollowing: boolean;
115
+ }> | Endpoint<"DELETE", "/artists/:idOrPermalink/follow", {
116
+ isFollowing: boolean;
117
+ }> | Endpoint<"GET", "/artists/:idOrPermalink/events", ArrayResult<OrganizationEvent>, ListArtistEventsOptions>;
118
+
37
119
  declare enum UserNotificationType {
38
120
  Follow = "follow"
39
121
  }
@@ -969,6 +1051,7 @@ type OrganizationEvent = Base & {
969
1051
  location: Location$1;
970
1052
  tickets: OrganizationEventTicket[];
971
1053
  styles: OrganizationEventStyle[];
1054
+ artists: EventArtistRef[];
972
1055
  status: OrganizationEventStatus;
973
1056
  viewsCount: number;
974
1057
  sessionsCount: number;
@@ -1252,13 +1335,17 @@ type PlaceCity = Base & {
1252
1335
  citySlug: string;
1253
1336
  countrySlug: string;
1254
1337
  };
1338
+ type ListPlaceCountriesOptions = ArrayOptions<PlaceCountry> & {
1339
+ code?: string;
1340
+ };
1255
1341
  type SearchPlacesOptions = ArrayOptions<PlaceCity> & {
1256
1342
  q: string;
1343
+ countryCode?: string;
1257
1344
  };
1258
1345
  type NearbyCitiesOptions = ArrayOptions<PlaceCity> & {
1259
1346
  radius?: number;
1260
1347
  };
1261
- type PlaceEndpoints = Endpoint<"GET", "/places/countries", ArrayResult<PlaceCountry>, ArrayOptions<PlaceCountry>> | Endpoint<"GET", "/places/countries/:countrySlug", PlaceCountry> | Endpoint<"GET", "/places/countries/:countrySlug/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug", PlaceCity | ExcludeBase<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug/nearby", ArrayResult<Distance<PlaceCity>>, NearbyCitiesOptions> | Endpoint<"GET", "/places/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/cities/search", ArrayResult<PlaceCity>, SearchPlacesOptions>;
1348
+ type PlaceEndpoints = Endpoint<"GET", "/places/countries", ArrayResult<PlaceCountry>, ListPlaceCountriesOptions> | Endpoint<"GET", "/places/countries/:countrySlug", PlaceCountry> | Endpoint<"GET", "/places/countries/:countrySlug/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug", PlaceCity | ExcludeBase<PlaceCity>> | Endpoint<"GET", "/places/countries/:countrySlug/cities/:citySlug/nearby", ArrayResult<Distance<PlaceCity>>, NearbyCitiesOptions> | Endpoint<"GET", "/places/cities", ArrayResult<PlaceCity>, ArrayOptions<PlaceCity>> | Endpoint<"GET", "/places/cities/search", ArrayResult<PlaceCity>, SearchPlacesOptions>;
1262
1349
 
1263
1350
  type ProxyMediaOptions = {
1264
1351
  token: string;
@@ -1405,7 +1492,7 @@ type SSEEndpoints = Extract<Endpoints, {
1405
1492
  res: ReadableStream<infer _>;
1406
1493
  path: infer P;
1407
1494
  } ? P : never : never;
1408
- type Endpoints = ApiKeyEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | ProxyEndpoints | RoadmapEndpoints | SitemapEndpoints | UserEndpoints | WeatherEndpoints | WebhookEndpoints | NotificationEndpoints;
1495
+ type Endpoints = ApiKeyEndpoints | ArtistEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | ProxyEndpoints | RoadmapEndpoints | SitemapEndpoints | UserEndpoints | WeatherEndpoints | WebhookEndpoints | NotificationEndpoints;
1409
1496
 
1410
1497
  declare enum ApiKeyTier {
1411
1498
  PUBLIC = "public",
@@ -1539,6 +1626,12 @@ declare class CreateOrganizationIdentityDto {
1539
1626
  links?: string[];
1540
1627
  }
1541
1628
 
1629
+ declare class EventArtistDto implements EventArtistRef {
1630
+ id: string;
1631
+ permalink: string;
1632
+ username: string;
1633
+ }
1634
+
1542
1635
  type CreateOrganizationEventTicketInput = Omit<ExcludeBase<OrganizationEventTicket>, "price" | "product" | "event" | "fee"> & {
1543
1636
  price: number;
1544
1637
  };
@@ -1574,10 +1667,11 @@ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface
1574
1667
  defaultMessage(): string;
1575
1668
  }
1576
1669
  declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
1577
- type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount" | "minPrice"> & {
1670
+ type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount" | "minPrice"> & {
1578
1671
  slug?: string;
1579
1672
  styles: string[];
1580
1673
  tickets: CreateOrganizationEventTicketInput[];
1674
+ artists?: EventArtistDto[];
1581
1675
  };
1582
1676
  declare class BaseOrganizationEventDto {
1583
1677
  title: string;
@@ -1590,6 +1684,7 @@ declare class BaseOrganizationEventDto {
1590
1684
  trailers: string[];
1591
1685
  location: CreateLocationDto;
1592
1686
  styles: string[];
1687
+ artists?: EventArtistDto[];
1593
1688
  startAt: Date;
1594
1689
  endAt: Date;
1595
1690
  }
@@ -1640,6 +1735,7 @@ declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizati
1640
1735
  location?: UpdateLocationDto;
1641
1736
  tickets?: UpdateOrganizationEventTicketDto[];
1642
1737
  styles?: string[];
1738
+ artists?: EventArtistDto[];
1643
1739
  startAt?: Date;
1644
1740
  endAt?: Date;
1645
1741
  }
@@ -1899,6 +1995,19 @@ declare const apiKeys: (client: Client) => {
1899
1995
  delete: (apiKeyId: string) => Promise<ApiKey>;
1900
1996
  };
1901
1997
 
1998
+ declare const artists: (client: Client) => {
1999
+ top: (query?: Query<"/artists/top">) => Promise<ArrayResult<Artist>>;
2000
+ search: (query: Query<"/artists/search">) => Promise<ArrayResult<Artist>>;
2001
+ get: (query: Query<"/artists/:idOrPermalink">) => Promise<ArtistWithTracks>;
2002
+ follow: (query: Query<"/artists/:idOrPermalink/follow">) => Promise<{
2003
+ isFollowing: boolean;
2004
+ }>;
2005
+ unfollow: (query: Query<"/artists/:idOrPermalink/follow">) => Promise<{
2006
+ isFollowing: boolean;
2007
+ }>;
2008
+ events: (query: Query<"/artists/:idOrPermalink/events">) => Promise<ArrayResult<OrganizationEvent>>;
2009
+ };
2010
+
1902
2011
  declare const auth: (client: Client) => {
1903
2012
  signIn: (data: SignInUserDto) => Promise<AuthResponse>;
1904
2013
  signUp: (data: CreateUserDto) => Promise<AuthResponse>;
@@ -2224,17 +2333,17 @@ declare const organizations: (client: Client) => {
2224
2333
 
2225
2334
  declare const places: (client: Client) => {
2226
2335
  countries: {
2227
- getAll: (options?: ArrayOptions<PlaceCountry>) => Promise<ArrayResult<PlaceCountry>>;
2228
- get: (countrySlug: string) => Promise<PlaceCountry>;
2336
+ getAll: (query?: Query<"/places/countries">) => Promise<ArrayResult<PlaceCountry>>;
2337
+ get: (query: Query<"/places/countries/:countrySlug">) => Promise<PlaceCountry>;
2229
2338
  cities: {
2230
- getAll: (countrySlug: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2231
- get: (countrySlug: string, citySlug: string) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2232
- nearby: (countrySlug: string, citySlug: string, options?: NearbyCitiesOptions) => Promise<ArrayResult<Distance<PlaceCity>>>;
2339
+ getAll: (query: Query<"/places/countries/:countrySlug/cities">) => Promise<ArrayResult<PlaceCity>>;
2340
+ get: (query: Query<"/places/countries/:countrySlug/cities/:citySlug">) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2341
+ nearby: (query: Query<"/places/countries/:countrySlug/cities/:citySlug/nearby">) => Promise<ArrayResult<Distance<PlaceCity>>>;
2233
2342
  };
2234
2343
  };
2235
2344
  cities: {
2236
- getAll: (options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2237
- search: (query: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2345
+ getAll: (query?: Query<"/places/cities">) => Promise<ArrayResult<PlaceCity>>;
2346
+ search: (query: Query<"/places/cities/search">) => Promise<ArrayResult<PlaceCity>>;
2238
2347
  };
2239
2348
  };
2240
2349
 
@@ -2323,6 +2432,18 @@ declare class TonightPass {
2323
2432
  update: (apiKeyId: string, data: UpdateApiKeyDto) => Promise<ApiKey>;
2324
2433
  delete: (apiKeyId: string) => Promise<ApiKey>;
2325
2434
  };
2435
+ readonly artists: {
2436
+ top: (query?: pathcat.Query<"/artists/top">) => Promise<ArrayResult<Artist>>;
2437
+ search: (query: pathcat.Query<"/artists/search">) => Promise<ArrayResult<Artist>>;
2438
+ get: (query: pathcat.Query<"/artists/:idOrPermalink">) => Promise<ArtistWithTracks>;
2439
+ follow: (query: pathcat.Query<"/artists/:idOrPermalink/follow">) => Promise<{
2440
+ isFollowing: boolean;
2441
+ }>;
2442
+ unfollow: (query: pathcat.Query<"/artists/:idOrPermalink/follow">) => Promise<{
2443
+ isFollowing: boolean;
2444
+ }>;
2445
+ events: (query: pathcat.Query<"/artists/:idOrPermalink/events">) => Promise<ArrayResult<OrganizationEvent>>;
2446
+ };
2326
2447
  readonly auth: {
2327
2448
  signIn: (data: SignInUserDto) => Promise<AuthResponse>;
2328
2449
  signUp: (data: CreateUserDto) => Promise<AuthResponse>;
@@ -2503,17 +2624,17 @@ declare class TonightPass {
2503
2624
  };
2504
2625
  readonly places: {
2505
2626
  countries: {
2506
- getAll: (options?: ArrayOptions<PlaceCountry>) => Promise<ArrayResult<PlaceCountry>>;
2507
- get: (countrySlug: string) => Promise<PlaceCountry>;
2627
+ getAll: (query?: pathcat.Query<"/places/countries">) => Promise<ArrayResult<PlaceCountry>>;
2628
+ get: (query: pathcat.Query<"/places/countries/:countrySlug">) => Promise<PlaceCountry>;
2508
2629
  cities: {
2509
- getAll: (countrySlug: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2510
- get: (countrySlug: string, citySlug: string) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2511
- nearby: (countrySlug: string, citySlug: string, options?: NearbyCitiesOptions) => Promise<ArrayResult<Distance<PlaceCity>>>;
2630
+ getAll: (query: pathcat.Query<"/places/countries/:countrySlug/cities">) => Promise<ArrayResult<PlaceCity>>;
2631
+ get: (query: pathcat.Query<"/places/countries/:countrySlug/cities/:citySlug">) => Promise<PlaceCity | ExcludeBase<PlaceCity>>;
2632
+ nearby: (query: pathcat.Query<"/places/countries/:countrySlug/cities/:citySlug/nearby">) => Promise<ArrayResult<Distance<PlaceCity>>>;
2512
2633
  };
2513
2634
  };
2514
2635
  cities: {
2515
- getAll: (options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2516
- search: (query: string, options?: ArrayOptions<PlaceCity>) => Promise<ArrayResult<PlaceCity>>;
2636
+ getAll: (query?: pathcat.Query<"/places/cities">) => Promise<ArrayResult<PlaceCity>>;
2637
+ search: (query: pathcat.Query<"/places/cities/search">) => Promise<ArrayResult<PlaceCity>>;
2517
2638
  };
2518
2639
  };
2519
2640
  readonly profiles: {
@@ -2750,4 +2871,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
2750
2871
  client: ChannelWebSocketClient;
2751
2872
  };
2752
2873
 
2753
- 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, 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, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, 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 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, 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 };
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 };