telnyx 2.0.0-alpha.6 → 2.0.0-beta.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/VERSION +1 -1
- package/dist/TelnyxResource.js +5 -1
- package/dist/resources/Brands.js +1 -1
- package/dist/resources/Calls.js +12 -1
- package/dist/resources/Conferences.js +27 -11
- package/dist/resources/MessagingProfiles.js +81 -24
- package/dist/telnyx.js +0 -2
- package/dist/types/BrandsResource.d.ts +26 -26
- package/dist/types/CallsResource.d.ts +196 -28
- package/dist/types/ChannelzonesResource.d.ts +12 -8
- package/dist/types/ConferencesResource.d.ts +103 -15
- package/dist/types/Events.d.ts +102 -0
- package/dist/types/MessagingProfilesResource.d.ts +130 -8
- package/dist/types/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/resources/AutorespConfigs.js +0 -11
- package/dist/types/AutorespConfigsResource.d.ts +0 -74
|
@@ -17,60 +17,116 @@ declare module 'telnyx' {
|
|
|
17
17
|
type CallsCreateResponse =
|
|
18
18
|
paths['/calls']['post']['responses']['200']['content']['application/json'];
|
|
19
19
|
|
|
20
|
+
type CallsAnswerId =
|
|
21
|
+
paths['/calls/{call_control_id}/actions/answer']['post']['parameters']['path']['call_control_id'];
|
|
20
22
|
type CallsAnswerParams =
|
|
21
23
|
paths['/calls/{call_control_id}/actions/answer']['post']['requestBody']['content']['application/json'];
|
|
24
|
+
type CallsRejectId =
|
|
25
|
+
paths['/calls/{call_control_id}/actions/reject']['post']['parameters']['path']['call_control_id'];
|
|
22
26
|
type CallsRejectParams =
|
|
23
27
|
paths['/calls/{call_control_id}/actions/reject']['post']['requestBody']['content']['application/json'];
|
|
28
|
+
type CallsHangupId =
|
|
29
|
+
paths['/calls/{call_control_id}/actions/hangup']['post']['parameters']['path']['call_control_id'];
|
|
24
30
|
type CallsHangupParams =
|
|
25
31
|
paths['/calls/{call_control_id}/actions/hangup']['post']['requestBody']['content']['application/json'];
|
|
32
|
+
type CallsBridgeId =
|
|
33
|
+
paths['/calls/{call_control_id}/actions/bridge']['post']['parameters']['path']['call_control_id'];
|
|
26
34
|
type CallsBridgeParams =
|
|
27
35
|
paths['/calls/{call_control_id}/actions/bridge']['post']['requestBody']['content']['application/json'];
|
|
36
|
+
type CallsSpeakId =
|
|
37
|
+
paths['/calls/{call_control_id}/actions/speak']['post']['parameters']['path']['call_control_id'];
|
|
28
38
|
type CallsSpeakParams =
|
|
29
39
|
paths['/calls/{call_control_id}/actions/speak']['post']['requestBody']['content']['application/json'];
|
|
40
|
+
type CallsForkStartId =
|
|
41
|
+
paths['/calls/{call_control_id}/actions/fork_start']['post']['parameters']['path']['call_control_id'];
|
|
30
42
|
type CallsForkStartParams =
|
|
31
43
|
paths['/calls/{call_control_id}/actions/fork_start']['post']['requestBody']['content']['application/json'];
|
|
44
|
+
type CallsForkStopId =
|
|
45
|
+
paths['/calls/{call_control_id}/actions/fork_stop']['post']['parameters']['path']['call_control_id'];
|
|
32
46
|
type CallsForkStopParams =
|
|
33
47
|
paths['/calls/{call_control_id}/actions/fork_stop']['post']['requestBody']['content']['application/json'];
|
|
48
|
+
type CallsGatherId =
|
|
49
|
+
paths['/calls/{call_control_id}/actions/gather']['post']['parameters']['path']['call_control_id'];
|
|
34
50
|
type CallsGatherParams =
|
|
35
51
|
paths['/calls/{call_control_id}/actions/gather']['post']['requestBody']['content']['application/json'];
|
|
52
|
+
type CallsGatherUsingAudioId =
|
|
53
|
+
paths['/calls/{call_control_id}/actions/gather_using_audio']['post']['parameters']['path']['call_control_id'];
|
|
36
54
|
type CallsGatherUsingAudioParams =
|
|
37
55
|
paths['/calls/{call_control_id}/actions/gather_using_audio']['post']['requestBody']['content']['application/json'];
|
|
56
|
+
type CallsGatherUsingSpeakId =
|
|
57
|
+
paths['/calls/{call_control_id}/actions/gather_using_speak']['post']['parameters']['path']['call_control_id'];
|
|
38
58
|
type CallsGatherUsingSpeakParams =
|
|
39
59
|
paths['/calls/{call_control_id}/actions/gather_using_speak']['post']['requestBody']['content']['application/json'];
|
|
60
|
+
type CallsGatherStopId =
|
|
61
|
+
paths['/calls/{call_control_id}/actions/gather_stop']['post']['parameters']['path']['call_control_id'];
|
|
40
62
|
type CallsGatherStopParams =
|
|
41
63
|
paths['/calls/{call_control_id}/actions/gather_stop']['post']['requestBody']['content']['application/json'];
|
|
64
|
+
type CallsPlaybackStartId =
|
|
65
|
+
paths['/calls/{call_control_id}/actions/playback_start']['post']['parameters']['path']['call_control_id'];
|
|
42
66
|
type CallsPlaybackStartParams =
|
|
43
67
|
paths['/calls/{call_control_id}/actions/playback_start']['post']['requestBody']['content']['application/json'];
|
|
68
|
+
type CallsPlaybackStopId =
|
|
69
|
+
paths['/calls/{call_control_id}/actions/playback_stop']['post']['parameters']['path']['call_control_id'];
|
|
44
70
|
type CallsPlaybackStopParams =
|
|
45
71
|
paths['/calls/{call_control_id}/actions/playback_stop']['post']['requestBody']['content']['application/json'];
|
|
72
|
+
type CallsRecordStartId =
|
|
73
|
+
paths['/calls/{call_control_id}/actions/record_start']['post']['parameters']['path']['call_control_id'];
|
|
46
74
|
type CallsRecordStartParams =
|
|
47
75
|
paths['/calls/{call_control_id}/actions/record_start']['post']['requestBody']['content']['application/json'];
|
|
76
|
+
type CallsRecordStopId =
|
|
77
|
+
paths['/calls/{call_control_id}/actions/record_stop']['post']['parameters']['path']['call_control_id'];
|
|
48
78
|
type CallsRecordStopParams =
|
|
49
79
|
paths['/calls/{call_control_id}/actions/record_stop']['post']['requestBody']['content']['application/json'];
|
|
80
|
+
type CallsRecordPauseId =
|
|
81
|
+
paths['/calls/{call_control_id}/actions/record_pause']['post']['parameters']['path']['call_control_id'];
|
|
50
82
|
type CallsRecordPauseParams =
|
|
51
83
|
paths['/calls/{call_control_id}/actions/record_pause']['post']['requestBody']['content']['application/json'];
|
|
84
|
+
type CallsRecordResumeId =
|
|
85
|
+
paths['/calls/{call_control_id}/actions/record_resume']['post']['parameters']['path']['call_control_id'];
|
|
52
86
|
type CallsRecordResumeParams =
|
|
53
87
|
paths['/calls/{call_control_id}/actions/record_resume']['post']['requestBody']['content']['application/json'];
|
|
88
|
+
type CallsReferId =
|
|
89
|
+
paths['/calls/{call_control_id}/actions/refer']['post']['parameters']['path']['call_control_id'];
|
|
54
90
|
type CallsReferParams =
|
|
55
91
|
paths['/calls/{call_control_id}/actions/refer']['post']['requestBody']['content']['application/json'];
|
|
92
|
+
type CallsSendDtmfId =
|
|
93
|
+
paths['/calls/{call_control_id}/actions/send_dtmf']['post']['parameters']['path']['call_control_id'];
|
|
56
94
|
type CallsSendDtmfParams =
|
|
57
95
|
paths['/calls/{call_control_id}/actions/send_dtmf']['post']['requestBody']['content']['application/json'];
|
|
96
|
+
type CallsStreamingStartId =
|
|
97
|
+
paths['/calls/{call_control_id}/actions/streaming_start']['post']['parameters']['path']['call_control_id'];
|
|
58
98
|
type CallsStreamingStartParams =
|
|
59
99
|
paths['/calls/{call_control_id}/actions/streaming_start']['post']['requestBody']['content']['application/json'];
|
|
100
|
+
type CallsStreamingStopId =
|
|
101
|
+
paths['/calls/{call_control_id}/actions/streaming_stop']['post']['parameters']['path']['call_control_id'];
|
|
60
102
|
type CallsStreamingStopParams =
|
|
61
103
|
paths['/calls/{call_control_id}/actions/streaming_stop']['post']['requestBody']['content']['application/json'];
|
|
104
|
+
type CallsSuppressionStartId =
|
|
105
|
+
paths['/calls/{call_control_id}/actions/suppression_start']['post']['parameters']['path']['call_control_id'];
|
|
62
106
|
type CallsSuppressionStartParams =
|
|
63
107
|
paths['/calls/{call_control_id}/actions/suppression_start']['post']['requestBody']['content']['application/json'];
|
|
108
|
+
type CallsSuppressionStopId =
|
|
109
|
+
paths['/calls/{call_control_id}/actions/suppression_stop']['post']['parameters']['path']['call_control_id'];
|
|
64
110
|
type CallsSuppressionStopParams =
|
|
65
111
|
paths['/calls/{call_control_id}/actions/suppression_stop']['post']['requestBody']['content']['application/json'];
|
|
112
|
+
type CallsTransferId =
|
|
113
|
+
paths['/calls/{call_control_id}/actions/transfer']['post']['parameters']['path']['call_control_id'];
|
|
66
114
|
type CallsTransferParams =
|
|
67
115
|
paths['/calls/{call_control_id}/actions/transfer']['post']['requestBody']['content']['application/json'];
|
|
116
|
+
type CallsTranscriptionStartId =
|
|
117
|
+
paths['/calls/{call_control_id}/actions/transcription_start']['post']['parameters']['path']['call_control_id'];
|
|
68
118
|
type CallsTranscriptionStartParams =
|
|
69
119
|
paths['/calls/{call_control_id}/actions/transcription_start']['post']['requestBody']['content']['application/json'];
|
|
120
|
+
type CallsTranscriptionStopId =
|
|
121
|
+
paths['/calls/{call_control_id}/actions/transcription_stop']['post']['parameters']['path']['call_control_id'];
|
|
70
122
|
type CallsTranscriptionStopParams =
|
|
71
123
|
paths['/calls/{call_control_id}/actions/transcription_stop']['post']['requestBody']['content']['application/json'];
|
|
124
|
+
type CallsEnqueueId =
|
|
125
|
+
paths['/calls/{call_control_id}/actions/enqueue']['post']['parameters']['path']['call_control_id'];
|
|
72
126
|
type CallsEnqueueParams =
|
|
73
127
|
paths['/calls/{call_control_id}/actions/enqueue']['post']['requestBody']['content']['application/json'];
|
|
128
|
+
type CallsLeaveQueueId =
|
|
129
|
+
paths['/calls/{call_control_id}/actions/leave_queue']['post']['parameters']['path']['call_control_id'];
|
|
74
130
|
type CallsLeaveQueueParams =
|
|
75
131
|
paths['/calls/{call_control_id}/actions/leave_queue']['post']['requestBody']['content']['application/json'];
|
|
76
132
|
|
|
@@ -132,34 +188,118 @@ declare module 'telnyx' {
|
|
|
132
188
|
paths['/calls/{call_control_id}/actions/leave_queue']['post']['responses']['200']['content']['application/json'];
|
|
133
189
|
|
|
134
190
|
type CallsNestedMethods = {
|
|
135
|
-
answer
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
191
|
+
answer(
|
|
192
|
+
params: CallsAnswerParams,
|
|
193
|
+
options?: RequestOptions,
|
|
194
|
+
): Promise<Telnyx.Response<Telnyx.CallsAnswerResponse>>;
|
|
195
|
+
reject(
|
|
196
|
+
params: CallsRejectParams,
|
|
197
|
+
options?: RequestOptions,
|
|
198
|
+
): Promise<Telnyx.Response<Telnyx.CallsRejectResponse>>;
|
|
199
|
+
hangup(
|
|
200
|
+
params: CallsHangupParams,
|
|
201
|
+
options?: RequestOptions,
|
|
202
|
+
): Promise<Telnyx.Response<Telnyx.CallsHangupResponse>>;
|
|
203
|
+
bridge(
|
|
204
|
+
params: CallsBridgeParams,
|
|
205
|
+
options?: RequestOptions,
|
|
206
|
+
): Promise<Telnyx.Response<Telnyx.CallsBridgeResponse>>;
|
|
207
|
+
speak(
|
|
208
|
+
params: CallsSpeakParams,
|
|
209
|
+
options?: RequestOptions,
|
|
210
|
+
): Promise<Telnyx.Response<Telnyx.CallsSpeakResponse>>;
|
|
211
|
+
forkStart(
|
|
212
|
+
params: CallsForkStartParams,
|
|
213
|
+
options?: RequestOptions,
|
|
214
|
+
): Promise<Telnyx.Response<Telnyx.CallsForkStartResponse>>;
|
|
215
|
+
forkStop(
|
|
216
|
+
params: CallsForkStopParams,
|
|
217
|
+
options?: RequestOptions,
|
|
218
|
+
): Promise<Telnyx.Response<Telnyx.CallsForkStopResponse>>;
|
|
219
|
+
gather(
|
|
220
|
+
params: CallsGatherParams,
|
|
221
|
+
options?: RequestOptions,
|
|
222
|
+
): Promise<Telnyx.Response<Telnyx.CallsGatherResponse>>;
|
|
223
|
+
gatherUsingAudio(
|
|
224
|
+
params: CallsGatherUsingAudioParams,
|
|
225
|
+
options?: RequestOptions,
|
|
226
|
+
): Promise<Telnyx.Response<Telnyx.CallsGatherUsingAudioResponse>>;
|
|
227
|
+
gatherUsingSpeak(
|
|
228
|
+
params: CallsGatherUsingSpeakParams,
|
|
229
|
+
options?: RequestOptions,
|
|
230
|
+
): Promise<Telnyx.Response<Telnyx.CallsGatherUsingSpeakResponse>>;
|
|
231
|
+
gatherStop(
|
|
232
|
+
params: CallsGatherStopParams,
|
|
233
|
+
options?: RequestOptions,
|
|
234
|
+
): Promise<Telnyx.Response<Telnyx.CallsGatherStopResponse>>;
|
|
235
|
+
playbackStart(
|
|
236
|
+
params: CallsPlaybackStartParams,
|
|
237
|
+
options?: RequestOptions,
|
|
238
|
+
): Promise<Telnyx.Response<Telnyx.CallsPlaybackStartResponse>>;
|
|
239
|
+
playbackStop(
|
|
240
|
+
params: CallsPlaybackStopParams,
|
|
241
|
+
options?: RequestOptions,
|
|
242
|
+
): Promise<Telnyx.Response<Telnyx.CallsPlaybackStopResponse>>;
|
|
243
|
+
recordStart(
|
|
244
|
+
params: CallsRecordStartParams,
|
|
245
|
+
options?: RequestOptions,
|
|
246
|
+
): Promise<Telnyx.Response<Telnyx.CallsRecordStartResponse>>;
|
|
247
|
+
recordStop(
|
|
248
|
+
params: CallsRecordStopParams,
|
|
249
|
+
options?: RequestOptions,
|
|
250
|
+
): Promise<Telnyx.Response<Telnyx.CallsRecordStopResponse>>;
|
|
251
|
+
recordPause(
|
|
252
|
+
params: CallsRecordPauseParams,
|
|
253
|
+
options?: RequestOptions,
|
|
254
|
+
): Promise<Telnyx.Response<Telnyx.CallsRecordPauseResponse>>;
|
|
255
|
+
recordResume(
|
|
256
|
+
params: CallsRecordResumeParams,
|
|
257
|
+
options?: RequestOptions,
|
|
258
|
+
): Promise<Telnyx.Response<Telnyx.CallsRecordResumeResponse>>;
|
|
259
|
+
refer(
|
|
260
|
+
params: CallsReferParams,
|
|
261
|
+
options?: RequestOptions,
|
|
262
|
+
): Promise<Telnyx.Response<Telnyx.CallsReferResponse>>;
|
|
263
|
+
sendDtmf(
|
|
264
|
+
params: CallsSendDtmfParams,
|
|
265
|
+
options?: RequestOptions,
|
|
266
|
+
): Promise<Telnyx.Response<Telnyx.CallsSendDtmfResponse>>;
|
|
267
|
+
streamingStart(
|
|
268
|
+
params: CallsStreamingStartParams,
|
|
269
|
+
options?: RequestOptions,
|
|
270
|
+
): Promise<Telnyx.Response<Telnyx.CallsStreamingStartResponse>>;
|
|
271
|
+
streamingStop(
|
|
272
|
+
params: CallsStreamingStopParams,
|
|
273
|
+
options?: RequestOptions,
|
|
274
|
+
): Promise<Telnyx.Response<Telnyx.CallsStreamingStopResponse>>;
|
|
275
|
+
suppressionStart(
|
|
276
|
+
params: CallsSuppressionStartParams,
|
|
277
|
+
options?: RequestOptions,
|
|
278
|
+
): Promise<Telnyx.Response<Telnyx.CallsSuppressionStartResponse>>;
|
|
279
|
+
suppressionStop(
|
|
280
|
+
params: CallsSuppressionStopParams,
|
|
281
|
+
options?: RequestOptions,
|
|
282
|
+
): Promise<Telnyx.Response<Telnyx.CallsSuppressionStopResponse>>;
|
|
283
|
+
transfer(
|
|
284
|
+
params: CallsTransferParams,
|
|
285
|
+
options?: RequestOptions,
|
|
286
|
+
): Promise<Telnyx.Response<Telnyx.CallsTransferResponse>>;
|
|
287
|
+
transcriptionStart(
|
|
288
|
+
params: CallsTranscriptionStartParams,
|
|
289
|
+
options?: RequestOptions,
|
|
290
|
+
): Promise<Telnyx.Response<Telnyx.CallsTranscriptionStartResponse>>;
|
|
291
|
+
transcriptionStop(
|
|
292
|
+
params: CallsTranscriptionStopParams,
|
|
293
|
+
options?: RequestOptions,
|
|
294
|
+
): Promise<Telnyx.Response<Telnyx.CallsTranscriptionStopResponse>>;
|
|
295
|
+
enqueue(
|
|
296
|
+
params: CallsEnqueueParams,
|
|
297
|
+
options?: RequestOptions,
|
|
298
|
+
): Promise<Telnyx.Response<Telnyx.CallsEnqueueResponse>>;
|
|
299
|
+
leaveQueue(
|
|
300
|
+
params: CallsLeaveQueueParams,
|
|
301
|
+
options?: RequestOptions,
|
|
302
|
+
): Promise<Telnyx.Response<Telnyx.CallsLeaveQueueResponse>>;
|
|
163
303
|
};
|
|
164
304
|
|
|
165
305
|
class CallsResource {
|
|
@@ -189,114 +329,142 @@ declare module 'telnyx' {
|
|
|
189
329
|
>;
|
|
190
330
|
|
|
191
331
|
answer(
|
|
332
|
+
id: CallsAnswerId,
|
|
192
333
|
params: CallsAnswerParams,
|
|
193
334
|
options?: RequestOptions,
|
|
194
335
|
): Promise<Telnyx.Response<Telnyx.CallsAnswerResponse>>;
|
|
195
336
|
reject(
|
|
337
|
+
id: CallsRejectId,
|
|
196
338
|
params: CallsRejectParams,
|
|
197
339
|
options?: RequestOptions,
|
|
198
340
|
): Promise<Telnyx.Response<Telnyx.CallsRejectResponse>>;
|
|
199
341
|
hangup(
|
|
342
|
+
id: CallsHangupId,
|
|
200
343
|
params: CallsHangupParams,
|
|
201
344
|
options?: RequestOptions,
|
|
202
345
|
): Promise<Telnyx.Response<Telnyx.CallsHangupResponse>>;
|
|
203
346
|
bridge(
|
|
347
|
+
id: CallsBridgeId,
|
|
204
348
|
params: CallsBridgeParams,
|
|
205
349
|
options?: RequestOptions,
|
|
206
350
|
): Promise<Telnyx.Response<Telnyx.CallsBridgeResponse>>;
|
|
207
351
|
speak(
|
|
352
|
+
id: CallsSpeakId,
|
|
208
353
|
params: CallsSpeakParams,
|
|
209
354
|
options?: RequestOptions,
|
|
210
355
|
): Promise<Telnyx.Response<Telnyx.CallsSpeakResponse>>;
|
|
211
356
|
forkStart(
|
|
357
|
+
id: CallsForkStartId,
|
|
212
358
|
params: CallsForkStartParams,
|
|
213
359
|
options?: RequestOptions,
|
|
214
360
|
): Promise<Telnyx.Response<Telnyx.CallsForkStartResponse>>;
|
|
215
361
|
forkStop(
|
|
362
|
+
id: CallsForkStopId,
|
|
216
363
|
params: CallsForkStopParams,
|
|
217
364
|
options?: RequestOptions,
|
|
218
365
|
): Promise<Telnyx.Response<Telnyx.CallsForkStopResponse>>;
|
|
219
366
|
gather(
|
|
367
|
+
id: CallsGatherId,
|
|
220
368
|
params: CallsGatherParams,
|
|
221
369
|
options?: RequestOptions,
|
|
222
370
|
): Promise<Telnyx.Response<Telnyx.CallsGatherResponse>>;
|
|
223
371
|
gatherUsingAudio(
|
|
372
|
+
id: CallsGatherUsingAudioId,
|
|
224
373
|
params: CallsGatherUsingAudioParams,
|
|
225
374
|
options?: RequestOptions,
|
|
226
375
|
): Promise<Telnyx.Response<Telnyx.CallsGatherUsingAudioResponse>>;
|
|
227
376
|
gatherUsingSpeak(
|
|
377
|
+
id: CallsGatherUsingSpeakId,
|
|
228
378
|
params: CallsGatherUsingSpeakParams,
|
|
229
379
|
options?: RequestOptions,
|
|
230
380
|
): Promise<Telnyx.Response<Telnyx.CallsGatherUsingSpeakResponse>>;
|
|
231
381
|
gatherStop(
|
|
382
|
+
id: CallsGatherStopId,
|
|
232
383
|
params: CallsGatherStopParams,
|
|
233
384
|
options?: RequestOptions,
|
|
234
385
|
): Promise<Telnyx.Response<Telnyx.CallsGatherStopResponse>>;
|
|
235
386
|
playbackStart(
|
|
387
|
+
id: CallsPlaybackStartId,
|
|
236
388
|
params: CallsPlaybackStartParams,
|
|
237
389
|
options?: RequestOptions,
|
|
238
390
|
): Promise<Telnyx.Response<Telnyx.CallsPlaybackStartResponse>>;
|
|
239
391
|
playbackStop(
|
|
392
|
+
id: CallsPlaybackStopId,
|
|
240
393
|
params: CallsPlaybackStopParams,
|
|
241
394
|
options?: RequestOptions,
|
|
242
395
|
): Promise<Telnyx.Response<Telnyx.CallsPlaybackStopResponse>>;
|
|
243
396
|
recordStart(
|
|
397
|
+
id: CallsRecordStartId,
|
|
244
398
|
params: CallsRecordStartParams,
|
|
245
399
|
options?: RequestOptions,
|
|
246
400
|
): Promise<Telnyx.Response<Telnyx.CallsRecordStartResponse>>;
|
|
247
401
|
recordStop(
|
|
402
|
+
id: CallsRecordStopId,
|
|
248
403
|
params: CallsRecordStopParams,
|
|
249
404
|
options?: RequestOptions,
|
|
250
405
|
): Promise<Telnyx.Response<Telnyx.CallsRecordStopResponse>>;
|
|
251
406
|
recordPause(
|
|
407
|
+
id: CallsRecordPauseId,
|
|
252
408
|
params: CallsRecordPauseParams,
|
|
253
409
|
options?: RequestOptions,
|
|
254
410
|
): Promise<Telnyx.Response<Telnyx.CallsRecordPauseResponse>>;
|
|
255
411
|
recordResume(
|
|
412
|
+
id: CallsRecordResumeId,
|
|
256
413
|
params: CallsRecordResumeParams,
|
|
257
414
|
options?: RequestOptions,
|
|
258
415
|
): Promise<Telnyx.Response<Telnyx.CallsRecordResumeResponse>>;
|
|
259
416
|
refer(
|
|
417
|
+
id: CallsReferId,
|
|
260
418
|
params: CallsReferParams,
|
|
261
419
|
options?: RequestOptions,
|
|
262
420
|
): Promise<Telnyx.Response<Telnyx.CallsReferResponse>>;
|
|
263
421
|
sendDtmf(
|
|
422
|
+
id: CallsSendDtmfId,
|
|
264
423
|
params: CallsSendDtmfParams,
|
|
265
424
|
options?: RequestOptions,
|
|
266
425
|
): Promise<Telnyx.Response<Telnyx.CallsSendDtmfResponse>>;
|
|
267
426
|
streamingStart(
|
|
427
|
+
id: CallsStreamingStartId,
|
|
268
428
|
params: CallsStreamingStartParams,
|
|
269
429
|
options?: RequestOptions,
|
|
270
430
|
): Promise<Telnyx.Response<Telnyx.CallsStreamingStartResponse>>;
|
|
271
431
|
streamingStop(
|
|
432
|
+
id: CallsStreamingStopId,
|
|
272
433
|
params: CallsStreamingStopParams,
|
|
273
434
|
options?: RequestOptions,
|
|
274
435
|
): Promise<Telnyx.Response<Telnyx.CallsStreamingStopResponse>>;
|
|
275
436
|
suppressionStart(
|
|
437
|
+
id: CallsSuppressionStartId,
|
|
276
438
|
params: CallsSuppressionStartParams,
|
|
277
439
|
options?: RequestOptions,
|
|
278
440
|
): Promise<Telnyx.Response<Telnyx.CallsSuppressionStartResponse>>;
|
|
279
441
|
suppressionStop(
|
|
442
|
+
id: CallsSuppressionStopId,
|
|
280
443
|
params: CallsSuppressionStopParams,
|
|
281
444
|
options?: RequestOptions,
|
|
282
445
|
): Promise<Telnyx.Response<Telnyx.CallsSuppressionStopResponse>>;
|
|
283
446
|
transfer(
|
|
447
|
+
id: CallsTransferId,
|
|
284
448
|
params: CallsTransferParams,
|
|
285
449
|
options?: RequestOptions,
|
|
286
450
|
): Promise<Telnyx.Response<Telnyx.CallsTransferResponse>>;
|
|
287
451
|
transcriptionStart(
|
|
452
|
+
id: CallsTranscriptionStartId,
|
|
288
453
|
params: CallsTranscriptionStartParams,
|
|
289
454
|
options?: RequestOptions,
|
|
290
455
|
): Promise<Telnyx.Response<Telnyx.CallsTranscriptionStartResponse>>;
|
|
291
456
|
transcriptionStop(
|
|
457
|
+
id: CallsTranscriptionStopId,
|
|
292
458
|
params: CallsTranscriptionStopParams,
|
|
293
459
|
options?: RequestOptions,
|
|
294
460
|
): Promise<Telnyx.Response<Telnyx.CallsTranscriptionStopResponse>>;
|
|
295
461
|
enqueue(
|
|
462
|
+
id: CallsEnqueueId,
|
|
296
463
|
params: CallsEnqueueParams,
|
|
297
464
|
options?: RequestOptions,
|
|
298
465
|
): Promise<Telnyx.Response<Telnyx.CallsEnqueueResponse>>;
|
|
299
466
|
leaveQueue(
|
|
467
|
+
id: CallsLeaveQueueId,
|
|
300
468
|
params: CallsLeaveQueueParams,
|
|
301
469
|
options?: RequestOptions,
|
|
302
470
|
): Promise<Telnyx.Response<Telnyx.CallsLeaveQueueResponse>>;
|
|
@@ -26,7 +26,7 @@ declare module 'telnyx' {
|
|
|
26
26
|
type ChannelzonesRetrieveResponse =
|
|
27
27
|
paths['/channel_zones/{channel_zone_id}']['get']['responses']['200']['content']['application/json'];
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type ChannelzonesPhoneNumbersListChannelzoneId =
|
|
30
30
|
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['get']['parameters']['path']['channel_zone_id'];
|
|
31
31
|
|
|
32
32
|
type ChannelzonesPhoneNumbersListParams =
|
|
@@ -35,8 +35,8 @@ declare module 'telnyx' {
|
|
|
35
35
|
type ChannelzonesPhoneNumbersListResponse =
|
|
36
36
|
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['get']['responses']['200']['content']['application/json'];
|
|
37
37
|
|
|
38
|
-
type
|
|
39
|
-
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['parameters']['path'];
|
|
38
|
+
type ChannelzonesPhoneNumbersCreateChannelZoneId =
|
|
39
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['parameters']['path']['channel_zone_id'];
|
|
40
40
|
|
|
41
41
|
type ChannelzonesPhoneNumbersCreateParams =
|
|
42
42
|
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['requestBody']['content']['application/json'];
|
|
@@ -44,8 +44,11 @@ declare module 'telnyx' {
|
|
|
44
44
|
type ChannelzonesPhoneNumbersCreateResponse =
|
|
45
45
|
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['responses']['200']['content']['application/json'];
|
|
46
46
|
|
|
47
|
-
type
|
|
48
|
-
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['parameters']['path'];
|
|
47
|
+
type ChannelzonesPhoneNumbersDeleteChannelzoneId =
|
|
48
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['parameters']['path']['channel_zone_id'];
|
|
49
|
+
|
|
50
|
+
type ChannelzonesPhoneNumbersDeletePhoneNumber =
|
|
51
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['parameters']['path']['phone_number'];
|
|
49
52
|
|
|
50
53
|
type ChannelzonesPhoneNumbersDeleteResponse =
|
|
51
54
|
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['responses']['200']['content'];
|
|
@@ -68,13 +71,13 @@ declare module 'telnyx' {
|
|
|
68
71
|
): Promise<Telnyx.Response<Telnyx.ChannelzonesRetrieveResponse>>;
|
|
69
72
|
|
|
70
73
|
listPhoneNumbers(
|
|
71
|
-
id:
|
|
74
|
+
id: ChannelzonesPhoneNumbersListChannelzoneId,
|
|
72
75
|
params?: ChannelzonesPhoneNumbersListParams,
|
|
73
76
|
options?: RequestOptions,
|
|
74
77
|
): Promise<Telnyx.Response<Telnyx.ChannelzonesPhoneNumbersListResponse>>;
|
|
75
78
|
|
|
76
79
|
createPhoneNumber(
|
|
77
|
-
|
|
80
|
+
id: ChannelzonesPhoneNumbersCreateChannelZoneId,
|
|
78
81
|
params: ChannelzonesPhoneNumbersCreateParams,
|
|
79
82
|
options?: RequestOptions,
|
|
80
83
|
): Promise<
|
|
@@ -82,7 +85,8 @@ declare module 'telnyx' {
|
|
|
82
85
|
>;
|
|
83
86
|
|
|
84
87
|
delPhoneNumber(
|
|
85
|
-
|
|
88
|
+
id: ChannelzonesPhoneNumbersDeleteChannelzoneId,
|
|
89
|
+
phoneNumber: ChannelzonesPhoneNumbersDeletePhoneNumber,
|
|
86
90
|
options?: RequestOptions,
|
|
87
91
|
): Promise<
|
|
88
92
|
Telnyx.Response<Telnyx.ChannelzonesPhoneNumbersDeleteResponse>
|