@ipcom/asterisk-ari 0.0.16 → 0.0.18
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/cjs/index.cjs +663 -50
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/esm/index.js +658 -49
- package/dist/esm/index.js.map +3 -3
- package/dist/types/ari-client/ariClient.d.ts +208 -23
- package/dist/types/ari-client/ariClient.d.ts.map +1 -1
- package/dist/types/ari-client/baseClient.d.ts +20 -0
- package/dist/types/ari-client/baseClient.d.ts.map +1 -1
- package/dist/types/ari-client/interfaces/applications.types.d.ts +10 -0
- package/dist/types/ari-client/interfaces/applications.types.d.ts.map +1 -0
- package/dist/types/ari-client/interfaces/channels.types.d.ts +54 -5
- package/dist/types/ari-client/interfaces/channels.types.d.ts.map +1 -1
- package/dist/types/ari-client/interfaces/index.d.ts +7 -0
- package/dist/types/ari-client/interfaces/index.d.ts.map +1 -0
- package/dist/types/ari-client/interfaces/playbacks.types.d.ts +11 -0
- package/dist/types/ari-client/interfaces/playbacks.types.d.ts.map +1 -0
- package/dist/types/ari-client/interfaces/sounds.types.d.ts +11 -0
- package/dist/types/ari-client/interfaces/sounds.types.d.ts.map +1 -0
- package/dist/types/ari-client/resources/applications.d.ts +28 -0
- package/dist/types/ari-client/resources/applications.d.ts.map +1 -1
- package/dist/types/ari-client/resources/channels.d.ts +125 -26
- package/dist/types/ari-client/resources/channels.d.ts.map +1 -1
- package/dist/types/ari-client/resources/playbacks.d.ts +28 -0
- package/dist/types/ari-client/resources/playbacks.d.ts.map +1 -1
- package/dist/types/ari-client/resources/sounds.d.ts +21 -0
- package/dist/types/ari-client/resources/sounds.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.types.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/interfaces/channels.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.types.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/interfaces/channels.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,SAAS,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ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AM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { AriClientConfig } from "./requests.js";
|
|
2
|
+
export type { Channel, OriginateRequest } from "./channels.types.js";
|
|
3
|
+
export type { Endpoint } from "./endpoints.types.js";
|
|
4
|
+
export type { Playback } from "./playbacks.types.js";
|
|
5
|
+
export type { Application } from "./applications.types.js";
|
|
6
|
+
export type { Sound } from "./sounds.types.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/interfaces/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACrE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface Playback {
|
|
2
|
+
id: string;
|
|
3
|
+
media_uri: string;
|
|
4
|
+
state: "playing" | "paused" | "stopped" | "failed";
|
|
5
|
+
target_uri: string;
|
|
6
|
+
language: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PlaybackControlRequest {
|
|
9
|
+
operation: "pause" | "unpause" | "rewind" | "fastforward" | "stop";
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=playbacks.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playbacks.types.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/interfaces/playbacks.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;CACpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sounds.types.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/interfaces/sounds.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1,29 @@
|
|
|
1
|
+
import type { BaseClient } from "../baseClient.js";
|
|
2
|
+
import type { Application, ApplicationDetails } from "../interfaces/applications.types.js";
|
|
3
|
+
export declare class Applications {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: BaseClient);
|
|
6
|
+
/**
|
|
7
|
+
* Lists all applications.
|
|
8
|
+
*
|
|
9
|
+
* @returns A promise that resolves to an array of Application objects representing all registered applications.
|
|
10
|
+
* @throws {Error} If the API response is not an array.
|
|
11
|
+
*/
|
|
12
|
+
list(): Promise<Application[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves details of a specific application.
|
|
15
|
+
*
|
|
16
|
+
* @param appName - The unique name of the application.
|
|
17
|
+
* @returns A promise that resolves to an ApplicationDetails object containing the details of the specified application.
|
|
18
|
+
*/
|
|
19
|
+
getDetails(appName: string): Promise<ApplicationDetails>;
|
|
20
|
+
/**
|
|
21
|
+
* Sends a message to a specific application.
|
|
22
|
+
*
|
|
23
|
+
* @param appName - The unique name of the application.
|
|
24
|
+
* @param body - The message body to send.
|
|
25
|
+
* @returns A promise that resolves when the message is sent successfully.
|
|
26
|
+
*/
|
|
27
|
+
sendMessage(appName: string, body: any): Promise<void>;
|
|
28
|
+
}
|
|
1
29
|
//# sourceMappingURL=applications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/applications.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/applications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,YAAY;IACX,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAUpC;;;;;OAKG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI9D;;;;;;OAMG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7D"}
|
|
@@ -1,55 +1,154 @@
|
|
|
1
1
|
import type { BaseClient } from "../baseClient.js";
|
|
2
|
-
import type { Channel, OriginateRequest } from "../interfaces/channels.types.js";
|
|
2
|
+
import type { Channel, ChannelPlayback, ChannelVar, ExternalMediaOptions, OriginateRequest, PlaybackOptions, RTPStats, RecordingOptions, SnoopOptions } from "../interfaces/channels.types.js";
|
|
3
3
|
export declare class Channels {
|
|
4
4
|
private client;
|
|
5
5
|
constructor(client: BaseClient);
|
|
6
6
|
/**
|
|
7
7
|
* Lists all active channels.
|
|
8
|
-
*
|
|
9
|
-
* @returns A promise that resolves to an array of Channel objects representing all active channels.
|
|
10
|
-
* @throws {Error} If the API response is not an array.
|
|
11
8
|
*/
|
|
12
9
|
list(): Promise<Channel[]>;
|
|
13
10
|
/**
|
|
14
11
|
* Creates a new channel.
|
|
15
|
-
*
|
|
16
|
-
* @param data - The OriginateRequest object containing the necessary data to create a new channel.
|
|
17
|
-
* @returns A promise that resolves to a Channel object representing the newly created channel.
|
|
18
12
|
*/
|
|
19
13
|
originate(data: OriginateRequest): Promise<Channel>;
|
|
20
14
|
/**
|
|
21
15
|
* Retrieves details of a specific channel.
|
|
22
|
-
*
|
|
23
|
-
* @param channelId - The unique identifier of the channel.
|
|
24
|
-
* @returns A promise that resolves to a Channel object containing the details of the specified channel.
|
|
25
16
|
*/
|
|
26
17
|
getDetails(channelId: string): Promise<Channel>;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a channel and places it in a Stasis app without dialing it.
|
|
20
|
+
*/
|
|
21
|
+
createChannel(data: OriginateRequest): Promise<Channel>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new channel with a specific ID and originates a call.
|
|
24
|
+
*/
|
|
25
|
+
originateWithId(channelId: string, data: OriginateRequest): Promise<Channel>;
|
|
27
26
|
/**
|
|
28
27
|
* Hangs up (terminates) a specific channel.
|
|
29
|
-
*
|
|
30
|
-
* @param channelId - The unique identifier of the channel to be hung up.
|
|
31
|
-
* @returns A promise that resolves when the channel has been successfully hung up.
|
|
32
28
|
*/
|
|
33
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Hangs up a specific channel with optional reason or reason code.
|
|
31
|
+
*/
|
|
32
|
+
hangup(channelId: string, options?: {
|
|
33
|
+
reason_code?: string;
|
|
34
|
+
reason?: string;
|
|
35
|
+
}): Promise<void>;
|
|
34
36
|
/**
|
|
35
37
|
* Continues the dialplan for a specific channel.
|
|
36
|
-
*
|
|
37
|
-
* @param channelId - The unique identifier of the channel.
|
|
38
|
-
* @param context - Optional. The context to continue in the dialplan.
|
|
39
|
-
* @param extension - Optional. The extension to continue in the dialplan.
|
|
40
|
-
* @param priority - Optional. The priority to continue in the dialplan.
|
|
41
|
-
* @param label - Optional. The label to continue in the dialplan.
|
|
42
|
-
* @returns A promise that resolves when the dialplan continuation has been successfully initiated.
|
|
43
38
|
*/
|
|
44
39
|
continueDialplan(channelId: string, context?: string, extension?: string, priority?: number, label?: string): Promise<void>;
|
|
45
40
|
/**
|
|
46
41
|
* Moves the channel to another Stasis application.
|
|
47
|
-
*
|
|
48
|
-
* @param channelId - The unique identifier of the channel to be moved.
|
|
49
|
-
* @param app - The name of the Stasis application to move the channel to.
|
|
50
|
-
* @param appArgs - Optional. Arguments to be passed to the Stasis application.
|
|
51
|
-
* @returns A promise that resolves when the channel has been successfully moved to the new application.
|
|
52
42
|
*/
|
|
53
43
|
moveToApplication(channelId: string, app: string, appArgs?: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Sets a channel variable.
|
|
46
|
+
*/
|
|
47
|
+
setVariable(channelId: string, variable: string, value: string): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets a channel variable.
|
|
50
|
+
*/
|
|
51
|
+
getVariable(channelId: string, variable: string): Promise<ChannelVar>;
|
|
52
|
+
/**
|
|
53
|
+
* Plays a media file to a channel.
|
|
54
|
+
*/
|
|
55
|
+
playMedia(channelId: string, media: string, options?: PlaybackOptions): Promise<ChannelPlayback>;
|
|
56
|
+
/**
|
|
57
|
+
* Starts music on hold (MOH) for a channel.
|
|
58
|
+
*/
|
|
59
|
+
startMusicOnHold(channelId: string): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Stops music on hold (MOH) for a channel.
|
|
62
|
+
*/
|
|
63
|
+
stopMusicOnHold(channelId: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Starts playback of a media file on a channel.
|
|
66
|
+
*/
|
|
67
|
+
startPlayback(channelId: string, media: string, options?: PlaybackOptions): Promise<ChannelPlayback>;
|
|
68
|
+
/**
|
|
69
|
+
* Stops playback of a media file on a channel.
|
|
70
|
+
*/
|
|
71
|
+
stopPlayback(channelId: string, playbackId: string): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Pauses playback of a media file on a channel.
|
|
74
|
+
*/
|
|
75
|
+
pausePlayback(channelId: string, playbackId: string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Resumes playback of a media file on a channel.
|
|
78
|
+
*/
|
|
79
|
+
resumePlayback(channelId: string, playbackId: string): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Rewinds playback of a media file on a channel.
|
|
82
|
+
*/
|
|
83
|
+
rewindPlayback(channelId: string, playbackId: string, skipMs: number): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Fast-forwards playback of a media file on a channel.
|
|
86
|
+
*/
|
|
87
|
+
fastForwardPlayback(channelId: string, playbackId: string, skipMs: number): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Records audio from a channel.
|
|
90
|
+
*/
|
|
91
|
+
record(channelId: string, options: RecordingOptions): Promise<Channel>;
|
|
92
|
+
/**
|
|
93
|
+
* Starts snooping on a channel.
|
|
94
|
+
*/
|
|
95
|
+
snoopChannel(channelId: string, options: SnoopOptions): Promise<Channel>;
|
|
96
|
+
/**
|
|
97
|
+
* Starts snooping on a channel with a specific snoop ID.
|
|
98
|
+
*/
|
|
99
|
+
snoopChannelWithId(channelId: string, snoopId: string, options: SnoopOptions): Promise<Channel>;
|
|
100
|
+
/**
|
|
101
|
+
* Dials a created channel.
|
|
102
|
+
*/
|
|
103
|
+
dial(channelId: string, caller?: string, timeout?: number): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves RTP statistics for a channel.
|
|
106
|
+
*/
|
|
107
|
+
getRTPStatistics(channelId: string): Promise<RTPStats>;
|
|
108
|
+
/**
|
|
109
|
+
* Creates a channel to an external media source/sink.
|
|
110
|
+
*/
|
|
111
|
+
createExternalMedia(options: ExternalMediaOptions): Promise<Channel>;
|
|
112
|
+
/**
|
|
113
|
+
* Redirects the channel to a different location.
|
|
114
|
+
*/
|
|
115
|
+
redirectChannel(channelId: string, endpoint: string): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Answers a channel.
|
|
118
|
+
*/
|
|
119
|
+
answerChannel(channelId: string): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Sends a ringing indication to a channel.
|
|
122
|
+
*/
|
|
123
|
+
ringChannel(channelId: string): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Stops ringing indication on a channel.
|
|
126
|
+
*/
|
|
127
|
+
stopRingChannel(channelId: string): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Sends DTMF to a channel.
|
|
130
|
+
*/
|
|
131
|
+
sendDTMF(channelId: string, dtmf: string, options?: {
|
|
132
|
+
before?: number;
|
|
133
|
+
between?: number;
|
|
134
|
+
duration?: number;
|
|
135
|
+
after?: number;
|
|
136
|
+
}): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Mutes a channel.
|
|
139
|
+
*/
|
|
140
|
+
muteChannel(channelId: string, direction?: "both" | "in" | "out"): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Unmutes a channel.
|
|
143
|
+
*/
|
|
144
|
+
unmuteChannel(channelId: string, direction?: "both" | "in" | "out"): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Puts a channel on hold.
|
|
147
|
+
*/
|
|
148
|
+
holdChannel(channelId: string): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Removes a channel from hold.
|
|
151
|
+
*/
|
|
152
|
+
unholdChannel(channelId: string): Promise<void>;
|
|
54
153
|
}
|
|
55
154
|
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAUzC,qBAAa,QAAQ;IACP,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAUhC;;OAEG;IACG,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzD;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrD;;OAEG;IACG,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7D;;OAEG;IACG,eAAe,CACnB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,OAAO,CAAC;IAInB;;OAEG;IACH;;OAEG;IACG,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,IAAI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AAC;IAInD;;OAEG;IACG,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvD;;OAEG;IACG,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GACA,OAAO,CAAC,IAAI,CAAC;IAchB;;OAEG;IACG,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,MAAM,GAAG,IAAI,GAAG,KAAc,GACxC,OAAO,CAAC,IAAI,CAAC;IAMhB;;OAEG;IACG,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,MAAM,GAAG,IAAI,GAAG,KAAc,GACxC,OAAO,CAAC,IAAI,CAAC;IAMhB;;OAEG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD;;OAEG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtD"}
|
|
@@ -1 +1,29 @@
|
|
|
1
|
+
import type { BaseClient } from "../baseClient.js";
|
|
2
|
+
import type { Playback, PlaybackControlRequest } from "../interfaces/playbacks.types.js";
|
|
3
|
+
export declare class Playbacks {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: BaseClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves details of a specific playback.
|
|
8
|
+
*
|
|
9
|
+
* @param playbackId - The unique identifier of the playback.
|
|
10
|
+
* @returns A promise that resolves to a Playback object containing the details of the specified playback.
|
|
11
|
+
*/
|
|
12
|
+
getDetails(playbackId: string): Promise<Playback>;
|
|
13
|
+
/**
|
|
14
|
+
* Controls a specific playback (e.g., pause, resume, rewind, forward, stop).
|
|
15
|
+
*
|
|
16
|
+
* @param playbackId - The unique identifier of the playback to control.
|
|
17
|
+
* @param controlRequest - The PlaybackControlRequest containing the control operation.
|
|
18
|
+
* @returns A promise that resolves when the control operation is successfully executed.
|
|
19
|
+
*/
|
|
20
|
+
control(playbackId: string, controlRequest: PlaybackControlRequest): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Stops a specific playback.
|
|
23
|
+
*
|
|
24
|
+
* @param playbackId - The unique identifier of the playback to stop.
|
|
25
|
+
* @returns A promise that resolves when the playback is successfully stopped.
|
|
26
|
+
*/
|
|
27
|
+
stop(playbackId: string): Promise<void>;
|
|
28
|
+
}
|
|
1
29
|
//# sourceMappingURL=playbacks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbacks.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/playbacks.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"playbacks.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/playbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EACV,QAAQ,EACR,sBAAsB,EACvB,MAAM,kCAAkC,CAAC;AAE1C,qBAAa,SAAS;IACR,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;;;;OAKG;IACG,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIvD;;;;;;OAMG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,sBAAsB,GACrC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9C"}
|
|
@@ -1 +1,22 @@
|
|
|
1
|
+
import type { BaseClient } from "../baseClient.js";
|
|
2
|
+
import type { Sound, SoundListRequest } from "../interfaces/sounds.types.js";
|
|
3
|
+
export declare class Sounds {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: BaseClient);
|
|
6
|
+
/**
|
|
7
|
+
* Lists all available sounds.
|
|
8
|
+
*
|
|
9
|
+
* @param params - Optional parameters to filter the list of sounds.
|
|
10
|
+
* @returns A promise that resolves to an array of Sound objects.
|
|
11
|
+
* @throws {Error} If the API response is not an array.
|
|
12
|
+
*/
|
|
13
|
+
list(params?: SoundListRequest): Promise<Sound[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves details of a specific sound.
|
|
16
|
+
*
|
|
17
|
+
* @param soundId - The unique identifier of the sound.
|
|
18
|
+
* @returns A promise that resolves to a Sound object containing the details of the specified sound.
|
|
19
|
+
*/
|
|
20
|
+
getDetails(soundId: string): Promise<Sound>;
|
|
21
|
+
}
|
|
1
22
|
//# sourceMappingURL=sounds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sounds.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/sounds.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sounds.d.ts","sourceRoot":"","sources":["../../../../src/ari-client/resources/sounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,qBAAa,MAAM;IACL,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;;;;;OAMG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAcvD;;;;;OAKG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;CAGlD"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { AriClient } from "./ari-client/ariClient.js";
|
|
2
2
|
export { Channels } from "./ari-client/resources/channels.js";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export { Endpoints } from "./ari-client/resources/endpoints.js";
|
|
4
|
+
export { Applications } from "./ari-client/resources/applications.js";
|
|
5
|
+
export { Sounds } from "./ari-client/resources/sounds.js";
|
|
6
|
+
export { Playbacks } from "./ari-client/resources/playbacks.js";
|
|
7
|
+
export type { AriClientConfig, Channel, Endpoint, Playback, Application, Sound, } from "./ari-client/interfaces/index.js";
|
|
5
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAGhE,YAAY,EACV,eAAe,EACf,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,GACN,MAAM,kCAAkC,CAAC"}
|