tonightpass 0.0.227 → 0.0.229
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 +47 -34
- package/dist/index.d.ts +47 -34
- 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
|
@@ -632,7 +632,12 @@ type AuthMethod = OAuth2Provider | "password";
|
|
|
632
632
|
type RecoveryResponse = {
|
|
633
633
|
to: string;
|
|
634
634
|
};
|
|
635
|
-
type
|
|
635
|
+
type AuthResponse = {
|
|
636
|
+
user: User;
|
|
637
|
+
accessToken: string;
|
|
638
|
+
refreshToken: string;
|
|
639
|
+
};
|
|
640
|
+
type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, null> | Endpoint<"POST", "/auth/refresh-token", null, null> | 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>;
|
|
636
641
|
|
|
637
642
|
type CareersOffice = {
|
|
638
643
|
id: number | null;
|
|
@@ -1377,8 +1382,8 @@ declare const apiKeys: (client: Client) => {
|
|
|
1377
1382
|
};
|
|
1378
1383
|
|
|
1379
1384
|
declare const auth: (client: Client) => {
|
|
1380
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1381
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1385
|
+
signIn: (data: SignInUserDto) => Promise<AuthResponse>;
|
|
1386
|
+
signUp: (data: CreateUserDto) => Promise<AuthResponse>;
|
|
1382
1387
|
signOut: () => Promise<null>;
|
|
1383
1388
|
refreshToken: () => Promise<null>;
|
|
1384
1389
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
@@ -1386,7 +1391,7 @@ declare const auth: (client: Client) => {
|
|
|
1386
1391
|
oauth2: {
|
|
1387
1392
|
connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
|
|
1388
1393
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
1389
|
-
googleOneTap: (data: GoogleOneTapDto) => Promise<
|
|
1394
|
+
googleOneTap: (data: GoogleOneTapDto) => Promise<AuthResponse>;
|
|
1390
1395
|
};
|
|
1391
1396
|
};
|
|
1392
1397
|
|
|
@@ -1474,6 +1479,30 @@ declare const orders: (client: Client) => {
|
|
|
1474
1479
|
get: (orderId: string) => Promise<Order>;
|
|
1475
1480
|
};
|
|
1476
1481
|
|
|
1482
|
+
declare const isBrowser: boolean;
|
|
1483
|
+
/**
|
|
1484
|
+
* File object with uri/name/type structure
|
|
1485
|
+
*/
|
|
1486
|
+
type FileObject = {
|
|
1487
|
+
uri: string;
|
|
1488
|
+
name: string;
|
|
1489
|
+
type: string;
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* Build a FormData object from a file or multiple files
|
|
1493
|
+
* @param key - The form field name for the file(s)
|
|
1494
|
+
* @param files - A single File, an array of Files, a FileList, or file object(s)
|
|
1495
|
+
* @returns FormData object with the file(s) appended
|
|
1496
|
+
*/
|
|
1497
|
+
declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
|
|
1498
|
+
/**
|
|
1499
|
+
* Check if a member role has at least the specified minimum role level
|
|
1500
|
+
* @param memberRole - The member's current role
|
|
1501
|
+
* @param minimumRole - The minimum required role
|
|
1502
|
+
* @returns true if memberRole has at least the power of minimumRole
|
|
1503
|
+
*/
|
|
1504
|
+
declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
|
|
1505
|
+
|
|
1477
1506
|
declare const organizations: (client: Client) => {
|
|
1478
1507
|
search: (query: string, limit?: number) => Promise<Organization[]>;
|
|
1479
1508
|
getAll: () => Promise<ArrayResult<Organization>>;
|
|
@@ -1481,7 +1510,7 @@ declare const organizations: (client: Client) => {
|
|
|
1481
1510
|
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
1482
1511
|
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
1483
1512
|
delete: (organizationSlug: string) => Promise<Organization>;
|
|
1484
|
-
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
|
|
1513
|
+
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
|
|
1485
1514
|
billing: {
|
|
1486
1515
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1487
1516
|
link: (organizationSlug: string) => void;
|
|
@@ -1501,8 +1530,8 @@ declare const organizations: (client: Client) => {
|
|
|
1501
1530
|
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1502
1531
|
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1503
1532
|
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
1504
|
-
uploadFile: (eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1505
|
-
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1533
|
+
uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1534
|
+
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1506
1535
|
orders: {
|
|
1507
1536
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1508
1537
|
};
|
|
@@ -1572,8 +1601,8 @@ declare const users: (client: Client) => {
|
|
|
1572
1601
|
suggestions?: string[];
|
|
1573
1602
|
}>;
|
|
1574
1603
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
1575
|
-
uploadFile: (userId: string, userFileType: UserFileType, file: File) => Promise<string>;
|
|
1576
|
-
uploadTempFile: (userFileType: UserFileType, file: File) => Promise<string>;
|
|
1604
|
+
uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1605
|
+
uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1577
1606
|
bookings: {
|
|
1578
1607
|
getAll: () => Promise<ArrayResult<UserBooking>>;
|
|
1579
1608
|
get: (bookingId: string) => Promise<UserBooking>;
|
|
@@ -1629,8 +1658,8 @@ declare class TonightPass {
|
|
|
1629
1658
|
delete: (apiKeyId: string) => Promise<ApiKey>;
|
|
1630
1659
|
};
|
|
1631
1660
|
readonly auth: {
|
|
1632
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1633
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1661
|
+
signIn: (data: SignInUserDto) => Promise<AuthResponse>;
|
|
1662
|
+
signUp: (data: CreateUserDto) => Promise<AuthResponse>;
|
|
1634
1663
|
signOut: () => Promise<null>;
|
|
1635
1664
|
refreshToken: () => Promise<null>;
|
|
1636
1665
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
@@ -1638,7 +1667,7 @@ declare class TonightPass {
|
|
|
1638
1667
|
oauth2: {
|
|
1639
1668
|
connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
|
|
1640
1669
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
1641
|
-
googleOneTap: (data: GoogleOneTapDto) => Promise<
|
|
1670
|
+
googleOneTap: (data: GoogleOneTapDto) => Promise<AuthResponse>;
|
|
1642
1671
|
};
|
|
1643
1672
|
};
|
|
1644
1673
|
readonly careers: {
|
|
@@ -1724,7 +1753,7 @@ declare class TonightPass {
|
|
|
1724
1753
|
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
1725
1754
|
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
1726
1755
|
delete: (organizationSlug: string) => Promise<Organization>;
|
|
1727
|
-
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
|
|
1756
|
+
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
|
|
1728
1757
|
billing: {
|
|
1729
1758
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1730
1759
|
link: (organizationSlug: string) => void;
|
|
@@ -1744,8 +1773,8 @@ declare class TonightPass {
|
|
|
1744
1773
|
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1745
1774
|
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1746
1775
|
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
1747
|
-
uploadFile: (eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1748
|
-
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1776
|
+
uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1777
|
+
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1749
1778
|
orders: {
|
|
1750
1779
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1751
1780
|
};
|
|
@@ -1813,8 +1842,8 @@ declare class TonightPass {
|
|
|
1813
1842
|
suggestions?: string[];
|
|
1814
1843
|
}>;
|
|
1815
1844
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
1816
|
-
uploadFile: (userId: string, userFileType: UserFileType, file: File) => Promise<string>;
|
|
1817
|
-
uploadTempFile: (userFileType: UserFileType, file: File) => Promise<string>;
|
|
1845
|
+
uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1846
|
+
uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1818
1847
|
bookings: {
|
|
1819
1848
|
getAll: () => Promise<ArrayResult<UserBooking>>;
|
|
1820
1849
|
get: (bookingId: string) => Promise<UserBooking>;
|
|
@@ -1861,22 +1890,6 @@ declare class TonightPass {
|
|
|
1861
1890
|
constructor(options: ClientOptions);
|
|
1862
1891
|
}
|
|
1863
1892
|
|
|
1864
|
-
declare const isBrowser: boolean;
|
|
1865
|
-
/**
|
|
1866
|
-
* Build a FormData object from a file or multiple files
|
|
1867
|
-
* @param key - The form field name for the file(s)
|
|
1868
|
-
* @param files - A single File, an array of Files, or a FileList
|
|
1869
|
-
* @returns FormData object with the file(s) appended
|
|
1870
|
-
*/
|
|
1871
|
-
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1872
|
-
/**
|
|
1873
|
-
* Check if a member role has at least the specified minimum role level
|
|
1874
|
-
* @param memberRole - The member's current role
|
|
1875
|
-
* @param minimumRole - The minimum required role
|
|
1876
|
-
* @returns true if memberRole has at least the power of minimumRole
|
|
1877
|
-
*/
|
|
1878
|
-
declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
|
|
1879
|
-
|
|
1880
1893
|
interface ChannelMessageCreateEvent extends WebSocketEvent<ChannelMessage> {
|
|
1881
1894
|
type: "channel_message_create";
|
|
1882
1895
|
}
|
|
@@ -2033,4 +2046,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2033
2046
|
client: ChannelWebSocketClient;
|
|
2034
2047
|
};
|
|
2035
2048
|
|
|
2036
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, 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 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, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
|
2049
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, 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, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -632,7 +632,12 @@ type AuthMethod = OAuth2Provider | "password";
|
|
|
632
632
|
type RecoveryResponse = {
|
|
633
633
|
to: string;
|
|
634
634
|
};
|
|
635
|
-
type
|
|
635
|
+
type AuthResponse = {
|
|
636
|
+
user: User;
|
|
637
|
+
accessToken: string;
|
|
638
|
+
refreshToken: string;
|
|
639
|
+
};
|
|
640
|
+
type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, null> | Endpoint<"POST", "/auth/refresh-token", null, null> | 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>;
|
|
636
641
|
|
|
637
642
|
type CareersOffice = {
|
|
638
643
|
id: number | null;
|
|
@@ -1377,8 +1382,8 @@ declare const apiKeys: (client: Client) => {
|
|
|
1377
1382
|
};
|
|
1378
1383
|
|
|
1379
1384
|
declare const auth: (client: Client) => {
|
|
1380
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1381
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1385
|
+
signIn: (data: SignInUserDto) => Promise<AuthResponse>;
|
|
1386
|
+
signUp: (data: CreateUserDto) => Promise<AuthResponse>;
|
|
1382
1387
|
signOut: () => Promise<null>;
|
|
1383
1388
|
refreshToken: () => Promise<null>;
|
|
1384
1389
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
@@ -1386,7 +1391,7 @@ declare const auth: (client: Client) => {
|
|
|
1386
1391
|
oauth2: {
|
|
1387
1392
|
connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
|
|
1388
1393
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
1389
|
-
googleOneTap: (data: GoogleOneTapDto) => Promise<
|
|
1394
|
+
googleOneTap: (data: GoogleOneTapDto) => Promise<AuthResponse>;
|
|
1390
1395
|
};
|
|
1391
1396
|
};
|
|
1392
1397
|
|
|
@@ -1474,6 +1479,30 @@ declare const orders: (client: Client) => {
|
|
|
1474
1479
|
get: (orderId: string) => Promise<Order>;
|
|
1475
1480
|
};
|
|
1476
1481
|
|
|
1482
|
+
declare const isBrowser: boolean;
|
|
1483
|
+
/**
|
|
1484
|
+
* File object with uri/name/type structure
|
|
1485
|
+
*/
|
|
1486
|
+
type FileObject = {
|
|
1487
|
+
uri: string;
|
|
1488
|
+
name: string;
|
|
1489
|
+
type: string;
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* Build a FormData object from a file or multiple files
|
|
1493
|
+
* @param key - The form field name for the file(s)
|
|
1494
|
+
* @param files - A single File, an array of Files, a FileList, or file object(s)
|
|
1495
|
+
* @returns FormData object with the file(s) appended
|
|
1496
|
+
*/
|
|
1497
|
+
declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
|
|
1498
|
+
/**
|
|
1499
|
+
* Check if a member role has at least the specified minimum role level
|
|
1500
|
+
* @param memberRole - The member's current role
|
|
1501
|
+
* @param minimumRole - The minimum required role
|
|
1502
|
+
* @returns true if memberRole has at least the power of minimumRole
|
|
1503
|
+
*/
|
|
1504
|
+
declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
|
|
1505
|
+
|
|
1477
1506
|
declare const organizations: (client: Client) => {
|
|
1478
1507
|
search: (query: string, limit?: number) => Promise<Organization[]>;
|
|
1479
1508
|
getAll: () => Promise<ArrayResult<Organization>>;
|
|
@@ -1481,7 +1510,7 @@ declare const organizations: (client: Client) => {
|
|
|
1481
1510
|
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
1482
1511
|
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
1483
1512
|
delete: (organizationSlug: string) => Promise<Organization>;
|
|
1484
|
-
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
|
|
1513
|
+
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
|
|
1485
1514
|
billing: {
|
|
1486
1515
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1487
1516
|
link: (organizationSlug: string) => void;
|
|
@@ -1501,8 +1530,8 @@ declare const organizations: (client: Client) => {
|
|
|
1501
1530
|
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1502
1531
|
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1503
1532
|
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
1504
|
-
uploadFile: (eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1505
|
-
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1533
|
+
uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1534
|
+
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1506
1535
|
orders: {
|
|
1507
1536
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1508
1537
|
};
|
|
@@ -1572,8 +1601,8 @@ declare const users: (client: Client) => {
|
|
|
1572
1601
|
suggestions?: string[];
|
|
1573
1602
|
}>;
|
|
1574
1603
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
1575
|
-
uploadFile: (userId: string, userFileType: UserFileType, file: File) => Promise<string>;
|
|
1576
|
-
uploadTempFile: (userFileType: UserFileType, file: File) => Promise<string>;
|
|
1604
|
+
uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1605
|
+
uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1577
1606
|
bookings: {
|
|
1578
1607
|
getAll: () => Promise<ArrayResult<UserBooking>>;
|
|
1579
1608
|
get: (bookingId: string) => Promise<UserBooking>;
|
|
@@ -1629,8 +1658,8 @@ declare class TonightPass {
|
|
|
1629
1658
|
delete: (apiKeyId: string) => Promise<ApiKey>;
|
|
1630
1659
|
};
|
|
1631
1660
|
readonly auth: {
|
|
1632
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1633
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1661
|
+
signIn: (data: SignInUserDto) => Promise<AuthResponse>;
|
|
1662
|
+
signUp: (data: CreateUserDto) => Promise<AuthResponse>;
|
|
1634
1663
|
signOut: () => Promise<null>;
|
|
1635
1664
|
refreshToken: () => Promise<null>;
|
|
1636
1665
|
recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
|
|
@@ -1638,7 +1667,7 @@ declare class TonightPass {
|
|
|
1638
1667
|
oauth2: {
|
|
1639
1668
|
connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
|
|
1640
1669
|
disconnect: (provider: OAuth2Provider) => Promise<void>;
|
|
1641
|
-
googleOneTap: (data: GoogleOneTapDto) => Promise<
|
|
1670
|
+
googleOneTap: (data: GoogleOneTapDto) => Promise<AuthResponse>;
|
|
1642
1671
|
};
|
|
1643
1672
|
};
|
|
1644
1673
|
readonly careers: {
|
|
@@ -1724,7 +1753,7 @@ declare class TonightPass {
|
|
|
1724
1753
|
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
1725
1754
|
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
1726
1755
|
delete: (organizationSlug: string) => Promise<Organization>;
|
|
1727
|
-
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
|
|
1756
|
+
uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
|
|
1728
1757
|
billing: {
|
|
1729
1758
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1730
1759
|
link: (organizationSlug: string) => void;
|
|
@@ -1744,8 +1773,8 @@ declare class TonightPass {
|
|
|
1744
1773
|
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1745
1774
|
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
1746
1775
|
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
1747
|
-
uploadFile: (eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1748
|
-
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File) => Promise<string>;
|
|
1776
|
+
uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1777
|
+
uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
|
|
1749
1778
|
orders: {
|
|
1750
1779
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1751
1780
|
};
|
|
@@ -1813,8 +1842,8 @@ declare class TonightPass {
|
|
|
1813
1842
|
suggestions?: string[];
|
|
1814
1843
|
}>;
|
|
1815
1844
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
1816
|
-
uploadFile: (userId: string, userFileType: UserFileType, file: File) => Promise<string>;
|
|
1817
|
-
uploadTempFile: (userFileType: UserFileType, file: File) => Promise<string>;
|
|
1845
|
+
uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1846
|
+
uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
|
|
1818
1847
|
bookings: {
|
|
1819
1848
|
getAll: () => Promise<ArrayResult<UserBooking>>;
|
|
1820
1849
|
get: (bookingId: string) => Promise<UserBooking>;
|
|
@@ -1861,22 +1890,6 @@ declare class TonightPass {
|
|
|
1861
1890
|
constructor(options: ClientOptions);
|
|
1862
1891
|
}
|
|
1863
1892
|
|
|
1864
|
-
declare const isBrowser: boolean;
|
|
1865
|
-
/**
|
|
1866
|
-
* Build a FormData object from a file or multiple files
|
|
1867
|
-
* @param key - The form field name for the file(s)
|
|
1868
|
-
* @param files - A single File, an array of Files, or a FileList
|
|
1869
|
-
* @returns FormData object with the file(s) appended
|
|
1870
|
-
*/
|
|
1871
|
-
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1872
|
-
/**
|
|
1873
|
-
* Check if a member role has at least the specified minimum role level
|
|
1874
|
-
* @param memberRole - The member's current role
|
|
1875
|
-
* @param minimumRole - The minimum required role
|
|
1876
|
-
* @returns true if memberRole has at least the power of minimumRole
|
|
1877
|
-
*/
|
|
1878
|
-
declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
|
|
1879
|
-
|
|
1880
1893
|
interface ChannelMessageCreateEvent extends WebSocketEvent<ChannelMessage> {
|
|
1881
1894
|
type: "channel_message_create";
|
|
1882
1895
|
}
|
|
@@ -2033,4 +2046,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2033
2046
|
client: ChannelWebSocketClient;
|
|
2034
2047
|
};
|
|
2035
2048
|
|
|
2036
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, 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 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, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
|
2049
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, 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, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, 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, notifications, orders, organizations, profiles, request, sdk, users };
|