@modrinth/api-client 0.95.0 → 0.96.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 +45 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1081,12 +1081,32 @@ export declare namespace Archon {
|
|
|
1081
1081
|
status: BackupStatus;
|
|
1082
1082
|
locked: boolean;
|
|
1083
1083
|
automated: boolean;
|
|
1084
|
+
rotates_at?: string;
|
|
1084
1085
|
history: BackupQueueOperation[];
|
|
1085
1086
|
};
|
|
1086
1087
|
export type BackupsQueueResponse = {
|
|
1087
1088
|
active_operations: ActiveOperation[];
|
|
1088
1089
|
backups: BackupQueueBackup[];
|
|
1089
1090
|
};
|
|
1091
|
+
export type WorldBackupOptions = {
|
|
1092
|
+
split_automatic: number;
|
|
1093
|
+
split_manual: number;
|
|
1094
|
+
limit: number;
|
|
1095
|
+
interval: number;
|
|
1096
|
+
};
|
|
1097
|
+
export type BackupsQueueWithOptionsResponse = BackupsQueueResponse & {
|
|
1098
|
+
options: WorldBackupOptions;
|
|
1099
|
+
next_auto_backup_at: string | null;
|
|
1100
|
+
};
|
|
1101
|
+
export type PatchWorldBackupOptions = {
|
|
1102
|
+
split_automatic?: number;
|
|
1103
|
+
split_manual?: number;
|
|
1104
|
+
interval?: number;
|
|
1105
|
+
};
|
|
1106
|
+
export type PatchWorldBackupOptionsResponse = {
|
|
1107
|
+
applied: boolean;
|
|
1108
|
+
backup_ids?: string[];
|
|
1109
|
+
};
|
|
1090
1110
|
}
|
|
1091
1111
|
}
|
|
1092
1112
|
export namespace Sync {
|
|
@@ -1432,6 +1452,10 @@ declare class ArchonBackupsQueueV1Module extends AbstractModule {
|
|
|
1432
1452
|
getModuleID(): string;
|
|
1433
1453
|
/** GET /v1/servers/:server_id/worlds/:world_id/backups-queue */
|
|
1434
1454
|
list(serverId: string, worldId: string): Promise<Archon.BackupsQueue.v1.BackupsQueueResponse>;
|
|
1455
|
+
/** GET /v1/servers/:server_id/worlds/:world_id/backups-queue/with-options */
|
|
1456
|
+
listWithOptions(serverId: string, worldId: string): Promise<Archon.BackupsQueue.v1.BackupsQueueWithOptionsResponse>;
|
|
1457
|
+
/** PATCH /v1/servers/:server_id/worlds/:world_id/backups-queue/with-options */
|
|
1458
|
+
patchOptions(serverId: string, worldId: string, request: Archon.BackupsQueue.v1.PatchWorldBackupOptions, acknowledgeRotation?: boolean): Promise<Archon.BackupsQueue.v1.PatchWorldBackupOptionsResponse>;
|
|
1435
1459
|
/** POST /v1/servers/:server_id/worlds/:world_id/backups-queue */
|
|
1436
1460
|
create(serverId: string, worldId: string, request: Archon.BackupsQueue.v1.BackupRequest): Promise<Archon.BackupsQueue.v1.PostBackupQueueResponse>;
|
|
1437
1461
|
/** POST /v1/servers/:server_id/worlds/:world_id/backups-queue/history/create/:operation_id/ack */
|
|
@@ -2314,6 +2338,14 @@ export declare namespace Kyros {
|
|
|
2314
2338
|
}
|
|
2315
2339
|
}
|
|
2316
2340
|
}
|
|
2341
|
+
export namespace Backups {
|
|
2342
|
+
export namespace v1 {
|
|
2343
|
+
export type BackupDumpFormat = 'zip';
|
|
2344
|
+
export interface BackupDownloadAuthorization {
|
|
2345
|
+
token: string;
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2317
2349
|
export namespace Files {
|
|
2318
2350
|
export namespace v1 {
|
|
2319
2351
|
export interface FileDownloadAuthorization {
|
|
@@ -2373,6 +2405,18 @@ export declare namespace Kyros {
|
|
|
2373
2405
|
}
|
|
2374
2406
|
}
|
|
2375
2407
|
|
|
2408
|
+
declare class KyrosBackupsV1Module extends AbstractModule {
|
|
2409
|
+
getModuleID(): string;
|
|
2410
|
+
/**
|
|
2411
|
+
* Authorize a short-lived, single-use backup download.
|
|
2412
|
+
*/
|
|
2413
|
+
authorizeDownload(nodeUrlHost: string, worldId: string, backupId: string, format?: Kyros.Backups.v1.BackupDumpFormat): Promise<Kyros.Backups.v1.BackupDownloadAuthorization>;
|
|
2414
|
+
/**
|
|
2415
|
+
* Build the browser URL for a previously authorized backup download.
|
|
2416
|
+
*/
|
|
2417
|
+
getDownloadUrl(nodeUrlHost: string, worldId: string, backupId: string, token: string): string;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2376
2420
|
declare class KyrosContentV1Module extends AbstractModule {
|
|
2377
2421
|
getModuleID(): string;
|
|
2378
2422
|
/**
|
|
@@ -7384,6 +7428,7 @@ declare const MODULE_REGISTRY: {
|
|
|
7384
7428
|
readonly mclogs_insights_v1: typeof MclogsInsightsV1Module;
|
|
7385
7429
|
readonly mclogs_logs_v1: typeof MclogsLogsV1Module;
|
|
7386
7430
|
readonly launchermeta_manifest_v0: typeof LauncherMetaManifestV0Module;
|
|
7431
|
+
readonly kyros_backups_v1: typeof KyrosBackupsV1Module;
|
|
7387
7432
|
readonly kyros_content_v1: typeof KyrosContentV1Module;
|
|
7388
7433
|
readonly kyros_files_v0: typeof KyrosFilesV0Module;
|
|
7389
7434
|
readonly kyros_files_v1: typeof KyrosFilesV1Module;
|