tonightpass 0.0.191 → 0.0.193

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
@@ -51,12 +51,12 @@ type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", Arr
51
51
  unseen?: boolean;
52
52
  }>;
53
53
 
54
- declare class CreateUserPostCommentDto$1 {
54
+ declare class CreateUserPostCommentDto {
55
55
  content: string;
56
56
  replyToId?: string;
57
57
  }
58
58
 
59
- declare class UpdateUserPostCommentDto$1 {
59
+ declare class UpdateUserPostCommentDto {
60
60
  content: string;
61
61
  }
62
62
 
@@ -68,7 +68,7 @@ type UserPostComment = Base & {
68
68
  isEdited: boolean;
69
69
  editedAt?: Date;
70
70
  };
71
- type UserPostCommentEndpoints = Endpoint<"GET", "/users/:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/@me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto$1> | Endpoint<"PUT", "/users/@me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId/comments/:commentId", void>;
71
+ type UserPostCommentEndpoints = Endpoint<"GET", "/users/:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/@me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/@me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/comments/:commentId", void>;
72
72
 
73
73
  declare enum UserPostMediaType {
74
74
  Image = "image",
@@ -84,9 +84,9 @@ type UserPostMedia = {
84
84
  thumbnailUrl?: string;
85
85
  duration?: number;
86
86
  };
87
- type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData>;
87
+ type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", string, FormData>;
88
88
 
89
- declare class CreateUserPostRepostDto$1 {
89
+ declare class CreateUserPostRepostDto {
90
90
  comment?: string;
91
91
  }
92
92
 
@@ -95,17 +95,17 @@ type UserPostRepost = Base & {
95
95
  author: UserProfile;
96
96
  comment?: string;
97
97
  };
98
- type UserPostRepostEndpoints = Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId/reposts", void>;
98
+ type UserPostRepostEndpoints = Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/reposts", void>;
99
99
 
100
100
  type UserPostViewEndpoints = Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null>;
101
101
 
102
- declare class CreateUserPostDto$1 {
102
+ declare class CreateUserPostDto {
103
103
  content?: string;
104
104
  mediaUrls: string[];
105
105
  visibility?: UserPostVisibility;
106
106
  }
107
107
 
108
- declare class UpdateUserPostDto$1 {
108
+ declare class UpdateUserPostDto {
109
109
  content?: string;
110
110
  visibility?: UserPostVisibility;
111
111
  }
@@ -129,7 +129,7 @@ type UserPost = Base & {
129
129
  isEdited: boolean;
130
130
  editedAt?: Date;
131
131
  };
132
- type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto$1> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
132
+ type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
133
133
 
134
134
  type Order = Base & {
135
135
  invoice: Stripe__default.Invoice;
@@ -1425,8 +1425,8 @@ declare const users: (client: Client) => {
1425
1425
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1426
1426
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1427
1427
  delete: (postId: string) => Promise<void>;
1428
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1429
- views: {
1428
+ uploadMedia: (file: FormData) => Promise<string>;
1429
+ views: (client: Client) => {
1430
1430
  record: (username: string, postId: string) => Promise<boolean>;
1431
1431
  };
1432
1432
  };
@@ -1439,8 +1439,8 @@ declare const users: (client: Client) => {
1439
1439
  postsReposts: {
1440
1440
  getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1441
1441
  getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1442
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | UserPostMedia | null>;
1443
- delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1442
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1443
+ delete: (postId: string) => Promise<void>;
1444
1444
  };
1445
1445
  };
1446
1446
 
@@ -1644,8 +1644,8 @@ declare class TonightPass {
1644
1644
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1645
1645
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1646
1646
  delete: (postId: string) => Promise<void>;
1647
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1648
- views: {
1647
+ uploadMedia: (file: FormData) => Promise<string>;
1648
+ views: (client: Client) => {
1649
1649
  record: (username: string, postId: string) => Promise<boolean>;
1650
1650
  };
1651
1651
  };
@@ -1658,8 +1658,8 @@ declare class TonightPass {
1658
1658
  postsReposts: {
1659
1659
  getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1660
1660
  getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1661
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | UserPostMedia | null>;
1662
- delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1661
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1662
+ delete: (postId: string) => Promise<void>;
1663
1663
  };
1664
1664
  };
1665
1665
  readonly notifications: {
@@ -1827,4 +1827,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
1827
1827
  client: ChannelWebSocketClient;
1828
1828
  };
1829
1829
 
1830
- export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, 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, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto$1 as CreateUserPostCommentDto, CreateUserPostDto$1 as CreateUserPostDto, CreateUserPostRepostDto$1 as 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 GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, 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, OrganizationMemberStatus, type OrganizationMembersEndpoints, 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, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto$1 as UpdateUserPostCommentDto, UpdateUserPostDto$1 as UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, 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, 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, auth, buildFileFormData, careers, channels, channelsWS, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
1830
+ export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, 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, 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 GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, 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, OrganizationMemberStatus, type OrganizationMembersEndpoints, 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, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, 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, 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, auth, buildFileFormData, careers, channels, channelsWS, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
package/dist/index.d.ts CHANGED
@@ -51,12 +51,12 @@ type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", Arr
51
51
  unseen?: boolean;
52
52
  }>;
53
53
 
54
- declare class CreateUserPostCommentDto$1 {
54
+ declare class CreateUserPostCommentDto {
55
55
  content: string;
56
56
  replyToId?: string;
57
57
  }
58
58
 
59
- declare class UpdateUserPostCommentDto$1 {
59
+ declare class UpdateUserPostCommentDto {
60
60
  content: string;
61
61
  }
62
62
 
@@ -68,7 +68,7 @@ type UserPostComment = Base & {
68
68
  isEdited: boolean;
69
69
  editedAt?: Date;
70
70
  };
71
- type UserPostCommentEndpoints = Endpoint<"GET", "/users/:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/@me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto$1> | Endpoint<"PUT", "/users/@me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId/comments/:commentId", void>;
71
+ type UserPostCommentEndpoints = Endpoint<"GET", "/users/:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/@me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/@me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/comments/:commentId", void>;
72
72
 
73
73
  declare enum UserPostMediaType {
74
74
  Image = "image",
@@ -84,9 +84,9 @@ type UserPostMedia = {
84
84
  thumbnailUrl?: string;
85
85
  duration?: number;
86
86
  };
87
- type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData>;
87
+ type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", string, FormData>;
88
88
 
89
- declare class CreateUserPostRepostDto$1 {
89
+ declare class CreateUserPostRepostDto {
90
90
  comment?: string;
91
91
  }
92
92
 
@@ -95,17 +95,17 @@ type UserPostRepost = Base & {
95
95
  author: UserProfile;
96
96
  comment?: string;
97
97
  };
98
- type UserPostRepostEndpoints = Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId/reposts", void>;
98
+ type UserPostRepostEndpoints = Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/reposts", void>;
99
99
 
100
100
  type UserPostViewEndpoints = Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null>;
101
101
 
102
- declare class CreateUserPostDto$1 {
102
+ declare class CreateUserPostDto {
103
103
  content?: string;
104
104
  mediaUrls: string[];
105
105
  visibility?: UserPostVisibility;
106
106
  }
107
107
 
108
- declare class UpdateUserPostDto$1 {
108
+ declare class UpdateUserPostDto {
109
109
  content?: string;
110
110
  visibility?: UserPostVisibility;
111
111
  }
@@ -129,7 +129,7 @@ type UserPost = Base & {
129
129
  isEdited: boolean;
130
130
  editedAt?: Date;
131
131
  };
132
- type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto$1> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto$1> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
132
+ type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
133
133
 
134
134
  type Order = Base & {
135
135
  invoice: Stripe__default.Invoice;
@@ -1425,8 +1425,8 @@ declare const users: (client: Client) => {
1425
1425
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1426
1426
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1427
1427
  delete: (postId: string) => Promise<void>;
1428
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1429
- views: {
1428
+ uploadMedia: (file: FormData) => Promise<string>;
1429
+ views: (client: Client) => {
1430
1430
  record: (username: string, postId: string) => Promise<boolean>;
1431
1431
  };
1432
1432
  };
@@ -1439,8 +1439,8 @@ declare const users: (client: Client) => {
1439
1439
  postsReposts: {
1440
1440
  getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1441
1441
  getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1442
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | UserPostMedia | null>;
1443
- delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1442
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1443
+ delete: (postId: string) => Promise<void>;
1444
1444
  };
1445
1445
  };
1446
1446
 
@@ -1644,8 +1644,8 @@ declare class TonightPass {
1644
1644
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1645
1645
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1646
1646
  delete: (postId: string) => Promise<void>;
1647
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1648
- views: {
1647
+ uploadMedia: (file: FormData) => Promise<string>;
1648
+ views: (client: Client) => {
1649
1649
  record: (username: string, postId: string) => Promise<boolean>;
1650
1650
  };
1651
1651
  };
@@ -1658,8 +1658,8 @@ declare class TonightPass {
1658
1658
  postsReposts: {
1659
1659
  getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1660
1660
  getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1661
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | UserPostComment | UserPostRepost | UserPostMedia | null>;
1662
- delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1661
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1662
+ delete: (postId: string) => Promise<void>;
1663
1663
  };
1664
1664
  };
1665
1665
  readonly notifications: {
@@ -1827,4 +1827,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
1827
1827
  client: ChannelWebSocketClient;
1828
1828
  };
1829
1829
 
1830
- export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, 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, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto$1 as CreateUserPostCommentDto, CreateUserPostDto$1 as CreateUserPostDto, CreateUserPostRepostDto$1 as 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 GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, 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, OrganizationMemberStatus, type OrganizationMembersEndpoints, 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, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto$1 as UpdateUserPostCommentDto, UpdateUserPostDto$1 as UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, 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, 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, auth, buildFileFormData, careers, channels, channelsWS, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
1830
+ export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, 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, 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 GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, 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, OrganizationMemberStatus, type OrganizationMembersEndpoints, 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, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, 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, 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, auth, buildFileFormData, careers, channels, channelsWS, currencies, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };