@types/ari-client 2.2.9 → 2.2.11
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.
- ari-client/LICENSE +0 -0
- ari-client/README.md +1 -2
- ari-client/index.d.ts +211 -83
- ari-client/package.json +5 -5
ari-client/LICENSE
CHANGED
|
File without changes
|
ari-client/README.md
CHANGED
|
@@ -8,9 +8,8 @@ This package contains type definitions for ari-client (https://github.com/asteri
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ari-client.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 17 Oct 2023 22:10:13 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
|
-
* Global values: none
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [Dioris Moreno](https://github.com/dioris-moreno).
|
ari-client/index.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// Type definitions for ari-client 2.2
|
|
2
|
-
// Project: https://github.com/asterisk/node-ari-client
|
|
3
|
-
// Definitions by: Dioris Moreno <https://github.com/dioris-moreno>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
|
|
6
1
|
/// <reference types="node" />
|
|
7
2
|
|
|
8
3
|
/**
|
|
@@ -181,55 +176,55 @@ export interface IndexableObject {
|
|
|
181
176
|
[key: string]: any;
|
|
182
177
|
}
|
|
183
178
|
/* Event Types */
|
|
184
|
-
export type WebSocketConnectedEventType =
|
|
185
|
-
export type WebSocketReconnectingEventType =
|
|
186
|
-
export type WebSocketMaxRetriesEventType =
|
|
187
|
-
export type PongEventType =
|
|
188
|
-
export type APILoadErrorEventType =
|
|
189
|
-
export type EventsEventType =
|
|
190
|
-
export type MessageEventType =
|
|
191
|
-
export type MissingParamsEventType =
|
|
192
|
-
export type EventEventType =
|
|
193
|
-
export type ContactInfoEventType =
|
|
194
|
-
export type PeerEventType =
|
|
195
|
-
export type DeviceStateChangedEventType =
|
|
196
|
-
export type PlaybackStartedEventType =
|
|
197
|
-
export type PlaybackContinuingEventType =
|
|
198
|
-
export type PlaybackFinishedEventType =
|
|
199
|
-
export type RecordingStartedEventType =
|
|
200
|
-
export type RecordingFinishedEventType =
|
|
201
|
-
export type RecordingFailedEventType =
|
|
202
|
-
export type ApplicationMoveFailedEventType =
|
|
203
|
-
export type ApplicationReplacedEventType =
|
|
204
|
-
export type BridgeCreatedEventType =
|
|
205
|
-
export type BridgeDestroyedEventType =
|
|
206
|
-
export type BridgeMergedEventType =
|
|
207
|
-
export type BridgeVideoSourceChangedEventType =
|
|
208
|
-
export type BridgeBlindTransferEventType =
|
|
209
|
-
export type BridgeAttendedTransferEventType =
|
|
210
|
-
export type ChannelCreatedEventType =
|
|
211
|
-
export type ChannelDestroyedEventType =
|
|
212
|
-
export type ChannelEnteredBridgeEventType =
|
|
213
|
-
export type ChannelLeftBridgeEventType =
|
|
214
|
-
export type ChannelStateChangeEventType =
|
|
215
|
-
export type ChannelDtmfReceivedEventType =
|
|
216
|
-
export type ChannelDialplanEventType =
|
|
217
|
-
export type ChannelCallerIdEventType =
|
|
218
|
-
export type ChannelUsereventEventType =
|
|
219
|
-
export type ChannelHangupRequestEventType =
|
|
220
|
-
export type ChannelVarsetEventType =
|
|
221
|
-
export type ChannelHoldEventType =
|
|
222
|
-
export type ChannelUnholdEventType =
|
|
223
|
-
export type ChannelTalkingStartedEventType =
|
|
224
|
-
export type ChannelTalkingFinishedEventType =
|
|
225
|
-
export type ContactStatusChangeEventType =
|
|
226
|
-
export type PeerStatusChangeEventType =
|
|
227
|
-
export type EndpointStateChangeEventType =
|
|
228
|
-
export type DialEventType =
|
|
229
|
-
export type StasisEndEventType =
|
|
230
|
-
export type StasisStartEventType =
|
|
231
|
-
export type TextMessageReceivedEventType =
|
|
232
|
-
export type ChannelConnectedLineEventType =
|
|
179
|
+
export type WebSocketConnectedEventType = "WebSocketConnected";
|
|
180
|
+
export type WebSocketReconnectingEventType = "WebSocketReconnecting";
|
|
181
|
+
export type WebSocketMaxRetriesEventType = "WebSocketMaxRetries";
|
|
182
|
+
export type PongEventType = "pong";
|
|
183
|
+
export type APILoadErrorEventType = "APILoadError";
|
|
184
|
+
export type EventsEventType = "Events";
|
|
185
|
+
export type MessageEventType = "Message";
|
|
186
|
+
export type MissingParamsEventType = "MissingParams";
|
|
187
|
+
export type EventEventType = "Event";
|
|
188
|
+
export type ContactInfoEventType = "ContactInfo";
|
|
189
|
+
export type PeerEventType = "Peer";
|
|
190
|
+
export type DeviceStateChangedEventType = "DeviceStateChanged";
|
|
191
|
+
export type PlaybackStartedEventType = "PlaybackStarted";
|
|
192
|
+
export type PlaybackContinuingEventType = "PlaybackContinuing";
|
|
193
|
+
export type PlaybackFinishedEventType = "PlaybackFinished";
|
|
194
|
+
export type RecordingStartedEventType = "RecordingStarted";
|
|
195
|
+
export type RecordingFinishedEventType = "RecordingFinished";
|
|
196
|
+
export type RecordingFailedEventType = "RecordingFailed";
|
|
197
|
+
export type ApplicationMoveFailedEventType = "ApplicationMoveFailed";
|
|
198
|
+
export type ApplicationReplacedEventType = "ApplicationReplaced";
|
|
199
|
+
export type BridgeCreatedEventType = "BridgeCreated";
|
|
200
|
+
export type BridgeDestroyedEventType = "BridgeDestroyed";
|
|
201
|
+
export type BridgeMergedEventType = "BridgeMerged";
|
|
202
|
+
export type BridgeVideoSourceChangedEventType = "BridgeVideoSourceChanged";
|
|
203
|
+
export type BridgeBlindTransferEventType = "BridgeBlindTransfer";
|
|
204
|
+
export type BridgeAttendedTransferEventType = "BridgeAttendedTransfer";
|
|
205
|
+
export type ChannelCreatedEventType = "ChannelCreated";
|
|
206
|
+
export type ChannelDestroyedEventType = "ChannelDestroyed";
|
|
207
|
+
export type ChannelEnteredBridgeEventType = "ChannelEnteredBridge";
|
|
208
|
+
export type ChannelLeftBridgeEventType = "ChannelLeftBridge";
|
|
209
|
+
export type ChannelStateChangeEventType = "ChannelStateChange";
|
|
210
|
+
export type ChannelDtmfReceivedEventType = "ChannelDtmfReceived";
|
|
211
|
+
export type ChannelDialplanEventType = "ChannelDialplan";
|
|
212
|
+
export type ChannelCallerIdEventType = "ChannelCallerId";
|
|
213
|
+
export type ChannelUsereventEventType = "ChannelUserevent";
|
|
214
|
+
export type ChannelHangupRequestEventType = "ChannelHangupRequest";
|
|
215
|
+
export type ChannelVarsetEventType = "ChannelVarset";
|
|
216
|
+
export type ChannelHoldEventType = "ChannelHold";
|
|
217
|
+
export type ChannelUnholdEventType = "ChannelUnhold";
|
|
218
|
+
export type ChannelTalkingStartedEventType = "ChannelTalkingStarted";
|
|
219
|
+
export type ChannelTalkingFinishedEventType = "ChannelTalkingFinished";
|
|
220
|
+
export type ContactStatusChangeEventType = "ContactStatusChange";
|
|
221
|
+
export type PeerStatusChangeEventType = "PeerStatusChange";
|
|
222
|
+
export type EndpointStateChangeEventType = "EndpointStateChange";
|
|
223
|
+
export type DialEventType = "Dial";
|
|
224
|
+
export type StasisEndEventType = "StasisEnd";
|
|
225
|
+
export type StasisStartEventType = "StasisStart";
|
|
226
|
+
export type TextMessageReceivedEventType = "TextMessageReceived";
|
|
227
|
+
export type ChannelConnectedLineEventType = "ChannelConnectedLine";
|
|
233
228
|
export type AnyEventType =
|
|
234
229
|
| WebSocketConnectedEventType
|
|
235
230
|
| WebSocketReconnectingEventType
|
|
@@ -312,7 +307,12 @@ export interface Events {
|
|
|
312
307
|
* @param [params.variables] - The "variables" key in the body object holds custom key/value pairs to add to the user event. Ex. { "variables": { "key": "value" } }.
|
|
313
308
|
*/
|
|
314
309
|
userEvent(
|
|
315
|
-
params: {
|
|
310
|
+
params: {
|
|
311
|
+
eventName: string;
|
|
312
|
+
application: string;
|
|
313
|
+
source?: string | string[] | undefined;
|
|
314
|
+
variables?: Containers | undefined;
|
|
315
|
+
},
|
|
316
316
|
callback: (err: Error) => void,
|
|
317
317
|
): void;
|
|
318
318
|
|
|
@@ -2018,7 +2018,10 @@ export interface Application extends Resource {
|
|
|
2018
2018
|
*
|
|
2019
2019
|
* @param [params.filter] - Specify which event types to allow/disallow.
|
|
2020
2020
|
*/
|
|
2021
|
-
filter(
|
|
2021
|
+
filter(
|
|
2022
|
+
params: { filter?: IndexableObject | undefined },
|
|
2023
|
+
callback: (err: Error, application: Application) => void,
|
|
2024
|
+
): void;
|
|
2022
2025
|
|
|
2023
2026
|
/**
|
|
2024
2027
|
* Filter application events types.
|
|
@@ -2123,7 +2126,10 @@ export interface Asterisk {
|
|
|
2123
2126
|
*
|
|
2124
2127
|
* @param [params.only] - Filter information returned.
|
|
2125
2128
|
*/
|
|
2126
|
-
getInfo(
|
|
2129
|
+
getInfo(
|
|
2130
|
+
params: { only?: string | string[] | undefined },
|
|
2131
|
+
callback: (err: Error, asteriskinfo: AsteriskInfo) => void,
|
|
2132
|
+
): void;
|
|
2127
2133
|
|
|
2128
2134
|
/**
|
|
2129
2135
|
* Gets Asterisk system information.
|
|
@@ -2531,7 +2537,9 @@ export interface Bridges {
|
|
|
2531
2537
|
* @param [params.bridgeId] - Unique ID to give to the bridge being created.
|
|
2532
2538
|
* @param [params.name] - Name to give to the bridge being created.
|
|
2533
2539
|
*/
|
|
2534
|
-
create(
|
|
2540
|
+
create(
|
|
2541
|
+
params?: { type?: string | undefined; bridgeId?: string | undefined; name?: string | undefined },
|
|
2542
|
+
): Promise<Bridge>;
|
|
2535
2543
|
|
|
2536
2544
|
/**
|
|
2537
2545
|
* Create a new bridge or updates an existing one.
|
|
@@ -2596,7 +2604,13 @@ export interface Bridges {
|
|
|
2596
2604
|
* @param [params.mute] - Mute audio from this channel, preventing it to pass through to the bridge.
|
|
2597
2605
|
*/
|
|
2598
2606
|
addChannel(
|
|
2599
|
-
params: {
|
|
2607
|
+
params: {
|
|
2608
|
+
bridgeId: string;
|
|
2609
|
+
channel: string | string[];
|
|
2610
|
+
role?: string | undefined;
|
|
2611
|
+
absorbDTMF?: boolean | undefined;
|
|
2612
|
+
mute?: boolean | undefined;
|
|
2613
|
+
},
|
|
2600
2614
|
callback: (err: Error) => void,
|
|
2601
2615
|
): void;
|
|
2602
2616
|
|
|
@@ -2906,7 +2920,10 @@ export interface Bridge extends Resource {
|
|
|
2906
2920
|
* @param [params.type] - Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media, video_sfu).
|
|
2907
2921
|
* @param [params.name] - Name to give to the bridge being created.
|
|
2908
2922
|
*/
|
|
2909
|
-
create(
|
|
2923
|
+
create(
|
|
2924
|
+
params: { type?: string | undefined; name?: string | undefined },
|
|
2925
|
+
callback: (err: Error, bridge: Bridge) => void,
|
|
2926
|
+
): void;
|
|
2910
2927
|
|
|
2911
2928
|
/**
|
|
2912
2929
|
* Create a new bridge.
|
|
@@ -2930,7 +2947,10 @@ export interface Bridge extends Resource {
|
|
|
2930
2947
|
* @param [params.type] - Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media, video_sfu) to set.
|
|
2931
2948
|
* @param [params.name] - Set the name of the bridge.
|
|
2932
2949
|
*/
|
|
2933
|
-
createWithId(
|
|
2950
|
+
createWithId(
|
|
2951
|
+
params: { type?: string | undefined; name?: string | undefined },
|
|
2952
|
+
callback: (err: Error, bridge: Bridge) => void,
|
|
2953
|
+
): void;
|
|
2934
2954
|
|
|
2935
2955
|
/**
|
|
2936
2956
|
* Create a new bridge or updates an existing one.
|
|
@@ -2978,7 +2998,12 @@ export interface Bridge extends Resource {
|
|
|
2978
2998
|
* @param [params.mute] - Mute audio from this channel, preventing it to pass through to the bridge.
|
|
2979
2999
|
*/
|
|
2980
3000
|
addChannel(
|
|
2981
|
-
params: {
|
|
3001
|
+
params: {
|
|
3002
|
+
channel: string | string[];
|
|
3003
|
+
role?: string | undefined;
|
|
3004
|
+
absorbDTMF?: boolean | undefined;
|
|
3005
|
+
mute?: boolean | undefined;
|
|
3006
|
+
},
|
|
2982
3007
|
callback: (err: Error) => void,
|
|
2983
3008
|
): void;
|
|
2984
3009
|
|
|
@@ -3080,7 +3105,13 @@ export interface Bridge extends Resource {
|
|
|
3080
3105
|
* @param [params.playbackId] - Playback Id.
|
|
3081
3106
|
*/
|
|
3082
3107
|
play(
|
|
3083
|
-
params: {
|
|
3108
|
+
params: {
|
|
3109
|
+
media: string | string[];
|
|
3110
|
+
lang?: string | undefined;
|
|
3111
|
+
offsetms?: number | undefined;
|
|
3112
|
+
skipms?: number | undefined;
|
|
3113
|
+
playbackId?: string | undefined;
|
|
3114
|
+
},
|
|
3084
3115
|
callback: (err: Error, playback: Playback) => void,
|
|
3085
3116
|
): void;
|
|
3086
3117
|
|
|
@@ -3115,7 +3146,13 @@ export interface Bridge extends Resource {
|
|
|
3115
3146
|
* @param [params.skipms] - Number of milliseconds to skip for forward/reverse operations.
|
|
3116
3147
|
*/
|
|
3117
3148
|
playWithId(
|
|
3118
|
-
params: {
|
|
3149
|
+
params: {
|
|
3150
|
+
playbackId: string;
|
|
3151
|
+
media: string | string[];
|
|
3152
|
+
lang?: string | undefined;
|
|
3153
|
+
offsetms?: number | undefined;
|
|
3154
|
+
skipms?: number | undefined;
|
|
3155
|
+
},
|
|
3119
3156
|
callback: (err: Error, playback: Playback) => void,
|
|
3120
3157
|
): void;
|
|
3121
3158
|
|
|
@@ -3447,7 +3484,13 @@ export interface Channels {
|
|
|
3447
3484
|
* @param [params.label] - The label to continue to - will supersede priority if both are provided.
|
|
3448
3485
|
*/
|
|
3449
3486
|
continueInDialplan(
|
|
3450
|
-
params: {
|
|
3487
|
+
params: {
|
|
3488
|
+
channelId: string;
|
|
3489
|
+
context?: string | undefined;
|
|
3490
|
+
extension?: string | undefined;
|
|
3491
|
+
priority?: number | undefined;
|
|
3492
|
+
label?: string | undefined;
|
|
3493
|
+
},
|
|
3451
3494
|
callback: (err: Error) => void,
|
|
3452
3495
|
): void;
|
|
3453
3496
|
|
|
@@ -3475,7 +3518,10 @@ export interface Channels {
|
|
|
3475
3518
|
* @param params.app - The channel will be passed to this Stasis application.
|
|
3476
3519
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application provided by app.
|
|
3477
3520
|
*/
|
|
3478
|
-
move(
|
|
3521
|
+
move(
|
|
3522
|
+
params: { channelId: string; app: string; appArgs?: string | undefined },
|
|
3523
|
+
callback: (err: Error) => void,
|
|
3524
|
+
): void;
|
|
3479
3525
|
|
|
3480
3526
|
/**
|
|
3481
3527
|
* Move the channel from one Stasis application to another.
|
|
@@ -3902,7 +3948,14 @@ export interface Channels {
|
|
|
3902
3948
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
3903
3949
|
*/
|
|
3904
3950
|
snoopChannel(
|
|
3905
|
-
params: {
|
|
3951
|
+
params: {
|
|
3952
|
+
channelId: string;
|
|
3953
|
+
spy?: string | undefined;
|
|
3954
|
+
whisper?: string | undefined;
|
|
3955
|
+
app: string;
|
|
3956
|
+
appArgs?: string | undefined;
|
|
3957
|
+
snoopId?: string | undefined;
|
|
3958
|
+
},
|
|
3906
3959
|
callback: (err: Error, channel: Channel) => void,
|
|
3907
3960
|
): void;
|
|
3908
3961
|
|
|
@@ -3938,7 +3991,14 @@ export interface Channels {
|
|
|
3938
3991
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application.
|
|
3939
3992
|
*/
|
|
3940
3993
|
snoopChannelWithId(
|
|
3941
|
-
params: {
|
|
3994
|
+
params: {
|
|
3995
|
+
channelId: string;
|
|
3996
|
+
snoopId: string;
|
|
3997
|
+
spy?: string | undefined;
|
|
3998
|
+
whisper?: string | undefined;
|
|
3999
|
+
app: string;
|
|
4000
|
+
appArgs?: string | undefined;
|
|
4001
|
+
},
|
|
3942
4002
|
callback: (err: Error, channel: Channel) => void,
|
|
3943
4003
|
): void;
|
|
3944
4004
|
|
|
@@ -3969,7 +4029,10 @@ export interface Channels {
|
|
|
3969
4029
|
* @param [params.caller] - Channel ID of caller.
|
|
3970
4030
|
* @param [params.timeout] - Dial timeout.
|
|
3971
4031
|
*/
|
|
3972
|
-
dial(
|
|
4032
|
+
dial(
|
|
4033
|
+
params: { channelId: string; caller?: string | undefined; timeout?: number | undefined },
|
|
4034
|
+
callback: (err: Error) => void,
|
|
4035
|
+
): void;
|
|
3973
4036
|
|
|
3974
4037
|
/**
|
|
3975
4038
|
* Dial a created channel.
|
|
@@ -4543,7 +4606,12 @@ export interface Channel extends Resource {
|
|
|
4543
4606
|
* @param [params.label] - The label to continue to - will supersede priority if both are provided.
|
|
4544
4607
|
*/
|
|
4545
4608
|
continueInDialplan(
|
|
4546
|
-
params: {
|
|
4609
|
+
params: {
|
|
4610
|
+
context?: string | undefined;
|
|
4611
|
+
extension?: string | undefined;
|
|
4612
|
+
priority?: number | undefined;
|
|
4613
|
+
label?: string | undefined;
|
|
4614
|
+
},
|
|
4547
4615
|
callback: (err: Error) => void,
|
|
4548
4616
|
): void;
|
|
4549
4617
|
|
|
@@ -4637,7 +4705,13 @@ export interface Channel extends Resource {
|
|
|
4637
4705
|
* @param [params.after] - Amount of time to wait after DTMF digits (specified in milliseconds) end.
|
|
4638
4706
|
*/
|
|
4639
4707
|
sendDTMF(
|
|
4640
|
-
params: {
|
|
4708
|
+
params: {
|
|
4709
|
+
dtmf?: string | undefined;
|
|
4710
|
+
before?: number | undefined;
|
|
4711
|
+
between?: number | undefined;
|
|
4712
|
+
duration?: number | undefined;
|
|
4713
|
+
after?: number | undefined;
|
|
4714
|
+
},
|
|
4641
4715
|
callback: (err: Error) => void,
|
|
4642
4716
|
): void;
|
|
4643
4717
|
|
|
@@ -4790,7 +4864,13 @@ export interface Channel extends Resource {
|
|
|
4790
4864
|
* @param [params.playbackId] - Playback ID.
|
|
4791
4865
|
*/
|
|
4792
4866
|
play(
|
|
4793
|
-
params: {
|
|
4867
|
+
params: {
|
|
4868
|
+
media: string | string[];
|
|
4869
|
+
lang?: string | undefined;
|
|
4870
|
+
offsetms?: number | undefined;
|
|
4871
|
+
skipms?: number | undefined;
|
|
4872
|
+
playbackId?: string | undefined;
|
|
4873
|
+
},
|
|
4794
4874
|
playback: Playback,
|
|
4795
4875
|
callback: (err: Error, playback: Playback) => void,
|
|
4796
4876
|
): void;
|
|
@@ -4807,7 +4887,13 @@ export interface Channel extends Resource {
|
|
|
4807
4887
|
* @param [params.playbackId] - Playback ID.
|
|
4808
4888
|
*/
|
|
4809
4889
|
play(
|
|
4810
|
-
params: {
|
|
4890
|
+
params: {
|
|
4891
|
+
media: string | string[];
|
|
4892
|
+
lang?: string | undefined;
|
|
4893
|
+
offsetms?: number | undefined;
|
|
4894
|
+
skipms?: number | undefined;
|
|
4895
|
+
playbackId?: string | undefined;
|
|
4896
|
+
},
|
|
4811
4897
|
playback: Playback,
|
|
4812
4898
|
): Promise<Playback>;
|
|
4813
4899
|
|
|
@@ -4823,7 +4909,13 @@ export interface Channel extends Resource {
|
|
|
4823
4909
|
* @param [params.skipms] - Number of milliseconds to skip for forward/reverse operations.
|
|
4824
4910
|
*/
|
|
4825
4911
|
playWithId(
|
|
4826
|
-
params: {
|
|
4912
|
+
params: {
|
|
4913
|
+
playbackId: string;
|
|
4914
|
+
media: string | string[];
|
|
4915
|
+
lang?: string | undefined;
|
|
4916
|
+
offsetms?: number | undefined;
|
|
4917
|
+
skipms?: number | undefined;
|
|
4918
|
+
},
|
|
4827
4919
|
callback: (err: Error, playback: Playback) => void,
|
|
4828
4920
|
): void;
|
|
4829
4921
|
|
|
@@ -4938,7 +5030,13 @@ export interface Channel extends Resource {
|
|
|
4938
5030
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
4939
5031
|
*/
|
|
4940
5032
|
snoopChannel(
|
|
4941
|
-
params: {
|
|
5033
|
+
params: {
|
|
5034
|
+
spy?: string | undefined;
|
|
5035
|
+
whisper?: string | undefined;
|
|
5036
|
+
app: string;
|
|
5037
|
+
appArgs?: string | undefined;
|
|
5038
|
+
snoopId?: string | undefined;
|
|
5039
|
+
},
|
|
4942
5040
|
snoopChannel: Channel,
|
|
4943
5041
|
callback: (err: Error, channel: Channel) => void,
|
|
4944
5042
|
): void;
|
|
@@ -4954,7 +5052,13 @@ export interface Channel extends Resource {
|
|
|
4954
5052
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
4955
5053
|
*/
|
|
4956
5054
|
snoopChannel(
|
|
4957
|
-
params: {
|
|
5055
|
+
params: {
|
|
5056
|
+
spy?: string | undefined;
|
|
5057
|
+
whisper?: string | undefined;
|
|
5058
|
+
app: string;
|
|
5059
|
+
appArgs?: string | undefined;
|
|
5060
|
+
snoopId?: string | undefined;
|
|
5061
|
+
},
|
|
4958
5062
|
snoopChannel: Channel,
|
|
4959
5063
|
): Promise<Channel>;
|
|
4960
5064
|
|
|
@@ -4969,7 +5073,13 @@ export interface Channel extends Resource {
|
|
|
4969
5073
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application.
|
|
4970
5074
|
*/
|
|
4971
5075
|
snoopChannelWithId(
|
|
4972
|
-
params: {
|
|
5076
|
+
params: {
|
|
5077
|
+
snoopId: string;
|
|
5078
|
+
spy?: string | undefined;
|
|
5079
|
+
whisper?: string | undefined;
|
|
5080
|
+
app: string;
|
|
5081
|
+
appArgs?: string | undefined;
|
|
5082
|
+
},
|
|
4973
5083
|
callback: (err: Error, channel: Channel) => void,
|
|
4974
5084
|
): void;
|
|
4975
5085
|
|
|
@@ -5219,7 +5329,9 @@ export interface Endpoints {
|
|
|
5219
5329
|
* @param [params.variables] - The "variables" key in the body object holds technology specific key/value pairs to append to the message. These can be interpreted and used by the various
|
|
5220
5330
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5221
5331
|
*/
|
|
5222
|
-
sendMessage(
|
|
5332
|
+
sendMessage(
|
|
5333
|
+
params: { to: string; from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5334
|
+
): Promise<void>;
|
|
5223
5335
|
|
|
5224
5336
|
/**
|
|
5225
5337
|
* List available endoints for a given endpoint technology.
|
|
@@ -5272,7 +5384,13 @@ export interface Endpoints {
|
|
|
5272
5384
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5273
5385
|
*/
|
|
5274
5386
|
sendMessageToEndpoint(
|
|
5275
|
-
params: {
|
|
5387
|
+
params: {
|
|
5388
|
+
tech: string;
|
|
5389
|
+
resource: string;
|
|
5390
|
+
from: string;
|
|
5391
|
+
body?: string | undefined;
|
|
5392
|
+
variables?: Containers | undefined;
|
|
5393
|
+
},
|
|
5276
5394
|
callback: (err: Error) => void,
|
|
5277
5395
|
): void;
|
|
5278
5396
|
|
|
@@ -5348,7 +5466,9 @@ export interface Endpoint extends Resource {
|
|
|
5348
5466
|
* @param [params.variables] - The "variables" key in the body object holds technology specific key/value pairs to append to the message. These can be interpreted and used by the various
|
|
5349
5467
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5350
5468
|
*/
|
|
5351
|
-
sendMessage(
|
|
5469
|
+
sendMessage(
|
|
5470
|
+
params: { to: string; from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5471
|
+
): Promise<void>;
|
|
5352
5472
|
|
|
5353
5473
|
/**
|
|
5354
5474
|
* List available endoints for a given endpoint technology.
|
|
@@ -5391,7 +5511,9 @@ export interface Endpoint extends Resource {
|
|
|
5391
5511
|
* @param [params.variables] - The "variables" key in the body object holds technology specific key/value pairs to append to the message. These can be interpreted and used by the various
|
|
5392
5512
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5393
5513
|
*/
|
|
5394
|
-
sendMessageToEndpoint(
|
|
5514
|
+
sendMessageToEndpoint(
|
|
5515
|
+
params: { from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5516
|
+
): Promise<void>;
|
|
5395
5517
|
}
|
|
5396
5518
|
export interface TextMessage {
|
|
5397
5519
|
/**
|
|
@@ -6145,7 +6267,10 @@ export interface Sounds {
|
|
|
6145
6267
|
* @param [params.lang] - Lookup sound for a specific language.
|
|
6146
6268
|
* @param [params.format] - Lookup sound in a specific format.
|
|
6147
6269
|
*/
|
|
6148
|
-
list(
|
|
6270
|
+
list(
|
|
6271
|
+
params: { lang?: string | undefined; format?: string | undefined },
|
|
6272
|
+
callback: (err: Error, sounds: Sound[]) => void,
|
|
6273
|
+
): void;
|
|
6149
6274
|
|
|
6150
6275
|
/**
|
|
6151
6276
|
* List all sounds.
|
|
@@ -6207,7 +6332,10 @@ export interface Sound extends Resource {
|
|
|
6207
6332
|
* @param [params.lang] - Lookup sound for a specific language.
|
|
6208
6333
|
* @param [params.format] - Lookup sound in a specific format.
|
|
6209
6334
|
*/
|
|
6210
|
-
list(
|
|
6335
|
+
list(
|
|
6336
|
+
params: { lang?: string | undefined; format?: string | undefined },
|
|
6337
|
+
callback: (err: Error, sounds: Sound[]) => void,
|
|
6338
|
+
): void;
|
|
6211
6339
|
|
|
6212
6340
|
/**
|
|
6213
6341
|
* List all sounds.
|
ari-client/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/ari-client",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"description": "TypeScript definitions for ari-client",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ari-client",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Dioris Moreno",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "dioris-moreno",
|
|
11
|
+
"url": "https://github.com/dioris-moreno"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"main": "",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@types/node": "*"
|
|
24
24
|
},
|
|
25
|
-
"typesPublisherContentHash": "
|
|
26
|
-
"typeScriptVersion": "4.
|
|
25
|
+
"typesPublisherContentHash": "1babd734a52614a7854402ae7ed668bded9aad29b610f777dd6f1abf20aaf20f",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
27
27
|
}
|