@sinch/verification 1.1.0 → 1.2.1

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 (165) hide show
  1. package/README.md +22 -16
  2. package/dist/index.js +17 -7
  3. package/dist/index.js.map +1 -1
  4. package/dist/models/v1/enums.d.ts +0 -3
  5. package/dist/models/v1/helper.d.ts +113 -1
  6. package/dist/models/v1/helper.js +157 -0
  7. package/dist/models/v1/helper.js.map +1 -1
  8. package/dist/models/v1/identity/identity.d.ts +4 -4
  9. package/dist/models/v1/identity/index.d.ts +1 -1
  10. package/dist/models/v1/index.d.ts +13 -22
  11. package/dist/models/v1/index.js +24 -22
  12. package/dist/models/v1/index.js.map +1 -1
  13. package/dist/models/v1/{flashcall-request-event-response → mod-callbacks/flashcall-request-event-response}/flashcall-request-event-response.d.ts +6 -5
  14. package/dist/models/v1/mod-callbacks/flashcall-request-event-response/flashcall-request-event-response.js.map +1 -0
  15. package/dist/models/v1/mod-callbacks/flashcall-request-event-response/index.d.ts +1 -0
  16. package/dist/models/v1/mod-callbacks/flashcall-request-event-response/index.js.map +1 -0
  17. package/dist/models/v1/mod-callbacks/index.d.ts +8 -0
  18. package/dist/models/v1/mod-callbacks/index.js +28 -0
  19. package/dist/models/v1/mod-callbacks/index.js.map +1 -0
  20. package/dist/models/v1/mod-callbacks/phonecall-request-event-response/index.d.ts +1 -0
  21. package/dist/models/v1/mod-callbacks/phonecall-request-event-response/index.js.map +1 -0
  22. package/dist/models/v1/mod-callbacks/phonecall-request-event-response/phonecall-request-event-response.d.ts +24 -0
  23. package/dist/models/v1/{callout-request-event-response/callout-request-event-response.js → mod-callbacks/phonecall-request-event-response/phonecall-request-event-response.js} +1 -1
  24. package/dist/models/v1/mod-callbacks/phonecall-request-event-response/phonecall-request-event-response.js.map +1 -0
  25. package/dist/models/v1/mod-callbacks/sms-request-event-response/index.d.ts +1 -0
  26. package/dist/models/v1/mod-callbacks/sms-request-event-response/index.js.map +1 -0
  27. package/dist/models/v1/{sms-request-event-response → mod-callbacks/sms-request-event-response}/sms-request-event-response.d.ts +9 -6
  28. package/dist/models/v1/mod-callbacks/sms-request-event-response/sms-request-event-response.js.map +1 -0
  29. package/dist/models/v1/mod-callbacks/verification-callback-event.d.ts +3 -0
  30. package/dist/models/v1/mod-callbacks/verification-callback-event.js +3 -0
  31. package/dist/models/v1/mod-callbacks/verification-callback-event.js.map +1 -0
  32. package/dist/models/v1/mod-callbacks/verification-request-event/index.d.ts +1 -0
  33. package/dist/models/v1/mod-callbacks/verification-request-event/index.js.map +1 -0
  34. package/dist/models/v1/{verification-request-event → mod-callbacks/verification-request-event}/verification-request-event.d.ts +2 -2
  35. package/dist/models/v1/mod-callbacks/verification-request-event/verification-request-event.js.map +1 -0
  36. package/dist/models/v1/mod-callbacks/verification-request-event-response/index.js.map +1 -0
  37. package/dist/models/v1/mod-callbacks/verification-request-event-response/verification-request-event-response.d.ts +4 -0
  38. package/dist/models/v1/mod-callbacks/verification-request-event-response/verification-request-event-response.js.map +1 -0
  39. package/dist/models/v1/mod-callbacks/verification-result-event/index.js.map +1 -0
  40. package/dist/models/v1/{verification-result-event → mod-callbacks/verification-result-event}/verification-result-event.d.ts +2 -2
  41. package/dist/models/v1/mod-callbacks/verification-result-event/verification-result-event.js.map +1 -0
  42. package/dist/models/v1/mod-callbacks/verification-result-event-response/index.js.map +1 -0
  43. package/dist/models/v1/mod-callbacks/verification-result-event-response/verification-result-event-response.d.ts +4 -0
  44. package/dist/models/v1/mod-callbacks/verification-result-event-response/verification-result-event-response.js.map +1 -0
  45. package/dist/models/v1/phonecall-verification-report-response/index.d.ts +1 -0
  46. package/dist/models/v1/phonecall-verification-report-response/index.js.map +1 -0
  47. package/dist/models/v1/{callout-verification-report-response/callout-verification-report-response.d.ts → phonecall-verification-report-response/phonecall-verification-report-response.d.ts} +3 -1
  48. package/dist/models/v1/{callout-request-event-response-callout/callout-request-event-response-callout.js → phonecall-verification-report-response/phonecall-verification-report-response.js} +1 -1
  49. package/dist/models/v1/phonecall-verification-report-response/phonecall-verification-report-response.js.map +1 -0
  50. package/dist/models/v1/phonecall-verification-status-response/index.d.ts +1 -0
  51. package/dist/models/v1/phonecall-verification-status-response/index.js.map +1 -0
  52. package/dist/models/v1/{callout-verification-status-response/callout-verification-status-response.d.ts → phonecall-verification-status-response/phonecall-verification-status-response.d.ts} +3 -1
  53. package/dist/models/v1/phonecall-verification-status-response/phonecall-verification-status-response.js +3 -0
  54. package/dist/models/v1/phonecall-verification-status-response/phonecall-verification-status-response.js.map +1 -0
  55. package/dist/models/v1/requests/verification-status/verification-status-request-data.d.ts +1 -1
  56. package/dist/models/v1/requests/verifications/verifications-request-data.d.ts +22 -2
  57. package/dist/models/v1/sms-verification-report-response/index.d.ts +1 -1
  58. package/dist/models/v1/sms-verification-report-response/sms-verification-report-response.d.ts +3 -1
  59. package/dist/models/v1/sms-verification-status-response/index.d.ts +1 -1
  60. package/dist/models/v1/sms-verification-status-response/index.js +0 -15
  61. package/dist/models/v1/sms-verification-status-response/index.js.map +1 -1
  62. package/dist/models/v1/sms-verification-status-response/sms-verification-status-response.d.ts +5 -3
  63. package/dist/models/v1/start-data-verification-response/index.d.ts +1 -0
  64. package/dist/models/v1/start-data-verification-response/index.js.map +1 -0
  65. package/dist/models/v1/{start-seamless-verification-response/start-seamless-verification-response.d.ts → start-data-verification-response/start-data-verification-response.d.ts} +3 -1
  66. package/dist/models/v1/start-data-verification-response/start-data-verification-response.js +3 -0
  67. package/dist/models/v1/start-data-verification-response/start-data-verification-response.js.map +1 -0
  68. package/dist/models/v1/start-phonecall-verification-response/index.d.ts +1 -0
  69. package/dist/models/v1/start-phonecall-verification-response/index.js.map +1 -0
  70. package/dist/models/v1/{start-callout-verification-response/start-callout-verification-response.d.ts → start-phonecall-verification-response/start-phonecall-verification-response.d.ts} +3 -1
  71. package/dist/models/v1/start-phonecall-verification-response/start-phonecall-verification-response.js +3 -0
  72. package/dist/models/v1/start-phonecall-verification-response/start-phonecall-verification-response.js.map +1 -0
  73. package/dist/models/v1/start-verification-request/index.d.ts +1 -1
  74. package/dist/models/v1/start-verification-request/start-verification-request.d.ts +22 -5
  75. package/dist/models/v1/verification-price-sms/verification-price-sms.d.ts +3 -1
  76. package/dist/models/v1/verification-report-request/index.d.ts +1 -1
  77. package/dist/models/v1/verification-report-request/verification-report-request.d.ts +12 -1
  78. package/dist/models/v1/verification-status-response/verification-status-response.d.ts +3 -3
  79. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +5 -5
  80. package/dist/rest/v1/callbacks/callbacks-webhook.js +1 -1
  81. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  82. package/dist/rest/v1/verification-status/verification-status-api.jest.fixture.d.ts +0 -1
  83. package/dist/rest/v1/verification-status/verification-status-api.js +5 -1
  84. package/dist/rest/v1/verification-status/verification-status-api.js.map +1 -1
  85. package/dist/rest/v1/verifications/verifications-api.d.ts +34 -3
  86. package/dist/rest/v1/verifications/verifications-api.jest.fixture.d.ts +27 -4
  87. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js +16 -0
  88. package/dist/rest/v1/verifications/verifications-api.jest.fixture.js.map +1 -1
  89. package/dist/rest/v1/verifications/verifications-api.js +156 -13
  90. package/dist/rest/v1/verifications/verifications-api.js.map +1 -1
  91. package/package.json +6 -4
  92. package/dist/models/v1/callout-request-event-response/callout-request-event-response.d.ts +0 -8
  93. package/dist/models/v1/callout-request-event-response/callout-request-event-response.js.map +0 -1
  94. package/dist/models/v1/callout-request-event-response/index.d.ts +0 -1
  95. package/dist/models/v1/callout-request-event-response/index.js.map +0 -1
  96. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.d.ts +0 -7
  97. package/dist/models/v1/callout-request-event-response-callout/callout-request-event-response-callout.js.map +0 -1
  98. package/dist/models/v1/callout-request-event-response-callout/index.d.ts +0 -1
  99. package/dist/models/v1/callout-request-event-response-callout/index.js.map +0 -1
  100. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.d.ts +0 -7
  101. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js +0 -3
  102. package/dist/models/v1/callout-request-event-response-callout-speech/callout-request-event-response-callout-speech.js.map +0 -1
  103. package/dist/models/v1/callout-request-event-response-callout-speech/index.d.ts +0 -1
  104. package/dist/models/v1/callout-request-event-response-callout-speech/index.js.map +0 -1
  105. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js +0 -3
  106. package/dist/models/v1/callout-verification-report-response/callout-verification-report-response.js.map +0 -1
  107. package/dist/models/v1/callout-verification-report-response/index.d.ts +0 -1
  108. package/dist/models/v1/callout-verification-report-response/index.js.map +0 -1
  109. package/dist/models/v1/callout-verification-status-response/callout-verification-status-response.js +0 -3
  110. package/dist/models/v1/callout-verification-status-response/callout-verification-status-response.js.map +0 -1
  111. package/dist/models/v1/callout-verification-status-response/index.d.ts +0 -1
  112. package/dist/models/v1/callout-verification-status-response/index.js +0 -18
  113. package/dist/models/v1/callout-verification-status-response/index.js.map +0 -1
  114. package/dist/models/v1/flashcall-request-event-response/flashcall-request-event-response.js.map +0 -1
  115. package/dist/models/v1/flashcall-request-event-response/index.d.ts +0 -1
  116. package/dist/models/v1/flashcall-request-event-response/index.js.map +0 -1
  117. package/dist/models/v1/sms-request-event-response/index.d.ts +0 -1
  118. package/dist/models/v1/sms-request-event-response/index.js.map +0 -1
  119. package/dist/models/v1/sms-request-event-response/sms-request-event-response.js.map +0 -1
  120. package/dist/models/v1/start-callout-verification-response/index.d.ts +0 -1
  121. package/dist/models/v1/start-callout-verification-response/index.js.map +0 -1
  122. package/dist/models/v1/start-callout-verification-response/start-callout-verification-response.js +0 -3
  123. package/dist/models/v1/start-callout-verification-response/start-callout-verification-response.js.map +0 -1
  124. package/dist/models/v1/start-seamless-verification-response/index.d.ts +0 -1
  125. package/dist/models/v1/start-seamless-verification-response/index.js.map +0 -1
  126. package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.js +0 -3
  127. package/dist/models/v1/start-seamless-verification-response/start-seamless-verification-response.js.map +0 -1
  128. package/dist/models/v1/verification-report-response-price/index.d.ts +0 -1
  129. package/dist/models/v1/verification-report-response-price/index.js.map +0 -1
  130. package/dist/models/v1/verification-report-response-price/verification-report-response-price.d.ts +0 -19
  131. package/dist/models/v1/verification-report-response-price/verification-report-response-price.js +0 -3
  132. package/dist/models/v1/verification-report-response-price/verification-report-response-price.js.map +0 -1
  133. package/dist/models/v1/verification-request-event/index.d.ts +0 -1
  134. package/dist/models/v1/verification-request-event/index.js.map +0 -1
  135. package/dist/models/v1/verification-request-event/verification-request-event.js.map +0 -1
  136. package/dist/models/v1/verification-request-event-response/index.js.map +0 -1
  137. package/dist/models/v1/verification-request-event-response/verification-request-event-response.d.ts +0 -4
  138. package/dist/models/v1/verification-request-event-response/verification-request-event-response.js.map +0 -1
  139. package/dist/models/v1/verification-result-event/index.js +0 -3
  140. package/dist/models/v1/verification-result-event/index.js.map +0 -1
  141. package/dist/models/v1/verification-result-event/verification-result-event.js.map +0 -1
  142. package/dist/models/v1/verification-result-event-response/index.js +0 -3
  143. package/dist/models/v1/verification-result-event-response/index.js.map +0 -1
  144. package/dist/models/v1/verification-result-event-response/verification-result-event-response.d.ts +0 -4
  145. package/dist/models/v1/verification-result-event-response/verification-result-event-response.js.map +0 -1
  146. /package/dist/models/v1/{flashcall-request-event-response → mod-callbacks/flashcall-request-event-response}/flashcall-request-event-response.js +0 -0
  147. /package/dist/models/v1/{callout-request-event-response-callout-speech → mod-callbacks/flashcall-request-event-response}/index.js +0 -0
  148. /package/dist/models/v1/{callout-request-event-response-callout → mod-callbacks/phonecall-request-event-response}/index.js +0 -0
  149. /package/dist/models/v1/{callout-request-event-response → mod-callbacks/sms-request-event-response}/index.js +0 -0
  150. /package/dist/models/v1/{sms-request-event-response → mod-callbacks/sms-request-event-response}/sms-request-event-response.js +0 -0
  151. /package/dist/models/v1/{flashcall-request-event-response → mod-callbacks/verification-request-event}/index.js +0 -0
  152. /package/dist/models/v1/{verification-request-event → mod-callbacks/verification-request-event}/verification-request-event.js +0 -0
  153. /package/dist/models/v1/{verification-request-event-response → mod-callbacks/verification-request-event-response}/index.d.ts +0 -0
  154. /package/dist/models/v1/{callout-verification-report-response → mod-callbacks/verification-request-event-response}/index.js +0 -0
  155. /package/dist/models/v1/{verification-request-event-response → mod-callbacks/verification-request-event-response}/verification-request-event-response.js +0 -0
  156. /package/dist/models/v1/{verification-result-event → mod-callbacks/verification-result-event}/index.d.ts +0 -0
  157. /package/dist/models/v1/{start-callout-verification-response → mod-callbacks/verification-result-event}/index.js +0 -0
  158. /package/dist/models/v1/{verification-result-event → mod-callbacks/verification-result-event}/verification-result-event.js +0 -0
  159. /package/dist/models/v1/{verification-result-event-response → mod-callbacks/verification-result-event-response}/index.d.ts +0 -0
  160. /package/dist/models/v1/{sms-request-event-response → mod-callbacks/verification-result-event-response}/index.js +0 -0
  161. /package/dist/models/v1/{verification-result-event-response → mod-callbacks/verification-result-event-response}/verification-result-event-response.js +0 -0
  162. /package/dist/models/v1/{start-seamless-verification-response → phonecall-verification-report-response}/index.js +0 -0
  163. /package/dist/models/v1/{verification-report-response-price → phonecall-verification-status-response}/index.js +0 -0
  164. /package/dist/models/v1/{verification-request-event-response → start-data-verification-response}/index.js +0 -0
  165. /package/dist/models/v1/{verification-request-event → start-phonecall-verification-response}/index.js +0 -0
