tonightpass 0.0.226 → 0.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1384,7 +1384,7 @@ declare const auth: (client: Client) => {
1384
1384
  recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
1385
1385
  recoveryReset: (data: RecoveryResetDto) => Promise<null>;
1386
1386
  oauth2: {
1387
- connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => void;
1387
+ connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
1388
1388
  disconnect: (provider: OAuth2Provider) => Promise<void>;
1389
1389
  googleOneTap: (data: GoogleOneTapDto) => Promise<User>;
1390
1390
  };
@@ -1474,6 +1474,30 @@ declare const orders: (client: Client) => {
1474
1474
  get: (orderId: string) => Promise<Order>;
1475
1475
  };
1476
1476
 
1477
+ declare const isBrowser: boolean;
1478
+ /**
1479
+ * File object with uri/name/type structure
1480
+ */
1481
+ type FileObject = {
1482
+ uri: string;
1483
+ name: string;
1484
+ type: string;
1485
+ };
1486
+ /**
1487
+ * Build a FormData object from a file or multiple files
1488
+ * @param key - The form field name for the file(s)
1489
+ * @param files - A single File, an array of Files, a FileList, or file object(s)
1490
+ * @returns FormData object with the file(s) appended
1491
+ */
1492
+ declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
1493
+ /**
1494
+ * Check if a member role has at least the specified minimum role level
1495
+ * @param memberRole - The member's current role
1496
+ * @param minimumRole - The minimum required role
1497
+ * @returns true if memberRole has at least the power of minimumRole
1498
+ */
1499
+ declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
1500
+
1477
1501
  declare const organizations: (client: Client) => {
1478
1502
  search: (query: string, limit?: number) => Promise<Organization[]>;
1479
1503
  getAll: () => Promise<ArrayResult<Organization>>;
@@ -1481,7 +1505,7 @@ declare const organizations: (client: Client) => {
1481
1505
  create: (data: CreateOrganizationDto) => Promise<Organization>;
1482
1506
  update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
1483
1507
  delete: (organizationSlug: string) => Promise<Organization>;
1484
- uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1508
+ uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
1485
1509
  billing: {
1486
1510
  account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1487
1511
  link: (organizationSlug: string) => void;
@@ -1501,8 +1525,8 @@ declare const organizations: (client: Client) => {
1501
1525
  create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
1502
1526
  update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
1503
1527
  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>;
1528
+ uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1529
+ uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1506
1530
  orders: {
1507
1531
  create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
1508
1532
  };
@@ -1572,8 +1596,8 @@ declare const users: (client: Client) => {
1572
1596
  suggestions?: string[];
1573
1597
  }>;
1574
1598
  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>;
1599
+ uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1600
+ uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1577
1601
  bookings: {
1578
1602
  getAll: () => Promise<ArrayResult<UserBooking>>;
1579
1603
  get: (bookingId: string) => Promise<UserBooking>;
@@ -1636,7 +1660,7 @@ declare class TonightPass {
1636
1660
  recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
1637
1661
  recoveryReset: (data: RecoveryResetDto) => Promise<null>;
1638
1662
  oauth2: {
1639
- connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => void;
1663
+ connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
1640
1664
  disconnect: (provider: OAuth2Provider) => Promise<void>;
1641
1665
  googleOneTap: (data: GoogleOneTapDto) => Promise<User>;
1642
1666
  };
@@ -1724,7 +1748,7 @@ declare class TonightPass {
1724
1748
  create: (data: CreateOrganizationDto) => Promise<Organization>;
1725
1749
  update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
1726
1750
  delete: (organizationSlug: string) => Promise<Organization>;
1727
- uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1751
+ uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
1728
1752
  billing: {
1729
1753
  account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1730
1754
  link: (organizationSlug: string) => void;
@@ -1744,8 +1768,8 @@ declare class TonightPass {
1744
1768
  create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
1745
1769
  update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
1746
1770
  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>;
1771
+ uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1772
+ uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1749
1773
  orders: {
1750
1774
  create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
1751
1775
  };
@@ -1813,8 +1837,8 @@ declare class TonightPass {
1813
1837
  suggestions?: string[];
1814
1838
  }>;
1815
1839
  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>;
1840
+ uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1841
+ uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1818
1842
  bookings: {
1819
1843
  getAll: () => Promise<ArrayResult<UserBooking>>;
1820
1844
  get: (bookingId: string) => Promise<UserBooking>;
@@ -1861,22 +1885,6 @@ declare class TonightPass {
1861
1885
  constructor(options: ClientOptions);
1862
1886
  }
1863
1887
 
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
1888
  interface ChannelMessageCreateEvent extends WebSocketEvent<ChannelMessage> {
1881
1889
  type: "channel_message_create";
1882
1890
  }
@@ -2033,4 +2041,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
2033
2041
  client: ChannelWebSocketClient;
2034
2042
  };
2035
2043
 
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 };
2044
+ 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 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
@@ -1384,7 +1384,7 @@ declare const auth: (client: Client) => {
1384
1384
  recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
1385
1385
  recoveryReset: (data: RecoveryResetDto) => Promise<null>;
1386
1386
  oauth2: {
1387
- connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => void;
1387
+ connect: (provider: OAuth2Provider, params?: Record<string, ParamValue>) => string;
1388
1388
  disconnect: (provider: OAuth2Provider) => Promise<void>;
1389
1389
  googleOneTap: (data: GoogleOneTapDto) => Promise<User>;
1390
1390
  };
@@ -1474,6 +1474,30 @@ declare const orders: (client: Client) => {
1474
1474
  get: (orderId: string) => Promise<Order>;
1475
1475
  };
1476
1476
 
1477
+ declare const isBrowser: boolean;
1478
+ /**
1479
+ * File object with uri/name/type structure
1480
+ */
1481
+ type FileObject = {
1482
+ uri: string;
1483
+ name: string;
1484
+ type: string;
1485
+ };
1486
+ /**
1487
+ * Build a FormData object from a file or multiple files
1488
+ * @param key - The form field name for the file(s)
1489
+ * @param files - A single File, an array of Files, a FileList, or file object(s)
1490
+ * @returns FormData object with the file(s) appended
1491
+ */
1492
+ declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
1493
+ /**
1494
+ * Check if a member role has at least the specified minimum role level
1495
+ * @param memberRole - The member's current role
1496
+ * @param minimumRole - The minimum required role
1497
+ * @returns true if memberRole has at least the power of minimumRole
1498
+ */
1499
+ declare function isMemberRoleAtLeast(memberRole: OrganizationMemberRole, minimumRole: OrganizationMemberRole): boolean;
1500
+
1477
1501
  declare const organizations: (client: Client) => {
1478
1502
  search: (query: string, limit?: number) => Promise<Organization[]>;
1479
1503
  getAll: () => Promise<ArrayResult<Organization>>;
@@ -1481,7 +1505,7 @@ declare const organizations: (client: Client) => {
1481
1505
  create: (data: CreateOrganizationDto) => Promise<Organization>;
1482
1506
  update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
1483
1507
  delete: (organizationSlug: string) => Promise<Organization>;
1484
- uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1508
+ uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
1485
1509
  billing: {
1486
1510
  account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1487
1511
  link: (organizationSlug: string) => void;
@@ -1501,8 +1525,8 @@ declare const organizations: (client: Client) => {
1501
1525
  create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
1502
1526
  update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
1503
1527
  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>;
1528
+ uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1529
+ uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1506
1530
  orders: {
1507
1531
  create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
1508
1532
  };
@@ -1572,8 +1596,8 @@ declare const users: (client: Client) => {
1572
1596
  suggestions?: string[];
1573
1597
  }>;
1574
1598
  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>;
1599
+ uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1600
+ uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1577
1601
  bookings: {
1578
1602
  getAll: () => Promise<ArrayResult<UserBooking>>;
1579
1603
  get: (bookingId: string) => Promise<UserBooking>;
@@ -1636,7 +1660,7 @@ declare class TonightPass {
1636
1660
  recovery: (data: RecoveryDto) => Promise<RecoveryResponse>;
1637
1661
  recoveryReset: (data: RecoveryResetDto) => Promise<null>;
1638
1662
  oauth2: {
1639
- connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => void;
1663
+ connect: (provider: OAuth2Provider, params?: Record<string, pathcat.ParamValue>) => string;
1640
1664
  disconnect: (provider: OAuth2Provider) => Promise<void>;
1641
1665
  googleOneTap: (data: GoogleOneTapDto) => Promise<User>;
1642
1666
  };
@@ -1724,7 +1748,7 @@ declare class TonightPass {
1724
1748
  create: (data: CreateOrganizationDto) => Promise<Organization>;
1725
1749
  update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
1726
1750
  delete: (organizationSlug: string) => Promise<Organization>;
1727
- uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1751
+ uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File | FileObject) => Promise<string>;
1728
1752
  billing: {
1729
1753
  account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1730
1754
  link: (organizationSlug: string) => void;
@@ -1744,8 +1768,8 @@ declare class TonightPass {
1744
1768
  create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
1745
1769
  update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
1746
1770
  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>;
1771
+ uploadFile: (eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1772
+ uploadOrganizationFile: (organizationSlug: string, eventSlug: string, eventFileType: OrganizationEventFileType, file: File | FileObject) => Promise<string>;
1749
1773
  orders: {
1750
1774
  create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
1751
1775
  };
@@ -1813,8 +1837,8 @@ declare class TonightPass {
1813
1837
  suggestions?: string[];
1814
1838
  }>;
1815
1839
  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>;
1840
+ uploadFile: (userId: string, userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1841
+ uploadTempFile: (userFileType: UserFileType, file: File | FileObject) => Promise<string>;
1818
1842
  bookings: {
1819
1843
  getAll: () => Promise<ArrayResult<UserBooking>>;
1820
1844
  get: (bookingId: string) => Promise<UserBooking>;
@@ -1861,22 +1885,6 @@ declare class TonightPass {
1861
1885
  constructor(options: ClientOptions);
1862
1886
  }
1863
1887
 
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
1888
  interface ChannelMessageCreateEvent extends WebSocketEvent<ChannelMessage> {
1881
1889
  type: "channel_message_create";
1882
1890
  }
@@ -2033,4 +2041,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
2033
2041
  client: ChannelWebSocketClient;
2034
2042
  };
2035
2043
 
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 };
2044
+ 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 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 };