@sentdm/sentdm 0.45.0 → 0.47.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 +19 -0
- package/client.d.mts +6 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -11
- package/client.d.ts.map +1 -1
- package/client.js +3 -10
- package/client.js.map +1 -1
- package/client.mjs +3 -10
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +25 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +25 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +28 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +26 -0
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/channels/channels.d.mts +2 -2
- package/resources/channels/channels.d.mts.map +1 -1
- package/resources/channels/channels.d.ts +2 -2
- package/resources/channels/channels.d.ts.map +1 -1
- package/resources/channels/channels.js.map +1 -1
- package/resources/channels/channels.mjs.map +1 -1
- package/resources/channels/index.d.mts +1 -1
- package/resources/channels/index.d.mts.map +1 -1
- package/resources/channels/index.d.ts +1 -1
- package/resources/channels/index.d.ts.map +1 -1
- package/resources/channels/index.js.map +1 -1
- package/resources/channels/index.mjs.map +1 -1
- package/resources/channels/voice.d.mts +72 -115
- package/resources/channels/voice.d.mts.map +1 -1
- package/resources/channels/voice.d.ts +72 -115
- package/resources/channels/voice.d.ts.map +1 -1
- package/resources/channels/voice.js +35 -45
- package/resources/channels/voice.js.map +1 -1
- package/resources/channels/voice.mjs +35 -45
- package/resources/channels/voice.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +8 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/profiles/campaigns.d.mts +3 -2
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +3 -2
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +3 -2
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +3 -2
- package/resources/profiles/campaigns.mjs.map +1 -1
- package/resources/templates.d.mts +14 -13
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +14 -13
- package/resources/templates.d.ts.map +1 -1
- package/resources/voice/agents.d.mts +524 -0
- package/resources/voice/agents.d.mts.map +1 -0
- package/resources/voice/agents.d.ts +524 -0
- package/resources/voice/agents.d.ts.map +1 -0
- package/resources/voice/agents.js +193 -0
- package/resources/voice/agents.js.map +1 -0
- package/resources/voice/agents.mjs +189 -0
- package/resources/voice/agents.mjs.map +1 -0
- package/resources/{calls → voice/calls}/calls.d.mts +103 -26
- package/resources/voice/calls/calls.d.mts.map +1 -0
- package/resources/{calls → voice/calls}/calls.d.ts +103 -26
- package/resources/voice/calls/calls.d.ts.map +1 -0
- package/resources/{calls → voice/calls}/calls.js +35 -28
- package/resources/voice/calls/calls.js.map +1 -0
- package/resources/{calls → voice/calls}/calls.mjs +34 -27
- package/resources/voice/calls/calls.mjs.map +1 -0
- package/resources/voice/calls/index.d.mts.map +1 -0
- package/resources/voice/calls/index.d.ts.map +1 -0
- package/resources/voice/calls/index.js.map +1 -0
- package/resources/voice/calls/index.mjs.map +1 -0
- package/resources/{calls → voice/calls}/participants.d.mts +16 -14
- package/resources/voice/calls/participants.d.mts.map +1 -0
- package/resources/{calls → voice/calls}/participants.d.ts +16 -14
- package/resources/voice/calls/participants.d.ts.map +1 -0
- package/resources/{calls → voice/calls}/participants.js +19 -17
- package/resources/voice/calls/participants.js.map +1 -0
- package/resources/{calls → voice/calls}/participants.mjs +19 -17
- package/resources/voice/calls/participants.mjs.map +1 -0
- package/resources/voice/calls.d.mts.map +1 -0
- package/resources/voice/calls.d.ts.map +1 -0
- package/resources/{calls.js → voice/calls.js} +1 -1
- package/resources/voice/calls.js.map +1 -0
- package/resources/voice/calls.mjs.map +1 -0
- package/resources/voice/catalogue.d.mts +86 -0
- package/resources/voice/catalogue.d.mts.map +1 -0
- package/resources/voice/catalogue.d.ts +86 -0
- package/resources/voice/catalogue.d.ts.map +1 -0
- package/resources/voice/catalogue.js +40 -0
- package/resources/voice/catalogue.js.map +1 -0
- package/resources/voice/catalogue.mjs +36 -0
- package/resources/voice/catalogue.mjs.map +1 -0
- package/resources/voice/index.d.mts +6 -0
- package/resources/voice/index.d.mts.map +1 -0
- package/resources/voice/index.d.ts +6 -0
- package/resources/voice/index.d.ts.map +1 -0
- package/resources/voice/index.js +15 -0
- package/resources/voice/index.js.map +1 -0
- package/resources/voice/index.mjs +7 -0
- package/resources/voice/index.mjs.map +1 -0
- package/resources/voice/tokens.d.mts +111 -0
- package/resources/voice/tokens.d.mts.map +1 -0
- package/resources/voice/tokens.d.ts +111 -0
- package/resources/voice/tokens.d.ts.map +1 -0
- package/resources/voice/tokens.js +47 -0
- package/resources/voice/tokens.js.map +1 -0
- package/resources/voice/tokens.mjs +43 -0
- package/resources/voice/tokens.mjs.map +1 -0
- package/resources/voice/voice.d.mts +22 -0
- package/resources/voice/voice.d.mts.map +1 -0
- package/resources/voice/voice.d.ts +22 -0
- package/resources/voice/voice.d.ts.map +1 -0
- package/resources/voice/voice.js +29 -0
- package/resources/voice/voice.js.map +1 -0
- package/resources/voice/voice.mjs +24 -0
- package/resources/voice/voice.mjs.map +1 -0
- package/resources/voice.d.mts +2 -0
- package/resources/voice.d.mts.map +1 -0
- package/resources/voice.d.ts +2 -0
- package/resources/voice.d.ts.map +1 -0
- package/resources/voice.js +6 -0
- package/resources/voice.js.map +1 -0
- package/resources/voice.mjs +3 -0
- package/resources/voice.mjs.map +1 -0
- package/resources/webhooks.d.mts +154 -31
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +154 -31
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +51 -11
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +51 -11
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +12 -45
- package/src/core/pagination.ts +64 -0
- package/src/resources/channels/channels.ts +0 -6
- package/src/resources/channels/index.ts +0 -3
- package/src/resources/channels/voice.ts +74 -144
- package/src/resources/index.ts +1 -18
- package/src/resources/messages.ts +8 -1
- package/src/resources/profiles/campaigns.ts +3 -2
- package/src/resources/templates.ts +14 -13
- package/src/resources/voice/agents.ts +729 -0
- package/src/resources/{calls → voice/calls}/calls.ts +122 -33
- package/src/resources/{calls → voice/calls}/participants.ts +23 -21
- package/src/resources/voice/catalogue.ts +118 -0
- package/src/resources/voice/index.ts +55 -0
- package/src/resources/voice/tokens.ts +146 -0
- package/src/resources/voice/voice.ts +134 -0
- package/src/resources/voice.ts +3 -0
- package/src/resources/webhooks.ts +162 -31
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/calls/calls.d.mts.map +0 -1
- package/resources/calls/calls.d.ts.map +0 -1
- package/resources/calls/calls.js.map +0 -1
- package/resources/calls/calls.mjs.map +0 -1
- package/resources/calls/index.d.mts.map +0 -1
- package/resources/calls/index.d.ts.map +0 -1
- package/resources/calls/index.js.map +0 -1
- package/resources/calls/index.mjs.map +0 -1
- package/resources/calls/participants.d.mts.map +0 -1
- package/resources/calls/participants.d.ts.map +0 -1
- package/resources/calls/participants.js.map +0 -1
- package/resources/calls/participants.mjs.map +0 -1
- package/resources/calls.d.mts.map +0 -1
- package/resources/calls.d.ts.map +0 -1
- package/resources/calls.js.map +0 -1
- package/resources/calls.mjs.map +0 -1
- /package/resources/{calls → voice/calls}/index.d.mts +0 -0
- /package/resources/{calls → voice/calls}/index.d.ts +0 -0
- /package/resources/{calls → voice/calls}/index.js +0 -0
- /package/resources/{calls → voice/calls}/index.mjs +0 -0
- /package/resources/{calls.d.mts → voice/calls.d.mts} +0 -0
- /package/resources/{calls.d.ts → voice/calls.d.ts} +0 -0
- /package/resources/{calls.mjs → voice/calls.mjs} +0 -0
- /package/src/resources/{calls → voice/calls}/index.ts +0 -0
- /package/src/resources/{calls.ts → voice/calls.ts} +0 -0
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import * as WebhooksAPI from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as WebhooksAPI from "../../webhooks.js";
|
|
3
3
|
import * as ParticipantsAPI from "./participants.js";
|
|
4
4
|
import { APIResponseOfListOfCallParticipant, CallParticipant, CallParticipantTarget, ParticipantAddParams, ParticipantListParams, ParticipantRemoveAllParams, ParticipantRemoveParams, ParticipantUpdateParams, Participants } from "./participants.js";
|
|
5
|
-
import { APIPromise } from "
|
|
6
|
-
import { CallsPage, type CallsPageParams, PagePromise } from "
|
|
7
|
-
import { RequestOptions } from "
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
|
+
import { CallsPage, type CallsPageParams, PagePromise } from "../../../core/pagination.js";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
8
|
/**
|
|
9
9
|
* Phone calls from the numbers you hold, driven by your own callback URL.
|
|
10
10
|
*
|
|
11
|
-
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/
|
|
11
|
+
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
|
|
12
12
|
*
|
|
13
|
-
* Every call is a record under `/v3/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
13
|
+
* Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
14
|
+
*
|
|
15
|
+
* **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
|
|
14
16
|
*/
|
|
15
17
|
export declare class Calls extends APIResource {
|
|
16
18
|
participants: ParticipantsAPI.Participants;
|
|
17
19
|
/**
|
|
18
|
-
* Retrieves one of your calls by id: the parties, the owning number, the
|
|
19
|
-
*
|
|
20
|
-
*
|
|
20
|
+
* Retrieves one of your calls by id: the parties, the owning number, the phone
|
|
21
|
+
* number the call was connected to and the caller id it showed, the current status
|
|
22
|
+
* with its failure reason, duration, price with the billed legs and what each
|
|
23
|
+
* cost, recording availability, and a timeline of when the call entered each
|
|
24
|
+
* status.
|
|
21
25
|
*
|
|
22
26
|
* @example
|
|
23
27
|
* ```ts
|
|
24
|
-
* const apiResponseOfCall = await client.calls.retrieve(
|
|
28
|
+
* const apiResponseOfCall = await client.voice.calls.retrieve(
|
|
25
29
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
26
30
|
* );
|
|
27
31
|
* ```
|
|
@@ -29,14 +33,17 @@ export declare class Calls extends APIResource {
|
|
|
29
33
|
retrieve(id: string, params?: CallRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfCall>;
|
|
30
34
|
/**
|
|
31
35
|
* Retrieves a paginated list of your calls, most recent first. Filter by
|
|
32
|
-
* direction, status, the owning number,
|
|
33
|
-
*
|
|
34
|
-
*
|
|
36
|
+
* direction, status, the owning number, the mode (inapp, or agent for calls your
|
|
37
|
+
* voice agents answered), the agent that answered, and the time the call started
|
|
38
|
+
* (from and to are inclusive). Each call carries the phone number it was connected
|
|
39
|
+
* to, the caller id it showed, and the billed legs with what each cost. Use the
|
|
40
|
+
* call webhooks for real-time updates; this list is for looking calls up
|
|
41
|
+
* afterwards.
|
|
35
42
|
*
|
|
36
43
|
* @example
|
|
37
44
|
* ```ts
|
|
38
45
|
* // Automatically fetches more pages as needed.
|
|
39
|
-
* for await (const call of client.calls.list()) {
|
|
46
|
+
* for await (const call of client.voice.calls.list()) {
|
|
40
47
|
* // ...
|
|
41
48
|
* }
|
|
42
49
|
* ```
|
|
@@ -46,12 +53,12 @@ export declare class Calls extends APIResource {
|
|
|
46
53
|
* Ends one of your live calls. The call then ends the way any other call does once
|
|
47
54
|
* the disconnect is reported: an answered call as COMPLETED with call.completed, a
|
|
48
55
|
* call still ringing as NO_ANSWER, REJECTED or FAILED with call.failed. A call
|
|
49
|
-
* that has already ended answers 409,
|
|
50
|
-
*
|
|
56
|
+
* that has already ended answers 409, as do a call with no phone leg, such as one
|
|
57
|
+
* between two app users, and a call one of your voice agents answers.
|
|
51
58
|
*
|
|
52
59
|
* @example
|
|
53
60
|
* ```ts
|
|
54
|
-
* await client.calls.hangup(
|
|
61
|
+
* await client.voice.calls.hangup(
|
|
55
62
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
56
63
|
* );
|
|
57
64
|
* ```
|
|
@@ -69,7 +76,7 @@ export declare class Calls extends APIResource {
|
|
|
69
76
|
* @example
|
|
70
77
|
* ```ts
|
|
71
78
|
* const apiResponseOfCallRecordings =
|
|
72
|
-
* await client.calls.listRecordings(
|
|
79
|
+
* await client.voice.calls.listRecordings(
|
|
73
80
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
74
81
|
* );
|
|
75
82
|
* ```
|
|
@@ -78,13 +85,13 @@ export declare class Calls extends APIResource {
|
|
|
78
85
|
/**
|
|
79
86
|
* Starts or stops recording one of your live calls. Use start to begin recording
|
|
80
87
|
* mid-call, or stop to end a recording, whether it was started here or by a
|
|
81
|
-
* connect answer with record set. A call that has already ended answers 409,
|
|
82
|
-
*
|
|
83
|
-
* be recorded.
|
|
88
|
+
* connect answer with record set. A call that has already ended answers 409, as do
|
|
89
|
+
* a call with no phone leg, such as one between two app users, and a call one of
|
|
90
|
+
* your voice agents answers, neither of which can be recorded this way.
|
|
84
91
|
*
|
|
85
92
|
* @example
|
|
86
93
|
* ```ts
|
|
87
|
-
* await client.calls.record(
|
|
94
|
+
* await client.voice.calls.record(
|
|
88
95
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
89
96
|
* );
|
|
90
97
|
* ```
|
|
@@ -164,11 +171,28 @@ export interface Call {
|
|
|
164
171
|
* webhook
|
|
165
172
|
*/
|
|
166
173
|
id?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The voice agent that answered the call, such as
|
|
176
|
+
* agent_9f2ab000-0000-4000-8000-000000000001. Null for an inapp call
|
|
177
|
+
*/
|
|
178
|
+
agent_id?: string | null;
|
|
167
179
|
/**
|
|
168
180
|
* When the call was answered (UTC). Null until then, and always null for a call
|
|
169
181
|
* between two of your app users
|
|
170
182
|
*/
|
|
171
183
|
answered_at?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* The caller id shown on the phone leg, in E.164 format: the one your answer
|
|
186
|
+
* chose, or the owning number when it chose none. Null for a call with no phone
|
|
187
|
+
* leg
|
|
188
|
+
*/
|
|
189
|
+
caller_id_used?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* The phone number the call was connected to, in E.164 format: the number your
|
|
192
|
+
* answer dialed, or the fallback number a call to one of your voice agents
|
|
193
|
+
* reached. Null when the call was not connected to a phone number
|
|
194
|
+
*/
|
|
195
|
+
connected_number?: string | null;
|
|
172
196
|
/**
|
|
173
197
|
* outbound for a call placed from your app, inbound for a call to one of your
|
|
174
198
|
* numbers
|
|
@@ -184,15 +208,28 @@ export interface Call {
|
|
|
184
208
|
ended_at?: string | null;
|
|
185
209
|
/**
|
|
186
210
|
* Why the call did not complete: callback_timeout, invalid_answer,
|
|
187
|
-
* insufficient_balance, destination_blocked, callback_not_configured, rejected
|
|
188
|
-
* no_answer
|
|
189
|
-
* without a recorded reason
|
|
211
|
+
* insufficient_balance, destination_blocked, callback_not_configured, rejected,
|
|
212
|
+
* no_answer, or for an agent call agent_busy or agent_unreachable. Null while the
|
|
213
|
+
* call is live, when it completed, and when it failed without a recorded reason
|
|
190
214
|
*/
|
|
191
215
|
failure_reason?: string | null;
|
|
192
216
|
/**
|
|
193
217
|
* One end of a call
|
|
194
218
|
*/
|
|
195
219
|
from?: CallParty;
|
|
220
|
+
/**
|
|
221
|
+
* The legs the price covers, one entry per billed leg, each with its own cost: a
|
|
222
|
+
* call your answer connected to a phone number ran the caller's leg to your number
|
|
223
|
+
* and the leg to the connected number at once, and both are billed. Null until the
|
|
224
|
+
* call has been priced
|
|
225
|
+
*/
|
|
226
|
+
legs?: Array<Call.Leg> | null;
|
|
227
|
+
/**
|
|
228
|
+
* The calling mode: inapp for a call between people in your app and phone numbers,
|
|
229
|
+
* routed by your number's callback URL; agent for a call one of your voice agents
|
|
230
|
+
* answered
|
|
231
|
+
*/
|
|
232
|
+
mode?: string;
|
|
196
233
|
/**
|
|
197
234
|
* Your number that owns the call, in E.164 format: the dialed number for an
|
|
198
235
|
* inbound call, the caller's bound number for a call placed from your app
|
|
@@ -224,6 +261,36 @@ export interface Call {
|
|
|
224
261
|
*/
|
|
225
262
|
to?: CallParty;
|
|
226
263
|
}
|
|
264
|
+
export declare namespace Call {
|
|
265
|
+
/**
|
|
266
|
+
* One leg of a call the price covers
|
|
267
|
+
*/
|
|
268
|
+
interface Leg {
|
|
269
|
+
/**
|
|
270
|
+
* The whole minutes the leg was billed for
|
|
271
|
+
*/
|
|
272
|
+
billed_minutes?: number;
|
|
273
|
+
/**
|
|
274
|
+
* What the leg cost, in the same unit as the call's price
|
|
275
|
+
*/
|
|
276
|
+
cost?: number;
|
|
277
|
+
/**
|
|
278
|
+
* The currency of the cost: USD
|
|
279
|
+
*/
|
|
280
|
+
currency?: string;
|
|
281
|
+
/**
|
|
282
|
+
* inbound for the caller's leg to your number, outbound for a leg placed on your
|
|
283
|
+
* behalf
|
|
284
|
+
*/
|
|
285
|
+
direction?: string;
|
|
286
|
+
/**
|
|
287
|
+
* The phone number the leg reached, in E.164 format: your number for the inbound
|
|
288
|
+
* leg, the number dialed for an outbound one. Null for a leg to one of your app
|
|
289
|
+
* users or a room
|
|
290
|
+
*/
|
|
291
|
+
number?: string | null;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
227
294
|
/**
|
|
228
295
|
* One end of a call
|
|
229
296
|
*/
|
|
@@ -302,6 +369,11 @@ export interface CallRetrieveParams {
|
|
|
302
369
|
'x-profile-id'?: string;
|
|
303
370
|
}
|
|
304
371
|
export interface CallListParams extends CallsPageParams {
|
|
372
|
+
/**
|
|
373
|
+
* Query param: Optional filter on the voice agent that answered the call, such as
|
|
374
|
+
* agent_9f2ab000-0000-4000-8000-000000000001
|
|
375
|
+
*/
|
|
376
|
+
agent_id?: string | null;
|
|
305
377
|
/**
|
|
306
378
|
* Query param: Optional direction filter: outbound for calls placed from your app,
|
|
307
379
|
* inbound for calls to one of your numbers
|
|
@@ -311,6 +383,11 @@ export interface CallListParams extends CallsPageParams {
|
|
|
311
383
|
* Query param: Only calls started at or after this time (ISO 8601)
|
|
312
384
|
*/
|
|
313
385
|
from?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* Query param: Optional mode filter: inapp for calls routed by your number's
|
|
388
|
+
* callback URL, agent for calls one of your voice agents answered
|
|
389
|
+
*/
|
|
390
|
+
mode?: string | null;
|
|
314
391
|
/**
|
|
315
392
|
* Query param: Optional filter on the number that owns the call, one of your
|
|
316
393
|
* voice-enabled numbers in E.164 format
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../../src/resources/voice/calls/calls.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,WAAW,0BAAuB;AAC9C,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EACL,kCAAkC,EAClC,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACb,0BAAuB;AACxB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE,oCAAiC;AAExF,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;;;;;;;GAQG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAWhC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,MAAM,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC;IAYpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAgBxF;;;;;;;;;;;;;;;;OAgBG;IACH,cA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AS,IAAI,SAAS,EAC3B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Calls = void 0;
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const ParticipantsAPI = tslib_1.__importStar(require("./participants.js"));
|
|
8
8
|
const participants_1 = require("./participants.js");
|
|
9
|
-
const pagination_1 = require("
|
|
10
|
-
const headers_1 = require("
|
|
11
|
-
const path_1 = require("
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
10
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
11
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
12
12
|
/**
|
|
13
13
|
* Phone calls from the numbers you hold, driven by your own callback URL.
|
|
14
14
|
*
|
|
15
|
-
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/
|
|
15
|
+
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
|
|
16
16
|
*
|
|
17
|
-
* Every call is a record under `/v3/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
17
|
+
* Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
18
|
+
*
|
|
19
|
+
* **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
|
|
18
20
|
*/
|
|
19
21
|
class Calls extends resource_1.APIResource {
|
|
20
22
|
constructor() {
|
|
@@ -22,20 +24,22 @@ class Calls extends resource_1.APIResource {
|
|
|
22
24
|
this.participants = new ParticipantsAPI.Participants(this._client);
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
|
-
* Retrieves one of your calls by id: the parties, the owning number, the
|
|
26
|
-
*
|
|
27
|
-
*
|
|
27
|
+
* Retrieves one of your calls by id: the parties, the owning number, the phone
|
|
28
|
+
* number the call was connected to and the caller id it showed, the current status
|
|
29
|
+
* with its failure reason, duration, price with the billed legs and what each
|
|
30
|
+
* cost, recording availability, and a timeline of when the call entered each
|
|
31
|
+
* status.
|
|
28
32
|
*
|
|
29
33
|
* @example
|
|
30
34
|
* ```ts
|
|
31
|
-
* const apiResponseOfCall = await client.calls.retrieve(
|
|
35
|
+
* const apiResponseOfCall = await client.voice.calls.retrieve(
|
|
32
36
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
33
37
|
* );
|
|
34
38
|
* ```
|
|
35
39
|
*/
|
|
36
40
|
retrieve(id, params = {}, options) {
|
|
37
41
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
38
|
-
return this._client.get((0, path_1.path) `/v3/calls/${id}`, {
|
|
42
|
+
return this._client.get((0, path_1.path) `/v3/voice/calls/${id}`, {
|
|
39
43
|
...options,
|
|
40
44
|
headers: (0, headers_1.buildHeaders)([
|
|
41
45
|
{ ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -45,21 +49,24 @@ class Calls extends resource_1.APIResource {
|
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Retrieves a paginated list of your calls, most recent first. Filter by
|
|
48
|
-
* direction, status, the owning number,
|
|
49
|
-
*
|
|
50
|
-
*
|
|
52
|
+
* direction, status, the owning number, the mode (inapp, or agent for calls your
|
|
53
|
+
* voice agents answered), the agent that answered, and the time the call started
|
|
54
|
+
* (from and to are inclusive). Each call carries the phone number it was connected
|
|
55
|
+
* to, the caller id it showed, and the billed legs with what each cost. Use the
|
|
56
|
+
* call webhooks for real-time updates; this list is for looking calls up
|
|
57
|
+
* afterwards.
|
|
51
58
|
*
|
|
52
59
|
* @example
|
|
53
60
|
* ```ts
|
|
54
61
|
* // Automatically fetches more pages as needed.
|
|
55
|
-
* for await (const call of client.calls.list()) {
|
|
62
|
+
* for await (const call of client.voice.calls.list()) {
|
|
56
63
|
* // ...
|
|
57
64
|
* }
|
|
58
65
|
* ```
|
|
59
66
|
*/
|
|
60
67
|
list(params = {}, options) {
|
|
61
68
|
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
62
|
-
return this._client.getAPIList('/v3/calls', (pagination_1.CallsPage), {
|
|
69
|
+
return this._client.getAPIList('/v3/voice/calls', (pagination_1.CallsPage), {
|
|
63
70
|
query,
|
|
64
71
|
...options,
|
|
65
72
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -72,19 +79,19 @@ class Calls extends resource_1.APIResource {
|
|
|
72
79
|
* Ends one of your live calls. The call then ends the way any other call does once
|
|
73
80
|
* the disconnect is reported: an answered call as COMPLETED with call.completed, a
|
|
74
81
|
* call still ringing as NO_ANSWER, REJECTED or FAILED with call.failed. A call
|
|
75
|
-
* that has already ended answers 409,
|
|
76
|
-
*
|
|
82
|
+
* that has already ended answers 409, as do a call with no phone leg, such as one
|
|
83
|
+
* between two app users, and a call one of your voice agents answers.
|
|
77
84
|
*
|
|
78
85
|
* @example
|
|
79
86
|
* ```ts
|
|
80
|
-
* await client.calls.hangup(
|
|
87
|
+
* await client.voice.calls.hangup(
|
|
81
88
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
82
89
|
* );
|
|
83
90
|
* ```
|
|
84
91
|
*/
|
|
85
92
|
hangup(id, params, options) {
|
|
86
93
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
87
|
-
return this._client.post((0, path_1.path) `/v3/calls/${id}/hangup`, {
|
|
94
|
+
return this._client.post((0, path_1.path) `/v3/voice/calls/${id}/hangup`, {
|
|
88
95
|
body,
|
|
89
96
|
...options,
|
|
90
97
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -109,14 +116,14 @@ class Calls extends resource_1.APIResource {
|
|
|
109
116
|
* @example
|
|
110
117
|
* ```ts
|
|
111
118
|
* const apiResponseOfCallRecordings =
|
|
112
|
-
* await client.calls.listRecordings(
|
|
119
|
+
* await client.voice.calls.listRecordings(
|
|
113
120
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
114
121
|
* );
|
|
115
122
|
* ```
|
|
116
123
|
*/
|
|
117
124
|
listRecordings(id, params = {}, options) {
|
|
118
125
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
119
|
-
return this._client.get((0, path_1.path) `/v3/calls/${id}/recordings`, {
|
|
126
|
+
return this._client.get((0, path_1.path) `/v3/voice/calls/${id}/recordings`, {
|
|
120
127
|
...options,
|
|
121
128
|
headers: (0, headers_1.buildHeaders)([
|
|
122
129
|
{ ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -127,20 +134,20 @@ class Calls extends resource_1.APIResource {
|
|
|
127
134
|
/**
|
|
128
135
|
* Starts or stops recording one of your live calls. Use start to begin recording
|
|
129
136
|
* mid-call, or stop to end a recording, whether it was started here or by a
|
|
130
|
-
* connect answer with record set. A call that has already ended answers 409,
|
|
131
|
-
*
|
|
132
|
-
* be recorded.
|
|
137
|
+
* connect answer with record set. A call that has already ended answers 409, as do
|
|
138
|
+
* a call with no phone leg, such as one between two app users, and a call one of
|
|
139
|
+
* your voice agents answers, neither of which can be recorded this way.
|
|
133
140
|
*
|
|
134
141
|
* @example
|
|
135
142
|
* ```ts
|
|
136
|
-
* await client.calls.record(
|
|
143
|
+
* await client.voice.calls.record(
|
|
137
144
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
138
145
|
* );
|
|
139
146
|
* ```
|
|
140
147
|
*/
|
|
141
148
|
record(id, params, options) {
|
|
142
149
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
143
|
-
return this._client.post((0, path_1.path) `/v3/calls/${id}/recordings`, {
|
|
150
|
+
return this._client.post((0, path_1.path) `/v3/voice/calls/${id}/recordings`, {
|
|
144
151
|
body,
|
|
145
152
|
...options,
|
|
146
153
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls.js","sourceRoot":"","sources":["../../../src/resources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AAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,MAAwB,EAAE,OAAwB;QACnE,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,aAAa,EAAE;YAC/D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,KAAK;oBACb,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA3JD,sBA2JC;AA0aD,KAAK,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ParticipantsAPI from "./participants.mjs";
|
|
4
4
|
import { Participants, } from "./participants.mjs";
|
|
5
|
-
import { CallsPage } from "
|
|
6
|
-
import { buildHeaders } from "
|
|
7
|
-
import { path } from "
|
|
5
|
+
import { CallsPage } from "../../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
7
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
8
8
|
/**
|
|
9
9
|
* Phone calls from the numbers you hold, driven by your own callback URL.
|
|
10
10
|
*
|
|
11
|
-
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/
|
|
11
|
+
* `POST /v3/channels/voice` enables a number for calls, with the callback URL Sent asks what to do with each call on it, and `POST /v3/voice/tokens` mints a short-lived token that lets a user of your app place and receive calls as that number. When a call arrives or a caller presses a key, a signed question is POSTed to the callback URL and the answer decides the call; `POST /v3/channels/voice/{number}/test` checks the URL answers the way we need before a real call reaches it, and `POST /v3/channels/voice/{number}/rotate-secret` replaces the signing secret. The call events themselves (`call.completed` and the rest) arrive through your webhooks.
|
|
12
12
|
*
|
|
13
|
-
* Every call is a record under `/v3/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
13
|
+
* Every call is a record under `/v3/voice/calls`: read it, list its recordings once one is ready, hang it up, start or stop recording, and add, mute or remove conference participants while it is live. A leg to a phone number runs for at most what your balance affords at the destination's rate.
|
|
14
|
+
*
|
|
15
|
+
* **Voice agents.** `POST /v3/voice/agents` creates an agent that answers calls through the Sent Voice Gateway: `session_type` says whether Sent carries the call as text (speech recognised and spoken for the agent) or as audio, `websocket_url` is where the gateway dials the agent for each call (leave it out and the agent dials in with your API key), and `tools`, `transfer_targets`, `fallback` and `limits` say what it may do on a call. The agent's `signing_secret` is shown on create and on `POST /v3/voice/agents/{id}/rotate-secret` only. Voices and languages for text sessions come from `GET /v3/voice/voices`. A number takes calls to an agent once it is bound to it on `/v3/channels/voice`.
|
|
14
16
|
*/
|
|
15
17
|
export class Calls extends APIResource {
|
|
16
18
|
constructor() {
|
|
@@ -18,20 +20,22 @@ export class Calls extends APIResource {
|
|
|
18
20
|
this.participants = new ParticipantsAPI.Participants(this._client);
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
|
-
* Retrieves one of your calls by id: the parties, the owning number, the
|
|
22
|
-
*
|
|
23
|
-
*
|
|
23
|
+
* Retrieves one of your calls by id: the parties, the owning number, the phone
|
|
24
|
+
* number the call was connected to and the caller id it showed, the current status
|
|
25
|
+
* with its failure reason, duration, price with the billed legs and what each
|
|
26
|
+
* cost, recording availability, and a timeline of when the call entered each
|
|
27
|
+
* status.
|
|
24
28
|
*
|
|
25
29
|
* @example
|
|
26
30
|
* ```ts
|
|
27
|
-
* const apiResponseOfCall = await client.calls.retrieve(
|
|
31
|
+
* const apiResponseOfCall = await client.voice.calls.retrieve(
|
|
28
32
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
29
33
|
* );
|
|
30
34
|
* ```
|
|
31
35
|
*/
|
|
32
36
|
retrieve(id, params = {}, options) {
|
|
33
37
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
34
|
-
return this._client.get(path `/v3/calls/${id}`, {
|
|
38
|
+
return this._client.get(path `/v3/voice/calls/${id}`, {
|
|
35
39
|
...options,
|
|
36
40
|
headers: buildHeaders([
|
|
37
41
|
{ ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -41,21 +45,24 @@ export class Calls extends APIResource {
|
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Retrieves a paginated list of your calls, most recent first. Filter by
|
|
44
|
-
* direction, status, the owning number,
|
|
45
|
-
*
|
|
46
|
-
*
|
|
48
|
+
* direction, status, the owning number, the mode (inapp, or agent for calls your
|
|
49
|
+
* voice agents answered), the agent that answered, and the time the call started
|
|
50
|
+
* (from and to are inclusive). Each call carries the phone number it was connected
|
|
51
|
+
* to, the caller id it showed, and the billed legs with what each cost. Use the
|
|
52
|
+
* call webhooks for real-time updates; this list is for looking calls up
|
|
53
|
+
* afterwards.
|
|
47
54
|
*
|
|
48
55
|
* @example
|
|
49
56
|
* ```ts
|
|
50
57
|
* // Automatically fetches more pages as needed.
|
|
51
|
-
* for await (const call of client.calls.list()) {
|
|
58
|
+
* for await (const call of client.voice.calls.list()) {
|
|
52
59
|
* // ...
|
|
53
60
|
* }
|
|
54
61
|
* ```
|
|
55
62
|
*/
|
|
56
63
|
list(params = {}, options) {
|
|
57
64
|
const { 'x-profile-id': xProfileID, ...query } = params ?? {};
|
|
58
|
-
return this._client.getAPIList('/v3/calls', (CallsPage), {
|
|
65
|
+
return this._client.getAPIList('/v3/voice/calls', (CallsPage), {
|
|
59
66
|
query,
|
|
60
67
|
...options,
|
|
61
68
|
headers: buildHeaders([
|
|
@@ -68,19 +75,19 @@ export class Calls extends APIResource {
|
|
|
68
75
|
* Ends one of your live calls. The call then ends the way any other call does once
|
|
69
76
|
* the disconnect is reported: an answered call as COMPLETED with call.completed, a
|
|
70
77
|
* call still ringing as NO_ANSWER, REJECTED or FAILED with call.failed. A call
|
|
71
|
-
* that has already ended answers 409,
|
|
72
|
-
*
|
|
78
|
+
* that has already ended answers 409, as do a call with no phone leg, such as one
|
|
79
|
+
* between two app users, and a call one of your voice agents answers.
|
|
73
80
|
*
|
|
74
81
|
* @example
|
|
75
82
|
* ```ts
|
|
76
|
-
* await client.calls.hangup(
|
|
83
|
+
* await client.voice.calls.hangup(
|
|
77
84
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
78
85
|
* );
|
|
79
86
|
* ```
|
|
80
87
|
*/
|
|
81
88
|
hangup(id, params, options) {
|
|
82
89
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
83
|
-
return this._client.post(path `/v3/calls/${id}/hangup`, {
|
|
90
|
+
return this._client.post(path `/v3/voice/calls/${id}/hangup`, {
|
|
84
91
|
body,
|
|
85
92
|
...options,
|
|
86
93
|
headers: buildHeaders([
|
|
@@ -105,14 +112,14 @@ export class Calls extends APIResource {
|
|
|
105
112
|
* @example
|
|
106
113
|
* ```ts
|
|
107
114
|
* const apiResponseOfCallRecordings =
|
|
108
|
-
* await client.calls.listRecordings(
|
|
115
|
+
* await client.voice.calls.listRecordings(
|
|
109
116
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
110
117
|
* );
|
|
111
118
|
* ```
|
|
112
119
|
*/
|
|
113
120
|
listRecordings(id, params = {}, options) {
|
|
114
121
|
const { 'x-profile-id': xProfileID } = params ?? {};
|
|
115
|
-
return this._client.get(path `/v3/calls/${id}/recordings`, {
|
|
122
|
+
return this._client.get(path `/v3/voice/calls/${id}/recordings`, {
|
|
116
123
|
...options,
|
|
117
124
|
headers: buildHeaders([
|
|
118
125
|
{ ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -123,20 +130,20 @@ export class Calls extends APIResource {
|
|
|
123
130
|
/**
|
|
124
131
|
* Starts or stops recording one of your live calls. Use start to begin recording
|
|
125
132
|
* mid-call, or stop to end a recording, whether it was started here or by a
|
|
126
|
-
* connect answer with record set. A call that has already ended answers 409,
|
|
127
|
-
*
|
|
128
|
-
* be recorded.
|
|
133
|
+
* connect answer with record set. A call that has already ended answers 409, as do
|
|
134
|
+
* a call with no phone leg, such as one between two app users, and a call one of
|
|
135
|
+
* your voice agents answers, neither of which can be recorded this way.
|
|
129
136
|
*
|
|
130
137
|
* @example
|
|
131
138
|
* ```ts
|
|
132
|
-
* await client.calls.record(
|
|
139
|
+
* await client.voice.calls.record(
|
|
133
140
|
* 'call_9f2ab000-0000-4000-8000-000000000001',
|
|
134
141
|
* );
|
|
135
142
|
* ```
|
|
136
143
|
*/
|
|
137
144
|
record(id, params, options) {
|
|
138
145
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
139
|
-
return this._client.post(path `/v3/calls/${id}/recordings`, {
|
|
146
|
+
return this._client.post(path `/v3/voice/calls/${id}/recordings`, {
|
|
140
147
|
body,
|
|
141
148
|
...options,
|
|
142
149
|
headers: buildHeaders([
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls.mjs","sourceRoot":"","sources":["../../../src/resources/voice/calls/calls.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,eAAe,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AAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/voice/calls/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,mBAAgB;AACjB,OAAO,EACL,YAAY,EACZ,KAAK,kCAAkC,EACvC,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,GAChC,0BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/voice/calls/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAiBiB;AAhBf,8FAAA,KAAK,OAAA;AAiBP,kDAUwB;AATtB,4GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/voice/calls/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAgBN,oBAAgB;AACjB,OAAO,EACL,YAAY,GASb,2BAAuB"}
|