@sinch/voice 1.2.0 → 1.3.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.
Files changed (75) hide show
  1. package/dist/index.js +17 -7
  2. package/dist/index.js.map +1 -1
  3. package/dist/models/v1/answering-machine-detection/answering-machine-detection.d.ts +8 -0
  4. package/dist/models/v1/answering-machine-detection/answering-machine-detection.js +3 -0
  5. package/dist/models/v1/answering-machine-detection/answering-machine-detection.js.map +1 -0
  6. package/dist/models/v1/answering-machine-detection/index.d.ts +1 -0
  7. package/dist/models/v1/answering-machine-detection/index.js.map +1 -0
  8. package/dist/models/v1/assign-numbers/assign-numbers.d.ts +2 -1
  9. package/dist/models/v1/conference-callout-request/conference-callout-request.d.ts +8 -8
  10. package/dist/models/v1/conference-dtmf-options/conference-dtmf-options.d.ts +2 -2
  11. package/dist/models/v1/custom-callout-request/custom-callout-request.d.ts +6 -6
  12. package/dist/models/v1/destination/destination.d.ts +52 -4
  13. package/dist/models/v1/destination/index.d.ts +1 -1
  14. package/dist/models/v1/enums.d.ts +21 -4
  15. package/dist/models/v1/get-call-information/get-call-information.d.ts +3 -3
  16. package/dist/models/v1/get-callbacks/get-callbacks.d.ts +3 -0
  17. package/dist/models/v1/get-conference-info-response/get-conference-info-response.d.ts +1 -1
  18. package/dist/models/v1/helper.d.ts +5 -1
  19. package/dist/models/v1/helper.js +9 -0
  20. package/dist/models/v1/helper.js.map +1 -1
  21. package/dist/models/v1/index.d.ts +1 -1
  22. package/dist/models/v1/index.js +1 -1
  23. package/dist/models/v1/index.js.map +1 -1
  24. package/dist/models/v1/list-numbers-response/list-numbers-response.d.ts +2 -1
  25. package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.d.ts +1 -1
  26. package/dist/models/v1/menu/menu.d.ts +3 -3
  27. package/dist/models/v1/mod-callbacks/ace-request/ace-request.d.ts +2 -9
  28. package/dist/models/v1/mod-callbacks/ace-request/index.d.ts +1 -1
  29. package/dist/models/v1/mod-callbacks/dice-request/dice-request.d.ts +7 -6
  30. package/dist/models/v1/mod-callbacks/dice-request/index.d.ts +1 -1
  31. package/dist/models/v1/mod-callbacks/ice-request/ice-request.d.ts +6 -5
  32. package/dist/models/v1/mod-callbacks/ice-response/ice-response.d.ts +2 -2
  33. package/dist/models/v1/mod-callbacks/notify-request/notify-request.d.ts +5 -10
  34. package/dist/models/v1/mod-callbacks/pie-request/index.d.ts +1 -1
  35. package/dist/models/v1/mod-callbacks/pie-request/pie-request.d.ts +2 -3
  36. package/dist/models/v1/mod-svaml/index.d.ts +1 -0
  37. package/dist/models/v1/mod-svaml/index.js +1 -0
  38. package/dist/models/v1/mod-svaml/index.js.map +1 -1
  39. package/dist/models/v1/mod-svaml/svaml-action-connect-conf/svaml-action-connect-conf.d.ts +2 -2
  40. package/dist/models/v1/mod-svaml/svaml-action-connect-mxp/svaml-action-connect-mxp.d.ts +4 -4
  41. package/dist/models/v1/mod-svaml/svaml-action-connect-pstn/svaml-action-connect-pstn.d.ts +2 -2
  42. package/dist/models/v1/mod-svaml/svaml-action-connect-sip/index.d.ts +1 -1
  43. package/dist/models/v1/mod-svaml/svaml-action-connect-sip/svaml-action-connect-sip.d.ts +6 -11
  44. package/dist/models/v1/mod-svaml/svaml-action-connect-stream/index.d.ts +1 -0
  45. package/dist/models/v1/{participant/participant.js → mod-svaml/svaml-action-connect-stream/index.js} +1 -1
  46. package/dist/models/v1/mod-svaml/svaml-action-connect-stream/index.js.map +1 -0
  47. package/dist/models/v1/mod-svaml/svaml-action-connect-stream/svaml-action-connect-stream.d.ts +16 -0
  48. package/dist/models/v1/mod-svaml/svaml-action-connect-stream/svaml-action-connect-stream.js +3 -0
  49. package/dist/models/v1/mod-svaml/svaml-action-connect-stream/svaml-action-connect-stream.js.map +1 -0
  50. package/dist/models/v1/mod-svaml/svaml-action-continue/svaml-action-continue.d.ts +1 -1
  51. package/dist/models/v1/mod-svaml/svaml-action-hangup/svaml-action-hangup.d.ts +1 -1
  52. package/dist/models/v1/mod-svaml/svaml-action-park/svaml-action-park.d.ts +1 -1
  53. package/dist/models/v1/mod-svaml/svaml-action-run-menu/svaml-action-run-menu.d.ts +2 -2
  54. package/dist/models/v1/mod-svaml/svaml-instruction/svaml-instruction.d.ts +1 -1
  55. package/dist/models/v1/mod-svaml/svaml-instruction-play-files/svaml-instruction-play-files.d.ts +1 -1
  56. package/dist/models/v1/mod-svaml/svaml-instruction-say/svaml-instruction-say.d.ts +1 -1
  57. package/dist/models/v1/mod-svaml/svaml-instruction-start-recording/svaml-instruction-start-recording.d.ts +1 -1
  58. package/dist/models/v1/option/option.d.ts +5 -1
  59. package/dist/models/v1/query-number-response/query-number-response.d.ts +5 -2
  60. package/dist/models/v1/requests/calls/calls-request-data.d.ts +1 -1
  61. package/dist/models/v1/tts-callout-request/tts-callout-request.d.ts +4 -4
  62. package/dist/models/v1/unassign-numbers/unassign-numbers.d.ts +1 -1
  63. package/dist/rest/v1/applications/applications-api.jest.fixture.d.ts +0 -1
  64. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +0 -1
  65. package/dist/rest/v1/callbacks/callbacks-webhook.js +3 -0
  66. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  67. package/dist/rest/v1/callouts/callouts-api.jest.fixture.d.ts +0 -1
  68. package/dist/rest/v1/calls/calls-api.jest.fixture.d.ts +0 -1
  69. package/dist/rest/v1/conferences/conferences-api.jest.fixture.d.ts +0 -1
  70. package/package.json +2 -2
  71. package/dist/models/v1/participant/index.d.ts +0 -1
  72. package/dist/models/v1/participant/index.js.map +0 -1
  73. package/dist/models/v1/participant/participant.d.ts +0 -9
  74. package/dist/models/v1/participant/participant.js.map +0 -1
  75. /package/dist/models/v1/{participant → answering-machine-detection}/index.js +0 -0
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
37
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAkC;AAClC,yCAAuB;AACvB,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAkC;AAClC,yCAAuB;AACvB,oDAAkC"}
@@ -0,0 +1,8 @@
1
+ export interface AnsweringMachineDetection {
2
+ /** The determination by the system of who answered the call. */
3
+ status?: 'machine' | 'human' | 'notsure' | 'hangup' | string;
4
+ /** The reason that the system used to determine who answered the call. */
5
+ reason?: 'longgreeting' | 'initialsilence' | 'greeting' | 'beep' | 'n/a' | string;
6
+ /** The length of the call. */
7
+ duration?: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=answering-machine-detection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"answering-machine-detection.js","sourceRoot":"","sources":["../../../../src/models/v1/answering-machine-detection/answering-machine-detection.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { AnsweringMachineDetection } from './answering-machine-detection';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/answering-machine-detection/index.ts"],"names":[],"mappings":""}
@@ -1,8 +1,9 @@
1
+ import { Capability } from '../enums';
1
2
  export interface AssignNumbers {
2
3
  /** The phone number or list of numbers in E.164 format. */
3
4
  numbers?: string[];
4
5
  /** indicates the application where the number(s) will be assigned. If empty, the application key that is used to sign the request will be used. */
5
6
  applicationkey?: string;
6
7
  /** indicates the DID capability that needs to be assigned to the chosen application. Valid values are 'voice' and 'sms'. Please note that the DID needs to support the selected capability. */
7
- capability?: 'voice' | 'sms';
8
+ capability?: Capability;
8
9
  }
