@types/ari-client 2.2.8 → 2.2.10
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 -1
- ari-client/index.d.ts +221 -88
- ari-client/package.json +3 -3
ari-client/LICENSE
CHANGED
|
File without changes
|
ari-client/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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: Fri, 22 Sep 2023 18:11:04 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
ari-client/index.d.ts
CHANGED
|
@@ -181,55 +181,55 @@ export interface IndexableObject {
|
|
|
181
181
|
[key: string]: any;
|
|
182
182
|
}
|
|
183
183
|
/* 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 =
|
|
184
|
+
export type WebSocketConnectedEventType = "WebSocketConnected";
|
|
185
|
+
export type WebSocketReconnectingEventType = "WebSocketReconnecting";
|
|
186
|
+
export type WebSocketMaxRetriesEventType = "WebSocketMaxRetries";
|
|
187
|
+
export type PongEventType = "pong";
|
|
188
|
+
export type APILoadErrorEventType = "APILoadError";
|
|
189
|
+
export type EventsEventType = "Events";
|
|
190
|
+
export type MessageEventType = "Message";
|
|
191
|
+
export type MissingParamsEventType = "MissingParams";
|
|
192
|
+
export type EventEventType = "Event";
|
|
193
|
+
export type ContactInfoEventType = "ContactInfo";
|
|
194
|
+
export type PeerEventType = "Peer";
|
|
195
|
+
export type DeviceStateChangedEventType = "DeviceStateChanged";
|
|
196
|
+
export type PlaybackStartedEventType = "PlaybackStarted";
|
|
197
|
+
export type PlaybackContinuingEventType = "PlaybackContinuing";
|
|
198
|
+
export type PlaybackFinishedEventType = "PlaybackFinished";
|
|
199
|
+
export type RecordingStartedEventType = "RecordingStarted";
|
|
200
|
+
export type RecordingFinishedEventType = "RecordingFinished";
|
|
201
|
+
export type RecordingFailedEventType = "RecordingFailed";
|
|
202
|
+
export type ApplicationMoveFailedEventType = "ApplicationMoveFailed";
|
|
203
|
+
export type ApplicationReplacedEventType = "ApplicationReplaced";
|
|
204
|
+
export type BridgeCreatedEventType = "BridgeCreated";
|
|
205
|
+
export type BridgeDestroyedEventType = "BridgeDestroyed";
|
|
206
|
+
export type BridgeMergedEventType = "BridgeMerged";
|
|
207
|
+
export type BridgeVideoSourceChangedEventType = "BridgeVideoSourceChanged";
|
|
208
|
+
export type BridgeBlindTransferEventType = "BridgeBlindTransfer";
|
|
209
|
+
export type BridgeAttendedTransferEventType = "BridgeAttendedTransfer";
|
|
210
|
+
export type ChannelCreatedEventType = "ChannelCreated";
|
|
211
|
+
export type ChannelDestroyedEventType = "ChannelDestroyed";
|
|
212
|
+
export type ChannelEnteredBridgeEventType = "ChannelEnteredBridge";
|
|
213
|
+
export type ChannelLeftBridgeEventType = "ChannelLeftBridge";
|
|
214
|
+
export type ChannelStateChangeEventType = "ChannelStateChange";
|
|
215
|
+
export type ChannelDtmfReceivedEventType = "ChannelDtmfReceived";
|
|
216
|
+
export type ChannelDialplanEventType = "ChannelDialplan";
|
|
217
|
+
export type ChannelCallerIdEventType = "ChannelCallerId";
|
|
218
|
+
export type ChannelUsereventEventType = "ChannelUserevent";
|
|
219
|
+
export type ChannelHangupRequestEventType = "ChannelHangupRequest";
|
|
220
|
+
export type ChannelVarsetEventType = "ChannelVarset";
|
|
221
|
+
export type ChannelHoldEventType = "ChannelHold";
|
|
222
|
+
export type ChannelUnholdEventType = "ChannelUnhold";
|
|
223
|
+
export type ChannelTalkingStartedEventType = "ChannelTalkingStarted";
|
|
224
|
+
export type ChannelTalkingFinishedEventType = "ChannelTalkingFinished";
|
|
225
|
+
export type ContactStatusChangeEventType = "ContactStatusChange";
|
|
226
|
+
export type PeerStatusChangeEventType = "PeerStatusChange";
|
|
227
|
+
export type EndpointStateChangeEventType = "EndpointStateChange";
|
|
228
|
+
export type DialEventType = "Dial";
|
|
229
|
+
export type StasisEndEventType = "StasisEnd";
|
|
230
|
+
export type StasisStartEventType = "StasisStart";
|
|
231
|
+
export type TextMessageReceivedEventType = "TextMessageReceived";
|
|
232
|
+
export type ChannelConnectedLineEventType = "ChannelConnectedLine";
|
|
233
233
|
export type AnyEventType =
|
|
234
234
|
| WebSocketConnectedEventType
|
|
235
235
|
| WebSocketReconnectingEventType
|
|
@@ -312,7 +312,12 @@ export interface Events {
|
|
|
312
312
|
* @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
313
|
*/
|
|
314
314
|
userEvent(
|
|
315
|
-
params: {
|
|
315
|
+
params: {
|
|
316
|
+
eventName: string;
|
|
317
|
+
application: string;
|
|
318
|
+
source?: string | string[] | undefined;
|
|
319
|
+
variables?: Containers | undefined;
|
|
320
|
+
},
|
|
316
321
|
callback: (err: Error) => void,
|
|
317
322
|
): void;
|
|
318
323
|
|
|
@@ -355,9 +360,9 @@ export interface Event extends Message {
|
|
|
355
360
|
application: string;
|
|
356
361
|
|
|
357
362
|
/**
|
|
358
|
-
*
|
|
363
|
+
* ISO 8601 date/time at which this event was created.
|
|
359
364
|
*/
|
|
360
|
-
timestamp:
|
|
365
|
+
timestamp: string;
|
|
361
366
|
}
|
|
362
367
|
export interface ContactInfo {
|
|
363
368
|
/**
|
|
@@ -2018,7 +2023,10 @@ export interface Application extends Resource {
|
|
|
2018
2023
|
*
|
|
2019
2024
|
* @param [params.filter] - Specify which event types to allow/disallow.
|
|
2020
2025
|
*/
|
|
2021
|
-
filter(
|
|
2026
|
+
filter(
|
|
2027
|
+
params: { filter?: IndexableObject | undefined },
|
|
2028
|
+
callback: (err: Error, application: Application) => void,
|
|
2029
|
+
): void;
|
|
2022
2030
|
|
|
2023
2031
|
/**
|
|
2024
2032
|
* Filter application events types.
|
|
@@ -2123,7 +2131,10 @@ export interface Asterisk {
|
|
|
2123
2131
|
*
|
|
2124
2132
|
* @param [params.only] - Filter information returned.
|
|
2125
2133
|
*/
|
|
2126
|
-
getInfo(
|
|
2134
|
+
getInfo(
|
|
2135
|
+
params: { only?: string | string[] | undefined },
|
|
2136
|
+
callback: (err: Error, asteriskinfo: AsteriskInfo) => void,
|
|
2137
|
+
): void;
|
|
2127
2138
|
|
|
2128
2139
|
/**
|
|
2129
2140
|
* Gets Asterisk system information.
|
|
@@ -2383,14 +2394,14 @@ export interface ConfigInfo {
|
|
|
2383
2394
|
}
|
|
2384
2395
|
export interface StatusInfo {
|
|
2385
2396
|
/**
|
|
2386
|
-
*
|
|
2397
|
+
* ISO 8601 date/time when Asterisk was started.
|
|
2387
2398
|
*/
|
|
2388
|
-
startup_time:
|
|
2399
|
+
startup_time: string;
|
|
2389
2400
|
|
|
2390
2401
|
/**
|
|
2391
|
-
*
|
|
2402
|
+
* ISO 8601 date/time when Asterisk was last reloaded.
|
|
2392
2403
|
*/
|
|
2393
|
-
last_reload_time:
|
|
2404
|
+
last_reload_time: string;
|
|
2394
2405
|
}
|
|
2395
2406
|
export interface AsteriskInfo {
|
|
2396
2407
|
/**
|
|
@@ -2531,7 +2542,9 @@ export interface Bridges {
|
|
|
2531
2542
|
* @param [params.bridgeId] - Unique ID to give to the bridge being created.
|
|
2532
2543
|
* @param [params.name] - Name to give to the bridge being created.
|
|
2533
2544
|
*/
|
|
2534
|
-
create(
|
|
2545
|
+
create(
|
|
2546
|
+
params?: { type?: string | undefined; bridgeId?: string | undefined; name?: string | undefined },
|
|
2547
|
+
): Promise<Bridge>;
|
|
2535
2548
|
|
|
2536
2549
|
/**
|
|
2537
2550
|
* Create a new bridge or updates an existing one.
|
|
@@ -2596,7 +2609,13 @@ export interface Bridges {
|
|
|
2596
2609
|
* @param [params.mute] - Mute audio from this channel, preventing it to pass through to the bridge.
|
|
2597
2610
|
*/
|
|
2598
2611
|
addChannel(
|
|
2599
|
-
params: {
|
|
2612
|
+
params: {
|
|
2613
|
+
bridgeId: string;
|
|
2614
|
+
channel: string | string[];
|
|
2615
|
+
role?: string | undefined;
|
|
2616
|
+
absorbDTMF?: boolean | undefined;
|
|
2617
|
+
mute?: boolean | undefined;
|
|
2618
|
+
},
|
|
2600
2619
|
callback: (err: Error) => void,
|
|
2601
2620
|
): void;
|
|
2602
2621
|
|
|
@@ -2885,9 +2904,9 @@ export interface Bridge extends Resource {
|
|
|
2885
2904
|
video_source_id?: string | undefined;
|
|
2886
2905
|
|
|
2887
2906
|
/**
|
|
2888
|
-
*
|
|
2907
|
+
* ISO 8601 date/time when the bridge was created.
|
|
2889
2908
|
*/
|
|
2890
|
-
creationtime:
|
|
2909
|
+
creationtime: string;
|
|
2891
2910
|
|
|
2892
2911
|
/**
|
|
2893
2912
|
* List all active bridges in Asterisk.
|
|
@@ -2906,7 +2925,10 @@ export interface Bridge extends Resource {
|
|
|
2906
2925
|
* @param [params.type] - Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media, video_sfu).
|
|
2907
2926
|
* @param [params.name] - Name to give to the bridge being created.
|
|
2908
2927
|
*/
|
|
2909
|
-
create(
|
|
2928
|
+
create(
|
|
2929
|
+
params: { type?: string | undefined; name?: string | undefined },
|
|
2930
|
+
callback: (err: Error, bridge: Bridge) => void,
|
|
2931
|
+
): void;
|
|
2910
2932
|
|
|
2911
2933
|
/**
|
|
2912
2934
|
* Create a new bridge.
|
|
@@ -2930,7 +2952,10 @@ export interface Bridge extends Resource {
|
|
|
2930
2952
|
* @param [params.type] - Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media, video_sfu) to set.
|
|
2931
2953
|
* @param [params.name] - Set the name of the bridge.
|
|
2932
2954
|
*/
|
|
2933
|
-
createWithId(
|
|
2955
|
+
createWithId(
|
|
2956
|
+
params: { type?: string | undefined; name?: string | undefined },
|
|
2957
|
+
callback: (err: Error, bridge: Bridge) => void,
|
|
2958
|
+
): void;
|
|
2934
2959
|
|
|
2935
2960
|
/**
|
|
2936
2961
|
* Create a new bridge or updates an existing one.
|
|
@@ -2978,7 +3003,12 @@ export interface Bridge extends Resource {
|
|
|
2978
3003
|
* @param [params.mute] - Mute audio from this channel, preventing it to pass through to the bridge.
|
|
2979
3004
|
*/
|
|
2980
3005
|
addChannel(
|
|
2981
|
-
params: {
|
|
3006
|
+
params: {
|
|
3007
|
+
channel: string | string[];
|
|
3008
|
+
role?: string | undefined;
|
|
3009
|
+
absorbDTMF?: boolean | undefined;
|
|
3010
|
+
mute?: boolean | undefined;
|
|
3011
|
+
},
|
|
2982
3012
|
callback: (err: Error) => void,
|
|
2983
3013
|
): void;
|
|
2984
3014
|
|
|
@@ -3080,7 +3110,13 @@ export interface Bridge extends Resource {
|
|
|
3080
3110
|
* @param [params.playbackId] - Playback Id.
|
|
3081
3111
|
*/
|
|
3082
3112
|
play(
|
|
3083
|
-
params: {
|
|
3113
|
+
params: {
|
|
3114
|
+
media: string | string[];
|
|
3115
|
+
lang?: string | undefined;
|
|
3116
|
+
offsetms?: number | undefined;
|
|
3117
|
+
skipms?: number | undefined;
|
|
3118
|
+
playbackId?: string | undefined;
|
|
3119
|
+
},
|
|
3084
3120
|
callback: (err: Error, playback: Playback) => void,
|
|
3085
3121
|
): void;
|
|
3086
3122
|
|
|
@@ -3115,7 +3151,13 @@ export interface Bridge extends Resource {
|
|
|
3115
3151
|
* @param [params.skipms] - Number of milliseconds to skip for forward/reverse operations.
|
|
3116
3152
|
*/
|
|
3117
3153
|
playWithId(
|
|
3118
|
-
params: {
|
|
3154
|
+
params: {
|
|
3155
|
+
playbackId: string;
|
|
3156
|
+
media: string | string[];
|
|
3157
|
+
lang?: string | undefined;
|
|
3158
|
+
offsetms?: number | undefined;
|
|
3159
|
+
skipms?: number | undefined;
|
|
3160
|
+
},
|
|
3119
3161
|
callback: (err: Error, playback: Playback) => void,
|
|
3120
3162
|
): void;
|
|
3121
3163
|
|
|
@@ -3447,7 +3489,13 @@ export interface Channels {
|
|
|
3447
3489
|
* @param [params.label] - The label to continue to - will supersede priority if both are provided.
|
|
3448
3490
|
*/
|
|
3449
3491
|
continueInDialplan(
|
|
3450
|
-
params: {
|
|
3492
|
+
params: {
|
|
3493
|
+
channelId: string;
|
|
3494
|
+
context?: string | undefined;
|
|
3495
|
+
extension?: string | undefined;
|
|
3496
|
+
priority?: number | undefined;
|
|
3497
|
+
label?: string | undefined;
|
|
3498
|
+
},
|
|
3451
3499
|
callback: (err: Error) => void,
|
|
3452
3500
|
): void;
|
|
3453
3501
|
|
|
@@ -3475,7 +3523,10 @@ export interface Channels {
|
|
|
3475
3523
|
* @param params.app - The channel will be passed to this Stasis application.
|
|
3476
3524
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application provided by app.
|
|
3477
3525
|
*/
|
|
3478
|
-
move(
|
|
3526
|
+
move(
|
|
3527
|
+
params: { channelId: string; app: string; appArgs?: string | undefined },
|
|
3528
|
+
callback: (err: Error) => void,
|
|
3529
|
+
): void;
|
|
3479
3530
|
|
|
3480
3531
|
/**
|
|
3481
3532
|
* Move the channel from one Stasis application to another.
|
|
@@ -3902,7 +3953,14 @@ export interface Channels {
|
|
|
3902
3953
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
3903
3954
|
*/
|
|
3904
3955
|
snoopChannel(
|
|
3905
|
-
params: {
|
|
3956
|
+
params: {
|
|
3957
|
+
channelId: string;
|
|
3958
|
+
spy?: string | undefined;
|
|
3959
|
+
whisper?: string | undefined;
|
|
3960
|
+
app: string;
|
|
3961
|
+
appArgs?: string | undefined;
|
|
3962
|
+
snoopId?: string | undefined;
|
|
3963
|
+
},
|
|
3906
3964
|
callback: (err: Error, channel: Channel) => void,
|
|
3907
3965
|
): void;
|
|
3908
3966
|
|
|
@@ -3938,7 +3996,14 @@ export interface Channels {
|
|
|
3938
3996
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application.
|
|
3939
3997
|
*/
|
|
3940
3998
|
snoopChannelWithId(
|
|
3941
|
-
params: {
|
|
3999
|
+
params: {
|
|
4000
|
+
channelId: string;
|
|
4001
|
+
snoopId: string;
|
|
4002
|
+
spy?: string | undefined;
|
|
4003
|
+
whisper?: string | undefined;
|
|
4004
|
+
app: string;
|
|
4005
|
+
appArgs?: string | undefined;
|
|
4006
|
+
},
|
|
3942
4007
|
callback: (err: Error, channel: Channel) => void,
|
|
3943
4008
|
): void;
|
|
3944
4009
|
|
|
@@ -3969,7 +4034,10 @@ export interface Channels {
|
|
|
3969
4034
|
* @param [params.caller] - Channel ID of caller.
|
|
3970
4035
|
* @param [params.timeout] - Dial timeout.
|
|
3971
4036
|
*/
|
|
3972
|
-
dial(
|
|
4037
|
+
dial(
|
|
4038
|
+
params: { channelId: string; caller?: string | undefined; timeout?: number | undefined },
|
|
4039
|
+
callback: (err: Error) => void,
|
|
4040
|
+
): void;
|
|
3973
4041
|
|
|
3974
4042
|
/**
|
|
3975
4043
|
* Dial a created channel.
|
|
@@ -4286,9 +4354,9 @@ export interface Channel extends Resource {
|
|
|
4286
4354
|
dialplan: DialplanCEP;
|
|
4287
4355
|
|
|
4288
4356
|
/**
|
|
4289
|
-
*
|
|
4357
|
+
* ISO 8601 date/time when the channel was created.
|
|
4290
4358
|
*/
|
|
4291
|
-
creationtime:
|
|
4359
|
+
creationtime: string;
|
|
4292
4360
|
|
|
4293
4361
|
/**
|
|
4294
4362
|
* The default spoken language.
|
|
@@ -4543,7 +4611,12 @@ export interface Channel extends Resource {
|
|
|
4543
4611
|
* @param [params.label] - The label to continue to - will supersede priority if both are provided.
|
|
4544
4612
|
*/
|
|
4545
4613
|
continueInDialplan(
|
|
4546
|
-
params: {
|
|
4614
|
+
params: {
|
|
4615
|
+
context?: string | undefined;
|
|
4616
|
+
extension?: string | undefined;
|
|
4617
|
+
priority?: number | undefined;
|
|
4618
|
+
label?: string | undefined;
|
|
4619
|
+
},
|
|
4547
4620
|
callback: (err: Error) => void,
|
|
4548
4621
|
): void;
|
|
4549
4622
|
|
|
@@ -4637,7 +4710,13 @@ export interface Channel extends Resource {
|
|
|
4637
4710
|
* @param [params.after] - Amount of time to wait after DTMF digits (specified in milliseconds) end.
|
|
4638
4711
|
*/
|
|
4639
4712
|
sendDTMF(
|
|
4640
|
-
params: {
|
|
4713
|
+
params: {
|
|
4714
|
+
dtmf?: string | undefined;
|
|
4715
|
+
before?: number | undefined;
|
|
4716
|
+
between?: number | undefined;
|
|
4717
|
+
duration?: number | undefined;
|
|
4718
|
+
after?: number | undefined;
|
|
4719
|
+
},
|
|
4641
4720
|
callback: (err: Error) => void,
|
|
4642
4721
|
): void;
|
|
4643
4722
|
|
|
@@ -4790,7 +4869,13 @@ export interface Channel extends Resource {
|
|
|
4790
4869
|
* @param [params.playbackId] - Playback ID.
|
|
4791
4870
|
*/
|
|
4792
4871
|
play(
|
|
4793
|
-
params: {
|
|
4872
|
+
params: {
|
|
4873
|
+
media: string | string[];
|
|
4874
|
+
lang?: string | undefined;
|
|
4875
|
+
offsetms?: number | undefined;
|
|
4876
|
+
skipms?: number | undefined;
|
|
4877
|
+
playbackId?: string | undefined;
|
|
4878
|
+
},
|
|
4794
4879
|
playback: Playback,
|
|
4795
4880
|
callback: (err: Error, playback: Playback) => void,
|
|
4796
4881
|
): void;
|
|
@@ -4807,7 +4892,13 @@ export interface Channel extends Resource {
|
|
|
4807
4892
|
* @param [params.playbackId] - Playback ID.
|
|
4808
4893
|
*/
|
|
4809
4894
|
play(
|
|
4810
|
-
params: {
|
|
4895
|
+
params: {
|
|
4896
|
+
media: string | string[];
|
|
4897
|
+
lang?: string | undefined;
|
|
4898
|
+
offsetms?: number | undefined;
|
|
4899
|
+
skipms?: number | undefined;
|
|
4900
|
+
playbackId?: string | undefined;
|
|
4901
|
+
},
|
|
4811
4902
|
playback: Playback,
|
|
4812
4903
|
): Promise<Playback>;
|
|
4813
4904
|
|
|
@@ -4823,7 +4914,13 @@ export interface Channel extends Resource {
|
|
|
4823
4914
|
* @param [params.skipms] - Number of milliseconds to skip for forward/reverse operations.
|
|
4824
4915
|
*/
|
|
4825
4916
|
playWithId(
|
|
4826
|
-
params: {
|
|
4917
|
+
params: {
|
|
4918
|
+
playbackId: string;
|
|
4919
|
+
media: string | string[];
|
|
4920
|
+
lang?: string | undefined;
|
|
4921
|
+
offsetms?: number | undefined;
|
|
4922
|
+
skipms?: number | undefined;
|
|
4923
|
+
},
|
|
4827
4924
|
callback: (err: Error, playback: Playback) => void,
|
|
4828
4925
|
): void;
|
|
4829
4926
|
|
|
@@ -4938,7 +5035,13 @@ export interface Channel extends Resource {
|
|
|
4938
5035
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
4939
5036
|
*/
|
|
4940
5037
|
snoopChannel(
|
|
4941
|
-
params: {
|
|
5038
|
+
params: {
|
|
5039
|
+
spy?: string | undefined;
|
|
5040
|
+
whisper?: string | undefined;
|
|
5041
|
+
app: string;
|
|
5042
|
+
appArgs?: string | undefined;
|
|
5043
|
+
snoopId?: string | undefined;
|
|
5044
|
+
},
|
|
4942
5045
|
snoopChannel: Channel,
|
|
4943
5046
|
callback: (err: Error, channel: Channel) => void,
|
|
4944
5047
|
): void;
|
|
@@ -4954,7 +5057,13 @@ export interface Channel extends Resource {
|
|
|
4954
5057
|
* @param [params.snoopId] - Unique ID to assign to snooping channel.
|
|
4955
5058
|
*/
|
|
4956
5059
|
snoopChannel(
|
|
4957
|
-
params: {
|
|
5060
|
+
params: {
|
|
5061
|
+
spy?: string | undefined;
|
|
5062
|
+
whisper?: string | undefined;
|
|
5063
|
+
app: string;
|
|
5064
|
+
appArgs?: string | undefined;
|
|
5065
|
+
snoopId?: string | undefined;
|
|
5066
|
+
},
|
|
4958
5067
|
snoopChannel: Channel,
|
|
4959
5068
|
): Promise<Channel>;
|
|
4960
5069
|
|
|
@@ -4969,7 +5078,13 @@ export interface Channel extends Resource {
|
|
|
4969
5078
|
* @param [params.appArgs] - The application arguments to pass to the Stasis application.
|
|
4970
5079
|
*/
|
|
4971
5080
|
snoopChannelWithId(
|
|
4972
|
-
params: {
|
|
5081
|
+
params: {
|
|
5082
|
+
snoopId: string;
|
|
5083
|
+
spy?: string | undefined;
|
|
5084
|
+
whisper?: string | undefined;
|
|
5085
|
+
app: string;
|
|
5086
|
+
appArgs?: string | undefined;
|
|
5087
|
+
},
|
|
4973
5088
|
callback: (err: Error, channel: Channel) => void,
|
|
4974
5089
|
): void;
|
|
4975
5090
|
|
|
@@ -5219,7 +5334,9 @@ export interface Endpoints {
|
|
|
5219
5334
|
* @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
5335
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5221
5336
|
*/
|
|
5222
|
-
sendMessage(
|
|
5337
|
+
sendMessage(
|
|
5338
|
+
params: { to: string; from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5339
|
+
): Promise<void>;
|
|
5223
5340
|
|
|
5224
5341
|
/**
|
|
5225
5342
|
* List available endoints for a given endpoint technology.
|
|
@@ -5272,7 +5389,13 @@ export interface Endpoints {
|
|
|
5272
5389
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5273
5390
|
*/
|
|
5274
5391
|
sendMessageToEndpoint(
|
|
5275
|
-
params: {
|
|
5392
|
+
params: {
|
|
5393
|
+
tech: string;
|
|
5394
|
+
resource: string;
|
|
5395
|
+
from: string;
|
|
5396
|
+
body?: string | undefined;
|
|
5397
|
+
variables?: Containers | undefined;
|
|
5398
|
+
},
|
|
5276
5399
|
callback: (err: Error) => void,
|
|
5277
5400
|
): void;
|
|
5278
5401
|
|
|
@@ -5348,7 +5471,9 @@ export interface Endpoint extends Resource {
|
|
|
5348
5471
|
* @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
5472
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5350
5473
|
*/
|
|
5351
|
-
sendMessage(
|
|
5474
|
+
sendMessage(
|
|
5475
|
+
params: { to: string; from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5476
|
+
): Promise<void>;
|
|
5352
5477
|
|
|
5353
5478
|
/**
|
|
5354
5479
|
* List available endoints for a given endpoint technology.
|
|
@@ -5391,7 +5516,9 @@ export interface Endpoint extends Resource {
|
|
|
5391
5516
|
* @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
5517
|
* resource types; for example, pjsip and sip resource types will add the key/value pairs as SIP headers.
|
|
5393
5518
|
*/
|
|
5394
|
-
sendMessageToEndpoint(
|
|
5519
|
+
sendMessageToEndpoint(
|
|
5520
|
+
params: { from: string; body?: string | undefined; variables?: Containers | undefined },
|
|
5521
|
+
): Promise<void>;
|
|
5395
5522
|
}
|
|
5396
5523
|
export interface TextMessage {
|
|
5397
5524
|
/**
|
|
@@ -6145,7 +6272,10 @@ export interface Sounds {
|
|
|
6145
6272
|
* @param [params.lang] - Lookup sound for a specific language.
|
|
6146
6273
|
* @param [params.format] - Lookup sound in a specific format.
|
|
6147
6274
|
*/
|
|
6148
|
-
list(
|
|
6275
|
+
list(
|
|
6276
|
+
params: { lang?: string | undefined; format?: string | undefined },
|
|
6277
|
+
callback: (err: Error, sounds: Sound[]) => void,
|
|
6278
|
+
): void;
|
|
6149
6279
|
|
|
6150
6280
|
/**
|
|
6151
6281
|
* List all sounds.
|
|
@@ -6207,7 +6337,10 @@ export interface Sound extends Resource {
|
|
|
6207
6337
|
* @param [params.lang] - Lookup sound for a specific language.
|
|
6208
6338
|
* @param [params.format] - Lookup sound in a specific format.
|
|
6209
6339
|
*/
|
|
6210
|
-
list(
|
|
6340
|
+
list(
|
|
6341
|
+
params: { lang?: string | undefined; format?: string | undefined },
|
|
6342
|
+
callback: (err: Error, sounds: Sound[]) => void,
|
|
6343
|
+
): void;
|
|
6211
6344
|
|
|
6212
6345
|
/**
|
|
6213
6346
|
* List all sounds.
|
ari-client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/ari-client",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
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",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@types/node": "*"
|
|
24
24
|
},
|
|
25
|
-
"typesPublisherContentHash": "
|
|
26
|
-
"typeScriptVersion": "4.
|
|
25
|
+
"typesPublisherContentHash": "3cff9ae67d80ecf379023834f217ea3a72275d6d3ce1c96780782d483f0524c1",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
27
27
|
}
|