@modrinth/api-client 0.52.0 → 0.54.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.ts +83 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -769,6 +769,11 @@ export declare namespace Archon {
|
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
771
|
export namespace Servers {
|
|
772
|
+
export namespace Internal {
|
|
773
|
+
export type Lookup = {
|
|
774
|
+
id: string;
|
|
775
|
+
};
|
|
776
|
+
}
|
|
772
777
|
export namespace v0 {
|
|
773
778
|
export type ServerGetResponse = {
|
|
774
779
|
servers: Server[];
|
|
@@ -1563,6 +1568,15 @@ declare class ArchonPropertiesV1Module extends AbstractModule {
|
|
|
1563
1568
|
patchProperties(serverId: string, worldId: string, body: Archon.Content.v1.PatchPropertiesFields): Promise<Archon.Content.v1.PropertiesFields>;
|
|
1564
1569
|
}
|
|
1565
1570
|
|
|
1571
|
+
declare class ArchonServersInternalModule extends AbstractModule {
|
|
1572
|
+
getModuleID(): string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Get the server assigned to a subdomain.
|
|
1575
|
+
* GET /_internal/servers/by-subdomain/:subdomain
|
|
1576
|
+
*/
|
|
1577
|
+
getBySubdomain(subdomain: string): Promise<Archon.Servers.Internal.Lookup>;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1566
1580
|
declare class ArchonServersV0Module extends AbstractModule {
|
|
1567
1581
|
getModuleID(): string;
|
|
1568
1582
|
/**
|
|
@@ -3827,6 +3841,61 @@ export declare namespace Labrinth {
|
|
|
3827
3841
|
export type Role = Common.Role;
|
|
3828
3842
|
export type AuthProvider = Common.AuthProvider;
|
|
3829
3843
|
export type UserPayoutData = Common.UserPayoutData;
|
|
3844
|
+
export type Theme = 'light' | 'dark' | 'oled' | 'retro';
|
|
3845
|
+
export type LayoutOption = 'grid' | 'rows';
|
|
3846
|
+
export type FriendPrivacy = 'none' | 'mutual' | 'everyone';
|
|
3847
|
+
export type InvitePrivacy = 'none' | 'friends' | 'everyone';
|
|
3848
|
+
export type AppearancePreferences = {
|
|
3849
|
+
auto: boolean;
|
|
3850
|
+
theme: Theme;
|
|
3851
|
+
};
|
|
3852
|
+
export type BehaviorPreferences = {
|
|
3853
|
+
minimize_app: boolean;
|
|
3854
|
+
hide_right_sidebar: boolean;
|
|
3855
|
+
show_jump_in: boolean;
|
|
3856
|
+
show_play_time: boolean;
|
|
3857
|
+
hide_nametag: boolean;
|
|
3858
|
+
warn_on_unknown_modpacks: boolean;
|
|
3859
|
+
skip_non_essential_warnings: boolean;
|
|
3860
|
+
};
|
|
3861
|
+
export type LocalizationPreferences = {
|
|
3862
|
+
locale: string;
|
|
3863
|
+
};
|
|
3864
|
+
export type LayoutPreferences = {
|
|
3865
|
+
mods: LayoutOption;
|
|
3866
|
+
plugins: LayoutOption;
|
|
3867
|
+
datapacks: LayoutOption;
|
|
3868
|
+
shaders: LayoutOption;
|
|
3869
|
+
resourcepacks: LayoutOption;
|
|
3870
|
+
modpacks: LayoutOption;
|
|
3871
|
+
servers: LayoutOption;
|
|
3872
|
+
users: LayoutOption;
|
|
3873
|
+
};
|
|
3874
|
+
export type SidebarPreferences = {
|
|
3875
|
+
right_aligned_search: boolean;
|
|
3876
|
+
left_aligned_content: boolean;
|
|
3877
|
+
};
|
|
3878
|
+
export type SocialPreferences = {
|
|
3879
|
+
friend_privacy: FriendPrivacy;
|
|
3880
|
+
shared_instances_privacy: InvitePrivacy;
|
|
3881
|
+
hosting_access_privacy: InvitePrivacy;
|
|
3882
|
+
};
|
|
3883
|
+
export type UserPreferences = {
|
|
3884
|
+
appearance: AppearancePreferences;
|
|
3885
|
+
behavior: BehaviorPreferences;
|
|
3886
|
+
localization: LocalizationPreferences;
|
|
3887
|
+
layouts: LayoutPreferences;
|
|
3888
|
+
sidebars: SidebarPreferences;
|
|
3889
|
+
social: SocialPreferences;
|
|
3890
|
+
};
|
|
3891
|
+
export type PartialUserPreferences = {
|
|
3892
|
+
appearance?: Partial<AppearancePreferences>;
|
|
3893
|
+
behavior?: Partial<BehaviorPreferences>;
|
|
3894
|
+
localization?: Partial<LocalizationPreferences>;
|
|
3895
|
+
layouts?: Partial<LayoutPreferences>;
|
|
3896
|
+
sidebars?: Partial<SidebarPreferences>;
|
|
3897
|
+
social?: Partial<SocialPreferences>;
|
|
3898
|
+
};
|
|
3830
3899
|
export type Pride26CampaignDonation = {
|
|
3831
3900
|
last_donated_at: string;
|
|
3832
3901
|
has_badge: boolean;
|
|
@@ -6262,6 +6331,19 @@ declare class LabrinthUsersV3Module extends AbstractModule {
|
|
|
6262
6331
|
* GET /v3/user/{id}
|
|
6263
6332
|
*/
|
|
6264
6333
|
get(idOrUsername: string): Promise<Labrinth.Users.v3.User>;
|
|
6334
|
+
/**
|
|
6335
|
+
* Get a user's account preferences. The authenticated user may access their
|
|
6336
|
+
* own preferences, while moderators may access another user's preferences.
|
|
6337
|
+
*
|
|
6338
|
+
* GET /v3/user/{id}/preferences
|
|
6339
|
+
*/
|
|
6340
|
+
getPreferences(idOrUsername: string): Promise<Labrinth.Users.v3.UserPreferences>;
|
|
6341
|
+
/**
|
|
6342
|
+
* Update a user's account preferences and return the fully resolved result.
|
|
6343
|
+
*
|
|
6344
|
+
* PATCH /v3/user/{id}/preferences
|
|
6345
|
+
*/
|
|
6346
|
+
patchPreferences(idOrUsername: string, preferences: Labrinth.Users.v3.PartialUserPreferences): Promise<Labrinth.Users.v3.UserPreferences>;
|
|
6265
6347
|
/**
|
|
6266
6348
|
* Search users by username prefix.
|
|
6267
6349
|
*
|
|
@@ -6679,6 +6761,7 @@ declare const MODULE_REGISTRY: {
|
|
|
6679
6761
|
readonly archon_options_v1: typeof ArchonOptionsV1Module;
|
|
6680
6762
|
readonly archon_properties_v1: typeof ArchonPropertiesV1Module;
|
|
6681
6763
|
readonly archon_server_users_v1: typeof ArchonServerUsersV1Module;
|
|
6764
|
+
readonly archon_servers_internal: typeof ArchonServersInternalModule;
|
|
6682
6765
|
readonly archon_servers_v0: typeof ArchonServersV0Module;
|
|
6683
6766
|
readonly archon_servers_v1: typeof ArchonServersV1Module;
|
|
6684
6767
|
readonly archon_transfers_internal: typeof ArchonTransfersInternalModule;
|