@@ -1,17 +1,17 @@
1
- import { Destination } from '../destination';
1
+ import { CalloutDestination } from '../destination';
2
2
  import { ConferenceDtmfOptions } from '../conference-dtmf-options';
3
- import { MusicOnHold } from '../enums';
3
+ import { Domain, MusicOnHold } from '../enums';
4
4
  /**
5
5
  * The conference callout calls a phone number or a user. When the call is answered, it's connected to a conference room.
6
6
  */
7
7
  export interface ConferenceCalloutRequest {
8
8
  /** The number that will be displayed as the incoming caller. To set your own CLI, you may use your verified number or your Dashboard number. The number must be in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format. */
9
9
  cli?: string;
10
- /** @see Destination */
11
- destination: Destination;
10
+ /** The type of device and number or endpoint to call. */
11
+ destination: CalloutDestination;
12
12
  /** The conferenceId of the conference to which you want the callee to join. If the conferenceId doesn't exist a conference room will be created. */
13
13
  conferenceId: string;
14
- /** Options to control how DTMF signals are used by the participant in the conference. For information on how to use this feature, read more [here](../../../conference-dtmf). */
14
+ /** Options to control how DTMF signals are used by the participant in the conference. For information on how to use this feature, read more [here](https://developers.sinch.com/docs/voice/api-reference/conference-dtmf). */
15
15
  conferenceDtmfOptions?: ConferenceDtmfOptions;
16
16
  /** When the destination picks up, this DTMF tones will be played to the callee. Valid characters in the string are "0"-"9", "#" and "w". A "w" will render a 500 ms pause. Example: "ww1234#w#" will render a 1s pause, the DTMF tones "1", "2", "3", "4" and "#" followed by a 0.5s pause and finally the DTMF tone for "#". This can be used if the callout destination for instance require a conference PIN code or an extension to be entered. */
17
17
  dtmf?: string;
@@ -22,7 +22,7 @@ export interface ConferenceCalloutRequest {
22
22
  enableDice?: boolean;
23
23
  /** If `enablePie` is set to true and the application has a callback URL specified, you will receive a PIE callback after a `runMenu` action, with the information of the action that the user took. If it's set to false, no PIE event will be sent to your backend. */
24
24
  enablePie?: boolean;
25
- /** The voice and language you want to use for the prompts. This can either be defined by the ISO 639 locale and language code or by specifying a particular voice. Supported languages and voices are detailed [here](../../../voice-locales/) */
25
+ /** The voice and language you want to use for the prompts. This can either be defined by the ISO 639 locale and language code or by specifying a particular voice. Supported languages and voices are detailed [here](https://developers.sinch.com/docs/voice/api-reference/voice-locales/) */
26
26
  locale?: string;
27
27
  /** The text that will be spoken as a greeting. */
28
28
  greeting?: string;
@@ -30,6 +30,6 @@ export interface ConferenceCalloutRequest {
30
30
  mohClass?: MusicOnHold;
31
31
  /** Used to input custom data. */
32
32
  custom?: string;
33
- /** can be either “pstn” for PSTN endpoint or “mxp” for data (app or web) clients. */
34
- domain?: string;
33
+ /** @see Domain */
34
+ domain?: Domain;
35
35
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Options to control how DTMF signals are used by the participant in the conference. For information on how to use this feature, read more [here](../../conference-dtmf).
2
+ * Options to control how DTMF signals are used by the participant in the conference. For information on how to use this feature, read more [here](https://developers.sinch.com/docs/voice/api-reference/conference-dtmf).
3
3
  */
4
4
  export interface ConferenceDtmfOptions {
5
5
  /** Determines what DTMF mode the participant will use in the call. */
6
- mode?: 'ignore' | 'forward' | 'detect';
6
+ mode?: 'ignore' | 'forward' | 'detect' | string;
7
7
  /** The maximum number of accepted digits before sending the collected input via a PIE callback. The default value is `1`. If the value is greater than `1`, the PIE callback is triggered by one of the three following events: - No additional digit is entered before the `timeoutMills` timeout period has elapsed. - The `#` character is entered. - The maximum number of digits has been entered. */
8
8
  maxDigits?: number;
9
9
  /** The number of milliseconds that the system will wait between entered digits before triggering the PIE callback. The default value is `3000`. */
@@ -1,22 +1,22 @@
1
- import { Destination } from '../destination';
1
+ import { CalloutDestination } from '../destination';
2
2
  /**
3
3
  * The custom callout, the server initiates a call from the servers that can be controlled by specifying how the call should progress at each call event.
4
4
  */
5
5
  export interface CustomCalloutRequest {
6
6
  /** The number that will be displayed as the incoming caller, to set your own CLI, you may use your verified number or your Dashboard virtual number, it must be in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format. */
7
7
  cli?: string;
8
- /** @see Destination */
9
- destination?: Destination;
8
+ /** The type of device and number or endpoint to call. */
9
+ destination?: CalloutDestination;
10
10
  /** When the destination picks up, this DTMF tones will be played to the callee. Valid characters in the string are "0"-"9", "#", and "w". A "w" will render a 500 ms pause. For example, "ww1234#w#" will render a 1s pause, the DTMF tones "1", "2", "3", "4" and "#" followed by a 0.5s pause and finally the DTMF tone for "#". This can be used if the callout destination for instance require a conference PIN code or an extension to be entered. */
11
11
  dtmf?: string;
12
12
  /** Can be used to input custom data. */
13
13
  custom?: string;
14
14
  /** The maximum amount of time in seconds that the call will last. */
15
15
  maxDuration?: number;
16
- /** You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. If inline ICE SVAML is passed, exclude *cli* and *destination* properties from the *customCallout* request body. Example: ```"{"action":{"name":"connectPstn","number":"46000000001","maxDuration":90}}"``` */
16
+ /** You can use inline [SVAML](https://developers.sinch.com/docs/voice/api-reference/svaml/) to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. If inline ICE SVAML is passed, exclude *cli* and *destination* properties from the *customCallout* request body. Example: ```"{"action":{"name":"connectPstn","number":"46000000001","maxDuration":90}}"``` */
17
17
  ice?: string;
18
- /** You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. Example: ```"{"action": {"name": "RunMenu","locale": "en-US","menus": [{"id": "main","mainPrompt": "#tts[ Welcome to the main menu. Press 1 for a callback or 2 for a cancel</speak>]","timeoutMills": 5000,"options": [ {"dtmf": "1","action": "return(callback)"}, {"dtmf": "2","action": "return(cancel)"}]}]}}"``` */
18
+ /** You can use inline [SVAML](https://developers.sinch.com/docs/voice/api-reference/svaml/) to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. Example: ```"{"action": {"name": "RunMenu","locale": "en-US","menus": [{"id": "main","mainPrompt": "#tts[ Welcome to the main menu. Press 1 for a callback or 2 for a cancel</speak>]","timeoutMills": 5000,"options": [ {"dtmf": "1","action": "return(callback)"}, {"dtmf": "2","action": "return(cancel)"}]}]}}"``` */
19
19
  ace?: string;
20
- /** <b>Note:</b> PIE callbacks are not available for DATA Calls; only PSTN and SIP calls. You can use inline SVAML to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. A PIE event will contain a value chosen from an IVR choice. Usually a PIE event wil contain a URL to a callback sever that will receive the choice and be able to parse it. This could result in further SVAML or some other application logic function. Example: ```"https://your-application-server-host/application"``` */
20
+ /** <b>Note:</b> PIE callbacks are not available for DATA Calls; only PSTN and SIP calls. You can use inline [SVAML](https://developers.sinch.com/docs/voice/api-reference/svaml/) to replace a callback URL when using custom callouts. Ensure that the JSON object is escaped correctly. A PIE event will contain a value chosen from an IVR choice. Usually a PIE event wil contain a URL to a callback sever that will receive the choice and be able to parse it. This could result in further SVAML or some other application logic function. Example: ```"https://your-application-server-host/application"``` */
21
21
  pie?: string;
22
22
  }
@@ -1,9 +1,57 @@
1
+ /**
2
+ * Known destination from event (ICE, DICE)
3
+ */
4
+ export type Destination = DestinationDid | DestinationMxp | DestinationPstn | DestinationSip;
5
+ /**
6
+ * Known callout destination (TTS, Conference, Custom)
7
+ */
8
+ export type CalloutDestination = DestinationMxp | DestinationPstn | DestinationSip;
9
+ /**
10
+ * An object containing information about the participant (caller or callee) of the call.
11
+ */
12
+ export type Participant = Destination;
13
+ /**
14
+ * The type of device and phone number called.
15
+ */
16
+ export interface DestinationDid {
17
+ /** Type `did` for Direct Inward Dialling */
18
+ type: 'did' | 'Did' | string;
19
+ /** Number that the caller has called */
20
+ endpoint: string;
21
+ }
22
+ /**
23
+ * The type of device and number or endpoint to call.
24
+ */
25
+ export interface DestinationMxp {
26
+ /** Type `userName` used for data endpoints. */
27
+ type: 'username' | 'Username' | string;
28
+ /** For type `userName` the value is the username for a data endpoint. */
29
+ endpoint: string;
30
+ }
31
+ /**
32
+ * The type of device and number or endpoint to call.
33
+ */
34
+ export interface DestinationPstn {
35
+ /** Type `number` used for PSTN endpoints. */
36
+ type: 'number' | 'Number' | string;
37
+ /** If the type is `number` the value of the endpoint is a phone number. */
38
+ endpoint: string;
39
+ }
1
40
  /**
2
41
  * The type of device and number or endpoint to call.
3
42
  */
4
- export interface Destination {
5
- /** Can be of type `number` for PSTN endpoints or of type `username` for data endpoints. */
6
- type: 'number' | 'username';
7
- /** If the type is `number` the value of the endpoint is a phone number. If the type is `username` the value is the username for a data endpoint. */
43
+ export interface DestinationSip {
44
+ /** Type `sip` for SIP infrastructures. */
45
+ type: 'sip' | 'Sip' | string;
46
+ /** For type `sip` the value is the SIP address for a SIP endpoint. */
47
+ endpoint: string;
48
+ }
49
+ /**
50
+ * Specifies where to route the Stream call.
51
+ */
52
+ export interface DestinationStream {
53
+ /** This attribute defines the streaming protocol - currently only Websocket is supported. */
54
+ type: 'websocket' | 'Websocket' | string;
55
+ /** The Stream/Websocket server address. */
8
56
  endpoint: string;
9
57
  }
@@ -1 +1 @@
1
- export type { Destination } from './destination';
1
+ export type { CalloutDestination, Destination, Participant, DestinationDid, DestinationMxp, DestinationPstn, DestinationSip, DestinationStream, } from './destination';
@@ -1,4 +1,21 @@
1
- export type ResultEnum = 'N/A' | 'ANSWERED' | 'BUSY' | 'NOANSWER' | 'FAILED';
2
- export type ReasonEnum = 'N/A' | 'TIMEOUT' | 'CALLERHANGUP' | 'CALLEEHANGUP' | 'BLOCKED' | 'NOCREDITPARTNER' | 'MANAGERHANGUP' | 'CANCEL' | 'GENERALERROR' | 'INVALIDSVAMLACTION';
3
- export type TtsVoice = 'arb' | 'arb/female' | 'Zeina' | 'az-AZ' | 'az-AZ/female' | 'az-AZ/male' | 'Banu' | 'Babek' | 'ca-ES' | 'ca-ES/female' | 'Arlet' | 'zh-HK' | 'zh-HK/female' | 'zh-HK/male' | 'HiuGaai' | 'HiuMaan' | 'WanLung' | 'cmn-CN' | 'cmn-CN/female' | 'Zhiyu' | 'hr-HR' | 'hr-HR/female' | 'hr-HR/male' | 'Gabrijela' | 'Srecko' | 'cs-CZ' | 'cs-CZ/female' | 'cs-CZ/male' | 'Vlasta' | 'Antonin' | 'da-DK' | 'da-DK/female' | 'da-DK/male' | 'Naja' | 'Mads' | 'nl-NL' | 'nl-NL/female' | 'nl-NL/male' | 'Lotte' | 'Ruben' | 'en-AU' | 'en-AU/female' | 'en-AU/male' | 'Nicole' | 'Olivia' | 'Russell' | 'en-GB' | 'en-GB/female' | 'en-GB/male' | 'Amy' | 'Emma' | 'Brian' | 'Arthur' | 'en-IN' | 'en-IN/female' | 'Aditi' | 'Raveena' | 'Kajal' | 'en-NZ' | 'en-NZ/female' | 'Aria' | 'en-ZA' | 'en-ZA/female' | 'Ayanda' | 'en-US' | 'en-US/female' | 'en-US/male' | 'Ivy' | 'Joanna' | 'Kendra' | 'Kimberly' | 'Salli' | 'Joey' | 'Justin' | 'Kevin' | 'Matthew' | 'en-GB-WLS' | 'en-GB-WLS/male' | 'Geraint' | 'et-EE' | 'et-EE/female' | 'et-EE/male' | 'Anu' | 'Kert' | 'fil-PH' | 'fil-PH/female' | 'fil-PH/male' | 'Angelo' | 'Blessica' | 'fi-FI' | 'fi-FI/female' | 'Suvi' | 'fr-FR' | 'fr-FR/female' | 'fr-FR/male' | 'Céline' | 'Celine' | 'Léa' | 'Mathieu' | 'fr-CA' | 'fr-CA/female' | 'fr-CA/male' | 'Chantal' | 'Gabrielle' | 'Liam' | 'ka-GE' | 'ka-GE/female' | 'ka-GE/male' | 'Eka' | 'Giorgi' | 'de-DE' | 'de-DE/female' | 'de-DE/male' | 'Marlene' | 'Vicki' | 'Hans' | 'Daniel' | 'de-AT' | 'de-AT/female' | 'Hannah' | 'el-GR' | 'el-GR/female' | 'el-GR/male' | 'Athina' | 'Nestoras' | 'hi-IN' | 'hi-IN/female' | 'Aditi' | 'Kajal' | 'hu-HU' | 'hu-HU/female' | 'hu-HU/male' | 'Noemi' | 'Tamas' | 'is-IS' | 'is-IS/female' | 'is-IS/male' | 'Dóra' | 'Dora' | 'Karl' | 'id-ID' | 'id-ID/female' | 'id-ID/male' | 'Ardi' | 'Gadis' | 'it-IT' | 'it-IT/female' | 'it-IT/male' | 'Carla' | 'Bianca' | 'Giorgio' | 'ja-JP' | 'ja-JP/female' | 'ja-JP/male' | 'Mizuki' | 'Takumi' | 'ko-KR' | 'ko-KR/female' | 'Seoyeon' | 'mt-MT' | 'mt-MT/female' | 'mt-MT/male' | 'Grace' | 'Joseph' | 'ms-MY' | 'ms-MY/female' | 'ms-MY/male' | 'Osman' | 'Yasmin' | 'nb-NO' | 'nb-NO/female' | 'Liv' | 'lv-LV' | 'lv-LV/female' | 'lv-LV/male' | 'Everita' | 'Nils' | 'lt-LT' | 'lt-LT/female' | 'lt-LT/male' | 'Ona' | 'Leonas' | 'pl-PL' | 'pl-PL/female' | 'pl-PL/male' | 'Ewa' | 'Maja' | 'Jacek' | 'Jan' | 'pt-BR' | 'pt-BR/female' | 'pt-BR/male' | 'Camila' | 'Vitória' | 'Vitoria' | 'Ricardo' | 'pt-PT' | 'pt-PT/female' | 'pt-PT/male' | 'Inês' | 'Ines' | 'Cristiano' | 'ro-RO' | 'ro-RO/female' | 'Carmen' | 'ru-RU' | 'ru-RU/female' | 'ru-RU/male' | 'Tatyana' | 'Maxim' | 'es-ES' | 'es-ES/female' | 'es-ES/male' | 'Conchita' | 'Lucia' | 'Enrique' | 'es-MX' | 'es-MX/female' | 'Mia' | 'es-US' | 'es-US/female' | 'es-US/male' | 'Lupe' | 'Penélope' | 'Penelope' | 'Miguel' | 'Pedro' | 'sk-SK' | 'sk-SK/female' | 'sk-SK/male' | 'Viktoria' | 'Lukas' | 'sl-SI' | 'sl-SI/female' | 'sl-SI/male' | 'Petra' | 'Rok' | 'sv-SE' | 'sv-SE/female' | 'Astrid' | 'th-TH' | 'th-TH/female' | 'th-TH/male' | 'Achara' | 'Niwat' | 'Premwadee' | 'tr-TR' | 'tr-TR/male' | 'Filiz' | 'uk-UA' | 'uk-UA/female' | 'uk-UA/male' | 'Polina' | 'Ostap' | 'uz-UZ' | 'uz-UZ/female' | 'uz-UZ/male' | 'Madina' | 'Sardor' | 'vi-VN' | 'vi-VN/female' | 'vi-VN/male' | 'HoaiMy' | 'NamMinh' | 'cy-GB' | 'cy-GB/female' | 'Gwyneth';
4
- export type MusicOnHold = 'ring' | 'music1' | 'music2' | 'music3';
1
+ /**
2
+ * Contains the result of a call.
3
+ */
4
+ export type ResultEnum = 'N/A' | 'ANSWERED' | 'BUSY' | 'NOANSWER' | 'FAILED' | string;
5
+ /**
6
+ * Contains the reason why a call ended.
7
+ */
8
+ export type ReasonEnum = 'N/A' | 'TIMEOUT' | 'CALLERHANGUP' | 'CALLEEHANGUP' | 'BLOCKED' | 'NOCREDITPARTNER' | 'MANAGERHANGUP' | 'CANCEL' | 'GENERALERROR' | 'INVALIDSVAMLACTION' | string;
9
+ export type TtsVoice = 'arb' | 'arb/female' | 'Zeina' | 'az-AZ' | 'az-AZ/female' | 'az-AZ/male' | 'Banu' | 'Babek' | 'ca-ES' | 'ca-ES/female' | 'Arlet' | 'zh-HK' | 'zh-HK/female' | 'zh-HK/male' | 'HiuGaai' | 'HiuMaan' | 'WanLung' | 'cmn-CN' | 'cmn-CN/female' | 'Zhiyu' | 'hr-HR' | 'hr-HR/female' | 'hr-HR/male' | 'Gabrijela' | 'Srecko' | 'cs-CZ' | 'cs-CZ/female' | 'cs-CZ/male' | 'Vlasta' | 'Antonin' | 'da-DK' | 'da-DK/female' | 'da-DK/male' | 'Naja' | 'Mads' | 'nl-NL' | 'nl-NL/female' | 'nl-NL/male' | 'Lotte' | 'Ruben' | 'en-AU' | 'en-AU/female' | 'en-AU/male' | 'Nicole' | 'Olivia' | 'Russell' | 'en-GB' | 'en-GB/female' | 'en-GB/male' | 'Amy' | 'Emma' | 'Brian' | 'Arthur' | 'en-IN' | 'en-IN/female' | 'Aditi' | 'Raveena' | 'Kajal' | 'en-NZ' | 'en-NZ/female' | 'Aria' | 'en-ZA' | 'en-ZA/female' | 'Ayanda' | 'en-US' | 'en-US/female' | 'en-US/male' | 'Ivy' | 'Joanna' | 'Kendra' | 'Kimberly' | 'Salli' | 'Joey' | 'Justin' | 'Kevin' | 'Matthew' | 'en-GB-WLS' | 'en-GB-WLS/male' | 'Geraint' | 'et-EE' | 'et-EE/female' | 'et-EE/male' | 'Anu' | 'Kert' | 'fil-PH' | 'fil-PH/female' | 'fil-PH/male' | 'Angelo' | 'Blessica' | 'fi-FI' | 'fi-FI/female' | 'Suvi' | 'fr-FR' | 'fr-FR/female' | 'fr-FR/male' | 'Céline' | 'Celine' | 'Léa' | 'Mathieu' | 'fr-CA' | 'fr-CA/female' | 'fr-CA/male' | 'Chantal' | 'Gabrielle' | 'Liam' | 'ka-GE' | 'ka-GE/female' | 'ka-GE/male' | 'Eka' | 'Giorgi' | 'de-DE' | 'de-DE/female' | 'de-DE/male' | 'Marlene' | 'Vicki' | 'Hans' | 'Daniel' | 'de-AT' | 'de-AT/female' | 'Hannah' | 'el-GR' | 'el-GR/female' | 'el-GR/male' | 'Athina' | 'Nestoras' | 'hi-IN' | 'hi-IN/female' | 'Aditi' | 'Kajal' | 'hu-HU' | 'hu-HU/female' | 'hu-HU/male' | 'Noemi' | 'Tamas' | 'is-IS' | 'is-IS/female' | 'is-IS/male' | 'Dóra' | 'Dora' | 'Karl' | 'id-ID' | 'id-ID/female' | 'id-ID/male' | 'Ardi' | 'Gadis' | 'it-IT' | 'it-IT/female' | 'it-IT/male' | 'Carla' | 'Bianca' | 'Giorgio' | 'ja-JP' | 'ja-JP/female' | 'ja-JP/male' | 'Mizuki' | 'Takumi' | 'ko-KR' | 'ko-KR/female' | 'Seoyeon' | 'mt-MT' | 'mt-MT/female' | 'mt-MT/male' | 'Grace' | 'Joseph' | 'ms-MY' | 'ms-MY/female' | 'ms-MY/male' | 'Osman' | 'Yasmin' | 'nb-NO' | 'nb-NO/female' | 'Liv' | 'lv-LV' | 'lv-LV/female' | 'lv-LV/male' | 'Everita' | 'Nils' | 'lt-LT' | 'lt-LT/female' | 'lt-LT/male' | 'Ona' | 'Leonas' | 'pl-PL' | 'pl-PL/female' | 'pl-PL/male' | 'Ewa' | 'Maja' | 'Jacek' | 'Jan' | 'pt-BR' | 'pt-BR/female' | 'pt-BR/male' | 'Camila' | 'Vitória' | 'Vitoria' | 'Ricardo' | 'pt-PT' | 'pt-PT/female' | 'pt-PT/male' | 'Inês' | 'Ines' | 'Cristiano' | 'ro-RO' | 'ro-RO/female' | 'Carmen' | 'ru-RU' | 'ru-RU/female' | 'ru-RU/male' | 'Tatyana' | 'Maxim' | 'es-ES' | 'es-ES/female' | 'es-ES/male' | 'Conchita' | 'Lucia' | 'Enrique' | 'es-MX' | 'es-MX/female' | 'Mia' | 'es-US' | 'es-US/female' | 'es-US/male' | 'Lupe' | 'Penélope' | 'Penelope' | 'Miguel' | 'Pedro' | 'sk-SK' | 'sk-SK/female' | 'sk-SK/male' | 'Viktoria' | 'Lukas' | 'sl-SI' | 'sl-SI/female' | 'sl-SI/male' | 'Petra' | 'Rok' | 'sv-SE' | 'sv-SE/female' | 'Astrid' | 'th-TH' | 'th-TH/female' | 'th-TH/male' | 'Achara' | 'Niwat' | 'Premwadee' | 'tr-TR' | 'tr-TR/male' | 'Filiz' | 'uk-UA' | 'uk-UA/female' | 'uk-UA/male' | 'Polina' | 'Ostap' | 'uz-UZ' | 'uz-UZ/female' | 'uz-UZ/male' | 'Madina' | 'Sardor' | 'vi-VN' | 'vi-VN/female' | 'vi-VN/male' | 'HoaiMy' | 'NamMinh' | 'cy-GB' | 'cy-GB/female' | 'Gwyneth' | string;
10
+ /**
11
+ * Available Music On Hold values
12
+ */
13
+ export type MusicOnHold = 'ring' | 'music1' | 'music2' | 'music3' | string;
14
+ /**
15
+ * Valid values are `voice` and `sms`
16
+ */
17
+ export type Capability = 'voice' | 'sms' | string;
18
+ /**
19
+ * Can be either `pstn` for PSTN endpoint or `mxp` for data (app or web) clients.
20
+ */
21
+ export type Domain = 'pstn' | 'mxp' | 'PSTN' | 'MXP';
@@ -1,19 +1,19 @@
1
1
  import { ReasonEnum, ResultEnum } from '../enums';
2
2
  import { VoicePrice } from '../voice-price';
3
- import { Participant } from '../participant';
3
+ import { Participant } from '../destination';
4
4
  export interface GetCallInformation {
5
5
  /** Contains the caller information. */
6
6
  from?: Participant;
7
7
  /** Contains the callee information. */
8
8
  to?: Participant;
9
9
  /** Must be `pstn` for PSTN. */
10
- domain?: 'pstn';
10
+ domain?: 'pstn' | string;
11
11
  /** The unique identifier of the call. */
12
12
  callId?: string;
13
13
  /** The duration of the call in seconds. */
14
14
  duration?: number;
15
15
  /** The status of the call. Either `ONGOING` or `FINAL` */
16
- status?: 'ONGOING' | 'FINAL';
16
+ status?: 'ONGOING' | 'FINAL' | string;
17
17
  /** Contains the result of a call. */
18
18
  result?: ResultEnum;
19
19
  /** Contains the reason why a call ended. */
@@ -2,6 +2,9 @@ export interface GetCallbacks {
2
2
  /** Gets primary and if configured fallback callback URLs */
3
3
  url?: GetCallbacksUrl;
4
4
  }
5
+ /**
6
+ * Contains primary and/or fallback callback URLs
7
+ */
5
8
  export interface GetCallbacksUrl {
6
9
  /** Your primary callback URL */
7
10
  primary?: string;
@@ -2,7 +2,7 @@
2
2
  * The response returns information about the participants in the conference.
3
3
  */
4
4
  export interface GetConferenceInfoResponse {
5
- /** List of GetConferenceInfoResponseParticipantsInners */
5
+ /** List of ParticipantDetails */
6
6
  participants?: ParticipantDetails[];
7
7
  }
8
8
  export interface ParticipantDetails {
@@ -1,4 +1,4 @@
1
- import { ConnectConfProps, ConnectMxpProps, ConnectPstnProps, ConnectSipProps, ParkProps, RunMenuProps, StartRecordingOptions, SvamlActionConnectConf, SvamlActionConnectMxp, SvamlActionConnectPstn, SvamlActionConnectSip, SvamlActionContinue, SvamlActionHangup, SvamlActionPark, SvamlActionRunMenu, SvamlInstructionAnswer, SvamlInstructionPlayFiles, SvamlInstructionSay, SvamlInstructionSendDtmf, SvamlInstructionSetCookie, SvamlInstructionStartRecording, SvamlInstructionStopRecording } from './mod-svaml';
1
+ import { ConnectConfProps, ConnectMxpProps, ConnectPstnProps, ConnectSipProps, ConnectStreamProps, ParkProps, RunMenuProps, StartRecordingOptions, SvamlActionConnectConf, SvamlActionConnectMxp, SvamlActionConnectPstn, SvamlActionConnectSip, SvamlActionConnectStream, SvamlActionContinue, SvamlActionHangup, SvamlActionPark, SvamlActionRunMenu, SvamlInstructionAnswer, SvamlInstructionPlayFiles, SvamlInstructionSay, SvamlInstructionSendDtmf, SvamlInstructionSetCookie, SvamlInstructionStartRecording, SvamlInstructionStopRecording } from './mod-svaml';
2
2
  import { AceResponse, AceSvamlAction, AceSvamlInstruction, CallbackResponse, IceResponse, IceSvamlAction, IceSvamlInstruction, PieResponse, PieSvamlAction, PieSvamlInstruction } from './mod-callbacks';
3
3
  import { TtsVoice } from './enums';
4
4
  declare class SvamletBuilder<A, I, R extends CallbackResponse<A, I>> {
@@ -24,6 +24,7 @@ export declare const svamlActionHelper: {
24
24
  buildConnectMxp: (connectMxpProps: ConnectMxpProps) => SvamlActionConnectMxp;
25
25
  buildConnectPstn: (connectPstnProps: ConnectPstnProps) => SvamlActionConnectPstn;
26
26
  buildConnectSip: (connectSipProps: ConnectSipProps) => SvamlActionConnectSip;
27
+ buildConnectStream: (connectStreamProps: ConnectStreamProps) => SvamlActionConnectStream;
27
28
  buildContinue: () => SvamlActionContinue;
28
29
  buildHangup: () => SvamlActionHangup;
29
30
  buildPark: (parkProps: ParkProps) => SvamlActionPark;
@@ -56,6 +57,7 @@ export declare const iceActionHelper: {
56
57
  connectMxp: (connectMxpProps: ConnectMxpProps) => SvamlActionConnectMxp;
57
58
  connectConf: (connectConfProps: ConnectConfProps) => SvamlActionConnectConf;
58
59
  connectSip: (connectSipProps: ConnectSipProps) => SvamlActionConnectSip;
60
+ connectStream: (connectStreamProps: ConnectStreamProps) => SvamlActionConnectStream;
59
61
  runMenu: (runMenuProps: RunMenuProps) => SvamlActionRunMenu;
60
62
  park: (parkProps: ParkProps) => SvamlActionPark;
61
63
  };
@@ -65,12 +67,14 @@ export declare const iceInstructionHelper: {
65
67
  sendDtmf: (dtmfValue: string) => SvamlInstructionSendDtmf;
66
68
  setCookie: (name: string, value: string) => SvamlInstructionSetCookie;
67
69
  startRecording: (startRecordingOptions: StartRecordingOptions) => SvamlInstructionStartRecording;
70
+ stopRecording: () => SvamlInstructionStopRecording;
68
71
  answer: () => SvamlInstructionAnswer;
69
72
  };
70
73
  export declare const pieActionHelper: {
71
74
  hangup: () => SvamlActionHangup;
72
75
  continue: () => SvamlActionContinue;
73
76
  connectConf: (connectConfProps: ConnectConfProps) => SvamlActionConnectConf;
77
+ connectPstn: (connectPstnProps: ConnectPstnProps) => SvamlActionConnectPstn;
74
78
  connectSip: (connectSipProps: ConnectSipProps) => SvamlActionConnectSip;
75
79
  runMenu: (runMenuProps: RunMenuProps) => SvamlActionRunMenu;
76
80
  };
@@ -79,6 +79,12 @@ exports.svamlActionHelper = {
79
79
  ...connectSipProps,
80
80
  };
81
81
  },
82
+ buildConnectStream: (connectStreamProps) => {
83
+ return {
84
+ name: 'connectStream',
85
+ ...connectStreamProps,
86
+ };
87
+ },
82
88
  buildContinue: () => {
83
89
  return {
84
90
  name: 'continue',
@@ -172,6 +178,7 @@ exports.iceActionHelper = {
172
178
  connectMxp: exports.svamlActionHelper.buildConnectMxp,
173
179
  connectConf: exports.svamlActionHelper.buildConnectConf,
174
180
  connectSip: exports.svamlActionHelper.buildConnectSip,
181
+ connectStream: exports.svamlActionHelper.buildConnectStream,
175
182
  runMenu: exports.svamlActionHelper.buildRunMenu,
176
183
  park: exports.svamlActionHelper.buildPark,
177
184
  };
@@ -181,12 +188,14 @@ exports.iceInstructionHelper = {
181
188
  sendDtmf: exports.svamlInstructionHelper.buildSendDtmf,
182
189
  setCookie: exports.svamlInstructionHelper.buildSetCookie,
183
190
  startRecording: exports.svamlInstructionHelper.buildStartRecording,
191
+ stopRecording: exports.svamlInstructionHelper.buildStopRecording,
184
192
  answer: exports.svamlInstructionHelper.buildAnswer,
185
193
  };
186
194
  exports.pieActionHelper = {
187
195
  hangup: exports.svamlActionHelper.buildHangup,
188
196
  continue: exports.svamlActionHelper.buildContinue,
189
197
  connectConf: exports.svamlActionHelper.buildConnectConf,
198
+ connectPstn: exports.svamlActionHelper.buildConnectPstn,
190
199
  connectSip: exports.svamlActionHelper.buildConnectSip,
191
200
  runMenu: exports.svamlActionHelper.buildRunMenu,
192
201
  };
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v1/helper.ts"],"names":[],"mappings":";;;AAmCA,MAAM,cAAc;IAApB;QAIE,cAAS,GAAG,CAAC,MAAS,EAAE,EAAE;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;QACF,mBAAc,GAAG,CAAC,WAAc,EAAE,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gBACvB,IAAI,CAAC,YAAY,GAAG,EAAE,C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AAM,EAAE,yBAAiB,CAAC,WAAW;IACrC,QAAQ,EAAE,yBAAiB,CAAC,aAAa;IACzC,WAAW,EAAE,yBAAiB,CAAC,gBAAgB;IAC/C,WAAW,EAAE,yBAAiB,CAAC,gBAAgB;IAC/C,UAAU,EAAE,yBAAiB,CAAC,eAAe;IAC7C,OAAO,EAAE,yBAAiB,CAAC,YAAY;CACxC,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,SAAS,EAAE,8BAAsB,CAAC,cAAc;IAChD,GAAG,EAAE,8BAAsB,CAAC,QAAQ;IACpC,QAAQ,EAAE,8BAAsB,CAAC,aAAa;IAC9C,SAAS,EAAE,8BAAsB,CAAC,cAAc;IAChD,cAAc,EAAE,8BAAsB,CAAC,mBAAmB;IAC1D,aAAa,EAAE,8BAAsB,CAAC,kBAAkB;CACzD,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './answering-machine-detection';
1
2
  export * from './call-header';
2
3
  export * from './conference-callout-request';
3
4
  export * from './conference-dtmf-options';
@@ -11,7 +12,6 @@ export * from './callout-response';
11
12
  export * from './get-conference-info-response';
12
13
  export * from './list-numbers-response';
13
14
  export * from './query-number-response';
14
- export * from './participant';
15
15
  export * from './manage-conference-participant-request';
16
16
  export * from './menu';
17
17
  export * from './option';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./answering-machine-detection"), exports);
17
18
  __exportStar(require("./call-header"), exports);
18
19
  __exportStar(require("./conference-callout-request"), exports);
19
20
  __exportStar(require("./conference-dtmf-options"), exports);
@@ -27,7 +28,6 @@ __exportStar(require("./callout-response"), exports);
27
28
  __exportStar(require("./get-conference-info-response"), exports);
28
29
  __exportStar(require("./list-numbers-response"), exports);
29
30
  __exportStar(require("./query-number-response"), exports);
30
- __exportStar(require("./participant"), exports);
31
31
  __exportStar(require("./manage-conference-participant-request"), exports);
32
32
  __exportStar(require("./menu"), exports);
33
33
  __exportStar(require("./option"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,yDAAuC;AACvC,kDAAgC;AAChC,qDAAmC;AACnC,iEAA+C;AAC/C,0DAAwC;AACxC,0DAAwC;AACxC,gDAA8B;AAC9B,0EAAwD;AACxD,yCAAuB;AACvB,2CAAyB;AACzB,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,YAAY;AACZ,kDAAgC;AAChC,QAAQ;AACR,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,gDAA8B;AAC9B,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,yDAAuC;AACvC,kDAAgC;AAChC,qDAAmC;AACnC,iEAA+C;AAC/C,0DAAwC;AACxC,0DAAwC;AACxC,0EAAwD;AACxD,yCAAuB;AACvB,2CAAyB;AACzB,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,YAAY;AACZ,kDAAgC;AAChC,QAAQ;AACR,8CAA4B"}
@@ -1,3 +1,4 @@
1
+ import { Capability } from '../enums';
1
2
  export interface ListNumbersResponse {
2
3
  /** The object type. Will always be list of numbers, associated application keys and capabilities */
3
4
  numbers?: NumberInformation[];
@@ -8,5 +9,5 @@ export interface NumberInformation {
8
9
  /** Indicates the application where the number(s) will be assigned. If no number is assigned the applicationkey will not be returned. */
9
10
  applicationkey?: string;
10
11
  /** indicates the DID capability that needs to be assigned to the chosen application. Valid values are 'voice' and 'sms'. Please note that the DID needs to support the selected capability. */
11
- capability?: 'voice' | 'sms';
12
+ capability?: Capability;
12
13
  }
@@ -4,7 +4,7 @@ import { MusicOnHold } from '../enums';
4
4
  */
5
5
  export interface ManageConferenceParticipantRequest {
6
6
  /** Action to apply on conference participant. */
7
- command: 'mute' | 'unmute' | 'onhold' | 'resume';
7
+ command: 'mute' | 'unmute' | 'onhold' | 'resume' | string;
8
8
  /** Means "music on hold". If this optional parameter is included, plays music to the first participant in a conference while they're alone and waiting for other participants to join. If `moh` isn't specified, the user will only hear silence while alone in the conference. This property is only available to use with the `onhold` command. */
9
9
  moh?: MusicOnHold;
10
10
  }
@@ -5,13 +5,13 @@ import { Option } from '../option';
5
5
  export interface Menu {
6
6
  /** The identifier of a menu. One menu must have the ID value of `main`. */
7
7
  id: string;
8
- /** The main voice prompt that the user hears when the menu starts the first time. You can use text-to-speech using the `#tts[]` element, SSML commands using the `#ssml[]` element, pre-recorded messages, or URL references to external media resources. You can use multiple prompts by separating each prompt with a semi-colon (`;`). If multiple prompts are used, they will be played in the order they are specified, without any pauses between playback. For external media resources, you can use an `#href[...]` or directly specify the full URL. Check the [Supported audio formats](/docs/voice/api-reference/supported-audio-formats) section for more information. */
8
+ /** The main voice prompt that the user hears when the menu starts the first time. You can use text-to-speech using the `#tts[]` element, SSML commands using the `#ssml[]` element, pre-recorded messages, or URL references to external media resources. You can use multiple prompts by separating each prompt with a semi-colon (`;`). If multiple prompts are used, they will be played in the order they are specified, without any pauses between playback. For external media resources, you can use an `#href[...]` or directly specify the full URL. Check the [Supported audio formats](https://developers.sinch.com/docs/voice/api-reference/supported-audio-formats) section for more information. */
9
9
  mainPrompt?: string;
10
- /** The prompt that will be played if valid or expected DTMF digits are not entered. You can use text-to-speech using the `#tts[]` element, SSML commands using the `#ssml[]` element, pre-recorded messages, or URL references to external media resources. You can use multiple prompts by separating each prompt with a semi-colon (`;`). If multiple prompts are used, they will be played in the order they are specified, without any pauses between playback. For external media resources, you can use an `#href[...]` or directly specify the full URL. Check the [Supported audio formats](/docs/voice/api-reference/supported-audio-formats) section for more information. */
10
+ /** The prompt that will be played if valid or expected DTMF digits are not entered. You can use text-to-speech using the `#tts[]` element, SSML commands using the `#ssml[]` element, pre-recorded messages, or URL references to external media resources. You can use multiple prompts by separating each prompt with a semi-colon (`;`). If multiple prompts are used, they will be played in the order they are specified, without any pauses between playback. For external media resources, you can use an `#href[...]` or directly specify the full URL. Check the [Supported audio formats](https://developers.sinch.com/docs/voice/api-reference/supported-audio-formats) section for more information. */
11
11
  repeatPrompt?: string;
12
12
  /** The number of times that the `repeatPrompt` is played. */
13
13
  repeats?: number;
14
- /** The maximum number of digits expected for a user to enter. Once these digits are collected, a [Prompt Input Event (PIE)](../../voice/tag/Callbacks/#tag/Callbacks/operation/pie) is triggered containing these digits. */
14
+ /** The maximum number of digits expected for a user to enter. Once these digits are collected, a [Prompt Input Event (PIE)](https://developers.sinch.com/voice/tag/Callbacks/#tag/Callbacks/operation/pie) is triggered containing these digits. */
15
15
  maxDigits?: number;
16
16
  /** Determines silence for the purposes of collecting a DTMF or voice response in milliseconds. If the timeout is reached, the response is considered completed and will be submitted. */
17
17
  timeoutMills?: number;
@@ -1,3 +1,4 @@
1
+ import { AnsweringMachineDetection } from '../../answering-machine-detection';
1
2
  /**
2
3
  * The request body of an Answered Call Event.
3
4
  */
@@ -12,16 +13,8 @@ export interface AceRequest {
12
13
  version?: number;
13
14
  /** A string that can be used to pass custom information related to the call. */
14
15
  custom?: string;
15
- /** If [Answering Machine Detection](/docs/voice/api-reference/amd_v2) (AMD) is enabled, this object contains information about whether the call was answered by a machine. */
16
+ /** If [Answering Machine Detection](https://developers.sinch.com/docs/voice/api-reference/amd_v2) (AMD) is enabled, this object contains information about whether the call was answered by a machine. */
16
17
  amd?: AnsweringMachineDetection;
17
18
  /** The unique application key. You can find it in the Sinch [dashboard](https://dashboard.sinch.com/voice/apps). */
18
19
  applicationKey?: string;
19
20
  }
20
- export interface AnsweringMachineDetection {
21
- /** The determination by the system of who answered the call. */
22
- status?: string;
23
- /** The reason that the system used to determine who answered the call. */
24
- reason?: string;
25
- /** The length of the call. */
26
- duration?: number;
27
- }
@@ -1 +1 @@
1
- export type { AceRequest, AnsweringMachineDetection } from './ace-request';
1
+ export type { AceRequest } from './ace-request';
@@ -1,7 +1,7 @@
1
1
  import { CallHeader } from '../../call-header';
2
2
  import { VoicePrice } from '../../voice-price';
3
- import { Participant } from '../../participant';
4
- import { ReasonEnum, ResultEnum } from '../../enums';
3
+ import { ResultEnum } from '../../enums';
4
+ import { Destination } from '../../destination';
5
5
  /**
6
6
  * The request body of a Disconnected Call Event.
7
7
  */
@@ -13,7 +13,7 @@ export interface DiceRequest {
13
13
  /** The timestamp in UTC format. */
14
14
  timestamp?: Date;
15
15
  /** The reason the call was disconnected. */
16
- reason?: ReasonEnum;
16
+ reason?: DiceReasonEnum;
17
17
  /** The result of the call. */
18
18
  result?: ResultEnum;
19
19
  /** The current API version. */
@@ -24,14 +24,15 @@ export interface DiceRequest {
24
24
  debit?: VoicePrice;
25
25
  /** An object containing currency and rate per minute for the call. */
26
26
  userRate?: VoicePrice;
27
- /** @see Participant */
28
- to?: Participant;
27
+ /** An object containing information about the recipient of the call. */
28
+ to?: Destination;
29
29
  /** The duration of the call in seconds. */
30
30
  duration?: number;
31
31
  /** Information about the initiator of the call. */
32
32
  from?: string;
33
- /** If the call was initiated by a Sinch SDK client, call headers are the headers specified by the *caller* client. Read more about call headers [here](../../../call-headers/). */
33
+ /** If the call was initiated by a Sinch SDK client, call headers are the headers specified by the *caller* client. Read more about call headers [here](https://developers.sinch.com/call-headers/). */
34
34
  callHeaders?: CallHeader[];
35
35
  /** The unique application key. You can find it in the Sinch [dashboard](https://dashboard.sinch.com/voice/apps). */
36
36
  applicationKey?: string;
37
37
  }
38
+ export type DiceReasonEnum = 'N/A' | 'TIMEOUT' | 'CALLERHANGUP' | 'CALLEEHANGUP' | 'BLOCKED' | 'MANAGERHANGUP' | 'NOCREDITPARTNER' | 'GENERALERROR' | 'CANCEL' | 'USERNOTFOUND' | 'CALLBACKERROR' | string;
@@ -1 +1 @@
1
- export type { DiceRequest } from './dice-request';
1
+ export type { DiceRequest, DiceReasonEnum } from './dice-request';