tonightpass 0.0.187 → 0.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2,8 +2,8 @@ import * as pathcat from 'pathcat';
2
2
  import { ParamValue, Query } from 'pathcat';
3
3
  export * from 'pathcat';
4
4
  import { Options, Response as Response$1 } from 'redaxios';
5
- import * as Stripe from 'stripe';
6
- import Stripe__default from 'stripe';
5
+ import * as stripe from 'stripe';
6
+ import stripe__default from 'stripe';
7
7
  import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
8
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
9
9
 
@@ -51,39 +51,10 @@ type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", Arr
51
51
  unseen?: boolean;
52
52
  }>;
53
53
 
54
- type CreateUserPostDto = {
55
- content?: string;
56
- mediaIds: string[];
57
- visibility?: UserPostVisibility;
58
- };
59
- type UpdateUserPostDto = {
60
- content?: string;
61
- visibility?: UserPostVisibility;
62
- };
63
- type CreateUserPostCommentDto = {
64
- content: string;
65
- replyToId?: string;
66
- };
67
- type UpdateUserPostCommentDto = {
68
- content: string;
69
- };
70
- type CreateUserPostRepostDto = {
71
- comment?: string;
72
- };
73
- type UserPost = Base & {
74
- author: UserProfile;
75
- content?: string;
76
- media: UserPostMedia[];
77
- visibility: UserPostVisibility;
78
- metrics: {
79
- reposts: number;
80
- comments: number;
81
- views: number;
82
- };
83
- isReposted?: boolean;
84
- isEdited: boolean;
85
- editedAt?: Date;
86
- };
54
+ declare enum UserPostMediaType {
55
+ Image = "image",
56
+ Video = "video"
57
+ }
87
58
  type UserPostMedia = {
88
59
  url: string;
89
60
  type: UserPostMediaType;
@@ -94,15 +65,32 @@ type UserPostMedia = {
94
65
  thumbnailUrl?: string;
95
66
  duration?: number;
96
67
  };
97
- declare enum UserPostMediaType {
98
- Image = "image",
99
- Video = "video"
68
+ type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData>;
69
+
70
+ declare class CreateUserPostDto$1 {
71
+ content?: string;
72
+ mediaIds: string[];
73
+ visibility?: UserPostVisibility;
100
74
  }
101
- declare enum UserPostVisibility {
102
- Public = "public",
103
- Followers = "followers",
104
- Private = "private"
75
+
76
+ declare class UpdateUserPostDto$1 {
77
+ content?: string;
78
+ visibility?: UserPostVisibility;
79
+ }
80
+
81
+ declare class CreateUserPostCommentDto$1 {
82
+ content: string;
83
+ replyToId?: string;
84
+ }
85
+
86
+ declare class UpdateUserPostCommentDto$1 {
87
+ content: string;
88
+ }
89
+
90
+ declare class CreateUserPostRepostDto$1 {
91
+ comment?: string;
105
92
  }
93
+
106
94
  type UserPostComment = Base & {
107
95
  post: UserPost;
108
96
  author: UserProfile;
@@ -111,15 +99,38 @@ type UserPostComment = Base & {
111
99
  isEdited: boolean;
112
100
  editedAt?: Date;
113
101
  };
102
+ 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>;
103
+
114
104
  type UserPostRepost = Base & {
115
105
  originalPost: UserPost;
116
106
  author: UserProfile;
117
107
  comment?: string;
118
108
  };
119
- type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData> | Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/repost", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/repost", void> | 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>;
109
+ 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>;
110
+
111
+ declare enum UserPostVisibility {
112
+ Public = "public",
113
+ Followers = "followers",
114
+ Private = "private"
115
+ }
116
+ type UserPost = Base & {
117
+ author: UserProfile;
118
+ content?: string;
119
+ media: UserPostMedia[];
120
+ visibility: UserPostVisibility;
121
+ metrics: {
122
+ reposts: number;
123
+ comments: number;
124
+ views: number;
125
+ };
126
+ isReposted?: boolean;
127
+ isEdited: boolean;
128
+ editedAt?: Date;
129
+ };
130
+ 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> | Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null>;
120
131
 
121
132
  type Order = Base & {
122
- invoice: Stripe__default.Invoice;
133
+ invoice: stripe__default.Invoice;
123
134
  user: User;
124
135
  };
125
136
  type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
@@ -590,8 +601,8 @@ type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/:organiza
590
601
  type OrganizationEventTicket = Base & {
591
602
  name: string;
592
603
  description?: string;
593
- price: Stripe__default.Price;
594
- product: Stripe__default.Product;
604
+ price: stripe__default.Price;
605
+ product: stripe__default.Product;
595
606
  fee: number;
596
607
  quantity: number;
597
608
  type: OrganizationEventTicketType;
@@ -794,7 +805,7 @@ type OrganizationBilling = {
794
805
  account: string;
795
806
  vatRate: number;
796
807
  };
797
- type OrganizationBillingAccount = Stripe__default.Account;
808
+ type OrganizationBillingAccount = stripe__default.Account;
798
809
  type OrganizationIdentity = OrganizationProfile;
799
810
  declare enum OrganizationFileType {
800
811
  Avatar = "avatar",
@@ -849,7 +860,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
849
860
  type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
850
861
  type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
851
862
 
852
- type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
863
+ type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, stripe__default.Event>;
853
864
 
854
865
  type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
855
866
  email: string;
@@ -1316,7 +1327,7 @@ declare const organizations: (client: Client) => {
1316
1327
  delete: (organizationSlug: string) => Promise<Organization>;
1317
1328
  uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1318
1329
  billing: {
1319
- account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1330
+ account: (organizationSlug: string) => Promise<stripe.Stripe.Account>;
1320
1331
  link: (organizationSlug: string) => void;
1321
1332
  dashboard: (organizationSlug: string) => void;
1322
1333
  };
@@ -1412,20 +1423,32 @@ declare const users: (client: Client) => {
1412
1423
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1413
1424
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1414
1425
  delete: (postId: string) => Promise<void>;
1415
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1426
+ uploadMedia: (file: FormData) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1416
1427
  addView: (username: string, postId: string) => Promise<boolean>;
1417
1428
  };
1418
1429
  postsComments: {
1419
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<ArrayResult<UserPostComment>>;
1420
- create: (postId: string, data: CreateUserPostCommentDto) => Promise<UserPostComment>;
1421
- update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<UserPostComment>;
1422
- delete: (postId: string, commentId: string) => Promise<void>;
1430
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1431
+ exists: boolean;
1432
+ identifier: Partial<UserIdentifier>;
1433
+ suggestions?: string[];
1434
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1435
+ create: (postId: string, data: CreateUserPostCommentDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1436
+ update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<User | Channel | ChannelMessage | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | UserPost>;
1437
+ delete: (postId: string, commentId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1423
1438
  };
1424
1439
  postsReposts: {
1425
- getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1426
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1427
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1428
- delete: (postId: string) => Promise<void>;
1440
+ getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1441
+ exists: boolean;
1442
+ identifier: Partial<UserIdentifier>;
1443
+ suggestions?: string[];
1444
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1445
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1446
+ exists: boolean;
1447
+ identifier: Partial<UserIdentifier>;
1448
+ suggestions?: string[];
1449
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1450
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1451
+ delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1429
1452
  };
1430
1453
  };
1431
1454
 
@@ -1535,7 +1558,7 @@ declare class TonightPass {
1535
1558
  delete: (organizationSlug: string) => Promise<Organization>;
1536
1559
  uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1537
1560
  billing: {
1538
- account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1561
+ account: (organizationSlug: string) => Promise<stripe.Stripe.Account>;
1539
1562
  link: (organizationSlug: string) => void;
1540
1563
  dashboard: (organizationSlug: string) => void;
1541
1564
  };
@@ -1629,20 +1652,32 @@ declare class TonightPass {
1629
1652
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1630
1653
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1631
1654
  delete: (postId: string) => Promise<void>;
1632
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1655
+ uploadMedia: (file: FormData) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1633
1656
  addView: (username: string, postId: string) => Promise<boolean>;
1634
1657
  };
1635
1658
  postsComments: {
1636
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<ArrayResult<UserPostComment>>;
1637
- create: (postId: string, data: CreateUserPostCommentDto) => Promise<UserPostComment>;
1638
- update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<UserPostComment>;
1639
- delete: (postId: string, commentId: string) => Promise<void>;
1659
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1660
+ exists: boolean;
1661
+ identifier: Partial<UserIdentifier>;
1662
+ suggestions?: string[];
1663
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1664
+ create: (postId: string, data: CreateUserPostCommentDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1665
+ update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<User | Channel | ChannelMessage | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | UserPost>;
1666
+ delete: (postId: string, commentId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1640
1667
  };
1641
1668
  postsReposts: {
1642
- getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1643
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1644
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1645
- delete: (postId: string) => Promise<void>;
1669
+ getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1670
+ exists: boolean;
1671
+ identifier: Partial<UserIdentifier>;
1672
+ suggestions?: string[];
1673
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1674
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1675
+ exists: boolean;
1676
+ identifier: Partial<UserIdentifier>;
1677
+ suggestions?: string[];
1678
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1679
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1680
+ delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1646
1681
  };
1647
1682
  };
1648
1683
  readonly notifications: {
@@ -1810,4 +1845,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
1810
1845
  client: ChannelWebSocketClient;
1811
1846
  };
1812
1847
 
1813
- 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, type CreateUserPostCommentDto, type CreateUserPostDto, type 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, type UpdateUserPostCommentDto, type 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 UserPostEndpoints, type UserPostMedia, UserPostMediaType, type UserPostRepost, 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 };
1848
+ 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, 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
@@ -2,8 +2,8 @@ import * as pathcat from 'pathcat';
2
2
  import { ParamValue, Query } from 'pathcat';
3
3
  export * from 'pathcat';
4
4
  import { Options, Response as Response$1 } from 'redaxios';
5
- import * as Stripe from 'stripe';
6
- import Stripe__default from 'stripe';
5
+ import * as stripe from 'stripe';
6
+ import stripe__default from 'stripe';
7
7
  import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
8
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
9
9
 
@@ -51,39 +51,10 @@ type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", Arr
51
51
  unseen?: boolean;
52
52
  }>;
53
53
 
54
- type CreateUserPostDto = {
55
- content?: string;
56
- mediaIds: string[];
57
- visibility?: UserPostVisibility;
58
- };
59
- type UpdateUserPostDto = {
60
- content?: string;
61
- visibility?: UserPostVisibility;
62
- };
63
- type CreateUserPostCommentDto = {
64
- content: string;
65
- replyToId?: string;
66
- };
67
- type UpdateUserPostCommentDto = {
68
- content: string;
69
- };
70
- type CreateUserPostRepostDto = {
71
- comment?: string;
72
- };
73
- type UserPost = Base & {
74
- author: UserProfile;
75
- content?: string;
76
- media: UserPostMedia[];
77
- visibility: UserPostVisibility;
78
- metrics: {
79
- reposts: number;
80
- comments: number;
81
- views: number;
82
- };
83
- isReposted?: boolean;
84
- isEdited: boolean;
85
- editedAt?: Date;
86
- };
54
+ declare enum UserPostMediaType {
55
+ Image = "image",
56
+ Video = "video"
57
+ }
87
58
  type UserPostMedia = {
88
59
  url: string;
89
60
  type: UserPostMediaType;
@@ -94,15 +65,32 @@ type UserPostMedia = {
94
65
  thumbnailUrl?: string;
95
66
  duration?: number;
96
67
  };
97
- declare enum UserPostMediaType {
98
- Image = "image",
99
- Video = "video"
68
+ type UserPostMediaEndpoints = Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData>;
69
+
70
+ declare class CreateUserPostDto$1 {
71
+ content?: string;
72
+ mediaIds: string[];
73
+ visibility?: UserPostVisibility;
100
74
  }
101
- declare enum UserPostVisibility {
102
- Public = "public",
103
- Followers = "followers",
104
- Private = "private"
75
+
76
+ declare class UpdateUserPostDto$1 {
77
+ content?: string;
78
+ visibility?: UserPostVisibility;
79
+ }
80
+
81
+ declare class CreateUserPostCommentDto$1 {
82
+ content: string;
83
+ replyToId?: string;
84
+ }
85
+
86
+ declare class UpdateUserPostCommentDto$1 {
87
+ content: string;
88
+ }
89
+
90
+ declare class CreateUserPostRepostDto$1 {
91
+ comment?: string;
105
92
  }
93
+
106
94
  type UserPostComment = Base & {
107
95
  post: UserPost;
108
96
  author: UserProfile;
@@ -111,15 +99,38 @@ type UserPostComment = Base & {
111
99
  isEdited: boolean;
112
100
  editedAt?: Date;
113
101
  };
102
+ 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>;
103
+
114
104
  type UserPostRepost = Base & {
115
105
  originalPost: UserPost;
116
106
  author: UserProfile;
117
107
  comment?: string;
118
108
  };
119
- type UserPostEndpoints = Endpoint<"GET", "/users/:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/:username/posts/:postId", UserPost> | Endpoint<"GET", "/users/:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/@me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId", void> | Endpoint<"POST", "/users/@me/posts/media", UserPostMedia, FormData> | Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/@me/posts/:postId/repost", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/@me/posts/:postId/repost", void> | 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>;
109
+ 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>;
110
+
111
+ declare enum UserPostVisibility {
112
+ Public = "public",
113
+ Followers = "followers",
114
+ Private = "private"
115
+ }
116
+ type UserPost = Base & {
117
+ author: UserProfile;
118
+ content?: string;
119
+ media: UserPostMedia[];
120
+ visibility: UserPostVisibility;
121
+ metrics: {
122
+ reposts: number;
123
+ comments: number;
124
+ views: number;
125
+ };
126
+ isReposted?: boolean;
127
+ isEdited: boolean;
128
+ editedAt?: Date;
129
+ };
130
+ 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> | Endpoint<"POST", "/users/:username/posts/:postId/views", boolean, null>;
120
131
 
121
132
  type Order = Base & {
122
- invoice: Stripe__default.Invoice;
133
+ invoice: stripe__default.Invoice;
123
134
  user: User;
124
135
  };
125
136
  type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
@@ -590,8 +601,8 @@ type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/:organiza
590
601
  type OrganizationEventTicket = Base & {
591
602
  name: string;
592
603
  description?: string;
593
- price: Stripe__default.Price;
594
- product: Stripe__default.Product;
604
+ price: stripe__default.Price;
605
+ product: stripe__default.Product;
595
606
  fee: number;
596
607
  quantity: number;
597
608
  type: OrganizationEventTicketType;
@@ -794,7 +805,7 @@ type OrganizationBilling = {
794
805
  account: string;
795
806
  vatRate: number;
796
807
  };
797
- type OrganizationBillingAccount = Stripe__default.Account;
808
+ type OrganizationBillingAccount = stripe__default.Account;
798
809
  type OrganizationIdentity = OrganizationProfile;
799
810
  declare enum OrganizationFileType {
800
811
  Avatar = "avatar",
@@ -849,7 +860,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
849
860
  type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
850
861
  type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
851
862
 
852
- type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
863
+ type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, stripe__default.Event>;
853
864
 
854
865
  type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
855
866
  email: string;
@@ -1316,7 +1327,7 @@ declare const organizations: (client: Client) => {
1316
1327
  delete: (organizationSlug: string) => Promise<Organization>;
1317
1328
  uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1318
1329
  billing: {
1319
- account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1330
+ account: (organizationSlug: string) => Promise<stripe.Stripe.Account>;
1320
1331
  link: (organizationSlug: string) => void;
1321
1332
  dashboard: (organizationSlug: string) => void;
1322
1333
  };
@@ -1412,20 +1423,32 @@ declare const users: (client: Client) => {
1412
1423
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1413
1424
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1414
1425
  delete: (postId: string) => Promise<void>;
1415
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1426
+ uploadMedia: (file: FormData) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1416
1427
  addView: (username: string, postId: string) => Promise<boolean>;
1417
1428
  };
1418
1429
  postsComments: {
1419
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<ArrayResult<UserPostComment>>;
1420
- create: (postId: string, data: CreateUserPostCommentDto) => Promise<UserPostComment>;
1421
- update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<UserPostComment>;
1422
- delete: (postId: string, commentId: string) => Promise<void>;
1430
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1431
+ exists: boolean;
1432
+ identifier: Partial<UserIdentifier>;
1433
+ suggestions?: string[];
1434
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1435
+ create: (postId: string, data: CreateUserPostCommentDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1436
+ update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<User | Channel | ChannelMessage | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | UserPost>;
1437
+ delete: (postId: string, commentId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1423
1438
  };
1424
1439
  postsReposts: {
1425
- getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1426
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1427
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1428
- delete: (postId: string) => Promise<void>;
1440
+ getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1441
+ exists: boolean;
1442
+ identifier: Partial<UserIdentifier>;
1443
+ suggestions?: string[];
1444
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1445
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1446
+ exists: boolean;
1447
+ identifier: Partial<UserIdentifier>;
1448
+ suggestions?: string[];
1449
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1450
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1451
+ delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1429
1452
  };
1430
1453
  };
1431
1454
 
@@ -1535,7 +1558,7 @@ declare class TonightPass {
1535
1558
  delete: (organizationSlug: string) => Promise<Organization>;
1536
1559
  uploadFile: (organizationSlug: string, organizationFileType: OrganizationFileType, file: File) => Promise<string>;
1537
1560
  billing: {
1538
- account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
1561
+ account: (organizationSlug: string) => Promise<stripe.Stripe.Account>;
1539
1562
  link: (organizationSlug: string) => void;
1540
1563
  dashboard: (organizationSlug: string) => void;
1541
1564
  };
@@ -1629,20 +1652,32 @@ declare class TonightPass {
1629
1652
  create: (data: CreateUserPostDto) => Promise<UserPost>;
1630
1653
  update: (postId: string, data: UpdateUserPostDto) => Promise<UserPost>;
1631
1654
  delete: (postId: string) => Promise<void>;
1632
- uploadMedia: (file: FormData) => Promise<UserPostMedia>;
1655
+ uploadMedia: (file: FormData) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1633
1656
  addView: (username: string, postId: string) => Promise<boolean>;
1634
1657
  };
1635
1658
  postsComments: {
1636
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<ArrayResult<UserPostComment>>;
1637
- create: (postId: string, data: CreateUserPostCommentDto) => Promise<UserPostComment>;
1638
- update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<UserPostComment>;
1639
- delete: (postId: string, commentId: string) => Promise<void>;
1659
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostComment>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1660
+ exists: boolean;
1661
+ identifier: Partial<UserIdentifier>;
1662
+ suggestions?: string[];
1663
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1664
+ create: (postId: string, data: CreateUserPostCommentDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1665
+ update: (postId: string, commentId: string, data: UpdateUserPostCommentDto) => Promise<User | Channel | ChannelMessage | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | UserPost>;
1666
+ delete: (postId: string, commentId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1640
1667
  };
1641
1668
  postsReposts: {
1642
- getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1643
- getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<ArrayResult<UserPostRepost>>;
1644
- create: (postId: string, data?: CreateUserPostRepostDto) => Promise<UserPostRepost>;
1645
- delete: (postId: string) => Promise<void>;
1669
+ getByUsername: (username: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1670
+ exists: boolean;
1671
+ identifier: Partial<UserIdentifier>;
1672
+ suggestions?: string[];
1673
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1674
+ getByPost: (username: string, postId: string, options?: ArrayOptions<UserPostRepost>) => Promise<number | void | User | CareersCategory[] | CareersEmploymentType[] | CareersJob[] | CareersJob | CareersOffice[] | Channel | ArrayResult<Channel> | ArrayResult<ChannelMember> | ChannelMessage | ArrayResult<ChannelMessage> | ExchangeRates | Health<"database" | "app" | "api"> | Health<"database"> | Health<"api"> | Health<"app"> | Order | ArrayResult<Order> | Organization[] | Organization | ArrayResult<Organization> | stripe.Stripe.Account | OrganizationEvent[] | OrganizationEvent | ArrayResult<OrganizationEvent> | OrganizationEventStyle[] | OrganizationEventStyle | OrganizationEventTicket[] | OrganizationEventTicket | ArrayResult<OrganizationMember> | ArrayResult<OrganizationToken> | OrganizationAnalyticsOverview | ArrayResult<OrganizationEventAnalytics> | Profile | ArrayResult<Profile> | ArrayResult<UserProfile> | User[] | {
1675
+ exists: boolean;
1676
+ identifier: Partial<UserIdentifier>;
1677
+ suggestions?: string[];
1678
+ } | UserBooking | ArrayResult<UserBooking> | UserBookingTicket | ArrayResult<UserNotificationFollow> | UserPost | ArrayResult<UserPost>>;
1679
+ create: (postId: string, data?: CreateUserPostRepostDto) => Promise<string | boolean | void | User | RecoveryResponse | Channel | ChannelMessage | CurrencyConversionResult | Order | Organization | OrganizationEvent | OrganizationEventStyle | OrganizationEventTicket | OrganizationMember | OrganizationToken | UserPost | null>;
1680
+ delete: (postId: string) => Promise<void | Organization | OrganizationEvent | OrganizationEventStyle[] | OrganizationEventTicket[] | OrganizationMember[] | null>;
1646
1681
  };
1647
1682
  };
1648
1683
  readonly notifications: {
@@ -1810,4 +1845,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
1810
1845
  client: ChannelWebSocketClient;
1811
1846
  };
1812
1847
 
1813
- 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, type CreateUserPostCommentDto, type CreateUserPostDto, type 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, type UpdateUserPostCommentDto, type 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 UserPostEndpoints, type UserPostMedia, UserPostMediaType, type UserPostRepost, 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 };
1848
+ 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, 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 };