@@ -1,14 +1,15 @@
1
- import { ActionEnum } from '../enums';
1
+ import { ActionEnum } from '../../enums';
2
2
  export interface FlashCallRequestEventResponse {
3
3
  /** Determines whether the verification can be executed. */
4
4
  action?: ActionEnum;
5
- /** @see FlashCallContent */
6
- flashCall?: FlashCallContent;
5
+ /** @see FlashCallProperties */
6
+ flashCall?: FlashCallProperties;
7
7
  }
8
- interface FlashCallContent {
8
+ /** @deprecated Use FlashCallProperties instead */
9
+ export type FlashCallContent = FlashCallProperties;
10
+ export interface FlashCallProperties {
9
11
  /** The phone number that will be displayed to the user when the flashcall is received on the user\'s phone. By default, the Sinch dashboard will randomly select the CLI that will be displayed during a flashcall from a pool of numbers. If you want to set your own CLI, you can specify it in the response to the Verification Request Event. */
10
12
  cli?: string;
11
13
  /** The maximum time that a flashcall verification will be active and can be completed. If the phone number hasn\'t been verified successfully during this time, then the verification request will fail. By default, the Sinch dashboard will automatically optimize dial time out during a flashcall. If you want to set your own dial time out for the flashcall, you can specify it in the response to the Verification Request Event. */
12
14
  dialTimeout?: number;
13
15
  }
14
- export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flashcall-request-event-response.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/flashcall-request-event-response/flashcall-request-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { FlashCallRequestEventResponse, FlashCallContent, FlashCallProperties, } from './flashcall-request-event-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/flashcall-request-event-response/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export * from './verification-callback-event';
2
+ export * from './verification-request-event';
3
+ export * from './phonecall-request-event-response';
4
+ export * from './flashcall-request-event-response';
5
+ export * from './sms-request-event-response';
6
+ export * from './verification-request-event-response';
7
+ export * from './verification-result-event';
8
+ export * from './verification-result-event-response';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./verification-callback-event"), exports);
18
+ // 'Verification Request Event' received from Sinch server
19
+ __exportStar(require("./verification-request-event"), exports);
20
+ // Response to send to Sinch server for a 'Verification Request Event'
21
+ __exportStar(require("./phonecall-request-event-response"), exports);
22
+ __exportStar(require("./flashcall-request-event-response"), exports);
23
+ __exportStar(require("./sms-request-event-response"), exports);
24
+ __exportStar(require("./verification-request-event-response"), exports);
25
+ // 'Verification Result Event' received from Sinch server (no response data needed)
26
+ __exportStar(require("./verification-result-event"), exports);
27
+ __exportStar(require("./verification-result-event-response"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mod-callbacks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,0DAA0D;AAC1D,+DAA6C;AAC7C,sEAAsE;AACtE,qEAAmD;AACnD,qEAAmD;AACnD,+DAA6C;AAC7C,wEAAsD;AACtD,mFAAmF;AACnF,8DAA4C;AAC5C,uEAAqD"}
@@ -0,0 +1 @@
1
+ export type { CalloutRequestEventResponse, PhoneCallRequestEventResponse, CalloutProperties, PhoneCallProperties, SpeechProperties, } from './phonecall-request-event-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/phonecall-request-event-response/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { ActionEnum } from '../../enums';
2
+ /** @deprecated Use PhoneCallRequestEventResponse instead */
3
+ export type CalloutRequestEventResponse = PhoneCallRequestEventResponse;
4
+ export interface PhoneCallRequestEventResponse {
5
+ /** Determines whether the verification can be executed. */
6
+ action?: ActionEnum;
7
+ /** @see PhoneCallProperties */
8
+ callout?: PhoneCallProperties;
9
+ }
10
+ /** @deprecated Use PhoneCallProperties instead */
11
+ export type CalloutProperties = PhoneCallProperties;
12
+ export interface PhoneCallProperties {
13
+ /** The Phone Call PIN that should be entered by the user. Sinch servers automatically generate PIN codes for Phone Call verification. If you want to set your own code, you can specify it in the response to the Verification Request Event. */
14
+ code?: string;
15
+ /** @see SpeechProperties */
16
+ speech?: SpeechProperties;
17
+ }
18
+ /**
19
+ * An object defining various properties for the text-to-speech message.
20
+ */
21
+ export interface SpeechProperties {
22
+ /** Indicates the language that should be used for the text-to-speech message. Currently, only `en-US` is supported. */
23
+ locale?: string;
24
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=callout-request-event-response.js.map
3
+ //# sourceMappingURL=phonecall-request-event-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phonecall-request-event-response.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/phonecall-request-event-response/phonecall-request-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { SMSRequestEventResponse, SmsRequestEventResponse, SmsContent, SmsProperties, } from './sms-request-event-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/sms-request-event-response/index.ts"],"names":[],"mappings":""}
@@ -1,14 +1,17 @@
1
- import { ActionEnum } from '../enums';
2
- export interface SMSRequestEventResponse {
1
+ import { ActionEnum } from '../../enums';
2
+ export interface SmsRequestEventResponse {
3
3
  /** Determines whether the verification can be executed. */
4
4
  action?: ActionEnum;
5
- /** @see SmsContent */
6
- sms?: SmsContent;
5
+ /** @see SmsProperties */
6
+ sms?: SmsProperties;
7
7
  }
8
- interface SmsContent {
8
+ export interface SmsProperties {
9
9
  /** The SMS PIN that should be used. By default, the Sinch dashboard will automatically generate PIN codes for SMS verification. If you want to set your own PIN, you can specify it in the response to the Verification Request Event. */
10
10
  code?: string;
11
11
  /** List of strings */
12
12
  acceptLanguage?: string[];
13
13
  }
14
- export {};
14
+ /** @deprecated Use SmsRequestEventResponse instead */
15
+ export type SMSRequestEventResponse = SmsRequestEventResponse;
16
+ /** @deprecated Use SmsProperties instead */
17
+ export type SmsContent = SmsProperties;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sms-request-event-response.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/sms-request-event-response/sms-request-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { VerificationRequestEvent } from './verification-request-event';
2
+ import { VerificationResultEvent } from './verification-result-event';
3
+ export type VerificationCallbackEvent = VerificationRequestEvent | VerificationResultEvent;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=verification-callback-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-callback-event.js","sourceRoot":"","sources":["../../../../src/models/v1/mod-callbacks/verification-callback-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { VerificationRequestEvent, MethodEnum } from './verification-request-event';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-request-event/index.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { Identity } from '../identity';
2
- import { Price } from '../price';
1
+ import { Identity } from '../../identity';
2
+ import { Price } from '../../price';
3
3
  export interface VerificationRequestEvent {
4
4
  /** The ID of the verification request. */
5
5
  id: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-request-event.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-request-event/verification-request-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-request-event-response/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { SmsRequestEventResponse } from '../sms-request-event-response';
2
+ import { FlashCallRequestEventResponse } from '../flashcall-request-event-response';
3
+ import { CalloutRequestEventResponse } from '../phonecall-request-event-response';
4
+ export type VerificationRequestEventResponse = SmsRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-request-event-response.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-request-event-response/verification-request-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-result-event/index.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { Identity } from '../identity';
2
- import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
1
+ import { Identity } from '../../identity';
2
+ import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../../enums';
3
3
  export interface VerificationResultEvent {
4
4
  /** The ID of the verification request. */
5
5
  id: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-result-event.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-result-event/verification-result-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-result-event-response/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { SmsRequestEventResponse } from '../sms-request-event-response';
2
+ import { FlashCallRequestEventResponse } from '../flashcall-request-event-response';
3
+ import { CalloutRequestEventResponse } from '../phonecall-request-event-response';
4
+ export type VerificationResultEventResponse = SmsRequestEventResponse | FlashCallRequestEventResponse | CalloutRequestEventResponse;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-result-event-response.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-callbacks/verification-result-event-response/verification-result-event-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { PhoneCallVerificationReportResponse, CalloutVerificationReportResponse, } from './phonecall-verification-report-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/phonecall-verification-report-response/index.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
2
2
  import { Identity } from '../identity';
3
- export interface CalloutVerificationReportResponse {
3
+ /** @deprecated Use PhoneCallVerificationReportResponse instead */
4
+ export type CalloutVerificationReportResponse = PhoneCallVerificationReportResponse;
5
+ export interface PhoneCallVerificationReportResponse {
4
6
  /** The unique ID of the verification request. */
5
7
  id?: string;
6
8
  /** The method of the verification request. This will always be `callout`. */
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=callout-request-event-response-callout.js.map
3
+ //# sourceMappingURL=phonecall-verification-report-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phonecall-verification-report-response.js","sourceRoot":"","sources":["../../../../src/models/v1/phonecall-verification-report-response/phonecall-verification-report-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { PhoneCallVerificationStatusResponse, CalloutVerificationStatusResponse, } from './phonecall-verification-status-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/phonecall-verification-status-response/index.ts"],"names":[],"mappings":""}
@@ -1,7 +1,9 @@
1
1
  import { CallResult, ReasonEnum, VerificationStatusEnum } from '../enums';
2
2
  import { Identity } from '../identity';
3
3
  import { VerificationPriceCall } from '../verification-price-call';
4
- export interface CalloutVerificationStatusResponse {
4
+ /** @deprecated Use PhoneCallVerificationStatusResponse instead */
5
+ export type CalloutVerificationStatusResponse = PhoneCallVerificationStatusResponse;
6
+ export interface PhoneCallVerificationStatusResponse {
5
7
  /** The unique ID of the verification request. */
6
8
  id?: string;
7
9
  /** The method of the verification request. This will always be `callout`. */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=phonecall-verification-status-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phonecall-verification-status-response.js","sourceRoot":"","sources":["../../../../src/models/v1/phonecall-verification-status-response/phonecall-verification-status-response.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ export interface VerificationStatusByIdentityRequestData {
6
6
  /** For type `number` use a [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537)-compatible phone number. */
7
7
  'endpoint': string;
8
8
  /** The method of the verification. */
9
- 'method': 'sms' | 'callout' | 'flashCall';
9
+ 'method': 'sms' | 'callout' | 'phonecall' | 'flashCall' | 'flashcall';
10
10
  }
11
11
  export interface VerificationStatusByReferenceRequestData {
12
12
  /** The custom reference of the verification. */
@@ -1,5 +1,5 @@
1
- import { CalloutVerificationReportRequest, FlashCallVerificationReportRequest, SmsVerificationReportRequest } from '../../verification-report-request';
2
- import { StartSeamlessVerification, StartVerificationWithCallout, StartVerificationWithFlashCall, StartVerificationWithSms } from '../../start-verification-request';
1
+ import { CalloutVerificationReportRequest, FlashCallVerificationReportRequest, PhoneCallVerificationReportRequest, SmsVerificationReportRequest } from '../../verification-report-request';
2
+ import { StartDataVerification, StartSeamlessVerification, StartVerificationWithCallout, StartVerificationWithFlashCall, StartVerificationWithPhoneCall, StartVerificationWithSms } from '../../start-verification-request';
3
3
  interface ReportVerificationByIdRequestDataBase {
4
4
  /** The ID of the verification. */
5
5
  'id': string;
@@ -12,6 +12,11 @@ export interface ReportFlashCallVerificationByIdRequestData extends ReportVerifi
12
12
  /** Request body to report a verification started with a flashCall by its ID */
13
13
  'reportFlashCallVerificationByIdRequestBody': FlashCallVerificationReportRequest;
14
14
  }
15
+ export interface ReportPhoneCallVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
16
+ /** Request body to report a verification started with a phone call by its ID */
17
+ 'reportPhoneCallVerificationByIdRequestBody': PhoneCallVerificationReportRequest;
18
+ }
19
+ /** @deprecated Use ReportPhoneCallVerificationByIdRequestData instead */
15
20
  export interface ReportCalloutVerificationByIdRequestData extends ReportVerificationByIdRequestDataBase {
16
21
  /** Request body to report a verification started with a callout by its ID */
17
22
  'reportCalloutVerificationByIdRequestBody': CalloutVerificationReportRequest;
@@ -28,6 +33,11 @@ export interface ReportFlashCallVerificationByIdentityRequestData extends Report
28
33
  /** Request body to report a verification started with a flashCall by its identity */
29
34
  'reportFlashCallVerificationByIdentityRequestBody': FlashCallVerificationReportRequest;
30
35
  }
36
+ export interface ReportPhoneCallVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
37
+ /** Request body to report a verification started with a callout by its identity */
38
+ 'reportPhoneCallVerificationByIdentityRequestBody': PhoneCallVerificationReportRequest;
39
+ }
40
+ /** @deprecated Use ReportPhoneCallVerificationByIdentityRequestData instead */
31
41
  export interface ReportCalloutVerificationByIdentityRequestData extends ReportVerificationByIdentityRequestDataBase {
32
42
  /** Request body to report a verification started with a callout by its identity */
33
43
  'reportCalloutVerificationByIdentityRequestBody': CalloutVerificationReportRequest;
@@ -40,10 +50,20 @@ export interface StartFlashCallVerificationRequestData {
40
50
  /** Request body to start a verification with a flashCall */
41
51
  'startVerificationWithFlashCallRequestBody': StartVerificationWithFlashCall;
42
52
  }
53
+ export interface StartPhoneCallVerificationRequestData {
54
+ /** Request body to start a verification with a phone call */
55
+ 'startVerificationWithPhoneCallRequestBody': StartVerificationWithPhoneCall;
56
+ }
57
+ /** @deprecated Use StartPhoneCallVerificationRequestData instead */
43
58
  export interface StartCalloutVerificationRequestData {
44
59
  /** Request body to start a verification with a callout */
45
60
  'startVerificationWithCalloutRequestBody': StartVerificationWithCallout;
46
61
  }
62
+ export interface StartDataVerificationRequestData {
63
+ /** Request body to start a data verification */
64
+ 'startDataVerificationRequestBody': StartDataVerification;
65
+ }
66
+ /** @deprecated Use StartDataVerificationRequestData instead */
47
67
  export interface StartSeamlessVerificationRequestData {
48
68
  /** Request body to start a seamless verification */
49
69
  'startSeamlessVerificationRequestBody': StartSeamlessVerification;
@@ -1 +1 @@
1
- export type { SMSVerificationReportResponse } from './sms-verification-report-response';
1
+ export type { SMSVerificationReportResponse, SmsVerificationReportResponse } from './sms-verification-report-response';
@@ -1,6 +1,6 @@
1
1
  import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
2
2
  import { Identity } from '../identity';
3
- export interface SMSVerificationReportResponse {
3
+ export interface SmsVerificationReportResponse {
4
4
  /** The unique ID of the verification request. */
5
5
  id?: string;
6
6
  /** The method of the verification request. This will always be `sms`. */
@@ -16,3 +16,5 @@ export interface SMSVerificationReportResponse {
16
16
  /** @see Identity */
17
17
  identity?: Identity;
18
18
  }
19
+ /** @deprecated Use SmsVerificationReportResponse instead */
20
+ export type SMSVerificationReportResponse = SmsVerificationReportResponse;
@@ -1 +1 @@
1
- export * from './sms-verification-status-response';
1
+ export type { SMSVerificationStatusResponse, SmsVerificationStatusResponse } from './sms-verification-status-response';
@@ -1,18 +1,3 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./sms-verification-status-response"), exports);
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/sms-verification-status-response/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/sms-verification-status-response/index.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { ReasonEnum, SourceEnum, VerificationStatusEnum } from '../enums';
2
2
  import { Identity } from '../identity';
3
- import { VerificationPriceSMS } from '../verification-price-sms';
4
- export interface SMSVerificationStatusResponse {
3
+ import { VerificationPriceSms } from '../verification-price-sms';
4
+ export interface SmsVerificationStatusResponse {
5
5
  /** The unique ID of the verification request. */
6
6
  id?: string;
7
7
  /** The method of the verification request. This will always be `sms`. */
@@ -13,7 +13,7 @@ export interface SMSVerificationStatusResponse {
13
13
  /** The reference ID that was optionally passed together with the verification request. */
14
14
  reference?: string;
15
15
  /** Prices associated with this verification */
16
- price?: VerificationPriceSMS;
16
+ price?: VerificationPriceSms;
17
17
  /** @see Identity */
18
18
  identity?: Identity;
19
19
  /** The ID of the country to which the verification was sent. */
@@ -23,3 +23,5 @@ export interface SMSVerificationStatusResponse {
23
23
  /** Free text that the client is sending, used to show if the call/SMS was intercepted or not. */
24
24
  source?: SourceEnum;
25
25
  }
26
+ /** @deprecated Use SmsVerificationStatusResponse instead */
27
+ export type SMSVerificationStatusResponse = SmsVerificationStatusResponse;
@@ -0,0 +1 @@
1
+ export type { StartSeamlessVerificationResponse, StartDataVerificationResponse, } from './start-data-verification-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/start-data-verification-response/index.ts"],"names":[],"mappings":""}
@@ -1,5 +1,7 @@
1
1
  import { LinksObject } from '../links-object';
2
- export interface StartSeamlessVerificationResponse {
2
+ /** @deprecated Use StartDataVerificationResponse instead */
3
+ export type StartSeamlessVerificationResponse = StartDataVerificationResponse;
4
+ export interface StartDataVerificationResponse {
3
5
  /** Verification identifier used to query for status. */
4
6
  id: string;
5
7
  /** The value of the method used for the Verification. For Data Verifications, this will always be `seamless`. */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=start-data-verification-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-data-verification-response.js","sourceRoot":"","sources":["../../../../src/models/v1/start-data-verification-response/start-data-verification-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { StartCalloutVerificationResponse, StartPhoneCallVerificationResponse, } from './start-phonecall-verification-response';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/start-phonecall-verification-response/index.ts"],"names":[],"mappings":""}
@@ -1,5 +1,7 @@
1
1
  import { LinksObject } from '../links-object';
2
- export interface StartCalloutVerificationResponse {
2
+ /** @deprecated Use StartPhoneCallVerificationResponse instead */
3
+ export type StartCalloutVerificationResponse = StartPhoneCallVerificationResponse;
4
+ export interface StartPhoneCallVerificationResponse {
3
5
  /** Verification identifier used to query for status. */
4
6
  id?: string;
5
7
  /** The value of the method used for the Verification. For Phone Call Verifications, this will always be `callout`. */
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=start-phonecall-verification-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-phonecall-verification-response.js","sourceRoot":"","sources":["../../../../src/models/v1/start-phonecall-verification-response/start-phonecall-verification-response.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- export type { StartVerificationBase, StartVerificationWithSms, StartVerificationWithFlashCall, StartVerificationWithCallout, StartSeamlessVerification, SmsOptions, CodeType, CalloutOptions, CalloutOptionsSpeech, FlashCallOptions, } from './start-verification-request';
1
+ export type { StartVerificationBase, StartVerificationWithSms, StartVerificationWithFlashCall, StartVerificationWithPhoneCall, StartVerificationWithPhoneCallServerModel, StartVerificationWithCallout, StartDataVerification, StartSeamlessVerification, SmsOptions, CodeType, PhoneCallOptions, CalloutOptions, PhoneCallOptionsSpeech, CalloutOptionsSpeech, FlashCallOptions, } from './start-verification-request';
@@ -7,12 +7,23 @@ export interface StartVerificationWithFlashCall extends StartVerificationBase {
7
7
  /** @see FlashCallOptions */
8
8
  flashCallOptions?: FlashCallOptions;
9
9
  }
10
+ export interface StartVerificationWithPhoneCall extends StartVerificationBase {
11
+ /** @see PhoneCallOptions */
12
+ phoneCallOptions?: PhoneCallOptions;
13
+ }
14
+ export interface StartVerificationWithPhoneCallServerModel extends StartVerificationBase {
15
+ /** @see PhoneCallOptions */
16
+ calloutOptions?: PhoneCallOptions;
17
+ }
18
+ /** @deprecated Use StartVerificationWithPhoneCall instead */
10
19
  export interface StartVerificationWithCallout extends StartVerificationBase {
11
20
  /** @see CalloutOptions */
12
21
  calloutOptions?: CalloutOptions;
13
22
  }
14
- export interface StartSeamlessVerification extends StartVerificationBase {
23
+ export interface StartDataVerification extends StartVerificationBase {
15
24
  }
25
+ /** @deprecated Use StartDataVerification instead */
26
+ export type StartSeamlessVerification = StartDataVerification;
16
27
  export interface StartVerificationBase {
17
28
  /** @see Identity */
18
29
  identity: Identity;
@@ -31,6 +42,8 @@ export interface SmsOptions {
31
42
  codeType?: CodeType;
32
43
  /** The SMS template must include a placeholder `{{CODE}}` where the verification code will be inserted, and it can otherwise be customized as desired. */
33
44
  template?: string;
45
+ /** A `language-region` identifier according to [IANA](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). Only a subset of those identifiers is accepted. */
46
+ locale?: string;
34
47
  }
35
48
  export type CodeType = 'Numeric' | 'Alpha' | 'Alphanumeric';
36
49
  /**
@@ -40,17 +53,21 @@ export interface FlashCallOptions {
40
53
  /** The dial timeout in seconds. */
41
54
  dialTimeout?: number;
42
55
  }
56
+ /** @deprecated Use PhoneCallOptions instead */
57
+ export type CalloutOptions = PhoneCallOptions;
43
58
  /**
44
59
  * An optional object for Phone Call Verification, with default values assumed for all contained values if not provided.
45
60
  */
46
- export interface CalloutOptions {
47
- /** @see CalloutOptionsSpeech */
48
- speech?: CalloutOptionsSpeech;
61
+ export interface PhoneCallOptions {
62
+ /** @see PhoneCallOptionsSpeech */
63
+ speech?: PhoneCallOptionsSpeech;
49
64
  }
65
+ /** @deprecated Use PhoneCallOptionsSpeech instead */
66
+ export type CalloutOptionsSpeech = PhoneCallOptionsSpeech;
50
67
  /**
51
68
  * Text-To-Speech engine settings
52
69
  */
53
- export interface CalloutOptionsSpeech {
70
+ export interface PhoneCallOptionsSpeech {
54
71
  /** A `language-region` identifier according to [IANA](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). Only a subset of those identifiers is accepted. */
55
72
  locale?: string;
56
73
  }
@@ -2,7 +2,9 @@ import { Price } from '../price';
2
2
  /**
3
3
  * Prices associated with this verification
4
4
  */
5
- export interface VerificationPriceSMS {
5
+ export interface VerificationPriceSms {
6
6
  /** The maximum price charged for this verification process. This property will appear in the body of the response with a delay. It will become visible only when the verification status is other than PENDING. */
7
7
  verificationPrice?: Price;
8
8
  }
9
+ /** @deprecated Use VerificationPriceSms instead */
10
+ export type VerificationPriceSMS = VerificationPriceSms;
@@ -1 +1 @@
1
- export type { SmsVerificationReportRequest, FlashCallVerificationReportRequest, CalloutVerificationReportRequest, } from './verification-report-request';
1
+ export type { SmsVerificationReportRequest, FlashCallVerificationReportRequest, PhoneCallVerificationReportRequest, PhoneCallVerificationReportRequestServerModel, CalloutVerificationReportRequest, } from './verification-report-request';
@@ -16,12 +16,23 @@ interface FlashCallContent {
16
16
  /** The caller ID of the FlashCall. */
17
17
  cli: string;
18
18
  }
19
+ export interface PhoneCallVerificationReportRequest {
20
+ /** A configuration object containing settings specific to Phone Call verifications */
21
+ phoneCall: PhoneCallContent;
22
+ }
23
+ export interface PhoneCallVerificationReportRequestServerModel {
24
+ /** A configuration object containing settings specific to Phone Call verifications */
25
+ callout: PhoneCallContent;
26
+ }
27
+ /** @deprecated Use PhoneCallVerificationReportRequest instead */
19
28
  export interface CalloutVerificationReportRequest {
20
29
  /** A configuration object containing settings specific to Phone Call verifications */
21
30
  callout: CalloutContent;
22
31
  }
23
- interface CalloutContent {
32
+ interface PhoneCallContent {
24
33
  /** The code which was received by the user submitting the Phone Call verification. */
25
34
  code?: string;
26
35
  }
36
+ /** @deprecated Use PhoneCallContent instead */
37
+ type CalloutContent = PhoneCallContent;
27
38
  export {};