@modrinth/api-client 0.67.0 → 0.69.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 CHANGED
@@ -890,6 +890,14 @@ export declare namespace Archon {
890
890
  };
891
891
  }
892
892
  export namespace v1 {
893
+ export type WorldDownloadMethod = {
894
+ method_type: 'direct_node_download';
895
+ } | {
896
+ method_type: 'backup';
897
+ backup_id: string;
898
+ } | {
899
+ method_type: 'unavailable';
900
+ };
893
901
  export type ServerFull = {
894
902
  id: string;
895
903
  name: string;
@@ -917,6 +925,7 @@ export declare namespace Archon {
917
925
  region: string;
918
926
  region_should_be_user_displayed: boolean;
919
927
  hostname: string;
928
+ url_host: string;
920
929
  is_decommissioned_node: boolean;
921
930
  };
922
931
  } | {
@@ -927,6 +936,7 @@ export declare namespace Archon {
927
936
  name: string;
928
937
  created_at: string;
929
938
  is_active: boolean;
939
+ download_method: WorldDownloadMethod;
930
940
  /**
931
941
  * @deprecated Prefer `client.archon.backups_queue_v1.list()` for queue-aware backup state.
932
942
  */
@@ -1718,6 +1728,11 @@ declare class ArchonServersV1Module extends AbstractModule {
1718
1728
  * GET /v1/servers/:server_id
1719
1729
  */
1720
1730
  get(serverId: string): Promise<Archon.Servers.v1.ServerFull>;
1731
+ /**
1732
+ * Select the best currently available download method for a world
1733
+ * GET /v1/servers/:server_id/worlds/:world_id/select-download
1734
+ */
1735
+ selectWorldDownload(serverId: string, worldId: string): Promise<Archon.Servers.v1.WorldDownloadMethod>;
1721
1736
  /**
1722
1737
  * Get available regions
1723
1738
  * GET /v1/regions
@@ -2259,6 +2274,9 @@ export declare namespace Kyros {
2259
2274
  }
2260
2275
  export namespace Files {
2261
2276
  export namespace v1 {
2277
+ export interface FullWorldDownloadAuthorization {
2278
+ token: string;
2279
+ }
2262
2280
  export type DescendantType = 'regular' | 'directory' | 'symlink' | 'other';
2263
2281
  export interface FileStatRequest {
2264
2282
  path: string;
@@ -2452,6 +2470,14 @@ declare class KyrosFilesV0Module extends AbstractModule {
2452
2470
 
2453
2471
  declare class KyrosFilesV1Module extends AbstractModule {
2454
2472
  getModuleID(): string;
2473
+ /**
2474
+ * Authorize a short-lived, single-use full-world download.
2475
+ */
2476
+ authorizeFullWorldDownload(nodeUrlHost: string, worldId: string): Promise<Kyros.Files.v1.FullWorldDownloadAuthorization>;
2477
+ /**
2478
+ * Build the browser URL for a previously authorized full-world download.
2479
+ */
2480
+ getFullWorldDownloadUrl(nodeUrlHost: string, worldId: string, token: string): string;
2455
2481
  /**
2456
2482
  * Get metadata for a path in world storage.
2457
2483
  */
@@ -3593,7 +3619,7 @@ export declare namespace Labrinth {
3593
3619
  versions: Labrinth.Versions.v3.Version[];
3594
3620
  };
3595
3621
  export type TelemetryConsent = 'opt_in' | 'opt_out' | 'always_active';
3596
- export type AiUsage = 'code' | 'assets' | 'text' | 'functionality';
3622
+ export type AiUsage = 'code' | 'assets' | 'text';
3597
3623
  export type DisclosureLockStatus = 'unlocked' | 'cannot_disable' | 'fully_locked';
3598
3624
  export type DerivativeSource = {
3599
3625
  label: string;
@@ -3604,6 +3630,9 @@ export declare namespace Labrinth {
3604
3630
  type: 'ai_content';
3605
3631
  uses: AiUsage[];
3606
3632
  note?: string | null;
3633
+ } | {
3634
+ type: 'ai_functionality';
3635
+ note?: string | null;
3607
3636
  } | {
3608
3637
  type: 'advertisements';
3609
3638
  note?: string | null;