@natsuneko-laboratory/catalyst-sdk 0.3.4 → 0.4.1
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 +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +49 -0
- package/dist/index.mjs +49 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -414,6 +414,15 @@ interface ReportRequest {
|
|
|
414
414
|
description?: string;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
interface CatalystPrivacySettingsRequest {
|
|
418
|
+
followingListVisibility: "public" | "private";
|
|
419
|
+
followerListVisibility: "public" | "private";
|
|
420
|
+
}
|
|
421
|
+
interface CatalystPrivacySettings {
|
|
422
|
+
followingListVisibility: "public" | "private";
|
|
423
|
+
followerListVisibility: "public" | "private";
|
|
424
|
+
}
|
|
425
|
+
|
|
417
426
|
declare class CatalystClient {
|
|
418
427
|
private readonly http;
|
|
419
428
|
constructor(http: HttpClient);
|
|
@@ -432,6 +441,42 @@ declare class CatalystClient {
|
|
|
432
441
|
relationships(id: string): Promise<CatalystRelationships>;
|
|
433
442
|
follow(data: CatalystRelationshipRequest): Promise<void>;
|
|
434
443
|
remove(data: CatalystRelationshipRequest): Promise<void>;
|
|
444
|
+
followings(id: string, opts?: {
|
|
445
|
+
page?: number;
|
|
446
|
+
}): Promise<{
|
|
447
|
+
items: EgeriaUser[];
|
|
448
|
+
count: {
|
|
449
|
+
total: number;
|
|
450
|
+
offset: number;
|
|
451
|
+
};
|
|
452
|
+
page: {
|
|
453
|
+
min: number;
|
|
454
|
+
max: number;
|
|
455
|
+
current: number;
|
|
456
|
+
next: number | null;
|
|
457
|
+
prev: number | null;
|
|
458
|
+
};
|
|
459
|
+
}>;
|
|
460
|
+
followers(id: string, opts?: {
|
|
461
|
+
page?: number;
|
|
462
|
+
}): Promise<{
|
|
463
|
+
items: EgeriaUser[];
|
|
464
|
+
count: {
|
|
465
|
+
total: number;
|
|
466
|
+
offset: number;
|
|
467
|
+
};
|
|
468
|
+
page: {
|
|
469
|
+
min: number;
|
|
470
|
+
max: number;
|
|
471
|
+
current: number;
|
|
472
|
+
next: number | null;
|
|
473
|
+
prev: number | null;
|
|
474
|
+
};
|
|
475
|
+
}>;
|
|
476
|
+
relationshipCounts(id: string): Promise<{
|
|
477
|
+
followers: number | null;
|
|
478
|
+
followings: number | null;
|
|
479
|
+
}>;
|
|
435
480
|
createSmartAlbum(data: CatalystCreateSmartAlbumRequest): Promise<Identity>;
|
|
436
481
|
getSmartAlbum(id: string, opts?: {
|
|
437
482
|
since?: string;
|
|
@@ -525,6 +570,8 @@ declare class CatalystClient {
|
|
|
525
570
|
contests: CatalystContest[];
|
|
526
571
|
}>;
|
|
527
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
+
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
574
|
+
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
528
575
|
}
|
|
529
576
|
|
|
530
577
|
declare class EgeriaClient {
|
|
@@ -686,6 +733,13 @@ declare const CatalystEndpoint: {
|
|
|
686
733
|
readonly relationships: (id: string) => Endpoint;
|
|
687
734
|
readonly follow: (data: CatalystRelationshipRequest) => Endpoint;
|
|
688
735
|
readonly remove: (data: CatalystRelationshipRequest) => Endpoint;
|
|
736
|
+
readonly followings: (username: string, opts?: {
|
|
737
|
+
page?: number;
|
|
738
|
+
}) => Endpoint;
|
|
739
|
+
readonly followers: (username: string, opts?: {
|
|
740
|
+
page?: number;
|
|
741
|
+
}) => Endpoint;
|
|
742
|
+
readonly relationshipCounts: (username: string) => Endpoint;
|
|
689
743
|
readonly createSmartAlbum: (data: CatalystCreateSmartAlbumRequest) => Endpoint;
|
|
690
744
|
readonly getSmartAlbum: (id: string, opts?: {
|
|
691
745
|
since?: string;
|
|
@@ -770,6 +824,8 @@ declare const CatalystEndpoint: {
|
|
|
770
824
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
771
825
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
772
826
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
827
|
+
readonly getPrivacySettings: () => Endpoint;
|
|
828
|
+
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
773
829
|
};
|
|
774
830
|
|
|
775
831
|
declare const EgeriaEndpoint: {
|
|
@@ -818,4 +874,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
818
874
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
819
875
|
}
|
|
820
876
|
|
|
821
|
-
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 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 };
|
|
877
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,15 @@ interface ReportRequest {
|
|
|
414
414
|
description?: string;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
interface CatalystPrivacySettingsRequest {
|
|
418
|
+
followingListVisibility: "public" | "private";
|
|
419
|
+
followerListVisibility: "public" | "private";
|
|
420
|
+
}
|
|
421
|
+
interface CatalystPrivacySettings {
|
|
422
|
+
followingListVisibility: "public" | "private";
|
|
423
|
+
followerListVisibility: "public" | "private";
|
|
424
|
+
}
|
|
425
|
+
|
|
417
426
|
declare class CatalystClient {
|
|
418
427
|
private readonly http;
|
|
419
428
|
constructor(http: HttpClient);
|
|
@@ -432,6 +441,42 @@ declare class CatalystClient {
|
|
|
432
441
|
relationships(id: string): Promise<CatalystRelationships>;
|
|
433
442
|
follow(data: CatalystRelationshipRequest): Promise<void>;
|
|
434
443
|
remove(data: CatalystRelationshipRequest): Promise<void>;
|
|
444
|
+
followings(id: string, opts?: {
|
|
445
|
+
page?: number;
|
|
446
|
+
}): Promise<{
|
|
447
|
+
items: EgeriaUser[];
|
|
448
|
+
count: {
|
|
449
|
+
total: number;
|
|
450
|
+
offset: number;
|
|
451
|
+
};
|
|
452
|
+
page: {
|
|
453
|
+
min: number;
|
|
454
|
+
max: number;
|
|
455
|
+
current: number;
|
|
456
|
+
next: number | null;
|
|
457
|
+
prev: number | null;
|
|
458
|
+
};
|
|
459
|
+
}>;
|
|
460
|
+
followers(id: string, opts?: {
|
|
461
|
+
page?: number;
|
|
462
|
+
}): Promise<{
|
|
463
|
+
items: EgeriaUser[];
|
|
464
|
+
count: {
|
|
465
|
+
total: number;
|
|
466
|
+
offset: number;
|
|
467
|
+
};
|
|
468
|
+
page: {
|
|
469
|
+
min: number;
|
|
470
|
+
max: number;
|
|
471
|
+
current: number;
|
|
472
|
+
next: number | null;
|
|
473
|
+
prev: number | null;
|
|
474
|
+
};
|
|
475
|
+
}>;
|
|
476
|
+
relationshipCounts(id: string): Promise<{
|
|
477
|
+
followers: number | null;
|
|
478
|
+
followings: number | null;
|
|
479
|
+
}>;
|
|
435
480
|
createSmartAlbum(data: CatalystCreateSmartAlbumRequest): Promise<Identity>;
|
|
436
481
|
getSmartAlbum(id: string, opts?: {
|
|
437
482
|
since?: string;
|
|
@@ -525,6 +570,8 @@ declare class CatalystClient {
|
|
|
525
570
|
contests: CatalystContest[];
|
|
526
571
|
}>;
|
|
527
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
+
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
574
|
+
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
528
575
|
}
|
|
529
576
|
|
|
530
577
|
declare class EgeriaClient {
|
|
@@ -686,6 +733,13 @@ declare const CatalystEndpoint: {
|
|
|
686
733
|
readonly relationships: (id: string) => Endpoint;
|
|
687
734
|
readonly follow: (data: CatalystRelationshipRequest) => Endpoint;
|
|
688
735
|
readonly remove: (data: CatalystRelationshipRequest) => Endpoint;
|
|
736
|
+
readonly followings: (username: string, opts?: {
|
|
737
|
+
page?: number;
|
|
738
|
+
}) => Endpoint;
|
|
739
|
+
readonly followers: (username: string, opts?: {
|
|
740
|
+
page?: number;
|
|
741
|
+
}) => Endpoint;
|
|
742
|
+
readonly relationshipCounts: (username: string) => Endpoint;
|
|
689
743
|
readonly createSmartAlbum: (data: CatalystCreateSmartAlbumRequest) => Endpoint;
|
|
690
744
|
readonly getSmartAlbum: (id: string, opts?: {
|
|
691
745
|
since?: string;
|
|
@@ -770,6 +824,8 @@ declare const CatalystEndpoint: {
|
|
|
770
824
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
771
825
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
772
826
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
827
|
+
readonly getPrivacySettings: () => Endpoint;
|
|
828
|
+
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
773
829
|
};
|
|
774
830
|
|
|
775
831
|
declare const EgeriaEndpoint: {
|
|
@@ -818,4 +874,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
818
874
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
819
875
|
}
|
|
820
876
|
|
|
821
|
-
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 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 };
|
|
877
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -222,6 +222,26 @@ var CatalystEndpoint = {
|
|
|
222
222
|
remove(data) {
|
|
223
223
|
return { path: "/catalyst/v1/relationships", method: "DELETE", body: data };
|
|
224
224
|
},
|
|
225
|
+
followings(username, opts) {
|
|
226
|
+
return {
|
|
227
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followings`,
|
|
228
|
+
method: "GET",
|
|
229
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
followers(username, opts) {
|
|
233
|
+
return {
|
|
234
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followers`,
|
|
235
|
+
method: "GET",
|
|
236
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
relationshipCounts(username) {
|
|
240
|
+
return {
|
|
241
|
+
path: `/catalyst/v1/relationships/by/username/${username}/counts`,
|
|
242
|
+
method: "GET"
|
|
243
|
+
};
|
|
244
|
+
},
|
|
225
245
|
createSmartAlbum(data) {
|
|
226
246
|
return { path: "/catalyst/v1/smart-album", method: "POST", body: data };
|
|
227
247
|
},
|
|
@@ -534,6 +554,19 @@ var CatalystEndpoint = {
|
|
|
534
554
|
method: "POST",
|
|
535
555
|
body: data
|
|
536
556
|
};
|
|
557
|
+
},
|
|
558
|
+
getPrivacySettings() {
|
|
559
|
+
return {
|
|
560
|
+
path: "/catalyst/v1/privacy/settings",
|
|
561
|
+
method: "GET"
|
|
562
|
+
};
|
|
563
|
+
},
|
|
564
|
+
updatePrivacySettings(data) {
|
|
565
|
+
return {
|
|
566
|
+
path: "/catalyst/v1/privacy/settings",
|
|
567
|
+
method: "PATCH",
|
|
568
|
+
body: data
|
|
569
|
+
};
|
|
537
570
|
}
|
|
538
571
|
};
|
|
539
572
|
|
|
@@ -585,6 +618,15 @@ var CatalystClient = class {
|
|
|
585
618
|
remove(data) {
|
|
586
619
|
return this.http.requestVoid(CatalystEndpoint.remove(data));
|
|
587
620
|
}
|
|
621
|
+
followings(id, opts) {
|
|
622
|
+
return this.http.request(CatalystEndpoint.followings(id, opts));
|
|
623
|
+
}
|
|
624
|
+
followers(id, opts) {
|
|
625
|
+
return this.http.request(CatalystEndpoint.followers(id, opts));
|
|
626
|
+
}
|
|
627
|
+
relationshipCounts(id) {
|
|
628
|
+
return this.http.request(CatalystEndpoint.relationshipCounts(id));
|
|
629
|
+
}
|
|
588
630
|
// Smart Albums
|
|
589
631
|
createSmartAlbum(data) {
|
|
590
632
|
return this.http.request(CatalystEndpoint.createSmartAlbum(data));
|
|
@@ -761,6 +803,13 @@ var CatalystClient = class {
|
|
|
761
803
|
reportStatus(id, data) {
|
|
762
804
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
763
805
|
}
|
|
806
|
+
// privacy
|
|
807
|
+
getPrivacySettings() {
|
|
808
|
+
return this.http.request(CatalystEndpoint.getPrivacySettings());
|
|
809
|
+
}
|
|
810
|
+
updatePrivacySettings(data) {
|
|
811
|
+
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
812
|
+
}
|
|
764
813
|
};
|
|
765
814
|
|
|
766
815
|
// src/endpoints/egeriaEndpoint.ts
|
package/dist/index.mjs
CHANGED
|
@@ -173,6 +173,26 @@ var CatalystEndpoint = {
|
|
|
173
173
|
remove(data) {
|
|
174
174
|
return { path: "/catalyst/v1/relationships", method: "DELETE", body: data };
|
|
175
175
|
},
|
|
176
|
+
followings(username, opts) {
|
|
177
|
+
return {
|
|
178
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followings`,
|
|
179
|
+
method: "GET",
|
|
180
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
followers(username, opts) {
|
|
184
|
+
return {
|
|
185
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followers`,
|
|
186
|
+
method: "GET",
|
|
187
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
relationshipCounts(username) {
|
|
191
|
+
return {
|
|
192
|
+
path: `/catalyst/v1/relationships/by/username/${username}/counts`,
|
|
193
|
+
method: "GET"
|
|
194
|
+
};
|
|
195
|
+
},
|
|
176
196
|
createSmartAlbum(data) {
|
|
177
197
|
return { path: "/catalyst/v1/smart-album", method: "POST", body: data };
|
|
178
198
|
},
|
|
@@ -485,6 +505,19 @@ var CatalystEndpoint = {
|
|
|
485
505
|
method: "POST",
|
|
486
506
|
body: data
|
|
487
507
|
};
|
|
508
|
+
},
|
|
509
|
+
getPrivacySettings() {
|
|
510
|
+
return {
|
|
511
|
+
path: "/catalyst/v1/privacy/settings",
|
|
512
|
+
method: "GET"
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
updatePrivacySettings(data) {
|
|
516
|
+
return {
|
|
517
|
+
path: "/catalyst/v1/privacy/settings",
|
|
518
|
+
method: "PATCH",
|
|
519
|
+
body: data
|
|
520
|
+
};
|
|
488
521
|
}
|
|
489
522
|
};
|
|
490
523
|
|
|
@@ -536,6 +569,15 @@ var CatalystClient = class {
|
|
|
536
569
|
remove(data) {
|
|
537
570
|
return this.http.requestVoid(CatalystEndpoint.remove(data));
|
|
538
571
|
}
|
|
572
|
+
followings(id, opts) {
|
|
573
|
+
return this.http.request(CatalystEndpoint.followings(id, opts));
|
|
574
|
+
}
|
|
575
|
+
followers(id, opts) {
|
|
576
|
+
return this.http.request(CatalystEndpoint.followers(id, opts));
|
|
577
|
+
}
|
|
578
|
+
relationshipCounts(id) {
|
|
579
|
+
return this.http.request(CatalystEndpoint.relationshipCounts(id));
|
|
580
|
+
}
|
|
539
581
|
// Smart Albums
|
|
540
582
|
createSmartAlbum(data) {
|
|
541
583
|
return this.http.request(CatalystEndpoint.createSmartAlbum(data));
|
|
@@ -712,6 +754,13 @@ var CatalystClient = class {
|
|
|
712
754
|
reportStatus(id, data) {
|
|
713
755
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
714
756
|
}
|
|
757
|
+
// privacy
|
|
758
|
+
getPrivacySettings() {
|
|
759
|
+
return this.http.request(CatalystEndpoint.getPrivacySettings());
|
|
760
|
+
}
|
|
761
|
+
updatePrivacySettings(data) {
|
|
762
|
+
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
763
|
+
}
|
|
715
764
|
};
|
|
716
765
|
|
|
717
766
|
// src/endpoints/egeriaEndpoint.ts
|