@natsuneko-laboratory/catalyst-sdk 0.5.4 → 0.6.0
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 +117 -1
- package/dist/index.d.ts +117 -1
- package/dist/index.js +150 -0
- package/dist/index.mjs +150 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -318,6 +318,7 @@ interface CatalystEditContestRequest {
|
|
|
318
318
|
since?: string;
|
|
319
319
|
until?: string;
|
|
320
320
|
allowSensitive: boolean;
|
|
321
|
+
maxMediaPerEntry?: number;
|
|
321
322
|
};
|
|
322
323
|
voting?: {
|
|
323
324
|
since?: string;
|
|
@@ -351,6 +352,7 @@ interface CatalystContest {
|
|
|
351
352
|
since: string;
|
|
352
353
|
until: string;
|
|
353
354
|
allowSensitive: boolean;
|
|
355
|
+
maxMediaPerEntry: number | null;
|
|
354
356
|
voting: {
|
|
355
357
|
since: string;
|
|
356
358
|
until: string;
|
|
@@ -422,6 +424,33 @@ interface CatalystPrivacySettings {
|
|
|
422
424
|
followerListVisibility: "public" | "private";
|
|
423
425
|
}
|
|
424
426
|
|
|
427
|
+
interface CatalystAnnouncement {
|
|
428
|
+
id: string;
|
|
429
|
+
title: string;
|
|
430
|
+
body: string;
|
|
431
|
+
category: string;
|
|
432
|
+
since: string;
|
|
433
|
+
until: string;
|
|
434
|
+
url: string | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface ProfileTag {
|
|
438
|
+
id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
normalizedName: string;
|
|
441
|
+
}
|
|
442
|
+
interface ProfileTagSuggestion {
|
|
443
|
+
id: string;
|
|
444
|
+
name: string;
|
|
445
|
+
usageCount: number;
|
|
446
|
+
}
|
|
447
|
+
interface ProfileTagUser extends EgeriaUser {
|
|
448
|
+
matchedTags: string[];
|
|
449
|
+
}
|
|
450
|
+
interface UpdateProfileTagsRequest {
|
|
451
|
+
tags: string[];
|
|
452
|
+
}
|
|
453
|
+
|
|
425
454
|
declare class CatalystClient {
|
|
426
455
|
private readonly http;
|
|
427
456
|
constructor(http: HttpClient);
|
|
@@ -573,6 +602,69 @@ declare class CatalystClient {
|
|
|
573
602
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
574
603
|
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
575
604
|
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
605
|
+
announcements(): Promise<{
|
|
606
|
+
announcements: CatalystAnnouncement[];
|
|
607
|
+
}>;
|
|
608
|
+
updateProfileTags(data: UpdateProfileTagsRequest): Promise<{
|
|
609
|
+
tags: ProfileTag[];
|
|
610
|
+
}>;
|
|
611
|
+
profileTagSuggestions(q: string): Promise<{
|
|
612
|
+
tags: ProfileTagSuggestion[];
|
|
613
|
+
}>;
|
|
614
|
+
getUsersByProfileTag(name: string, cursor?: string): Promise<{
|
|
615
|
+
items: ProfileTagUser[];
|
|
616
|
+
cursor: string | null;
|
|
617
|
+
}>;
|
|
618
|
+
getProfileTagsByUser(id: string): Promise<{
|
|
619
|
+
tags: ProfileTag[];
|
|
620
|
+
}>;
|
|
621
|
+
randomStatus(): Promise<{
|
|
622
|
+
status: CatalystStatus | null;
|
|
623
|
+
}>;
|
|
624
|
+
randomStatusByHashtag(q: string): Promise<{
|
|
625
|
+
status: CatalystStatus | null;
|
|
626
|
+
}>;
|
|
627
|
+
bulkStatusReactions(ids: string[]): Promise<{
|
|
628
|
+
reactions: Record<string, CatalystReactions>;
|
|
629
|
+
}>;
|
|
630
|
+
archiveTimeline(opts: {
|
|
631
|
+
year: number;
|
|
632
|
+
month: number;
|
|
633
|
+
day?: number;
|
|
634
|
+
since?: string;
|
|
635
|
+
until?: string;
|
|
636
|
+
userId?: string;
|
|
637
|
+
limit?: number;
|
|
638
|
+
trimUser?: boolean;
|
|
639
|
+
excludeSensitive?: boolean;
|
|
640
|
+
}): Promise<{
|
|
641
|
+
statuses: CatalystStatus[];
|
|
642
|
+
}>;
|
|
643
|
+
archiveMonths(): Promise<{
|
|
644
|
+
months: {
|
|
645
|
+
year: number;
|
|
646
|
+
month: number;
|
|
647
|
+
count: number;
|
|
648
|
+
}[];
|
|
649
|
+
}>;
|
|
650
|
+
currentContests(): Promise<{
|
|
651
|
+
contests: CatalystContest[];
|
|
652
|
+
}>;
|
|
653
|
+
getContestsByUser(username: string): Promise<{
|
|
654
|
+
contests: CatalystContest[];
|
|
655
|
+
}>;
|
|
656
|
+
getContestPolls(slug: string): Promise<{
|
|
657
|
+
polls: {
|
|
658
|
+
status: CatalystStatus;
|
|
659
|
+
count: number;
|
|
660
|
+
}[];
|
|
661
|
+
}>;
|
|
662
|
+
getAlbumsByMe(includeSmartAlbums?: boolean): Promise<{
|
|
663
|
+
albums: CatalystAlbum[];
|
|
664
|
+
}>;
|
|
665
|
+
listSmartAlbumsByUser(username: string): Promise<{
|
|
666
|
+
albums: CatalystSmartAlbum[];
|
|
667
|
+
}>;
|
|
576
668
|
}
|
|
577
669
|
|
|
578
670
|
declare class EgeriaClient {
|
|
@@ -829,6 +921,30 @@ declare const CatalystEndpoint: {
|
|
|
829
921
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
830
922
|
readonly getPrivacySettings: () => Endpoint;
|
|
831
923
|
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
924
|
+
readonly announcements: () => Endpoint;
|
|
925
|
+
readonly updateProfileTags: (data: UpdateProfileTagsRequest) => Endpoint;
|
|
926
|
+
readonly profileTagSuggestions: (q: string) => Endpoint;
|
|
927
|
+
readonly getUsersByProfileTag: (name: string, cursor?: string) => Endpoint;
|
|
928
|
+
readonly getProfileTagsByUser: (id: string) => Endpoint;
|
|
929
|
+
readonly randomStatus: () => Endpoint;
|
|
930
|
+
readonly randomStatusByHashtag: (q: string) => Endpoint;
|
|
931
|
+
readonly bulkStatusReactions: (ids: string[]) => Endpoint;
|
|
932
|
+
readonly archiveTimeline: (opts: {
|
|
933
|
+
year: number;
|
|
934
|
+
month: number;
|
|
935
|
+
day?: number;
|
|
936
|
+
since?: string;
|
|
937
|
+
until?: string;
|
|
938
|
+
userId?: string;
|
|
939
|
+
limit?: number;
|
|
940
|
+
trimUser?: boolean;
|
|
941
|
+
excludeSensitive?: boolean;
|
|
942
|
+
}) => Endpoint;
|
|
943
|
+
readonly archiveMonths: () => Endpoint;
|
|
944
|
+
readonly currentContests: () => Endpoint;
|
|
945
|
+
readonly getContestsByUser: (username: string) => Endpoint;
|
|
946
|
+
readonly getAlbumsByMe: (includeSmartAlbums?: boolean) => Endpoint;
|
|
947
|
+
readonly listSmartAlbumsByUser: (username: string) => Endpoint;
|
|
832
948
|
};
|
|
833
949
|
|
|
834
950
|
declare const EgeriaEndpoint: {
|
|
@@ -877,4 +993,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
877
993
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
878
994
|
}
|
|
879
995
|
|
|
880
|
-
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
|
996
|
+
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, type CatalystAnnouncement, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ProfileTag, type ProfileTagSuggestion, type ProfileTagUser, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, type UpdateProfileTagsRequest, UserAgentInterceptor };
|
package/dist/index.d.ts
CHANGED
|
@@ -318,6 +318,7 @@ interface CatalystEditContestRequest {
|
|
|
318
318
|
since?: string;
|
|
319
319
|
until?: string;
|
|
320
320
|
allowSensitive: boolean;
|
|
321
|
+
maxMediaPerEntry?: number;
|
|
321
322
|
};
|
|
322
323
|
voting?: {
|
|
323
324
|
since?: string;
|
|
@@ -351,6 +352,7 @@ interface CatalystContest {
|
|
|
351
352
|
since: string;
|
|
352
353
|
until: string;
|
|
353
354
|
allowSensitive: boolean;
|
|
355
|
+
maxMediaPerEntry: number | null;
|
|
354
356
|
voting: {
|
|
355
357
|
since: string;
|
|
356
358
|
until: string;
|
|
@@ -422,6 +424,33 @@ interface CatalystPrivacySettings {
|
|
|
422
424
|
followerListVisibility: "public" | "private";
|
|
423
425
|
}
|
|
424
426
|
|
|
427
|
+
interface CatalystAnnouncement {
|
|
428
|
+
id: string;
|
|
429
|
+
title: string;
|
|
430
|
+
body: string;
|
|
431
|
+
category: string;
|
|
432
|
+
since: string;
|
|
433
|
+
until: string;
|
|
434
|
+
url: string | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface ProfileTag {
|
|
438
|
+
id: string;
|
|
439
|
+
name: string;
|
|
440
|
+
normalizedName: string;
|
|
441
|
+
}
|
|
442
|
+
interface ProfileTagSuggestion {
|
|
443
|
+
id: string;
|
|
444
|
+
name: string;
|
|
445
|
+
usageCount: number;
|
|
446
|
+
}
|
|
447
|
+
interface ProfileTagUser extends EgeriaUser {
|
|
448
|
+
matchedTags: string[];
|
|
449
|
+
}
|
|
450
|
+
interface UpdateProfileTagsRequest {
|
|
451
|
+
tags: string[];
|
|
452
|
+
}
|
|
453
|
+
|
|
425
454
|
declare class CatalystClient {
|
|
426
455
|
private readonly http;
|
|
427
456
|
constructor(http: HttpClient);
|
|
@@ -573,6 +602,69 @@ declare class CatalystClient {
|
|
|
573
602
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
574
603
|
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
575
604
|
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
605
|
+
announcements(): Promise<{
|
|
606
|
+
announcements: CatalystAnnouncement[];
|
|
607
|
+
}>;
|
|
608
|
+
updateProfileTags(data: UpdateProfileTagsRequest): Promise<{
|
|
609
|
+
tags: ProfileTag[];
|
|
610
|
+
}>;
|
|
611
|
+
profileTagSuggestions(q: string): Promise<{
|
|
612
|
+
tags: ProfileTagSuggestion[];
|
|
613
|
+
}>;
|
|
614
|
+
getUsersByProfileTag(name: string, cursor?: string): Promise<{
|
|
615
|
+
items: ProfileTagUser[];
|
|
616
|
+
cursor: string | null;
|
|
617
|
+
}>;
|
|
618
|
+
getProfileTagsByUser(id: string): Promise<{
|
|
619
|
+
tags: ProfileTag[];
|
|
620
|
+
}>;
|
|
621
|
+
randomStatus(): Promise<{
|
|
622
|
+
status: CatalystStatus | null;
|
|
623
|
+
}>;
|
|
624
|
+
randomStatusByHashtag(q: string): Promise<{
|
|
625
|
+
status: CatalystStatus | null;
|
|
626
|
+
}>;
|
|
627
|
+
bulkStatusReactions(ids: string[]): Promise<{
|
|
628
|
+
reactions: Record<string, CatalystReactions>;
|
|
629
|
+
}>;
|
|
630
|
+
archiveTimeline(opts: {
|
|
631
|
+
year: number;
|
|
632
|
+
month: number;
|
|
633
|
+
day?: number;
|
|
634
|
+
since?: string;
|
|
635
|
+
until?: string;
|
|
636
|
+
userId?: string;
|
|
637
|
+
limit?: number;
|
|
638
|
+
trimUser?: boolean;
|
|
639
|
+
excludeSensitive?: boolean;
|
|
640
|
+
}): Promise<{
|
|
641
|
+
statuses: CatalystStatus[];
|
|
642
|
+
}>;
|
|
643
|
+
archiveMonths(): Promise<{
|
|
644
|
+
months: {
|
|
645
|
+
year: number;
|
|
646
|
+
month: number;
|
|
647
|
+
count: number;
|
|
648
|
+
}[];
|
|
649
|
+
}>;
|
|
650
|
+
currentContests(): Promise<{
|
|
651
|
+
contests: CatalystContest[];
|
|
652
|
+
}>;
|
|
653
|
+
getContestsByUser(username: string): Promise<{
|
|
654
|
+
contests: CatalystContest[];
|
|
655
|
+
}>;
|
|
656
|
+
getContestPolls(slug: string): Promise<{
|
|
657
|
+
polls: {
|
|
658
|
+
status: CatalystStatus;
|
|
659
|
+
count: number;
|
|
660
|
+
}[];
|
|
661
|
+
}>;
|
|
662
|
+
getAlbumsByMe(includeSmartAlbums?: boolean): Promise<{
|
|
663
|
+
albums: CatalystAlbum[];
|
|
664
|
+
}>;
|
|
665
|
+
listSmartAlbumsByUser(username: string): Promise<{
|
|
666
|
+
albums: CatalystSmartAlbum[];
|
|
667
|
+
}>;
|
|
576
668
|
}
|
|
577
669
|
|
|
578
670
|
declare class EgeriaClient {
|
|
@@ -829,6 +921,30 @@ declare const CatalystEndpoint: {
|
|
|
829
921
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
830
922
|
readonly getPrivacySettings: () => Endpoint;
|
|
831
923
|
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
924
|
+
readonly announcements: () => Endpoint;
|
|
925
|
+
readonly updateProfileTags: (data: UpdateProfileTagsRequest) => Endpoint;
|
|
926
|
+
readonly profileTagSuggestions: (q: string) => Endpoint;
|
|
927
|
+
readonly getUsersByProfileTag: (name: string, cursor?: string) => Endpoint;
|
|
928
|
+
readonly getProfileTagsByUser: (id: string) => Endpoint;
|
|
929
|
+
readonly randomStatus: () => Endpoint;
|
|
930
|
+
readonly randomStatusByHashtag: (q: string) => Endpoint;
|
|
931
|
+
readonly bulkStatusReactions: (ids: string[]) => Endpoint;
|
|
932
|
+
readonly archiveTimeline: (opts: {
|
|
933
|
+
year: number;
|
|
934
|
+
month: number;
|
|
935
|
+
day?: number;
|
|
936
|
+
since?: string;
|
|
937
|
+
until?: string;
|
|
938
|
+
userId?: string;
|
|
939
|
+
limit?: number;
|
|
940
|
+
trimUser?: boolean;
|
|
941
|
+
excludeSensitive?: boolean;
|
|
942
|
+
}) => Endpoint;
|
|
943
|
+
readonly archiveMonths: () => Endpoint;
|
|
944
|
+
readonly currentContests: () => Endpoint;
|
|
945
|
+
readonly getContestsByUser: (username: string) => Endpoint;
|
|
946
|
+
readonly getAlbumsByMe: (includeSmartAlbums?: boolean) => Endpoint;
|
|
947
|
+
readonly listSmartAlbumsByUser: (username: string) => Endpoint;
|
|
832
948
|
};
|
|
833
949
|
|
|
834
950
|
declare const EgeriaEndpoint: {
|
|
@@ -877,4 +993,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
877
993
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
878
994
|
}
|
|
879
995
|
|
|
880
|
-
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
|
996
|
+
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, type CatalystAnnouncement, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ProfileTag, type ProfileTagSuggestion, type ProfileTagUser, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, type UpdateProfileTagsRequest, UserAgentInterceptor };
|
package/dist/index.js
CHANGED
|
@@ -581,6 +581,101 @@ var CatalystEndpoint = {
|
|
|
581
581
|
method: "PATCH",
|
|
582
582
|
body: data
|
|
583
583
|
};
|
|
584
|
+
},
|
|
585
|
+
// Announcements
|
|
586
|
+
announcements() {
|
|
587
|
+
return { path: "/catalyst/v1/announcements", method: "GET" };
|
|
588
|
+
},
|
|
589
|
+
// Profile Tags
|
|
590
|
+
updateProfileTags(data) {
|
|
591
|
+
return { path: "/catalyst/v1/profile-tags", method: "PUT", body: data };
|
|
592
|
+
},
|
|
593
|
+
profileTagSuggestions(q) {
|
|
594
|
+
return {
|
|
595
|
+
path: "/catalyst/v1/profile-tags/suggestions",
|
|
596
|
+
method: "GET",
|
|
597
|
+
queryParameters: { q }
|
|
598
|
+
};
|
|
599
|
+
},
|
|
600
|
+
getUsersByProfileTag(name, cursor) {
|
|
601
|
+
return {
|
|
602
|
+
path: `/catalyst/v1/profile-tags/by/name/${name}/users`,
|
|
603
|
+
method: "GET",
|
|
604
|
+
queryParameters: cursor != null ? { cursor } : void 0
|
|
605
|
+
};
|
|
606
|
+
},
|
|
607
|
+
getProfileTagsByUser(id) {
|
|
608
|
+
return {
|
|
609
|
+
path: `/catalyst/v1/profile-tags/by/user/${id}`,
|
|
610
|
+
method: "GET"
|
|
611
|
+
};
|
|
612
|
+
},
|
|
613
|
+
// Random
|
|
614
|
+
randomStatus() {
|
|
615
|
+
return { path: "/catalyst/v1/random", method: "GET" };
|
|
616
|
+
},
|
|
617
|
+
randomStatusByHashtag(q) {
|
|
618
|
+
return {
|
|
619
|
+
path: "/catalyst/v1/random/by/hashtag",
|
|
620
|
+
method: "GET",
|
|
621
|
+
queryParameters: { q }
|
|
622
|
+
};
|
|
623
|
+
},
|
|
624
|
+
// Bulk reactions
|
|
625
|
+
bulkStatusReactions(ids) {
|
|
626
|
+
return {
|
|
627
|
+
path: "/catalyst/v1/statuses/reactions",
|
|
628
|
+
method: "POST",
|
|
629
|
+
body: { ids }
|
|
630
|
+
};
|
|
631
|
+
},
|
|
632
|
+
// Archive timeline
|
|
633
|
+
archiveTimeline(opts) {
|
|
634
|
+
const params = {
|
|
635
|
+
year: String(opts.year),
|
|
636
|
+
month: String(opts.month)
|
|
637
|
+
};
|
|
638
|
+
if (opts.day != null) params["day"] = String(opts.day);
|
|
639
|
+
if (opts.since != null) params["since"] = opts.since;
|
|
640
|
+
if (opts.until != null) params["until"] = opts.until;
|
|
641
|
+
if (opts.userId != null) params["userId"] = opts.userId;
|
|
642
|
+
if (opts.limit != null) params["limit"] = String(opts.limit);
|
|
643
|
+
if (opts.trimUser != null) params["trimUser"] = String(opts.trimUser);
|
|
644
|
+
if (opts.excludeSensitive != null)
|
|
645
|
+
params["excludeSensitive"] = String(opts.excludeSensitive);
|
|
646
|
+
return {
|
|
647
|
+
path: "/catalyst/v1/timeline/archive",
|
|
648
|
+
method: "GET",
|
|
649
|
+
queryParameters: params
|
|
650
|
+
};
|
|
651
|
+
},
|
|
652
|
+
archiveMonths() {
|
|
653
|
+
return { path: "/catalyst/v1/timeline/archive/months", method: "GET" };
|
|
654
|
+
},
|
|
655
|
+
// Contests
|
|
656
|
+
currentContests() {
|
|
657
|
+
return { path: "/catalyst/v1/contest/current", method: "GET" };
|
|
658
|
+
},
|
|
659
|
+
getContestsByUser(username) {
|
|
660
|
+
return {
|
|
661
|
+
path: `/catalyst/v1/contest/by/user/${username}`,
|
|
662
|
+
method: "GET"
|
|
663
|
+
};
|
|
664
|
+
},
|
|
665
|
+
// Album by me
|
|
666
|
+
getAlbumsByMe(includeSmartAlbums = false) {
|
|
667
|
+
return {
|
|
668
|
+
path: "/catalyst/v1/album/by/me",
|
|
669
|
+
method: "GET",
|
|
670
|
+
queryParameters: { include_smart_albums: String(includeSmartAlbums) }
|
|
671
|
+
};
|
|
672
|
+
},
|
|
673
|
+
// Smart album by user
|
|
674
|
+
listSmartAlbumsByUser(username) {
|
|
675
|
+
return {
|
|
676
|
+
path: `/catalyst/v1/smart-album/by/user/${username}`,
|
|
677
|
+
method: "GET"
|
|
678
|
+
};
|
|
584
679
|
}
|
|
585
680
|
};
|
|
586
681
|
|
|
@@ -830,6 +925,61 @@ var CatalystClient = class {
|
|
|
830
925
|
updatePrivacySettings(data) {
|
|
831
926
|
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
832
927
|
}
|
|
928
|
+
// announcements
|
|
929
|
+
announcements() {
|
|
930
|
+
return this.http.request(CatalystEndpoint.announcements());
|
|
931
|
+
}
|
|
932
|
+
// profile tags
|
|
933
|
+
updateProfileTags(data) {
|
|
934
|
+
return this.http.request(CatalystEndpoint.updateProfileTags(data));
|
|
935
|
+
}
|
|
936
|
+
profileTagSuggestions(q) {
|
|
937
|
+
return this.http.request(CatalystEndpoint.profileTagSuggestions(q));
|
|
938
|
+
}
|
|
939
|
+
getUsersByProfileTag(name, cursor) {
|
|
940
|
+
return this.http.request(
|
|
941
|
+
CatalystEndpoint.getUsersByProfileTag(name, cursor)
|
|
942
|
+
);
|
|
943
|
+
}
|
|
944
|
+
getProfileTagsByUser(id) {
|
|
945
|
+
return this.http.request(CatalystEndpoint.getProfileTagsByUser(id));
|
|
946
|
+
}
|
|
947
|
+
// random
|
|
948
|
+
randomStatus() {
|
|
949
|
+
return this.http.request(CatalystEndpoint.randomStatus());
|
|
950
|
+
}
|
|
951
|
+
randomStatusByHashtag(q) {
|
|
952
|
+
return this.http.request(CatalystEndpoint.randomStatusByHashtag(q));
|
|
953
|
+
}
|
|
954
|
+
// bulk reactions
|
|
955
|
+
bulkStatusReactions(ids) {
|
|
956
|
+
return this.http.request(CatalystEndpoint.bulkStatusReactions(ids));
|
|
957
|
+
}
|
|
958
|
+
// archive timeline
|
|
959
|
+
archiveTimeline(opts) {
|
|
960
|
+
return this.http.request(CatalystEndpoint.archiveTimeline(opts));
|
|
961
|
+
}
|
|
962
|
+
archiveMonths() {
|
|
963
|
+
return this.http.request(CatalystEndpoint.archiveMonths());
|
|
964
|
+
}
|
|
965
|
+
// contests
|
|
966
|
+
currentContests() {
|
|
967
|
+
return this.http.request(CatalystEndpoint.currentContests());
|
|
968
|
+
}
|
|
969
|
+
getContestsByUser(username) {
|
|
970
|
+
return this.http.request(CatalystEndpoint.getContestsByUser(username));
|
|
971
|
+
}
|
|
972
|
+
getContestPolls(slug) {
|
|
973
|
+
return this.http.request(CatalystEndpoint.getContestPolls(slug));
|
|
974
|
+
}
|
|
975
|
+
// album by me
|
|
976
|
+
getAlbumsByMe(includeSmartAlbums = false) {
|
|
977
|
+
return this.http.request(CatalystEndpoint.getAlbumsByMe(includeSmartAlbums));
|
|
978
|
+
}
|
|
979
|
+
// smart album by user
|
|
980
|
+
listSmartAlbumsByUser(username) {
|
|
981
|
+
return this.http.request(CatalystEndpoint.listSmartAlbumsByUser(username));
|
|
982
|
+
}
|
|
833
983
|
};
|
|
834
984
|
|
|
835
985
|
// src/endpoints/egeriaEndpoint.ts
|
package/dist/index.mjs
CHANGED
|
@@ -532,6 +532,101 @@ var CatalystEndpoint = {
|
|
|
532
532
|
method: "PATCH",
|
|
533
533
|
body: data
|
|
534
534
|
};
|
|
535
|
+
},
|
|
536
|
+
// Announcements
|
|
537
|
+
announcements() {
|
|
538
|
+
return { path: "/catalyst/v1/announcements", method: "GET" };
|
|
539
|
+
},
|
|
540
|
+
// Profile Tags
|
|
541
|
+
updateProfileTags(data) {
|
|
542
|
+
return { path: "/catalyst/v1/profile-tags", method: "PUT", body: data };
|
|
543
|
+
},
|
|
544
|
+
profileTagSuggestions(q) {
|
|
545
|
+
return {
|
|
546
|
+
path: "/catalyst/v1/profile-tags/suggestions",
|
|
547
|
+
method: "GET",
|
|
548
|
+
queryParameters: { q }
|
|
549
|
+
};
|
|
550
|
+
},
|
|
551
|
+
getUsersByProfileTag(name, cursor) {
|
|
552
|
+
return {
|
|
553
|
+
path: `/catalyst/v1/profile-tags/by/name/${name}/users`,
|
|
554
|
+
method: "GET",
|
|
555
|
+
queryParameters: cursor != null ? { cursor } : void 0
|
|
556
|
+
};
|
|
557
|
+
},
|
|
558
|
+
getProfileTagsByUser(id) {
|
|
559
|
+
return {
|
|
560
|
+
path: `/catalyst/v1/profile-tags/by/user/${id}`,
|
|
561
|
+
method: "GET"
|
|
562
|
+
};
|
|
563
|
+
},
|
|
564
|
+
// Random
|
|
565
|
+
randomStatus() {
|
|
566
|
+
return { path: "/catalyst/v1/random", method: "GET" };
|
|
567
|
+
},
|
|
568
|
+
randomStatusByHashtag(q) {
|
|
569
|
+
return {
|
|
570
|
+
path: "/catalyst/v1/random/by/hashtag",
|
|
571
|
+
method: "GET",
|
|
572
|
+
queryParameters: { q }
|
|
573
|
+
};
|
|
574
|
+
},
|
|
575
|
+
// Bulk reactions
|
|
576
|
+
bulkStatusReactions(ids) {
|
|
577
|
+
return {
|
|
578
|
+
path: "/catalyst/v1/statuses/reactions",
|
|
579
|
+
method: "POST",
|
|
580
|
+
body: { ids }
|
|
581
|
+
};
|
|
582
|
+
},
|
|
583
|
+
// Archive timeline
|
|
584
|
+
archiveTimeline(opts) {
|
|
585
|
+
const params = {
|
|
586
|
+
year: String(opts.year),
|
|
587
|
+
month: String(opts.month)
|
|
588
|
+
};
|
|
589
|
+
if (opts.day != null) params["day"] = String(opts.day);
|
|
590
|
+
if (opts.since != null) params["since"] = opts.since;
|
|
591
|
+
if (opts.until != null) params["until"] = opts.until;
|
|
592
|
+
if (opts.userId != null) params["userId"] = opts.userId;
|
|
593
|
+
if (opts.limit != null) params["limit"] = String(opts.limit);
|
|
594
|
+
if (opts.trimUser != null) params["trimUser"] = String(opts.trimUser);
|
|
595
|
+
if (opts.excludeSensitive != null)
|
|
596
|
+
params["excludeSensitive"] = String(opts.excludeSensitive);
|
|
597
|
+
return {
|
|
598
|
+
path: "/catalyst/v1/timeline/archive",
|
|
599
|
+
method: "GET",
|
|
600
|
+
queryParameters: params
|
|
601
|
+
};
|
|
602
|
+
},
|
|
603
|
+
archiveMonths() {
|
|
604
|
+
return { path: "/catalyst/v1/timeline/archive/months", method: "GET" };
|
|
605
|
+
},
|
|
606
|
+
// Contests
|
|
607
|
+
currentContests() {
|
|
608
|
+
return { path: "/catalyst/v1/contest/current", method: "GET" };
|
|
609
|
+
},
|
|
610
|
+
getContestsByUser(username) {
|
|
611
|
+
return {
|
|
612
|
+
path: `/catalyst/v1/contest/by/user/${username}`,
|
|
613
|
+
method: "GET"
|
|
614
|
+
};
|
|
615
|
+
},
|
|
616
|
+
// Album by me
|
|
617
|
+
getAlbumsByMe(includeSmartAlbums = false) {
|
|
618
|
+
return {
|
|
619
|
+
path: "/catalyst/v1/album/by/me",
|
|
620
|
+
method: "GET",
|
|
621
|
+
queryParameters: { include_smart_albums: String(includeSmartAlbums) }
|
|
622
|
+
};
|
|
623
|
+
},
|
|
624
|
+
// Smart album by user
|
|
625
|
+
listSmartAlbumsByUser(username) {
|
|
626
|
+
return {
|
|
627
|
+
path: `/catalyst/v1/smart-album/by/user/${username}`,
|
|
628
|
+
method: "GET"
|
|
629
|
+
};
|
|
535
630
|
}
|
|
536
631
|
};
|
|
537
632
|
|
|
@@ -781,6 +876,61 @@ var CatalystClient = class {
|
|
|
781
876
|
updatePrivacySettings(data) {
|
|
782
877
|
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
783
878
|
}
|
|
879
|
+
// announcements
|
|
880
|
+
announcements() {
|
|
881
|
+
return this.http.request(CatalystEndpoint.announcements());
|
|
882
|
+
}
|
|
883
|
+
// profile tags
|
|
884
|
+
updateProfileTags(data) {
|
|
885
|
+
return this.http.request(CatalystEndpoint.updateProfileTags(data));
|
|
886
|
+
}
|
|
887
|
+
profileTagSuggestions(q) {
|
|
888
|
+
return this.http.request(CatalystEndpoint.profileTagSuggestions(q));
|
|
889
|
+
}
|
|
890
|
+
getUsersByProfileTag(name, cursor) {
|
|
891
|
+
return this.http.request(
|
|
892
|
+
CatalystEndpoint.getUsersByProfileTag(name, cursor)
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
getProfileTagsByUser(id) {
|
|
896
|
+
return this.http.request(CatalystEndpoint.getProfileTagsByUser(id));
|
|
897
|
+
}
|
|
898
|
+
// random
|
|
899
|
+
randomStatus() {
|
|
900
|
+
return this.http.request(CatalystEndpoint.randomStatus());
|
|
901
|
+
}
|
|
902
|
+
randomStatusByHashtag(q) {
|
|
903
|
+
return this.http.request(CatalystEndpoint.randomStatusByHashtag(q));
|
|
904
|
+
}
|
|
905
|
+
// bulk reactions
|
|
906
|
+
bulkStatusReactions(ids) {
|
|
907
|
+
return this.http.request(CatalystEndpoint.bulkStatusReactions(ids));
|
|
908
|
+
}
|
|
909
|
+
// archive timeline
|
|
910
|
+
archiveTimeline(opts) {
|
|
911
|
+
return this.http.request(CatalystEndpoint.archiveTimeline(opts));
|
|
912
|
+
}
|
|
913
|
+
archiveMonths() {
|
|
914
|
+
return this.http.request(CatalystEndpoint.archiveMonths());
|
|
915
|
+
}
|
|
916
|
+
// contests
|
|
917
|
+
currentContests() {
|
|
918
|
+
return this.http.request(CatalystEndpoint.currentContests());
|
|
919
|
+
}
|
|
920
|
+
getContestsByUser(username) {
|
|
921
|
+
return this.http.request(CatalystEndpoint.getContestsByUser(username));
|
|
922
|
+
}
|
|
923
|
+
getContestPolls(slug) {
|
|
924
|
+
return this.http.request(CatalystEndpoint.getContestPolls(slug));
|
|
925
|
+
}
|
|
926
|
+
// album by me
|
|
927
|
+
getAlbumsByMe(includeSmartAlbums = false) {
|
|
928
|
+
return this.http.request(CatalystEndpoint.getAlbumsByMe(includeSmartAlbums));
|
|
929
|
+
}
|
|
930
|
+
// smart album by user
|
|
931
|
+
listSmartAlbumsByUser(username) {
|
|
932
|
+
return this.http.request(CatalystEndpoint.listSmartAlbumsByUser(username));
|
|
933
|
+
}
|
|
784
934
|
};
|
|
785
935
|
|
|
786
936
|
// src/endpoints/egeriaEndpoint.ts
|