tonightpass 0.0.239 → 0.0.241
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 +77 -7
- package/dist/index.d.ts +77 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pathcat from 'pathcat';
|
|
2
|
-
import {
|
|
2
|
+
import { Query, ParamValue } from 'pathcat';
|
|
3
3
|
export * from 'pathcat';
|
|
4
4
|
import { Options, Response as Response$1 } from 'redaxios';
|
|
5
5
|
import * as Stripe from 'stripe';
|
|
@@ -53,7 +53,13 @@ type Endpoint<M extends Options["method"], Path extends string, Res, Body = unde
|
|
|
53
53
|
res: Res;
|
|
54
54
|
body: Body;
|
|
55
55
|
};
|
|
56
|
-
type
|
|
56
|
+
type SSEEndpoints = Extract<Endpoints, {
|
|
57
|
+
method: "GET";
|
|
58
|
+
}> extends infer E ? E extends {
|
|
59
|
+
res: ReadableStream<infer _>;
|
|
60
|
+
path: infer P;
|
|
61
|
+
} ? P : never : never;
|
|
62
|
+
type Endpoints = ApiKeyEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | RoadmapEndpoints | UserEndpoints | WebhookEndpoints | NotificationEndpoints;
|
|
57
63
|
|
|
58
64
|
declare enum ApiKeyTier {
|
|
59
65
|
PUBLIC = "public",
|
|
@@ -289,7 +295,9 @@ type User = Base & {
|
|
|
289
295
|
};
|
|
290
296
|
type UserIdentifier = {
|
|
291
297
|
email?: string;
|
|
298
|
+
emailVerified?: boolean;
|
|
292
299
|
phoneNumber?: string;
|
|
300
|
+
phoneNumberVerified?: boolean;
|
|
293
301
|
username: string;
|
|
294
302
|
};
|
|
295
303
|
type UserIdentity = UserProfile & {
|
|
@@ -378,13 +386,16 @@ declare enum AuthFlow {
|
|
|
378
386
|
type RecoveryResponse = {
|
|
379
387
|
to: string;
|
|
380
388
|
};
|
|
389
|
+
type VerifyEmailResponse = {
|
|
390
|
+
to: string;
|
|
391
|
+
};
|
|
381
392
|
type AuthResponse = {
|
|
382
393
|
user: User;
|
|
383
394
|
accessToken: string;
|
|
384
395
|
refreshToken: string;
|
|
385
396
|
flow: AuthFlow;
|
|
386
397
|
};
|
|
387
|
-
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>;
|
|
398
|
+
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>;
|
|
388
399
|
|
|
389
400
|
type CareersOffice = {
|
|
390
401
|
id: number | null;
|
|
@@ -739,7 +750,14 @@ declare enum OrganizationEventStyleType {
|
|
|
739
750
|
}
|
|
740
751
|
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", 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[], null>;
|
|
741
752
|
|
|
742
|
-
type
|
|
753
|
+
type OrganizationEventViewOptions = {
|
|
754
|
+
events: string | string[];
|
|
755
|
+
};
|
|
756
|
+
type OrganizationEventViewResult = {
|
|
757
|
+
eventId: string;
|
|
758
|
+
viewsCount: number;
|
|
759
|
+
};
|
|
760
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
|
|
743
761
|
|
|
744
762
|
type OrganizationEventTicket = Base & {
|
|
745
763
|
name: string;
|
|
@@ -792,6 +810,7 @@ type OrganizationEvent = Base & {
|
|
|
792
810
|
sessionsCount: number;
|
|
793
811
|
totalViewsCount: number;
|
|
794
812
|
averageViewsPerSessionCount: number;
|
|
813
|
+
hypeCount: number;
|
|
795
814
|
startAt: Date;
|
|
796
815
|
endAt: Date;
|
|
797
816
|
};
|
|
@@ -837,6 +856,8 @@ type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
|
|
|
837
856
|
status?: OrganizationEventStatus | OrganizationEventStatus[];
|
|
838
857
|
types?: OrganizationEventType | OrganizationEventType[];
|
|
839
858
|
styles?: string | string[];
|
|
859
|
+
city?: string;
|
|
860
|
+
country?: string;
|
|
840
861
|
};
|
|
841
862
|
type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
842
863
|
q: string;
|
|
@@ -956,6 +977,27 @@ type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organizati
|
|
|
956
977
|
limit?: number;
|
|
957
978
|
}> | 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/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
958
979
|
|
|
980
|
+
type Place = Base & {
|
|
981
|
+
geonameId: number;
|
|
982
|
+
name: string;
|
|
983
|
+
asciiName: string;
|
|
984
|
+
country: string;
|
|
985
|
+
countryCode: string;
|
|
986
|
+
region: string;
|
|
987
|
+
department: string;
|
|
988
|
+
latitude: number;
|
|
989
|
+
longitude: number;
|
|
990
|
+
population: number;
|
|
991
|
+
timezone: string;
|
|
992
|
+
isCapital: boolean;
|
|
993
|
+
citySlug: string;
|
|
994
|
+
countrySlug: string;
|
|
995
|
+
};
|
|
996
|
+
type SearchPlacesOptions = ArrayOptions<Place> & {
|
|
997
|
+
q: string;
|
|
998
|
+
};
|
|
999
|
+
type PlaceEndpoints = Endpoint<"GET", "/places", ArrayResult<Place>, ArrayOptions<Place>> | Endpoint<"GET", "/places/:countrySlug", ArrayResult<Place>, ArrayOptions<Place>> | Endpoint<"GET", "/places/:countrySlug/:citySlug", Place | ExcludeBase<Place>> | Endpoint<"GET", "/places/search", ArrayResult<Place>, SearchPlacesOptions>;
|
|
1000
|
+
|
|
959
1001
|
declare const ROADMAP_REACTIONS: readonly ["👍", "❤️", "🎉", "👀", "🚀"];
|
|
960
1002
|
type RoadmapReaction = (typeof ROADMAP_REACTIONS)[number];
|
|
961
1003
|
type RoadmapReactionCounts = {
|
|
@@ -1178,7 +1220,7 @@ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface
|
|
|
1178
1220
|
defaultMessage(): string;
|
|
1179
1221
|
}
|
|
1180
1222
|
declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
|
|
1181
|
-
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount"> & {
|
|
1223
|
+
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount"> & {
|
|
1182
1224
|
slug?: string;
|
|
1183
1225
|
styles: string[];
|
|
1184
1226
|
tickets: CreateOrganizationEventTicketInput[];
|
|
@@ -1310,6 +1352,11 @@ declare class UpdateUserIdentityDto implements Partial<Pick<UserIdentity, "first
|
|
|
1310
1352
|
links?: string[];
|
|
1311
1353
|
}
|
|
1312
1354
|
|
|
1355
|
+
declare class VerifyEmailConfirmDto {
|
|
1356
|
+
tokenId: string;
|
|
1357
|
+
tokenValue: string;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1313
1360
|
type OrganizationMember = Base & {
|
|
1314
1361
|
organization: OrganizationProfile;
|
|
1315
1362
|
role: OrganizationMemberRole;
|
|
@@ -1426,7 +1473,7 @@ declare class Client {
|
|
|
1426
1473
|
private apiKey?;
|
|
1427
1474
|
private accessToken?;
|
|
1428
1475
|
private cacheManager?;
|
|
1429
|
-
readonly url: (path: string, params:
|
|
1476
|
+
readonly url: (path: string, params: Query<string>) => string;
|
|
1430
1477
|
constructor(options: ClientOptions);
|
|
1431
1478
|
setOptions(options: ClientOptions): void;
|
|
1432
1479
|
setAccessToken(accessToken: string | undefined): void;
|
|
@@ -1458,6 +1505,10 @@ declare const auth: (client: Client) => {
|
|
|
1458
1505
|
refreshToken: () => Promise<AuthResponse>;
|
|
1459
1506
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
1460
1507
|
recoveryReset: (data: RecoveryResetDto) => Promise<null>;
|
|
1508
|
+
verifyEmail: {
|
|
1509
|
+
send: () => Promise<VerifyEmailResponse>;
|
|
1510
|
+
confirm: (data: VerifyEmailConfirmDto) => Promise<null>;
|
|
1511
|
+
};
|
|
1461
1512
|
oauth2: {
|
|
1462
1513
|
connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
|
|
1463
1514
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
@@ -1625,6 +1676,7 @@ declare const organizations: (client: Client) => {
|
|
|
1625
1676
|
};
|
|
1626
1677
|
views: {
|
|
1627
1678
|
record: (organizationSlug: string, eventSlug: string) => Promise<boolean>;
|
|
1679
|
+
getStreamUrl: (options: OrganizationEventViewOptions) => string;
|
|
1628
1680
|
};
|
|
1629
1681
|
};
|
|
1630
1682
|
members: {
|
|
@@ -1653,6 +1705,13 @@ declare const organizations: (client: Client) => {
|
|
|
1653
1705
|
};
|
|
1654
1706
|
};
|
|
1655
1707
|
|
|
1708
|
+
declare const places: (client: Client) => {
|
|
1709
|
+
getAll: (options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1710
|
+
getByCountry: (countrySlug: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1711
|
+
get: (countrySlug: string, citySlug: string) => Promise<Place | ExcludeBase<Place>>;
|
|
1712
|
+
search: (query: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1656
1715
|
declare const profiles: (client: Client) => {
|
|
1657
1716
|
getAll: (options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
1658
1717
|
search: (query: string, options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
@@ -1741,6 +1800,10 @@ declare class TonightPass {
|
|
|
1741
1800
|
refreshToken: () => Promise<AuthResponse>;
|
|
1742
1801
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
1743
1802
|
recoveryReset: (data: RecoveryResetDto) => Promise<null>;
|
|
1803
|
+
verifyEmail: {
|
|
1804
|
+
send: () => Promise<VerifyEmailResponse>;
|
|
1805
|
+
confirm: (data: VerifyEmailConfirmDto) => Promise<null>;
|
|
1806
|
+
};
|
|
1744
1807
|
oauth2: {
|
|
1745
1808
|
connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
|
|
1746
1809
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
@@ -1871,6 +1934,7 @@ declare class TonightPass {
|
|
|
1871
1934
|
};
|
|
1872
1935
|
views: {
|
|
1873
1936
|
record: (organizationSlug: string, eventSlug: string) => Promise<boolean>;
|
|
1937
|
+
getStreamUrl: (options: OrganizationEventViewOptions) => string;
|
|
1874
1938
|
};
|
|
1875
1939
|
};
|
|
1876
1940
|
members: {
|
|
@@ -1898,6 +1962,12 @@ declare class TonightPass {
|
|
|
1898
1962
|
getAllByEvent: (organizationSlug: string, eventSlug: string) => Promise<ArrayResult<OrganizationOrder>>;
|
|
1899
1963
|
};
|
|
1900
1964
|
};
|
|
1965
|
+
readonly places: {
|
|
1966
|
+
getAll: (options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1967
|
+
getByCountry: (countrySlug: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1968
|
+
get: (countrySlug: string, citySlug: string) => Promise<Place | ExcludeBase<Place>>;
|
|
1969
|
+
search: (query: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1970
|
+
};
|
|
1901
1971
|
readonly profiles: {
|
|
1902
1972
|
getAll: (options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
1903
1973
|
search: (query: string, options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
@@ -2129,4 +2199,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2129
2199
|
client: ChannelWebSocketClient;
|
|
2130
2200
|
};
|
|
2131
2201
|
|
|
2132
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, 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, type Body, type CacheEntry, CacheManager, type CacheOptions, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, 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, type CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, 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, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, profiles, request, roadmap, sdk, users };
|
|
2202
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, 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, type Body, type CacheEntry, CacheManager, type CacheOptions, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, 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, type CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, 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 OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Place, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, 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 StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, 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, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pathcat from 'pathcat';
|
|
2
|
-
import {
|
|
2
|
+
import { Query, ParamValue } from 'pathcat';
|
|
3
3
|
export * from 'pathcat';
|
|
4
4
|
import { Options, Response as Response$1 } from 'redaxios';
|
|
5
5
|
import * as Stripe from 'stripe';
|
|
@@ -53,7 +53,13 @@ type Endpoint<M extends Options["method"], Path extends string, Res, Body = unde
|
|
|
53
53
|
res: Res;
|
|
54
54
|
body: Body;
|
|
55
55
|
};
|
|
56
|
-
type
|
|
56
|
+
type SSEEndpoints = Extract<Endpoints, {
|
|
57
|
+
method: "GET";
|
|
58
|
+
}> extends infer E ? E extends {
|
|
59
|
+
res: ReadableStream<infer _>;
|
|
60
|
+
path: infer P;
|
|
61
|
+
} ? P : never : never;
|
|
62
|
+
type Endpoints = ApiKeyEndpoints | AuthEndpoints | CareerEndpoints | ChannelEndpoints | ChannelMessageEndpoints | CurrenciesEndpoints | FeedEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | PlaceEndpoints | ProfileEndpoints | RoadmapEndpoints | UserEndpoints | WebhookEndpoints | NotificationEndpoints;
|
|
57
63
|
|
|
58
64
|
declare enum ApiKeyTier {
|
|
59
65
|
PUBLIC = "public",
|
|
@@ -289,7 +295,9 @@ type User = Base & {
|
|
|
289
295
|
};
|
|
290
296
|
type UserIdentifier = {
|
|
291
297
|
email?: string;
|
|
298
|
+
emailVerified?: boolean;
|
|
292
299
|
phoneNumber?: string;
|
|
300
|
+
phoneNumberVerified?: boolean;
|
|
293
301
|
username: string;
|
|
294
302
|
};
|
|
295
303
|
type UserIdentity = UserProfile & {
|
|
@@ -378,13 +386,16 @@ declare enum AuthFlow {
|
|
|
378
386
|
type RecoveryResponse = {
|
|
379
387
|
to: string;
|
|
380
388
|
};
|
|
389
|
+
type VerifyEmailResponse = {
|
|
390
|
+
to: string;
|
|
391
|
+
};
|
|
381
392
|
type AuthResponse = {
|
|
382
393
|
user: User;
|
|
383
394
|
accessToken: string;
|
|
384
395
|
refreshToken: string;
|
|
385
396
|
flow: AuthFlow;
|
|
386
397
|
};
|
|
387
|
-
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>;
|
|
398
|
+
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>;
|
|
388
399
|
|
|
389
400
|
type CareersOffice = {
|
|
390
401
|
id: number | null;
|
|
@@ -739,7 +750,14 @@ declare enum OrganizationEventStyleType {
|
|
|
739
750
|
}
|
|
740
751
|
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", 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[], null>;
|
|
741
752
|
|
|
742
|
-
type
|
|
753
|
+
type OrganizationEventViewOptions = {
|
|
754
|
+
events: string | string[];
|
|
755
|
+
};
|
|
756
|
+
type OrganizationEventViewResult = {
|
|
757
|
+
eventId: string;
|
|
758
|
+
viewsCount: number;
|
|
759
|
+
};
|
|
760
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
|
|
743
761
|
|
|
744
762
|
type OrganizationEventTicket = Base & {
|
|
745
763
|
name: string;
|
|
@@ -792,6 +810,7 @@ type OrganizationEvent = Base & {
|
|
|
792
810
|
sessionsCount: number;
|
|
793
811
|
totalViewsCount: number;
|
|
794
812
|
averageViewsPerSessionCount: number;
|
|
813
|
+
hypeCount: number;
|
|
795
814
|
startAt: Date;
|
|
796
815
|
endAt: Date;
|
|
797
816
|
};
|
|
@@ -837,6 +856,8 @@ type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
|
|
|
837
856
|
status?: OrganizationEventStatus | OrganizationEventStatus[];
|
|
838
857
|
types?: OrganizationEventType | OrganizationEventType[];
|
|
839
858
|
styles?: string | string[];
|
|
859
|
+
city?: string;
|
|
860
|
+
country?: string;
|
|
840
861
|
};
|
|
841
862
|
type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
842
863
|
q: string;
|
|
@@ -956,6 +977,27 @@ type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organizati
|
|
|
956
977
|
limit?: number;
|
|
957
978
|
}> | 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/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
958
979
|
|
|
980
|
+
type Place = Base & {
|
|
981
|
+
geonameId: number;
|
|
982
|
+
name: string;
|
|
983
|
+
asciiName: string;
|
|
984
|
+
country: string;
|
|
985
|
+
countryCode: string;
|
|
986
|
+
region: string;
|
|
987
|
+
department: string;
|
|
988
|
+
latitude: number;
|
|
989
|
+
longitude: number;
|
|
990
|
+
population: number;
|
|
991
|
+
timezone: string;
|
|
992
|
+
isCapital: boolean;
|
|
993
|
+
citySlug: string;
|
|
994
|
+
countrySlug: string;
|
|
995
|
+
};
|
|
996
|
+
type SearchPlacesOptions = ArrayOptions<Place> & {
|
|
997
|
+
q: string;
|
|
998
|
+
};
|
|
999
|
+
type PlaceEndpoints = Endpoint<"GET", "/places", ArrayResult<Place>, ArrayOptions<Place>> | Endpoint<"GET", "/places/:countrySlug", ArrayResult<Place>, ArrayOptions<Place>> | Endpoint<"GET", "/places/:countrySlug/:citySlug", Place | ExcludeBase<Place>> | Endpoint<"GET", "/places/search", ArrayResult<Place>, SearchPlacesOptions>;
|
|
1000
|
+
|
|
959
1001
|
declare const ROADMAP_REACTIONS: readonly ["👍", "❤️", "🎉", "👀", "🚀"];
|
|
960
1002
|
type RoadmapReaction = (typeof ROADMAP_REACTIONS)[number];
|
|
961
1003
|
type RoadmapReactionCounts = {
|
|
@@ -1178,7 +1220,7 @@ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface
|
|
|
1178
1220
|
defaultMessage(): string;
|
|
1179
1221
|
}
|
|
1180
1222
|
declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
|
|
1181
|
-
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount"> & {
|
|
1223
|
+
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "status" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount" | "hypeCount"> & {
|
|
1182
1224
|
slug?: string;
|
|
1183
1225
|
styles: string[];
|
|
1184
1226
|
tickets: CreateOrganizationEventTicketInput[];
|
|
@@ -1310,6 +1352,11 @@ declare class UpdateUserIdentityDto implements Partial<Pick<UserIdentity, "first
|
|
|
1310
1352
|
links?: string[];
|
|
1311
1353
|
}
|
|
1312
1354
|
|
|
1355
|
+
declare class VerifyEmailConfirmDto {
|
|
1356
|
+
tokenId: string;
|
|
1357
|
+
tokenValue: string;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1313
1360
|
type OrganizationMember = Base & {
|
|
1314
1361
|
organization: OrganizationProfile;
|
|
1315
1362
|
role: OrganizationMemberRole;
|
|
@@ -1426,7 +1473,7 @@ declare class Client {
|
|
|
1426
1473
|
private apiKey?;
|
|
1427
1474
|
private accessToken?;
|
|
1428
1475
|
private cacheManager?;
|
|
1429
|
-
readonly url: (path: string, params:
|
|
1476
|
+
readonly url: (path: string, params: Query<string>) => string;
|
|
1430
1477
|
constructor(options: ClientOptions);
|
|
1431
1478
|
setOptions(options: ClientOptions): void;
|
|
1432
1479
|
setAccessToken(accessToken: string | undefined): void;
|
|
@@ -1458,6 +1505,10 @@ declare const auth: (client: Client) => {
|
|
|
1458
1505
|
refreshToken: () => Promise<AuthResponse>;
|
|
1459
1506
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
1460
1507
|
recoveryReset: (data: RecoveryResetDto) => Promise<null>;
|
|
1508
|
+
verifyEmail: {
|
|
1509
|
+
send: () => Promise<VerifyEmailResponse>;
|
|
1510
|
+
confirm: (data: VerifyEmailConfirmDto) => Promise<null>;
|
|
1511
|
+
};
|
|
1461
1512
|
oauth2: {
|
|
1462
1513
|
connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
|
|
1463
1514
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
@@ -1625,6 +1676,7 @@ declare const organizations: (client: Client) => {
|
|
|
1625
1676
|
};
|
|
1626
1677
|
views: {
|
|
1627
1678
|
record: (organizationSlug: string, eventSlug: string) => Promise<boolean>;
|
|
1679
|
+
getStreamUrl: (options: OrganizationEventViewOptions) => string;
|
|
1628
1680
|
};
|
|
1629
1681
|
};
|
|
1630
1682
|
members: {
|
|
@@ -1653,6 +1705,13 @@ declare const organizations: (client: Client) => {
|
|
|
1653
1705
|
};
|
|
1654
1706
|
};
|
|
1655
1707
|
|
|
1708
|
+
declare const places: (client: Client) => {
|
|
1709
|
+
getAll: (options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1710
|
+
getByCountry: (countrySlug: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1711
|
+
get: (countrySlug: string, citySlug: string) => Promise<Place | ExcludeBase<Place>>;
|
|
1712
|
+
search: (query: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1656
1715
|
declare const profiles: (client: Client) => {
|
|
1657
1716
|
getAll: (options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
1658
1717
|
search: (query: string, options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
@@ -1741,6 +1800,10 @@ declare class TonightPass {
|
|
|
1741
1800
|
refreshToken: () => Promise<AuthResponse>;
|
|
1742
1801
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
1743
1802
|
recoveryReset: (data: RecoveryResetDto) => Promise<null>;
|
|
1803
|
+
verifyEmail: {
|
|
1804
|
+
send: () => Promise<VerifyEmailResponse>;
|
|
1805
|
+
confirm: (data: VerifyEmailConfirmDto) => Promise<null>;
|
|
1806
|
+
};
|
|
1744
1807
|
oauth2: {
|
|
1745
1808
|
connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
|
|
1746
1809
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
@@ -1871,6 +1934,7 @@ declare class TonightPass {
|
|
|
1871
1934
|
};
|
|
1872
1935
|
views: {
|
|
1873
1936
|
record: (organizationSlug: string, eventSlug: string) => Promise<boolean>;
|
|
1937
|
+
getStreamUrl: (options: OrganizationEventViewOptions) => string;
|
|
1874
1938
|
};
|
|
1875
1939
|
};
|
|
1876
1940
|
members: {
|
|
@@ -1898,6 +1962,12 @@ declare class TonightPass {
|
|
|
1898
1962
|
getAllByEvent: (organizationSlug: string, eventSlug: string) => Promise<ArrayResult<OrganizationOrder>>;
|
|
1899
1963
|
};
|
|
1900
1964
|
};
|
|
1965
|
+
readonly places: {
|
|
1966
|
+
getAll: (options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1967
|
+
getByCountry: (countrySlug: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1968
|
+
get: (countrySlug: string, citySlug: string) => Promise<Place | ExcludeBase<Place>>;
|
|
1969
|
+
search: (query: string, options?: ArrayOptions<Place>) => Promise<ArrayResult<Place>>;
|
|
1970
|
+
};
|
|
1901
1971
|
readonly profiles: {
|
|
1902
1972
|
getAll: (options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
1903
1973
|
search: (query: string, options?: ArrayOptions<Profile>) => Promise<ArrayResult<Profile>>;
|
|
@@ -2129,4 +2199,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2129
2199
|
client: ChannelWebSocketClient;
|
|
2130
2200
|
};
|
|
2131
2201
|
|
|
2132
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, 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, type Body, type CacheEntry, CacheManager, type CacheOptions, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, 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, type CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, 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, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, profiles, request, roadmap, sdk, users };
|
|
2202
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, 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, type Body, type CacheEntry, CacheManager, type CacheOptions, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, 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, type CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, 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 OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Place, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, 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 StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, 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, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, users };
|