@jeffusion/bungee-types 6.6.0 → 6.7.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/daemon-control.d.ts +1 -0
- package/dist/daemon-control.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/system-updates.d.ts +25 -0
- package/dist/system-updates.js +1 -0
- package/package.json +1 -1
package/dist/daemon-control.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const DAEMON_BOOT_HEADER: "x-bungee-daemon-boot";
|
|
|
7
7
|
export declare const DAEMON_INSTANCE_HEADER: "x-bungee-daemon-instance";
|
|
8
8
|
export declare const DAEMON_PID_HEADER: "x-bungee-daemon-pid";
|
|
9
9
|
export declare const DAEMON_PROCESS_IDENTITY_MARKER_PREFIX: "--bungee-process-identity=";
|
|
10
|
+
export declare const DAEMON_UPDATES_PATH: "/__bungee/internal/daemon/updates";
|
|
10
11
|
type DaemonMetadataBase = {
|
|
11
12
|
readonly schema: typeof DAEMON_METADATA_SCHEMA;
|
|
12
13
|
readonly launcher_pid: number;
|
package/dist/daemon-control.js
CHANGED
|
@@ -7,6 +7,7 @@ export const DAEMON_BOOT_HEADER = 'x-bungee-daemon-boot';
|
|
|
7
7
|
export const DAEMON_INSTANCE_HEADER = 'x-bungee-daemon-instance';
|
|
8
8
|
export const DAEMON_PID_HEADER = 'x-bungee-daemon-pid';
|
|
9
9
|
export const DAEMON_PROCESS_IDENTITY_MARKER_PREFIX = '--bungee-process-identity=';
|
|
10
|
+
export const DAEMON_UPDATES_PATH = '/__bungee/internal/daemon/updates';
|
|
10
11
|
export class DaemonMetadataCodecError extends Error {
|
|
11
12
|
constructor(code, message = code) {
|
|
12
13
|
super(message);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type UpdateOperation = {
|
|
2
|
+
id: string;
|
|
3
|
+
source_version: string;
|
|
4
|
+
target_version: string;
|
|
5
|
+
phase: 'downloading' | 'verifying' | 'awaiting_confirmation' | 'stopping' | 'restarting' | 'succeeded' | 'failed' | 'cancelled';
|
|
6
|
+
error: string | null;
|
|
7
|
+
started_at: number;
|
|
8
|
+
updated_at: number;
|
|
9
|
+
};
|
|
10
|
+
export type SystemUpdateStatus = {
|
|
11
|
+
running_version: string;
|
|
12
|
+
selected_version: string | null;
|
|
13
|
+
latest: {
|
|
14
|
+
version: string;
|
|
15
|
+
published_at: string;
|
|
16
|
+
url: string;
|
|
17
|
+
asset_ready: boolean;
|
|
18
|
+
} | null;
|
|
19
|
+
checked_at: number | null;
|
|
20
|
+
check_error: string | null;
|
|
21
|
+
checking: boolean;
|
|
22
|
+
can_upgrade: boolean;
|
|
23
|
+
unavailable_reason: string | null;
|
|
24
|
+
operation: UpdateOperation | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|