@basmilius/apple-airplay 0.0.74 → 0.0.76
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/dataStream.d.ts +1 -2
- package/dist/dataStreamMessages.d.ts +14 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -10
- package/package.json +4 -3
- package/dist/index.js.map +0 -95
package/dist/dataStream.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Proto from "./proto";
|
|
2
|
-
import DataStreamMessages from "./dataStreamMessages";
|
|
3
2
|
import Stream from "./stream";
|
|
4
3
|
type EventMap = {
|
|
5
4
|
readonly deviceInfo: [Proto.DeviceInfoMessage];
|
|
5
|
+
readonly deviceInfoUpdate: [Proto.DeviceInfoMessage];
|
|
6
6
|
readonly originClientProperties: [Proto.OriginClientPropertiesMessage];
|
|
7
7
|
readonly playerClientProperties: [Proto.PlayerClientPropertiesMessage];
|
|
8
8
|
readonly removeClient: [Proto.RemoveClientMessage];
|
|
@@ -23,7 +23,6 @@ type EventMap = {
|
|
|
23
23
|
};
|
|
24
24
|
export default class AirPlayDataStream extends Stream<EventMap> {
|
|
25
25
|
#private;
|
|
26
|
-
get messages(): DataStreamMessages;
|
|
27
26
|
constructor(address: string, port: number);
|
|
28
27
|
exchange(message: Proto.ProtocolMessage): Promise<Proto.ProtocolMessage>;
|
|
29
28
|
reply(seqno: bigint): Promise<void>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { DescExtension, type Extendee, type ExtensionValueShape } from "@bufbuild/protobuf";
|
|
1
2
|
import * as Proto from "./proto";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
export declare function protocol(type: Proto.ProtocolMessage_Type, errorCode?: Proto.ErrorCode_Enum): Proto.ProtocolMessage;
|
|
4
|
+
export declare function clientUpdatesConfig(artworkUpdates?: boolean, nowPlayingUpdates?: boolean, volumeUpdates?: boolean, keyboardUpdates?: boolean, outputDeviceUpdates?: boolean): Proto.ProtocolMessage;
|
|
5
|
+
export declare function configureConnection(groupId: string): Proto.ProtocolMessage;
|
|
6
|
+
export declare function deviceInfo(pairingId: Buffer): Proto.ProtocolMessage;
|
|
7
|
+
export declare function getVolume(outputDeviceUID: string): Proto.ProtocolMessage;
|
|
8
|
+
export declare function playbackQueueRequest(location: number, length: number, includeMetadata?: boolean, includeLanguageOptions?: boolean): Proto.ProtocolMessage;
|
|
9
|
+
export declare function sendButtonEvent(usagePage: number, usage: number, buttonDown: boolean): Proto.ProtocolMessage;
|
|
10
|
+
export declare function sendCommand(command: Proto.Command, options?: Proto.CommandOptions): Proto.ProtocolMessage;
|
|
11
|
+
export declare function sendHIDEvent(usePage: number, usage: number, down: boolean): Proto.ProtocolMessage;
|
|
12
|
+
export declare function setConnectionState(state?: Proto.SetConnectionStateMessage_ConnectionState): Proto.ProtocolMessage;
|
|
13
|
+
export declare function setVolume(outputDeviceUID: string, volume: number): Proto.ProtocolMessage;
|
|
14
|
+
export declare function wakeDevice(): Proto.ProtocolMessage;
|
|
15
|
+
export declare function getExtension<Desc extends DescExtension>(message: Extendee<Desc>, extension: Desc): ExtensionValueShape<Desc>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { default as AirPlayDataStream } from "./dataStream";
|
|
2
|
-
export type { default as AirPlayDataStreamMessages } from "./dataStreamMessages";
|
|
3
2
|
export type { default as AirPlayEventStream } from "./eventStream";
|
|
4
3
|
export type { default as AirPlayPairing } from "./pairing";
|
|
5
4
|
export type { default as AirPlayRTSP } from "./rtsp";
|
|
6
5
|
export type { default as AirPlayStream } from "./stream";
|
|
7
6
|
export type { default as AirPlayVerify } from "./verify";
|
|
7
|
+
export * as DataStreamMessage from "./dataStreamMessages";
|
|
8
8
|
export * as Proto from "./proto";
|
|
9
9
|
export { default as AirPlay } from "./protocol";
|