@basmilius/apple-devices 0.7.2 → 0.8.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.mts +253 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +14 -13
- package/dist/airplay/client.d.ts +0 -16
- package/dist/airplay/const.d.ts +0 -4
- package/dist/airplay/device.d.ts +0 -28
- package/dist/airplay/index.d.ts +0 -2
- package/dist/airplay/remote.d.ts +0 -25
- package/dist/airplay/state.d.ts +0 -56
- package/dist/airplay/volume.d.ts +0 -9
- package/dist/companion-link/const.d.ts +0 -1
- package/dist/companion-link/device.d.ts +0 -33
- package/dist/companion-link/index.d.ts +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2038
- package/dist/model/apple-tv.d.ts +0 -37
- package/dist/model/homepod-base.d.ts +0 -31
- package/dist/model/homepod-mini.d.ts +0 -2
- package/dist/model/homepod.d.ts +0 -2
- package/dist/model/index.d.ts +0 -3
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "node:events";
|
|
2
|
-
import type { AccessoryCredentials, DiscoveryResult } from "@basmilius/apple-common";
|
|
3
|
-
import { type AttentionState, type ButtonPressType, type HidCommandKey, type LaunchableApp, type MediaControlCommandKey, type UserAccount } from "@basmilius/apple-companion-link";
|
|
4
|
-
type EventMap = {
|
|
5
|
-
connected: [];
|
|
6
|
-
disconnected: [unexpected: boolean];
|
|
7
|
-
power: [AttentionState];
|
|
8
|
-
};
|
|
9
|
-
export default class extends EventEmitter<EventMap> {
|
|
10
|
-
#private;
|
|
11
|
-
get discoveryResult(): DiscoveryResult;
|
|
12
|
-
set discoveryResult(discoveryResult: DiscoveryResult);
|
|
13
|
-
get isConnected(): boolean;
|
|
14
|
-
constructor(discoveryResult: DiscoveryResult);
|
|
15
|
-
connect(): Promise<void>;
|
|
16
|
-
disconnect(): Promise<void>;
|
|
17
|
-
disconnectSafely(): Promise<void>;
|
|
18
|
-
setCredentials(credentials: AccessoryCredentials): Promise<void>;
|
|
19
|
-
getAttentionState(): Promise<AttentionState>;
|
|
20
|
-
getLaunchableApps(): Promise<LaunchableApp[]>;
|
|
21
|
-
getUserAccounts(): Promise<UserAccount[]>;
|
|
22
|
-
launchApp(bundleId: string): Promise<void>;
|
|
23
|
-
launchUrl(url: string): Promise<void>;
|
|
24
|
-
mediaControlCommand(command: MediaControlCommandKey, content?: object): Promise<void>;
|
|
25
|
-
pressButton(command: HidCommandKey, type?: ButtonPressType, holdDelayMs?: number): Promise<void>;
|
|
26
|
-
switchUserAccount(accountId: string): Promise<void>;
|
|
27
|
-
onSystemStatus(data: {
|
|
28
|
-
readonly state: number;
|
|
29
|
-
}): Promise<void>;
|
|
30
|
-
onTVSystemStatus(data: {
|
|
31
|
-
readonly state: number;
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
}
|
package/dist/index.d.ts
DELETED