@sentdm/sentdm 0.46.0 → 0.48.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 +22 -0
- package/client.d.mts +3 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -1
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- 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/voice.d.mts +68 -19
- package/resources/channels/voice.d.mts.map +1 -1
- package/resources/channels/voice.d.ts +68 -19
- package/resources/channels/voice.d.ts.map +1 -1
- package/resources/channels/voice.js +31 -12
- package/resources/channels/voice.js.map +1 -1
- package/resources/channels/voice.mjs +31 -12
- package/resources/channels/voice.mjs.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/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/voice/calls/calls.d.mts +87 -15
- package/resources/voice/calls/calls.d.mts.map +1 -1
- package/resources/voice/calls/calls.d.ts +87 -15
- package/resources/voice/calls/calls.d.ts.map +1 -1
- package/resources/voice/calls/calls.js +18 -11
- package/resources/voice/calls/calls.js.map +1 -1
- package/resources/voice/calls/calls.mjs +18 -11
- package/resources/voice/calls/calls.mjs.map +1 -1
- package/resources/voice/calls/participants.d.mts +2 -0
- package/resources/voice/calls/participants.d.mts.map +1 -1
- package/resources/voice/calls/participants.d.ts +2 -0
- package/resources/voice/calls/participants.d.ts.map +1 -1
- package/resources/voice/calls/participants.js +2 -0
- package/resources/voice/calls/participants.js.map +1 -1
- package/resources/voice/calls/participants.mjs +2 -0
- package/resources/voice/calls/participants.mjs.map +1 -1
- 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 +2 -0
- package/resources/voice/index.d.mts.map +1 -1
- package/resources/voice/index.d.ts +2 -0
- package/resources/voice/index.d.ts.map +1 -1
- package/resources/voice/index.js +5 -1
- package/resources/voice/index.js.map +1 -1
- package/resources/voice/index.mjs +2 -0
- package/resources/voice/index.mjs.map +1 -1
- package/resources/voice/tokens.d.mts +2 -0
- package/resources/voice/tokens.d.mts.map +1 -1
- package/resources/voice/tokens.d.ts +2 -0
- package/resources/voice/tokens.d.ts.map +1 -1
- package/resources/voice/tokens.js +2 -0
- package/resources/voice/tokens.js.map +1 -1
- package/resources/voice/tokens.mjs +2 -0
- package/resources/voice/tokens.mjs.map +1 -1
- package/resources/voice/voice.d.mts +8 -0
- package/resources/voice/voice.d.mts.map +1 -1
- package/resources/voice/voice.d.ts +8 -0
- package/resources/voice/voice.d.ts.map +1 -1
- package/resources/voice/voice.js +8 -0
- package/resources/voice/voice.js.map +1 -1
- package/resources/voice/voice.mjs +8 -0
- package/resources/voice/voice.mjs.map +1 -1
- package/resources/webhooks.d.mts +151 -29
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +151 -29
- 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 +8 -0
- package/src/core/pagination.ts +64 -0
- package/src/resources/channels/voice.ts +72 -19
- package/src/resources/profiles/campaigns.ts +3 -2
- package/src/resources/voice/agents.ts +729 -0
- package/src/resources/voice/calls/calls.ts +98 -15
- package/src/resources/voice/calls/participants.ts +2 -0
- package/src/resources/voice/catalogue.ts +118 -0
- package/src/resources/voice/index.ts +33 -0
- package/src/resources/voice/tokens.ts +2 -0
- package/src/resources/voice/voice.ts +74 -0
- package/src/resources/webhooks.ts +159 -29
- 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/core/pagination.mjs
CHANGED
|
@@ -225,4 +225,30 @@ export class CallsPage extends AbstractPage {
|
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
+
export class VoiceAgentsPage extends AbstractPage {
|
|
229
|
+
constructor(client, response, body, options) {
|
|
230
|
+
super(client, response, body, options);
|
|
231
|
+
this.data = body.data || {};
|
|
232
|
+
}
|
|
233
|
+
getPaginatedItems() {
|
|
234
|
+
return this.data?.agents ?? [];
|
|
235
|
+
}
|
|
236
|
+
hasNextPage() {
|
|
237
|
+
if (this.data?.pagination?.has_more === false) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
return super.hasNextPage();
|
|
241
|
+
}
|
|
242
|
+
nextPageRequestOptions() {
|
|
243
|
+
const query = this.options.query;
|
|
244
|
+
const currentPage = query?.page ?? 1;
|
|
245
|
+
return {
|
|
246
|
+
...this.options,
|
|
247
|
+
query: {
|
|
248
|
+
...maybeObj(this.options.query),
|
|
249
|
+
page: currentPage + 1,
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}
|
|
228
254
|
//# sourceMappingURL=pagination.mjs.map
|
package/core/pagination.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["../src/core/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;AAEtF,OAAO,EAAE,SAAS,EAAE,oBAAgB;AAEpC,OAAO,EAAE,oBAAoB,EAAE,8BAA0B;AAEzD,OAAO,EAAE,UAAU,EAAE,0BAAsB;AAE3C,OAAO,EAAE,QAAQ,EAAE,qCAAiC;AAIpD,MAAM,OAAgB,YAAY;IAOhC,YAAY,MAAY,EAAE,QAAkB,EAAE,IAAa,EAAE,OAA4B;QANzF,uCAAc;QAOZ,uBAAA,IAAI,wBAAW,MAAM,MAAA,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAMD,WAAW;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC,sBAAsB,EAAE,IAAI,IAAI,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAClD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,SAAS,CACjB,uFAAuF,CACxF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,uBAAA,IAAI,4BAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAkB,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,CAAC,SAAS;QACd,IAAI,IAAI,GAAS,IAAI,CAAC;QACt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B;QACf,OAAO,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC;IACjC,CAAC;IAEQ,WAAW;QAClB,IAAI,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC9C,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;IAED,sBAAsB;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAA8B,CAAC;QAC1D,MAAM,WAAW,GAAG,KAAK,EAAE,IAAI,IAAI,CAAC,CAAC;QAErC,OAAO;YACL,GAAG,IAAI,CAAC,OAAO;YACf,KAAK,EAAE;gBACL,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;gBAC/B,IAAI,EAAE,WAAW,GAAG,CAAC;aACtB;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -30,6 +30,16 @@ export declare class Voice extends APIResource {
|
|
|
30
30
|
* question the way you verify a webhook. `POST /v3/channels/voice/{number}/test`
|
|
31
31
|
* sends a test question and reports the verdict.
|
|
32
32
|
*
|
|
33
|
+
* Send `agent_id` instead of `callback_url`, or with it, to have one of your voice
|
|
34
|
+
* agents (`GET /v3/voice/agents`) answer calls to the number. The agent wins over
|
|
35
|
+
* the callback URL for calls to the number; calls your app places from it still
|
|
36
|
+
* follow your app. `routes_to` in the response says which answers, and reads
|
|
37
|
+
* `agent_pending` while the number is still being moved to the agent. Calls follow
|
|
38
|
+
* the move within about an hour, as the provider applies it on its own clock.
|
|
39
|
+
* While numbers cannot be bound to agents, a request with `agent_id` is refused
|
|
40
|
+
* with `502` before any number is obtained or anything is written; send
|
|
41
|
+
* `callback_url` instead.
|
|
42
|
+
*
|
|
33
43
|
* Your first voice number becomes the line app-originated calls are placed from
|
|
34
44
|
* when a voice token names no number; send `default_for_app_calls: true` to give
|
|
35
45
|
* that role to another number. A number you turned off earlier is turned back on,
|
|
@@ -76,18 +86,23 @@ export declare class Voice extends APIResource {
|
|
|
76
86
|
*
|
|
77
87
|
* ## What it changes
|
|
78
88
|
*
|
|
79
|
-
* | Body | Effect
|
|
80
|
-
* | --------------------------------------------- |
|
|
81
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
82
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
83
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
84
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept
|
|
85
|
-
* |
|
|
89
|
+
* | Body | Effect |
|
|
90
|
+
* | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
92
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
93
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
94
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
95
|
+
* | `"agent_id": "agent_…"` | one of your voice agents answers calls to the number, within about an hour of the change (the provider applies the move on its own clock, and `routes_to` reads `agent` as soon as it has recorded it); it wins over `callback_url` for calls to the number, and calls your app places from it still follow your app. `routes_to` reads `agent_pending` while the number is still being moved to the agent |
|
|
96
|
+
* | `"agent_id": null` | unbinds the agent, so `callback_url` answers calls to the number again |
|
|
97
|
+
* | key omitted | left exactly as it is |
|
|
86
98
|
*
|
|
87
99
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
88
100
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
89
|
-
* new default, and a `callback_url` sent with either status is written too.
|
|
90
|
-
*
|
|
101
|
+
* new default, and a `callback_url` sent with either status is written too.
|
|
102
|
+
* `agent_id` is applied first, so a refusal to move the number to or from the
|
|
103
|
+
* agent leaves everything as it was, and the `409` and `400` refusals below are
|
|
104
|
+
* decided before anything is written, so they leave everything as it was too. A
|
|
105
|
+
* body that names none of them is refused.
|
|
91
106
|
*
|
|
92
107
|
* A number can be on without a callback URL: calls placed from your app then
|
|
93
108
|
* connect straight to the number or user they dial, and calls to the number are
|
|
@@ -106,8 +121,12 @@ export declare class Voice extends APIResource {
|
|
|
106
121
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
107
122
|
* the same call.
|
|
108
123
|
*
|
|
109
|
-
* **A number you never turned voice on for is `404
|
|
110
|
-
* `POST /v3/channels/voice`.
|
|
124
|
+
* **A number you never turned voice on for is `404`**, and so is an `agent_id`
|
|
125
|
+
* that is not one of your agents. Add the number with `POST /v3/channels/voice`.
|
|
126
|
+
*
|
|
127
|
+
* **`502` means the number could not be moved to or from the agent**, or an
|
|
128
|
+
* `agent_id` was sent while numbers cannot be bound to agents; nothing was
|
|
129
|
+
* written.
|
|
111
130
|
*
|
|
112
131
|
* The number is the E.164 value in the path with the plus sign URL-encoded
|
|
113
132
|
* (`%2B`).
|
|
@@ -119,7 +138,7 @@ export declare class Voice extends APIResource {
|
|
|
119
138
|
* @example
|
|
120
139
|
* ```ts
|
|
121
140
|
* const apiResponseOfVoiceNumber =
|
|
122
|
-
* await client.channels.voice.update('
|
|
141
|
+
* await client.channels.voice.update('number');
|
|
123
142
|
* ```
|
|
124
143
|
*/
|
|
125
144
|
update(number: string, params: VoiceUpdateParams, options?: RequestOptions): APIPromise<APIResponseOfVoiceNumber>;
|
|
@@ -371,6 +390,13 @@ export interface VoiceCallbackTestResponseInfo {
|
|
|
371
390
|
* One number the profile carries phone calls on.
|
|
372
391
|
*/
|
|
373
392
|
export interface VoiceNumber {
|
|
393
|
+
/**
|
|
394
|
+
* The voice agent calls to this number go to, such as
|
|
395
|
+
* agent_9f2ab000-0000-4000-8000-000000000001. It wins over callback_url for calls
|
|
396
|
+
* to the number; calls your app places from the number still follow your app. Null
|
|
397
|
+
* when no agent answers the number.
|
|
398
|
+
*/
|
|
399
|
+
agent_id?: string | null;
|
|
374
400
|
/**
|
|
375
401
|
* Where Sent asks what to do with each call on this number: a signed question is
|
|
376
402
|
* POSTed here when a call arrives or a caller presses a key, and the answer
|
|
@@ -389,6 +415,13 @@ export interface VoiceNumber {
|
|
|
389
415
|
* The number, in E.164.
|
|
390
416
|
*/
|
|
391
417
|
number?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Who answers calls to this number: agent, the voice agent in agent_id;
|
|
420
|
+
* agent_pending, that agent once the number has finished moving to it, with calls
|
|
421
|
+
* possibly unanswered until then; callback, your callback_url; or none, in which
|
|
422
|
+
* case calls to it are declined.
|
|
423
|
+
*/
|
|
424
|
+
routes_to?: string;
|
|
392
425
|
/**
|
|
393
426
|
* ACTIVE while the number carries calls, INACTIVE once it was turned off. Nothing
|
|
394
427
|
* provisions: a number the customer holds can carry calls the moment voice is
|
|
@@ -421,14 +454,13 @@ export interface VoiceSecret {
|
|
|
421
454
|
}
|
|
422
455
|
export interface VoiceCreateParams {
|
|
423
456
|
/**
|
|
424
|
-
* Body param:
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* replaces it and keeps the secret.
|
|
457
|
+
* Body param: One of your voice agents (GET /v3/voice/agents), such as
|
|
458
|
+
* agent_9f2ab000-0000-4000-8000-000000000001, to answer calls to this number. It
|
|
459
|
+
* wins over callback_url for calls to the number, and both may be sent; calls your
|
|
460
|
+
* app places from the number still follow your app. Send it instead of
|
|
461
|
+
* callback_url for a number only an agent answers.
|
|
430
462
|
*/
|
|
431
|
-
|
|
463
|
+
agent_id?: string | null;
|
|
432
464
|
/**
|
|
433
465
|
* Body param: The US area code a new number should be in, as 212. Only for a
|
|
434
466
|
* request that leaves number out — sending both says two different things about
|
|
@@ -436,6 +468,15 @@ export interface VoiceCreateParams {
|
|
|
436
468
|
* anywhere in the country.
|
|
437
469
|
*/
|
|
438
470
|
area_code?: string | null;
|
|
471
|
+
/**
|
|
472
|
+
* Body param: Where Sent asks what to do with each call on this number: an
|
|
473
|
+
* absolute HTTP or HTTPS URL on a public host. A signed question is POSTed here
|
|
474
|
+
* when a call arrives or a caller presses a key, and the answer decides the call.
|
|
475
|
+
* Every question is signed with the callback_secret the response returns, the same
|
|
476
|
+
* way your webhooks are signed. Turning the number on again with a different URL
|
|
477
|
+
* replaces it and keeps the secret. Required unless agent_id is sent.
|
|
478
|
+
*/
|
|
479
|
+
callback_url?: string | null;
|
|
439
480
|
/**
|
|
440
481
|
* Body param: Make this the line app-originated calls are placed from when a voice
|
|
441
482
|
* token names no number. Omit it and your first voice number takes that role; a
|
|
@@ -474,6 +515,14 @@ export interface VoiceRetrieveParams {
|
|
|
474
515
|
'x-profile-id'?: string;
|
|
475
516
|
}
|
|
476
517
|
export interface VoiceUpdateParams {
|
|
518
|
+
/**
|
|
519
|
+
* Body param: One of your voice agents, such as
|
|
520
|
+
* agent_9f2ab000-0000-4000-8000-000000000001, to answer calls to the number, or
|
|
521
|
+
* null to unbind it so the callback URL answers them again. The agent wins over
|
|
522
|
+
* callback_url for calls to the number; calls your app places from it still follow
|
|
523
|
+
* your app.
|
|
524
|
+
*/
|
|
525
|
+
agent_id?: string | null;
|
|
477
526
|
/**
|
|
478
527
|
* Body param: A new callback URL for the number, active or not: an absolute HTTP
|
|
479
528
|
* or HTTPS URL on a public host, where Sent asks what to do with each call. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,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wB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -30,6 +30,16 @@ export declare class Voice extends APIResource {
|
|
|
30
30
|
* question the way you verify a webhook. `POST /v3/channels/voice/{number}/test`
|
|
31
31
|
* sends a test question and reports the verdict.
|
|
32
32
|
*
|
|
33
|
+
* Send `agent_id` instead of `callback_url`, or with it, to have one of your voice
|
|
34
|
+
* agents (`GET /v3/voice/agents`) answer calls to the number. The agent wins over
|
|
35
|
+
* the callback URL for calls to the number; calls your app places from it still
|
|
36
|
+
* follow your app. `routes_to` in the response says which answers, and reads
|
|
37
|
+
* `agent_pending` while the number is still being moved to the agent. Calls follow
|
|
38
|
+
* the move within about an hour, as the provider applies it on its own clock.
|
|
39
|
+
* While numbers cannot be bound to agents, a request with `agent_id` is refused
|
|
40
|
+
* with `502` before any number is obtained or anything is written; send
|
|
41
|
+
* `callback_url` instead.
|
|
42
|
+
*
|
|
33
43
|
* Your first voice number becomes the line app-originated calls are placed from
|
|
34
44
|
* when a voice token names no number; send `default_for_app_calls: true` to give
|
|
35
45
|
* that role to another number. A number you turned off earlier is turned back on,
|
|
@@ -76,18 +86,23 @@ export declare class Voice extends APIResource {
|
|
|
76
86
|
*
|
|
77
87
|
* ## What it changes
|
|
78
88
|
*
|
|
79
|
-
* | Body | Effect
|
|
80
|
-
* | --------------------------------------------- |
|
|
81
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
82
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
83
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
84
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept
|
|
85
|
-
* |
|
|
89
|
+
* | Body | Effect |
|
|
90
|
+
* | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
92
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
93
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
94
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
95
|
+
* | `"agent_id": "agent_…"` | one of your voice agents answers calls to the number, within about an hour of the change (the provider applies the move on its own clock, and `routes_to` reads `agent` as soon as it has recorded it); it wins over `callback_url` for calls to the number, and calls your app places from it still follow your app. `routes_to` reads `agent_pending` while the number is still being moved to the agent |
|
|
96
|
+
* | `"agent_id": null` | unbinds the agent, so `callback_url` answers calls to the number again |
|
|
97
|
+
* | key omitted | left exactly as it is |
|
|
86
98
|
*
|
|
87
99
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
88
100
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
89
|
-
* new default, and a `callback_url` sent with either status is written too.
|
|
90
|
-
*
|
|
101
|
+
* new default, and a `callback_url` sent with either status is written too.
|
|
102
|
+
* `agent_id` is applied first, so a refusal to move the number to or from the
|
|
103
|
+
* agent leaves everything as it was, and the `409` and `400` refusals below are
|
|
104
|
+
* decided before anything is written, so they leave everything as it was too. A
|
|
105
|
+
* body that names none of them is refused.
|
|
91
106
|
*
|
|
92
107
|
* A number can be on without a callback URL: calls placed from your app then
|
|
93
108
|
* connect straight to the number or user they dial, and calls to the number are
|
|
@@ -106,8 +121,12 @@ export declare class Voice extends APIResource {
|
|
|
106
121
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
107
122
|
* the same call.
|
|
108
123
|
*
|
|
109
|
-
* **A number you never turned voice on for is `404
|
|
110
|
-
* `POST /v3/channels/voice`.
|
|
124
|
+
* **A number you never turned voice on for is `404`**, and so is an `agent_id`
|
|
125
|
+
* that is not one of your agents. Add the number with `POST /v3/channels/voice`.
|
|
126
|
+
*
|
|
127
|
+
* **`502` means the number could not be moved to or from the agent**, or an
|
|
128
|
+
* `agent_id` was sent while numbers cannot be bound to agents; nothing was
|
|
129
|
+
* written.
|
|
111
130
|
*
|
|
112
131
|
* The number is the E.164 value in the path with the plus sign URL-encoded
|
|
113
132
|
* (`%2B`).
|
|
@@ -119,7 +138,7 @@ export declare class Voice extends APIResource {
|
|
|
119
138
|
* @example
|
|
120
139
|
* ```ts
|
|
121
140
|
* const apiResponseOfVoiceNumber =
|
|
122
|
-
* await client.channels.voice.update('
|
|
141
|
+
* await client.channels.voice.update('number');
|
|
123
142
|
* ```
|
|
124
143
|
*/
|
|
125
144
|
update(number: string, params: VoiceUpdateParams, options?: RequestOptions): APIPromise<APIResponseOfVoiceNumber>;
|
|
@@ -371,6 +390,13 @@ export interface VoiceCallbackTestResponseInfo {
|
|
|
371
390
|
* One number the profile carries phone calls on.
|
|
372
391
|
*/
|
|
373
392
|
export interface VoiceNumber {
|
|
393
|
+
/**
|
|
394
|
+
* The voice agent calls to this number go to, such as
|
|
395
|
+
* agent_9f2ab000-0000-4000-8000-000000000001. It wins over callback_url for calls
|
|
396
|
+
* to the number; calls your app places from the number still follow your app. Null
|
|
397
|
+
* when no agent answers the number.
|
|
398
|
+
*/
|
|
399
|
+
agent_id?: string | null;
|
|
374
400
|
/**
|
|
375
401
|
* Where Sent asks what to do with each call on this number: a signed question is
|
|
376
402
|
* POSTed here when a call arrives or a caller presses a key, and the answer
|
|
@@ -389,6 +415,13 @@ export interface VoiceNumber {
|
|
|
389
415
|
* The number, in E.164.
|
|
390
416
|
*/
|
|
391
417
|
number?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Who answers calls to this number: agent, the voice agent in agent_id;
|
|
420
|
+
* agent_pending, that agent once the number has finished moving to it, with calls
|
|
421
|
+
* possibly unanswered until then; callback, your callback_url; or none, in which
|
|
422
|
+
* case calls to it are declined.
|
|
423
|
+
*/
|
|
424
|
+
routes_to?: string;
|
|
392
425
|
/**
|
|
393
426
|
* ACTIVE while the number carries calls, INACTIVE once it was turned off. Nothing
|
|
394
427
|
* provisions: a number the customer holds can carry calls the moment voice is
|
|
@@ -421,14 +454,13 @@ export interface VoiceSecret {
|
|
|
421
454
|
}
|
|
422
455
|
export interface VoiceCreateParams {
|
|
423
456
|
/**
|
|
424
|
-
* Body param:
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* replaces it and keeps the secret.
|
|
457
|
+
* Body param: One of your voice agents (GET /v3/voice/agents), such as
|
|
458
|
+
* agent_9f2ab000-0000-4000-8000-000000000001, to answer calls to this number. It
|
|
459
|
+
* wins over callback_url for calls to the number, and both may be sent; calls your
|
|
460
|
+
* app places from the number still follow your app. Send it instead of
|
|
461
|
+
* callback_url for a number only an agent answers.
|
|
430
462
|
*/
|
|
431
|
-
|
|
463
|
+
agent_id?: string | null;
|
|
432
464
|
/**
|
|
433
465
|
* Body param: The US area code a new number should be in, as 212. Only for a
|
|
434
466
|
* request that leaves number out — sending both says two different things about
|
|
@@ -436,6 +468,15 @@ export interface VoiceCreateParams {
|
|
|
436
468
|
* anywhere in the country.
|
|
437
469
|
*/
|
|
438
470
|
area_code?: string | null;
|
|
471
|
+
/**
|
|
472
|
+
* Body param: Where Sent asks what to do with each call on this number: an
|
|
473
|
+
* absolute HTTP or HTTPS URL on a public host. A signed question is POSTed here
|
|
474
|
+
* when a call arrives or a caller presses a key, and the answer decides the call.
|
|
475
|
+
* Every question is signed with the callback_secret the response returns, the same
|
|
476
|
+
* way your webhooks are signed. Turning the number on again with a different URL
|
|
477
|
+
* replaces it and keeps the secret. Required unless agent_id is sent.
|
|
478
|
+
*/
|
|
479
|
+
callback_url?: string | null;
|
|
439
480
|
/**
|
|
440
481
|
* Body param: Make this the line app-originated calls are placed from when a voice
|
|
441
482
|
* token names no number. Omit it and your first voice number takes that role; a
|
|
@@ -474,6 +515,14 @@ export interface VoiceRetrieveParams {
|
|
|
474
515
|
'x-profile-id'?: string;
|
|
475
516
|
}
|
|
476
517
|
export interface VoiceUpdateParams {
|
|
518
|
+
/**
|
|
519
|
+
* Body param: One of your voice agents, such as
|
|
520
|
+
* agent_9f2ab000-0000-4000-8000-000000000001, to answer calls to the number, or
|
|
521
|
+
* null to unbind it so the callback URL answers them again. The agent wins over
|
|
522
|
+
* callback_url for calls to the number; calls your app places from it still follow
|
|
523
|
+
* your app.
|
|
524
|
+
*/
|
|
525
|
+
agent_id?: string | null;
|
|
477
526
|
/**
|
|
478
527
|
* Body param: A new callback URL for the number, active or not: an absolute HTTP
|
|
479
528
|
* or HTTPS URL on a public host, where Sent asks what to do with each call. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;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+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -33,6 +33,16 @@ class Voice extends resource_1.APIResource {
|
|
|
33
33
|
* question the way you verify a webhook. `POST /v3/channels/voice/{number}/test`
|
|
34
34
|
* sends a test question and reports the verdict.
|
|
35
35
|
*
|
|
36
|
+
* Send `agent_id` instead of `callback_url`, or with it, to have one of your voice
|
|
37
|
+
* agents (`GET /v3/voice/agents`) answer calls to the number. The agent wins over
|
|
38
|
+
* the callback URL for calls to the number; calls your app places from it still
|
|
39
|
+
* follow your app. `routes_to` in the response says which answers, and reads
|
|
40
|
+
* `agent_pending` while the number is still being moved to the agent. Calls follow
|
|
41
|
+
* the move within about an hour, as the provider applies it on its own clock.
|
|
42
|
+
* While numbers cannot be bound to agents, a request with `agent_id` is refused
|
|
43
|
+
* with `502` before any number is obtained or anything is written; send
|
|
44
|
+
* `callback_url` instead.
|
|
45
|
+
*
|
|
36
46
|
* Your first voice number becomes the line app-originated calls are placed from
|
|
37
47
|
* when a voice token names no number; send `default_for_app_calls: true` to give
|
|
38
48
|
* that role to another number. A number you turned off earlier is turned back on,
|
|
@@ -101,18 +111,23 @@ class Voice extends resource_1.APIResource {
|
|
|
101
111
|
*
|
|
102
112
|
* ## What it changes
|
|
103
113
|
*
|
|
104
|
-
* | Body | Effect
|
|
105
|
-
* | --------------------------------------------- |
|
|
106
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
107
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
108
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
109
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept
|
|
110
|
-
* |
|
|
114
|
+
* | Body | Effect |
|
|
115
|
+
* | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
116
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
117
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
118
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
119
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
120
|
+
* | `"agent_id": "agent_…"` | one of your voice agents answers calls to the number, within about an hour of the change (the provider applies the move on its own clock, and `routes_to` reads `agent` as soon as it has recorded it); it wins over `callback_url` for calls to the number, and calls your app places from it still follow your app. `routes_to` reads `agent_pending` while the number is still being moved to the agent |
|
|
121
|
+
* | `"agent_id": null` | unbinds the agent, so `callback_url` answers calls to the number again |
|
|
122
|
+
* | key omitted | left exactly as it is |
|
|
111
123
|
*
|
|
112
124
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
113
125
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
114
|
-
* new default, and a `callback_url` sent with either status is written too.
|
|
115
|
-
*
|
|
126
|
+
* new default, and a `callback_url` sent with either status is written too.
|
|
127
|
+
* `agent_id` is applied first, so a refusal to move the number to or from the
|
|
128
|
+
* agent leaves everything as it was, and the `409` and `400` refusals below are
|
|
129
|
+
* decided before anything is written, so they leave everything as it was too. A
|
|
130
|
+
* body that names none of them is refused.
|
|
116
131
|
*
|
|
117
132
|
* A number can be on without a callback URL: calls placed from your app then
|
|
118
133
|
* connect straight to the number or user they dial, and calls to the number are
|
|
@@ -131,8 +146,12 @@ class Voice extends resource_1.APIResource {
|
|
|
131
146
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
132
147
|
* the same call.
|
|
133
148
|
*
|
|
134
|
-
* **A number you never turned voice on for is `404
|
|
135
|
-
* `POST /v3/channels/voice`.
|
|
149
|
+
* **A number you never turned voice on for is `404`**, and so is an `agent_id`
|
|
150
|
+
* that is not one of your agents. Add the number with `POST /v3/channels/voice`.
|
|
151
|
+
*
|
|
152
|
+
* **`502` means the number could not be moved to or from the agent**, or an
|
|
153
|
+
* `agent_id` was sent while numbers cannot be bound to agents; nothing was
|
|
154
|
+
* written.
|
|
136
155
|
*
|
|
137
156
|
* The number is the E.164 value in the path with the plus sign URL-encoded
|
|
138
157
|
* (`%2B`).
|
|
@@ -144,7 +163,7 @@ class Voice extends resource_1.APIResource {
|
|
|
144
163
|
* @example
|
|
145
164
|
* ```ts
|
|
146
165
|
* const apiResponseOfVoiceNumber =
|
|
147
|
-
* await client.channels.voice.update('
|
|
166
|
+
* await client.channels.voice.update('number');
|
|
148
167
|
* ```
|
|
149
168
|
*/
|
|
150
169
|
update(number, params, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;GAYG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"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