voice-react-native-sdk 1.6.2-fork.4

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 (227) hide show
  1. package/LICENSE +206 -0
  2. package/README.md +179 -0
  3. package/android/build.gradle +113 -0
  4. package/android/gradle.properties +29 -0
  5. package/android/src/main/AndroidManifest.xml +30 -0
  6. package/android/src/main/java/com/twiliovoicereactnative/AudioSwitchManager.java +141 -0
  7. package/android/src/main/java/com/twiliovoicereactnative/CallListenerProxy.java +186 -0
  8. package/android/src/main/java/com/twiliovoicereactnative/CallMessageListenerProxy.java +103 -0
  9. package/android/src/main/java/com/twiliovoicereactnative/CallRecordDatabase.java +183 -0
  10. package/android/src/main/java/com/twiliovoicereactnative/CommonConstants.java +195 -0
  11. package/android/src/main/java/com/twiliovoicereactnative/ConfigurationProperties.java +41 -0
  12. package/android/src/main/java/com/twiliovoicereactnative/Constants.java +23 -0
  13. package/android/src/main/java/com/twiliovoicereactnative/ExpoActivityLifecycleListener.java +27 -0
  14. package/android/src/main/java/com/twiliovoicereactnative/ExpoApplicationLifecycleListener.java +14 -0
  15. package/android/src/main/java/com/twiliovoicereactnative/ExpoModule.kt +36 -0
  16. package/android/src/main/java/com/twiliovoicereactnative/ExpoPackage.java +20 -0
  17. package/android/src/main/java/com/twiliovoicereactnative/JSEventEmitter.java +98 -0
  18. package/android/src/main/java/com/twiliovoicereactnative/MediaPlayerManager.java +58 -0
  19. package/android/src/main/java/com/twiliovoicereactnative/NotificationUtility.java +363 -0
  20. package/android/src/main/java/com/twiliovoicereactnative/ReactNativeArgumentsSerializer.java +276 -0
  21. package/android/src/main/java/com/twiliovoicereactnative/SDKLog.java +74 -0
  22. package/android/src/main/java/com/twiliovoicereactnative/StatsListenerProxy.java +178 -0
  23. package/android/src/main/java/com/twiliovoicereactnative/TwilioVoiceReactNativeModule.java +778 -0
  24. package/android/src/main/java/com/twiliovoicereactnative/TwilioVoiceReactNativePackage.java +28 -0
  25. package/android/src/main/java/com/twiliovoicereactnative/VoiceActivityProxy.java +101 -0
  26. package/android/src/main/java/com/twiliovoicereactnative/VoiceApplicationProxy.java +133 -0
  27. package/android/src/main/java/com/twiliovoicereactnative/VoiceFirebaseMessagingService.java +88 -0
  28. package/android/src/main/java/com/twiliovoicereactnative/VoiceService.java +403 -0
  29. package/android/src/main/res/drawable/answered_call_small_icon.png +0 -0
  30. package/android/src/main/res/drawable/ic_launcher_round.png +0 -0
  31. package/android/src/main/res/drawable/ic_launcher_sdk.png +0 -0
  32. package/android/src/main/res/drawable/incoming_call_small_icon.png +0 -0
  33. package/android/src/main/res/drawable/outgoing_call_small_icon.png +0 -0
  34. package/android/src/main/res/raw/disconnect.wav +0 -0
  35. package/android/src/main/res/raw/incoming.wav +0 -0
  36. package/android/src/main/res/raw/outgoing.wav +0 -0
  37. package/android/src/main/res/raw/ringtone.wav +0 -0
  38. package/android/src/main/res/raw/silent.wav +0 -0
  39. package/android/src/main/res/values/colors.xml +11 -0
  40. package/android/src/main/res/values/config.xml +5 -0
  41. package/android/src/main/res/values/dimens.xml +7 -0
  42. package/android/src/main/res/values/strings.xml +25 -0
  43. package/android/src/main/res/values/styles.xml +10 -0
  44. package/android/src/main/res/values-night/colors.xml +11 -0
  45. package/expo-config-plugin/android.js +191 -0
  46. package/expo-config-plugin/ios.js +22 -0
  47. package/expo-module.config.json +6 -0
  48. package/ios/TwilioVoicePushRegistry.h +19 -0
  49. package/ios/TwilioVoicePushRegistry.m +72 -0
  50. package/ios/TwilioVoiceReactNative+CallInvite.m +56 -0
  51. package/ios/TwilioVoiceReactNative+CallKit.m +533 -0
  52. package/ios/TwilioVoiceReactNative+CallMessage.m +81 -0
  53. package/ios/TwilioVoiceReactNative.h +74 -0
  54. package/ios/TwilioVoiceReactNative.m +1046 -0
  55. package/ios/TwilioVoiceReactNative.xcodeproj/project.pbxproj +328 -0
  56. package/ios/TwilioVoiceReactNativeConstants.h +200 -0
  57. package/ios/Utilities/TwilioVoiceStatsReport.h +175 -0
  58. package/lib/commonjs/AudioDevice.js +101 -0
  59. package/lib/commonjs/AudioDevice.js.map +1 -0
  60. package/lib/commonjs/Call.js +765 -0
  61. package/lib/commonjs/Call.js.map +1 -0
  62. package/lib/commonjs/CallInvite.js +452 -0
  63. package/lib/commonjs/CallInvite.js.map +1 -0
  64. package/lib/commonjs/CallMessage/CallMessage.js +54 -0
  65. package/lib/commonjs/CallMessage/CallMessage.js.map +1 -0
  66. package/lib/commonjs/CallMessage/IncomingCallMessage.js +120 -0
  67. package/lib/commonjs/CallMessage/IncomingCallMessage.js.map +1 -0
  68. package/lib/commonjs/CallMessage/OutgoingCallMessage.js +148 -0
  69. package/lib/commonjs/CallMessage/OutgoingCallMessage.js.map +1 -0
  70. package/lib/commonjs/ExpoModule.js +69 -0
  71. package/lib/commonjs/ExpoModule.js.map +1 -0
  72. package/lib/commonjs/Voice.js +611 -0
  73. package/lib/commonjs/Voice.js.map +1 -0
  74. package/lib/commonjs/common.js +26 -0
  75. package/lib/commonjs/common.js.map +1 -0
  76. package/lib/commonjs/constants.js +158 -0
  77. package/lib/commonjs/constants.js.map +1 -0
  78. package/lib/commonjs/error/InvalidArgumentError.js +32 -0
  79. package/lib/commonjs/error/InvalidArgumentError.js.map +1 -0
  80. package/lib/commonjs/error/InvalidStateError.js +33 -0
  81. package/lib/commonjs/error/InvalidStateError.js.map +1 -0
  82. package/lib/commonjs/error/TwilioError.js +38 -0
  83. package/lib/commonjs/error/TwilioError.js.map +1 -0
  84. package/lib/commonjs/error/UnsupportedPlatformError.js +33 -0
  85. package/lib/commonjs/error/UnsupportedPlatformError.js.map +1 -0
  86. package/lib/commonjs/error/generated.js +2343 -0
  87. package/lib/commonjs/error/generated.js.map +1 -0
  88. package/lib/commonjs/error/index.js +112 -0
  89. package/lib/commonjs/error/index.js.map +1 -0
  90. package/lib/commonjs/error/utility.js +37 -0
  91. package/lib/commonjs/error/utility.js.map +1 -0
  92. package/lib/commonjs/index.js +95 -0
  93. package/lib/commonjs/index.js.map +1 -0
  94. package/lib/commonjs/type/AudioDevice.js +6 -0
  95. package/lib/commonjs/type/AudioDevice.js.map +1 -0
  96. package/lib/commonjs/type/Call.js +6 -0
  97. package/lib/commonjs/type/Call.js.map +1 -0
  98. package/lib/commonjs/type/CallInvite.js +6 -0
  99. package/lib/commonjs/type/CallInvite.js.map +1 -0
  100. package/lib/commonjs/type/CallKit.js +30 -0
  101. package/lib/commonjs/type/CallKit.js.map +1 -0
  102. package/lib/commonjs/type/CallMessage.js +6 -0
  103. package/lib/commonjs/type/CallMessage.js.map +1 -0
  104. package/lib/commonjs/type/Error.js +6 -0
  105. package/lib/commonjs/type/Error.js.map +1 -0
  106. package/lib/commonjs/type/NativeModule.js +6 -0
  107. package/lib/commonjs/type/NativeModule.js.map +1 -0
  108. package/lib/commonjs/type/RTCStats.js +29 -0
  109. package/lib/commonjs/type/RTCStats.js.map +1 -0
  110. package/lib/commonjs/type/Voice.js +6 -0
  111. package/lib/commonjs/type/Voice.js.map +1 -0
  112. package/lib/commonjs/type/common.js +2 -0
  113. package/lib/commonjs/type/common.js.map +1 -0
  114. package/lib/module/AudioDevice.js +97 -0
  115. package/lib/module/AudioDevice.js.map +1 -0
  116. package/lib/module/Call.js +766 -0
  117. package/lib/module/Call.js.map +1 -0
  118. package/lib/module/CallInvite.js +450 -0
  119. package/lib/module/CallInvite.js.map +1 -0
  120. package/lib/module/CallMessage/CallMessage.js +51 -0
  121. package/lib/module/CallMessage/CallMessage.js.map +1 -0
  122. package/lib/module/CallMessage/IncomingCallMessage.js +116 -0
  123. package/lib/module/CallMessage/IncomingCallMessage.js.map +1 -0
  124. package/lib/module/CallMessage/OutgoingCallMessage.js +154 -0
  125. package/lib/module/CallMessage/OutgoingCallMessage.js.map +1 -0
  126. package/lib/module/ExpoModule.js +58 -0
  127. package/lib/module/ExpoModule.js.map +1 -0
  128. package/lib/module/Voice.js +598 -0
  129. package/lib/module/Voice.js.map +1 -0
  130. package/lib/module/common.js +11 -0
  131. package/lib/module/common.js.map +1 -0
  132. package/lib/module/constants.js +151 -0
  133. package/lib/module/constants.js.map +1 -0
  134. package/lib/module/error/InvalidArgumentError.js +23 -0
  135. package/lib/module/error/InvalidArgumentError.js.map +1 -0
  136. package/lib/module/error/InvalidStateError.js +24 -0
  137. package/lib/module/error/InvalidStateError.js.map +1 -0
  138. package/lib/module/error/TwilioError.js +29 -0
  139. package/lib/module/error/TwilioError.js.map +1 -0
  140. package/lib/module/error/UnsupportedPlatformError.js +24 -0
  141. package/lib/module/error/UnsupportedPlatformError.js.map +1 -0
  142. package/lib/module/error/generated.js +2315 -0
  143. package/lib/module/error/generated.js.map +1 -0
  144. package/lib/module/error/index.js +6 -0
  145. package/lib/module/error/index.js.map +1 -0
  146. package/lib/module/error/utility.js +27 -0
  147. package/lib/module/error/utility.js.map +1 -0
  148. package/lib/module/index.js +23 -0
  149. package/lib/module/index.js.map +1 -0
  150. package/lib/module/type/AudioDevice.js +2 -0
  151. package/lib/module/type/AudioDevice.js.map +1 -0
  152. package/lib/module/type/Call.js +2 -0
  153. package/lib/module/type/Call.js.map +1 -0
  154. package/lib/module/type/CallInvite.js +2 -0
  155. package/lib/module/type/CallInvite.js.map +1 -0
  156. package/lib/module/type/CallKit.js +22 -0
  157. package/lib/module/type/CallKit.js.map +1 -0
  158. package/lib/module/type/CallMessage.js +2 -0
  159. package/lib/module/type/CallMessage.js.map +1 -0
  160. package/lib/module/type/Error.js +2 -0
  161. package/lib/module/type/Error.js.map +1 -0
  162. package/lib/module/type/NativeModule.js +2 -0
  163. package/lib/module/type/NativeModule.js.map +1 -0
  164. package/lib/module/type/RTCStats.js +21 -0
  165. package/lib/module/type/RTCStats.js.map +1 -0
  166. package/lib/module/type/Voice.js +2 -0
  167. package/lib/module/type/Voice.js.map +1 -0
  168. package/lib/module/type/common.js +2 -0
  169. package/lib/module/type/common.js.map +1 -0
  170. package/lib/typescript/AudioDevice.d.ts +74 -0
  171. package/lib/typescript/Call.d.ts +874 -0
  172. package/lib/typescript/CallInvite.d.ts +484 -0
  173. package/lib/typescript/CallMessage/CallMessage.d.ts +53 -0
  174. package/lib/typescript/CallMessage/IncomingCallMessage.d.ts +75 -0
  175. package/lib/typescript/CallMessage/OutgoingCallMessage.d.ts +198 -0
  176. package/lib/typescript/ExpoModule.d.ts +13 -0
  177. package/lib/typescript/Voice.d.ts +620 -0
  178. package/lib/typescript/common.d.ts +11 -0
  179. package/lib/typescript/constants.d.ts +148 -0
  180. package/lib/typescript/error/InvalidArgumentError.d.ts +11 -0
  181. package/lib/typescript/error/InvalidStateError.d.ts +12 -0
  182. package/lib/typescript/error/TwilioError.d.ts +14 -0
  183. package/lib/typescript/error/UnsupportedPlatformError.d.ts +12 -0
  184. package/lib/typescript/error/generated.d.ts +1558 -0
  185. package/lib/typescript/error/index.d.ts +5 -0
  186. package/lib/typescript/error/utility.d.ts +12 -0
  187. package/lib/typescript/index.d.ts +18 -0
  188. package/lib/typescript/type/AudioDevice.d.ts +15 -0
  189. package/lib/typescript/type/Call.d.ts +59 -0
  190. package/lib/typescript/type/CallInvite.d.ts +40 -0
  191. package/lib/typescript/type/CallKit.d.ts +60 -0
  192. package/lib/typescript/type/CallMessage.d.ts +20 -0
  193. package/lib/typescript/type/Error.d.ts +9 -0
  194. package/lib/typescript/type/NativeModule.d.ts +59 -0
  195. package/lib/typescript/type/RTCStats.d.ts +91 -0
  196. package/lib/typescript/type/Voice.d.ts +16 -0
  197. package/lib/typescript/type/common.d.ts +15 -0
  198. package/package.json +167 -0
  199. package/src/AudioDevice.tsx +88 -0
  200. package/src/Call.tsx +1343 -0
  201. package/src/CallInvite.tsx +757 -0
  202. package/src/CallMessage/CallMessage.ts +83 -0
  203. package/src/CallMessage/IncomingCallMessage.ts +104 -0
  204. package/src/CallMessage/OutgoingCallMessage.ts +308 -0
  205. package/src/ExpoModule.ts +59 -0
  206. package/src/Voice.tsx +1010 -0
  207. package/src/common.ts +16 -0
  208. package/src/constants.ts +193 -0
  209. package/src/error/InvalidArgumentError.ts +19 -0
  210. package/src/error/InvalidStateError.ts +19 -0
  211. package/src/error/TwilioError.ts +22 -0
  212. package/src/error/UnsupportedPlatformError.ts +19 -0
  213. package/src/error/generated.ts +2277 -0
  214. package/src/error/index.ts +18 -0
  215. package/src/error/utility.ts +36 -0
  216. package/src/index.tsx +24 -0
  217. package/src/type/AudioDevice.ts +18 -0
  218. package/src/type/Call.ts +102 -0
  219. package/src/type/CallInvite.ts +59 -0
  220. package/src/type/CallKit.ts +61 -0
  221. package/src/type/CallMessage.ts +31 -0
  222. package/src/type/Error.ts +11 -0
  223. package/src/type/NativeModule.ts +93 -0
  224. package/src/type/RTCStats.ts +99 -0
  225. package/src/type/Voice.ts +31 -0
  226. package/src/type/common.ts +16 -0
  227. package/twilio-voice-react-native.podspec +22 -0
@@ -0,0 +1,1558 @@
1
+ /**
2
+ * This is a generated file. Any modifications here will be overwritten.
3
+ * See scripts/errors.js.
4
+ */
5
+ import { TwilioError } from './TwilioError';
6
+ /**
7
+ * @public
8
+ * Authorization errors.
9
+ */
10
+ export declare namespace AuthorizationErrors {
11
+ /**
12
+ * @public
13
+ * AuthorizationErrors.AccessTokenInvalid error.
14
+ * Error code `20101`.
15
+ */
16
+ class AccessTokenInvalid extends TwilioError {
17
+ /**
18
+ * Not applicable.
19
+ */
20
+ causes: string[];
21
+ /**
22
+ * Invalid access token
23
+ */
24
+ description: string;
25
+ /**
26
+ * Twilio was unable to validate your Access Token
27
+ */
28
+ explanation: string;
29
+ /**
30
+ * AccessTokenInvalid
31
+ */
32
+ name: string;
33
+ /**
34
+ * Not applicable.
35
+ */
36
+ solutions: string[];
37
+ constructor(message: string);
38
+ }
39
+ /**
40
+ * @public
41
+ * AuthorizationErrors.AccessTokenHeaderInvalid error.
42
+ * Error code `20102`.
43
+ */
44
+ class AccessTokenHeaderInvalid extends TwilioError {
45
+ /**
46
+ * Not applicable.
47
+ */
48
+ causes: string[];
49
+ /**
50
+ * Invalid access token header
51
+ */
52
+ description: string;
53
+ /**
54
+ * The header of the Access Token provided to the Twilio API was invalid
55
+ */
56
+ explanation: string;
57
+ /**
58
+ * AccessTokenHeaderInvalid
59
+ */
60
+ name: string;
61
+ /**
62
+ * Not applicable.
63
+ */
64
+ solutions: string[];
65
+ constructor(message: string);
66
+ }
67
+ /**
68
+ * @public
69
+ * AuthorizationErrors.AccessTokenIssuerInvalid error.
70
+ * Error code `20103`.
71
+ */
72
+ class AccessTokenIssuerInvalid extends TwilioError {
73
+ /**
74
+ * Not applicable.
75
+ */
76
+ causes: string[];
77
+ /**
78
+ * Invalid access token issuer/subject
79
+ */
80
+ description: string;
81
+ /**
82
+ * The issuer or subject of the Access Token provided to the Twilio API was invalid
83
+ */
84
+ explanation: string;
85
+ /**
86
+ * AccessTokenIssuerInvalid
87
+ */
88
+ name: string;
89
+ /**
90
+ * Not applicable.
91
+ */
92
+ solutions: string[];
93
+ constructor(message: string);
94
+ }
95
+ /**
96
+ * @public
97
+ * AuthorizationErrors.AccessTokenExpired error.
98
+ * Error code `20104`.
99
+ */
100
+ class AccessTokenExpired extends TwilioError {
101
+ /**
102
+ * Not applicable.
103
+ */
104
+ causes: string[];
105
+ /**
106
+ * Access token expired or expiration date invalid
107
+ */
108
+ description: string;
109
+ /**
110
+ * The Access Token provided to the Twilio API has expired, the expiration time specified in the token was invalid, or the expiration time specified was too far in the future
111
+ */
112
+ explanation: string;
113
+ /**
114
+ * AccessTokenExpired
115
+ */
116
+ name: string;
117
+ /**
118
+ * Not applicable.
119
+ */
120
+ solutions: string[];
121
+ constructor(message: string);
122
+ }
123
+ /**
124
+ * @public
125
+ * AuthorizationErrors.AccessTokenNotYetValid error.
126
+ * Error code `20105`.
127
+ */
128
+ class AccessTokenNotYetValid extends TwilioError {
129
+ /**
130
+ * Not applicable.
131
+ */
132
+ causes: string[];
133
+ /**
134
+ * Access token not yet valid
135
+ */
136
+ description: string;
137
+ /**
138
+ * The Access Token provided to the Twilio API is not yet valid
139
+ */
140
+ explanation: string;
141
+ /**
142
+ * AccessTokenNotYetValid
143
+ */
144
+ name: string;
145
+ /**
146
+ * Not applicable.
147
+ */
148
+ solutions: string[];
149
+ constructor(message: string);
150
+ }
151
+ /**
152
+ * @public
153
+ * AuthorizationErrors.AccessTokenGrantsInvalid error.
154
+ * Error code `20106`.
155
+ */
156
+ class AccessTokenGrantsInvalid extends TwilioError {
157
+ /**
158
+ * Not applicable.
159
+ */
160
+ causes: string[];
161
+ /**
162
+ * Invalid access token grants
163
+ */
164
+ description: string;
165
+ /**
166
+ * The Access Token signature and issuer were valid, but the grants specified in the token were invalid, unparseable, or did not authorize the action being requested
167
+ */
168
+ explanation: string;
169
+ /**
170
+ * AccessTokenGrantsInvalid
171
+ */
172
+ name: string;
173
+ /**
174
+ * Not applicable.
175
+ */
176
+ solutions: string[];
177
+ constructor(message: string);
178
+ }
179
+ /**
180
+ * @public
181
+ * AuthorizationErrors.AccessTokenSignatureInvalid error.
182
+ * Error code `20107`.
183
+ */
184
+ class AccessTokenSignatureInvalid extends TwilioError {
185
+ /**
186
+ * Not applicable.
187
+ */
188
+ causes: string[];
189
+ /**
190
+ * Invalid access token signature
191
+ */
192
+ description: string;
193
+ /**
194
+ * The signature for the Access Token provided was invalid.
195
+ */
196
+ explanation: string;
197
+ /**
198
+ * AccessTokenSignatureInvalid
199
+ */
200
+ name: string;
201
+ /**
202
+ * Not applicable.
203
+ */
204
+ solutions: string[];
205
+ constructor(message: string);
206
+ }
207
+ /**
208
+ * @public
209
+ * AuthorizationErrors.AuthenticationFailed error.
210
+ * Error code `20151`.
211
+ */
212
+ class AuthenticationFailed extends TwilioError {
213
+ /**
214
+ * Not applicable.
215
+ */
216
+ causes: string[];
217
+ /**
218
+ * Authentication Failed
219
+ */
220
+ description: string;
221
+ /**
222
+ * The Authentication with the provided JWT failed
223
+ */
224
+ explanation: string;
225
+ /**
226
+ * AuthenticationFailed
227
+ */
228
+ name: string;
229
+ /**
230
+ * Not applicable.
231
+ */
232
+ solutions: string[];
233
+ constructor(message: string);
234
+ }
235
+ /**
236
+ * @public
237
+ * AuthorizationErrors.ExpirationTimeExceedsMaxTimeAllowed error.
238
+ * Error code `20157`.
239
+ */
240
+ class ExpirationTimeExceedsMaxTimeAllowed extends TwilioError {
241
+ /**
242
+ * Not applicable.
243
+ */
244
+ causes: string[];
245
+ /**
246
+ * Expiration Time Exceeds Maximum Time Allowed
247
+ */
248
+ description: string;
249
+ /**
250
+ * The expiration time provided when creating the JWT exceeds the maximum duration allowed
251
+ */
252
+ explanation: string;
253
+ /**
254
+ * ExpirationTimeExceedsMaxTimeAllowed
255
+ */
256
+ name: string;
257
+ /**
258
+ * Not applicable.
259
+ */
260
+ solutions: string[];
261
+ constructor(message: string);
262
+ }
263
+ /**
264
+ * @public
265
+ * AuthorizationErrors.AuthorizationError error.
266
+ * Error code `31201`.
267
+ */
268
+ class AuthorizationError extends TwilioError {
269
+ /**
270
+ * Not applicable.
271
+ */
272
+ causes: string[];
273
+ /**
274
+ * Authorization error
275
+ */
276
+ description: string;
277
+ /**
278
+ * The request requires user authentication. The server understood the request, but is refusing to fulfill it.
279
+ */
280
+ explanation: string;
281
+ /**
282
+ * AuthorizationError
283
+ */
284
+ name: string;
285
+ /**
286
+ * Not applicable.
287
+ */
288
+ solutions: string[];
289
+ constructor(message: string);
290
+ }
291
+ /**
292
+ * @public
293
+ * AuthorizationErrors.RateExceededError error.
294
+ * Error code `31206`.
295
+ */
296
+ class RateExceededError extends TwilioError {
297
+ /**
298
+ * Rate limit exceeded.
299
+ */
300
+ causes: string[];
301
+ /**
302
+ * Rate exceeded authorized limit.
303
+ */
304
+ description: string;
305
+ /**
306
+ * The request performed exceeds the authorized limit.
307
+ */
308
+ explanation: string;
309
+ /**
310
+ * RateExceededError
311
+ */
312
+ name: string;
313
+ /**
314
+ * Ensure message send rate does not exceed authorized limits.
315
+ */
316
+ solutions: string[];
317
+ constructor(message: string);
318
+ }
319
+ /**
320
+ * @public
321
+ * AuthorizationErrors.CallMessageEventTypeInvalidError error.
322
+ * Error code `31210`.
323
+ */
324
+ class CallMessageEventTypeInvalidError extends TwilioError {
325
+ /**
326
+ * The Call Message Event Type is invalid and is not understood by Twilio Voice.
327
+ */
328
+ causes: string[];
329
+ /**
330
+ * Call Message Event Type is invalid.
331
+ */
332
+ description: string;
333
+ /**
334
+ * The Call Message Event Type is invalid and is not understood by Twilio Voice.
335
+ */
336
+ explanation: string;
337
+ /**
338
+ * CallMessageEventTypeInvalidError
339
+ */
340
+ name: string;
341
+ /**
342
+ * Ensure the Call Message Event Type is Valid and understood by Twilio Voice and try again.
343
+ */
344
+ solutions: string[];
345
+ constructor(message: string);
346
+ }
347
+ /**
348
+ * @public
349
+ * AuthorizationErrors.CallMessageUnexpectedStateError error.
350
+ * Error code `31211`.
351
+ */
352
+ class CallMessageUnexpectedStateError extends TwilioError {
353
+ /**
354
+ * The Call should be at least in the ringing state to subscribe and send Call Message.
355
+ */
356
+ causes: string[];
357
+ /**
358
+ * Call is not in the expected state.
359
+ */
360
+ description: string;
361
+ /**
362
+ * The Call should be at least in the ringing state to send Call Message.
363
+ */
364
+ explanation: string;
365
+ /**
366
+ * CallMessageUnexpectedStateError
367
+ */
368
+ name: string;
369
+ /**
370
+ * Ensure the Call is at least in the ringing state and the subscription is successful and try again.
371
+ */
372
+ solutions: string[];
373
+ constructor(message: string);
374
+ }
375
+ /**
376
+ * @public
377
+ * AuthorizationErrors.PayloadSizeExceededError error.
378
+ * Error code `31212`.
379
+ */
380
+ class PayloadSizeExceededError extends TwilioError {
381
+ /**
382
+ * The payload size of Call Message Event exceeds the authorized limit.
383
+ */
384
+ causes: string[];
385
+ /**
386
+ * Call Message Event Payload size exceeded authorized limit.
387
+ */
388
+ description: string;
389
+ /**
390
+ * The request performed to send a Call Message Event exceeds the payload size authorized limit
391
+ */
392
+ explanation: string;
393
+ /**
394
+ * PayloadSizeExceededError
395
+ */
396
+ name: string;
397
+ /**
398
+ * Reduce payload size of Call Message Event to be within the authorized limit and try again.
399
+ */
400
+ solutions: string[];
401
+ constructor(message: string);
402
+ }
403
+ /**
404
+ * @public
405
+ * AuthorizationErrors.AccessTokenRejected error.
406
+ * Error code `51007`.
407
+ */
408
+ class AccessTokenRejected extends TwilioError {
409
+ /**
410
+ * Not applicable.
411
+ */
412
+ causes: string[];
413
+ /**
414
+ * Token authentication is rejected by authentication service
415
+ */
416
+ description: string;
417
+ /**
418
+ * The authentication service has rejected the provided Access Token. To check whether the Access Token is structurally correct, you can use the tools available at https://jwt.io. For the details of Twilio's specific Access Token implementation including the grant format, check https://www.twilio.com/docs/iam/access-tokens.
419
+ */
420
+ explanation: string;
421
+ /**
422
+ * AccessTokenRejected
423
+ */
424
+ name: string;
425
+ /**
426
+ * Not applicable.
427
+ */
428
+ solutions: string[];
429
+ constructor(message: string);
430
+ }
431
+ }
432
+ /**
433
+ * @public
434
+ * Forbidden errors.
435
+ */
436
+ export declare namespace ForbiddenErrors {
437
+ /**
438
+ * @public
439
+ * ForbiddenErrors.Forbidden error.
440
+ * Error code `20403`.
441
+ */
442
+ class Forbidden extends TwilioError {
443
+ /**
444
+ * Not applicable.
445
+ */
446
+ causes: string[];
447
+ /**
448
+ * 403 Forbidden
449
+ */
450
+ description: string;
451
+ /**
452
+ * The account lacks permission to access the Twilio API. Typically this means the account has been suspended or closed. For assistance, please contact support
453
+ */
454
+ explanation: string;
455
+ /**
456
+ * Forbidden
457
+ */
458
+ name: string;
459
+ /**
460
+ * Not applicable.
461
+ */
462
+ solutions: string[];
463
+ constructor(message: string);
464
+ }
465
+ }
466
+ /**
467
+ * @public
468
+ * Client errors.
469
+ */
470
+ export declare namespace ClientErrors {
471
+ /**
472
+ * @public
473
+ * ClientErrors.BadRequest error.
474
+ * Error code `31400`.
475
+ */
476
+ class BadRequest extends TwilioError {
477
+ /**
478
+ * Not applicable.
479
+ */
480
+ causes: string[];
481
+ /**
482
+ * Bad Request (HTTP/SIP)
483
+ */
484
+ description: string;
485
+ /**
486
+ * The request could not be understood due to malformed syntax.
487
+ */
488
+ explanation: string;
489
+ /**
490
+ * BadRequest
491
+ */
492
+ name: string;
493
+ /**
494
+ * Not applicable.
495
+ */
496
+ solutions: string[];
497
+ constructor(message: string);
498
+ }
499
+ /**
500
+ * @public
501
+ * ClientErrors.Forbidden error.
502
+ * Error code `31403`.
503
+ */
504
+ class Forbidden extends TwilioError {
505
+ /**
506
+ * Not applicable.
507
+ */
508
+ causes: string[];
509
+ /**
510
+ * Forbidden (HTTP/SIP)
511
+ */
512
+ description: string;
513
+ /**
514
+ * The server understood the request, but is refusing to fulfill it.
515
+ */
516
+ explanation: string;
517
+ /**
518
+ * Forbidden
519
+ */
520
+ name: string;
521
+ /**
522
+ * Not applicable.
523
+ */
524
+ solutions: string[];
525
+ constructor(message: string);
526
+ }
527
+ /**
528
+ * @public
529
+ * ClientErrors.NotFound error.
530
+ * Error code `31404`.
531
+ */
532
+ class NotFound extends TwilioError {
533
+ /**
534
+ * The outbound call was made to an invalid phone number.
535
+ * The TwiML application sid is missing a Voice URL.
536
+ */
537
+ causes: string[];
538
+ /**
539
+ * Not Found (HTTP/SIP)
540
+ */
541
+ description: string;
542
+ /**
543
+ * The server has not found anything matching the request.
544
+ */
545
+ explanation: string;
546
+ /**
547
+ * NotFound
548
+ */
549
+ name: string;
550
+ /**
551
+ * Ensure the phone number dialed is valid.
552
+ * Ensure the TwiML application is configured correctly with a Voice URL link.
553
+ */
554
+ solutions: string[];
555
+ constructor(message: string);
556
+ }
557
+ /**
558
+ * @public
559
+ * ClientErrors.RequestTimeout error.
560
+ * Error code `31408`.
561
+ */
562
+ class RequestTimeout extends TwilioError {
563
+ /**
564
+ * Not applicable.
565
+ */
566
+ causes: string[];
567
+ /**
568
+ * Request Timeout (HTTP/SIP)
569
+ */
570
+ description: string;
571
+ /**
572
+ * A request timeout occurred.
573
+ */
574
+ explanation: string;
575
+ /**
576
+ * RequestTimeout
577
+ */
578
+ name: string;
579
+ /**
580
+ * Not applicable.
581
+ */
582
+ solutions: string[];
583
+ constructor(message: string);
584
+ }
585
+ /**
586
+ * @public
587
+ * ClientErrors.Conflict error.
588
+ * Error code `31409`.
589
+ */
590
+ class Conflict extends TwilioError {
591
+ /**
592
+ * Not applicable.
593
+ */
594
+ causes: string[];
595
+ /**
596
+ * Conflict (HTTP)
597
+ */
598
+ description: string;
599
+ /**
600
+ * The request could not be processed because of a conflict in the current state of the resource. Another request may be in progress.
601
+ */
602
+ explanation: string;
603
+ /**
604
+ * Conflict
605
+ */
606
+ name: string;
607
+ /**
608
+ * Not applicable.
609
+ */
610
+ solutions: string[];
611
+ constructor(message: string);
612
+ }
613
+ /**
614
+ * @public
615
+ * ClientErrors.UpgradeRequired error.
616
+ * Error code `31426`.
617
+ */
618
+ class UpgradeRequired extends TwilioError {
619
+ /**
620
+ * Not applicable.
621
+ */
622
+ causes: string[];
623
+ /**
624
+ * Upgrade Required (HTTP)
625
+ */
626
+ description: string;
627
+ /**
628
+ * This error is raised when an HTTP 426 response is received. The reason for this is most likely because of an incompatible TLS version. To mitigate this, you may need to upgrade the OS or download a more recent version of the SDK.
629
+ */
630
+ explanation: string;
631
+ /**
632
+ * UpgradeRequired
633
+ */
634
+ name: string;
635
+ /**
636
+ * Not applicable.
637
+ */
638
+ solutions: string[];
639
+ constructor(message: string);
640
+ }
641
+ /**
642
+ * @public
643
+ * ClientErrors.TooManyRequests error.
644
+ * Error code `31429`.
645
+ */
646
+ class TooManyRequests extends TwilioError {
647
+ /**
648
+ * Not applicable.
649
+ */
650
+ causes: string[];
651
+ /**
652
+ * Too Many Requests (HTTP)
653
+ */
654
+ description: string;
655
+ /**
656
+ * Too many requests were sent in a given amount of time.
657
+ */
658
+ explanation: string;
659
+ /**
660
+ * TooManyRequests
661
+ */
662
+ name: string;
663
+ /**
664
+ * Not applicable.
665
+ */
666
+ solutions: string[];
667
+ constructor(message: string);
668
+ }
669
+ /**
670
+ * @public
671
+ * ClientErrors.TemporarilyUnavailable error.
672
+ * Error code `31480`.
673
+ */
674
+ class TemporarilyUnavailable extends TwilioError {
675
+ /**
676
+ * Not applicable.
677
+ */
678
+ causes: string[];
679
+ /**
680
+ * Temporarily Unavailable (SIP)
681
+ */
682
+ description: string;
683
+ /**
684
+ * The callee is currently unavailable.
685
+ */
686
+ explanation: string;
687
+ /**
688
+ * TemporarilyUnavailable
689
+ */
690
+ name: string;
691
+ /**
692
+ * Not applicable.
693
+ */
694
+ solutions: string[];
695
+ constructor(message: string);
696
+ }
697
+ /**
698
+ * @public
699
+ * ClientErrors.CallTransactionDoesNotExist error.
700
+ * Error code `31481`.
701
+ */
702
+ class CallTransactionDoesNotExist extends TwilioError {
703
+ /**
704
+ * Not applicable.
705
+ */
706
+ causes: string[];
707
+ /**
708
+ * Call/Transaction Does Not Exist (SIP)
709
+ */
710
+ description: string;
711
+ /**
712
+ * The call no longer exists.
713
+ */
714
+ explanation: string;
715
+ /**
716
+ * CallTransactionDoesNotExist
717
+ */
718
+ name: string;
719
+ /**
720
+ * Not applicable.
721
+ */
722
+ solutions: string[];
723
+ constructor(message: string);
724
+ }
725
+ /**
726
+ * @public
727
+ * ClientErrors.AddressIncomplete error.
728
+ * Error code `31484`.
729
+ */
730
+ class AddressIncomplete extends TwilioError {
731
+ /**
732
+ * The outbound call was made with a phone number that has an invalid format.
733
+ */
734
+ causes: string[];
735
+ /**
736
+ * Address Incomplete (SIP)
737
+ */
738
+ description: string;
739
+ /**
740
+ * The provided phone number is malformed.
741
+ */
742
+ explanation: string;
743
+ /**
744
+ * AddressIncomplete
745
+ */
746
+ name: string;
747
+ /**
748
+ * Ensure the phone number dialed is formatted correctly.
749
+ */
750
+ solutions: string[];
751
+ constructor(message: string);
752
+ }
753
+ /**
754
+ * @public
755
+ * ClientErrors.BusyHere error.
756
+ * Error code `31486`.
757
+ */
758
+ class BusyHere extends TwilioError {
759
+ /**
760
+ * Not applicable.
761
+ */
762
+ causes: string[];
763
+ /**
764
+ * Busy Here (SIP)
765
+ */
766
+ description: string;
767
+ /**
768
+ * The callee is busy.
769
+ */
770
+ explanation: string;
771
+ /**
772
+ * BusyHere
773
+ */
774
+ name: string;
775
+ /**
776
+ * Not applicable.
777
+ */
778
+ solutions: string[];
779
+ constructor(message: string);
780
+ }
781
+ /**
782
+ * @public
783
+ * ClientErrors.RequestTerminated error.
784
+ * Error code `31487`.
785
+ */
786
+ class RequestTerminated extends TwilioError {
787
+ /**
788
+ * Not applicable.
789
+ */
790
+ causes: string[];
791
+ /**
792
+ * Request Terminated (SIP)
793
+ */
794
+ description: string;
795
+ /**
796
+ * The request has terminated as a result of a bye or cancel.
797
+ */
798
+ explanation: string;
799
+ /**
800
+ * RequestTerminated
801
+ */
802
+ name: string;
803
+ /**
804
+ * Not applicable.
805
+ */
806
+ solutions: string[];
807
+ constructor(message: string);
808
+ }
809
+ }
810
+ /**
811
+ * @public
812
+ * Server errors.
813
+ */
814
+ export declare namespace ServerErrors {
815
+ /**
816
+ * @public
817
+ * ServerErrors.InternalServerError error.
818
+ * Error code `31500`.
819
+ */
820
+ class InternalServerError extends TwilioError {
821
+ /**
822
+ * Not applicable.
823
+ */
824
+ causes: string[];
825
+ /**
826
+ * Internal Server Error (HTTP/SIP)
827
+ */
828
+ description: string;
829
+ /**
830
+ * The server could not fulfill the request due to some unexpected condition.
831
+ */
832
+ explanation: string;
833
+ /**
834
+ * InternalServerError
835
+ */
836
+ name: string;
837
+ /**
838
+ * Not applicable.
839
+ */
840
+ solutions: string[];
841
+ constructor(message: string);
842
+ }
843
+ /**
844
+ * @public
845
+ * ServerErrors.BadGateway error.
846
+ * Error code `31502`.
847
+ */
848
+ class BadGateway extends TwilioError {
849
+ /**
850
+ * Not applicable.
851
+ */
852
+ causes: string[];
853
+ /**
854
+ * Bad Gateway (HTTP/SIP)
855
+ */
856
+ description: string;
857
+ /**
858
+ * The server is acting as a gateway or proxy, and received an invalid response from a downstream server while attempting to fulfill the request.
859
+ */
860
+ explanation: string;
861
+ /**
862
+ * BadGateway
863
+ */
864
+ name: string;
865
+ /**
866
+ * Not applicable.
867
+ */
868
+ solutions: string[];
869
+ constructor(message: string);
870
+ }
871
+ /**
872
+ * @public
873
+ * ServerErrors.ServiceUnavailable error.
874
+ * Error code `31503`.
875
+ */
876
+ class ServiceUnavailable extends TwilioError {
877
+ /**
878
+ * Not applicable.
879
+ */
880
+ causes: string[];
881
+ /**
882
+ * Service Unavailable (HTTP/SIP)
883
+ */
884
+ description: string;
885
+ /**
886
+ * The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. This error can also be caused by the Application SID provided in the access token pointing to an inaccessible URL.
887
+ */
888
+ explanation: string;
889
+ /**
890
+ * ServiceUnavailable
891
+ */
892
+ name: string;
893
+ /**
894
+ * Not applicable.
895
+ */
896
+ solutions: string[];
897
+ constructor(message: string);
898
+ }
899
+ /**
900
+ * @public
901
+ * ServerErrors.GatewayTimeout error.
902
+ * Error code `31504`.
903
+ */
904
+ class GatewayTimeout extends TwilioError {
905
+ /**
906
+ * Not applicable.
907
+ */
908
+ causes: string[];
909
+ /**
910
+ * Gateway Timeout (HTTP/SIP)
911
+ */
912
+ description: string;
913
+ /**
914
+ * The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server.
915
+ */
916
+ explanation: string;
917
+ /**
918
+ * GatewayTimeout
919
+ */
920
+ name: string;
921
+ /**
922
+ * Not applicable.
923
+ */
924
+ solutions: string[];
925
+ constructor(message: string);
926
+ }
927
+ /**
928
+ * @public
929
+ * ServerErrors.DNSResolutionError error.
930
+ * Error code `31530`.
931
+ */
932
+ class DNSResolutionError extends TwilioError {
933
+ /**
934
+ * Not applicable.
935
+ */
936
+ causes: string[];
937
+ /**
938
+ * DNS Resolution Error (HTTP/SIP)
939
+ */
940
+ description: string;
941
+ /**
942
+ * Could not connect to the server.
943
+ */
944
+ explanation: string;
945
+ /**
946
+ * DNSResolutionError
947
+ */
948
+ name: string;
949
+ /**
950
+ * Not applicable.
951
+ */
952
+ solutions: string[];
953
+ constructor(message: string);
954
+ }
955
+ }
956
+ /**
957
+ * @public
958
+ * SIPServer errors.
959
+ */
960
+ export declare namespace SIPServerErrors {
961
+ /**
962
+ * @public
963
+ * SIPServerErrors.BusyEverywhere error.
964
+ * Error code `31600`.
965
+ */
966
+ class BusyEverywhere extends TwilioError {
967
+ /**
968
+ * Not applicable.
969
+ */
970
+ causes: string[];
971
+ /**
972
+ * Busy Everywhere (SIP)
973
+ */
974
+ description: string;
975
+ /**
976
+ * All possible destinations are busy.
977
+ */
978
+ explanation: string;
979
+ /**
980
+ * BusyEverywhere
981
+ */
982
+ name: string;
983
+ /**
984
+ * Not applicable.
985
+ */
986
+ solutions: string[];
987
+ constructor(message: string);
988
+ }
989
+ /**
990
+ * @public
991
+ * SIPServerErrors.Decline error.
992
+ * Error code `31603`.
993
+ */
994
+ class Decline extends TwilioError {
995
+ /**
996
+ * Not applicable.
997
+ */
998
+ causes: string[];
999
+ /**
1000
+ * Decline (SIP)
1001
+ */
1002
+ description: string;
1003
+ /**
1004
+ * The callee does not wish to participate in the call.
1005
+ */
1006
+ explanation: string;
1007
+ /**
1008
+ * Decline
1009
+ */
1010
+ name: string;
1011
+ /**
1012
+ * Not applicable.
1013
+ */
1014
+ solutions: string[];
1015
+ constructor(message: string);
1016
+ }
1017
+ /**
1018
+ * @public
1019
+ * SIPServerErrors.DoesNotExistAnywhere error.
1020
+ * Error code `31604`.
1021
+ */
1022
+ class DoesNotExistAnywhere extends TwilioError {
1023
+ /**
1024
+ * Not applicable.
1025
+ */
1026
+ causes: string[];
1027
+ /**
1028
+ * Does Not Exist Anywhere (SIP)
1029
+ */
1030
+ description: string;
1031
+ /**
1032
+ * The requested callee does not exist anywhere.
1033
+ */
1034
+ explanation: string;
1035
+ /**
1036
+ * DoesNotExistAnywhere
1037
+ */
1038
+ name: string;
1039
+ /**
1040
+ * Not applicable.
1041
+ */
1042
+ solutions: string[];
1043
+ constructor(message: string);
1044
+ }
1045
+ }
1046
+ /**
1047
+ * @public
1048
+ * TwiML errors.
1049
+ */
1050
+ export declare namespace TwiMLErrors {
1051
+ /**
1052
+ * @public
1053
+ * TwiMLErrors.InvalidApplicationSid error.
1054
+ * Error code `21218`.
1055
+ */
1056
+ class InvalidApplicationSid extends TwilioError {
1057
+ /**
1058
+ * Not applicable.
1059
+ */
1060
+ causes: string[];
1061
+ /**
1062
+ * Invalid ApplicationSid
1063
+ */
1064
+ description: string;
1065
+ /**
1066
+ * You attempted to initiate an outbound phone call with an invalid ApplicationSid. The application may not exist anymore or may not be available within your account
1067
+ */
1068
+ explanation: string;
1069
+ /**
1070
+ * InvalidApplicationSid
1071
+ */
1072
+ name: string;
1073
+ /**
1074
+ * Not applicable.
1075
+ */
1076
+ solutions: string[];
1077
+ constructor(message: string);
1078
+ }
1079
+ }
1080
+ /**
1081
+ * @public
1082
+ * General errors.
1083
+ */
1084
+ export declare namespace GeneralErrors {
1085
+ /**
1086
+ * @public
1087
+ * GeneralErrors.ConnectionError error.
1088
+ * Error code `31005`.
1089
+ */
1090
+ class ConnectionError extends TwilioError {
1091
+ /**
1092
+ * Not applicable.
1093
+ */
1094
+ causes: string[];
1095
+ /**
1096
+ * Connection error
1097
+ */
1098
+ description: string;
1099
+ /**
1100
+ * A connection error occurred during the call
1101
+ */
1102
+ explanation: string;
1103
+ /**
1104
+ * ConnectionError
1105
+ */
1106
+ name: string;
1107
+ /**
1108
+ * Not applicable.
1109
+ */
1110
+ solutions: string[];
1111
+ constructor(message: string);
1112
+ }
1113
+ /**
1114
+ * @public
1115
+ * GeneralErrors.CallCancelledError error.
1116
+ * Error code `31008`.
1117
+ */
1118
+ class CallCancelledError extends TwilioError {
1119
+ /**
1120
+ * The incoming call was cancelled because it was not answered in time or it was accepted/rejected by another application instance registered with the same identity.
1121
+ */
1122
+ causes: string[];
1123
+ /**
1124
+ * Call cancelled
1125
+ */
1126
+ description: string;
1127
+ /**
1128
+ * Unable to answer because the call has ended
1129
+ */
1130
+ explanation: string;
1131
+ /**
1132
+ * CallCancelledError
1133
+ */
1134
+ name: string;
1135
+ /**
1136
+ * Not applicable.
1137
+ */
1138
+ solutions: string[];
1139
+ constructor(message: string);
1140
+ }
1141
+ /**
1142
+ * @public
1143
+ * GeneralErrors.TransportError error.
1144
+ * Error code `31009`.
1145
+ */
1146
+ class TransportError extends TwilioError {
1147
+ /**
1148
+ * Not applicable.
1149
+ */
1150
+ causes: string[];
1151
+ /**
1152
+ * Transport error
1153
+ */
1154
+ description: string;
1155
+ /**
1156
+ * No transport available to send or receive messages
1157
+ */
1158
+ explanation: string;
1159
+ /**
1160
+ * TransportError
1161
+ */
1162
+ name: string;
1163
+ /**
1164
+ * Not applicable.
1165
+ */
1166
+ solutions: string[];
1167
+ constructor(message: string);
1168
+ }
1169
+ }
1170
+ /**
1171
+ * @public
1172
+ * MalformedRequest errors.
1173
+ */
1174
+ export declare namespace MalformedRequestErrors {
1175
+ /**
1176
+ * @public
1177
+ * MalformedRequestErrors.MalformedRequestError error.
1178
+ * Error code `31100`.
1179
+ */
1180
+ class MalformedRequestError extends TwilioError {
1181
+ /**
1182
+ * Invalid content or MessageType passed to sendMessage method.
1183
+ */
1184
+ causes: string[];
1185
+ /**
1186
+ * The request had malformed syntax.
1187
+ */
1188
+ description: string;
1189
+ /**
1190
+ * The request could not be understood due to malformed syntax.
1191
+ */
1192
+ explanation: string;
1193
+ /**
1194
+ * MalformedRequestError
1195
+ */
1196
+ name: string;
1197
+ /**
1198
+ * Ensure content and MessageType passed to sendMessage method are valid.
1199
+ */
1200
+ solutions: string[];
1201
+ constructor(message: string);
1202
+ }
1203
+ }
1204
+ /**
1205
+ * @public
1206
+ * Registration errors.
1207
+ */
1208
+ export declare namespace RegistrationErrors {
1209
+ /**
1210
+ * @public
1211
+ * RegistrationErrors.RegistrationError error.
1212
+ * Error code `31301`.
1213
+ */
1214
+ class RegistrationError extends TwilioError {
1215
+ /**
1216
+ * Not applicable.
1217
+ */
1218
+ causes: string[];
1219
+ /**
1220
+ * Registration error
1221
+ */
1222
+ description: string;
1223
+ /**
1224
+ *
1225
+ */
1226
+ explanation: string;
1227
+ /**
1228
+ * RegistrationError
1229
+ */
1230
+ name: string;
1231
+ /**
1232
+ * Not applicable.
1233
+ */
1234
+ solutions: string[];
1235
+ constructor(message: string);
1236
+ }
1237
+ /**
1238
+ * @public
1239
+ * RegistrationErrors.UnsupportedCancelMessageError error.
1240
+ * Error code `31302`.
1241
+ */
1242
+ class UnsupportedCancelMessageError extends TwilioError {
1243
+ /**
1244
+ * The identity associated with the Twilio Voice SDK is still registered to receive cancel push notification messages.
1245
+ */
1246
+ causes: string[];
1247
+ /**
1248
+ * Unsupported Cancel Message Error
1249
+ */
1250
+ description: string;
1251
+ /**
1252
+ * This version of the SDK no longer supports processing cancel push notification messages. You must register via Voice.register(...) on Android or [TwilioVoice registerWithAccessToken:deviceToken:completion:] on iOS with this version of the SDK to stop receiving cancel push notification messages. Cancellations are now handled internally and reported to you on behalf of the SDK.
1253
+ */
1254
+ explanation: string;
1255
+ /**
1256
+ * UnsupportedCancelMessageError
1257
+ */
1258
+ name: string;
1259
+ /**
1260
+ * The application must register via Voice.register(...) on Android or [TwilioVoice registerWithAccessToken:deviceToken:completion:] on iOS to stop receiving cancel push notification messages.
1261
+ */
1262
+ solutions: string[];
1263
+ constructor(message: string);
1264
+ }
1265
+ }
1266
+ /**
1267
+ * @public
1268
+ * UserMedia errors.
1269
+ */
1270
+ export declare namespace UserMediaErrors {
1271
+ /**
1272
+ * @public
1273
+ * UserMediaErrors.PermissionDeniedError error.
1274
+ * Error code `31401`.
1275
+ */
1276
+ class PermissionDeniedError extends TwilioError {
1277
+ /**
1278
+ * The user denied the getUserMedia request.
1279
+ * The browser denied the getUserMedia request.
1280
+ * The application has not been configured with the proper permissions.
1281
+ */
1282
+ causes: string[];
1283
+ /**
1284
+ * UserMedia Permission Denied Error
1285
+ */
1286
+ description: string;
1287
+ /**
1288
+ * The browser or end-user denied permissions to user media. Therefore we were unable to acquire input audio.
1289
+ */
1290
+ explanation: string;
1291
+ /**
1292
+ * PermissionDeniedError
1293
+ */
1294
+ name: string;
1295
+ /**
1296
+ * The user should accept the request next time prompted. If the browser saved the deny, the user should change that permission in their browser.
1297
+ * The user should to verify that the browser has permission to access the microphone at this address.
1298
+ * The user should ensure that the proper permissions have been granted in the mobile device OS.
1299
+ */
1300
+ solutions: string[];
1301
+ constructor(message: string);
1302
+ }
1303
+ }
1304
+ /**
1305
+ * @public
1306
+ * Signaling errors.
1307
+ */
1308
+ export declare namespace SignalingErrors {
1309
+ /**
1310
+ * @public
1311
+ * SignalingErrors.ConnectionDisconnected error.
1312
+ * Error code `53001`.
1313
+ */
1314
+ class ConnectionDisconnected extends TwilioError {
1315
+ /**
1316
+ * The device running your application lost its Internet connection.
1317
+ */
1318
+ causes: string[];
1319
+ /**
1320
+ * Signaling connection disconnected
1321
+ */
1322
+ description: string;
1323
+ /**
1324
+ * Raised whenever the signaling connection is unexpectedly disconnected.
1325
+ */
1326
+ explanation: string;
1327
+ /**
1328
+ * ConnectionDisconnected
1329
+ */
1330
+ name: string;
1331
+ /**
1332
+ * Ensure the device running your application has access to a stable Internet connection.
1333
+ */
1334
+ solutions: string[];
1335
+ constructor(message: string);
1336
+ }
1337
+ }
1338
+ /**
1339
+ * @public
1340
+ * Media errors.
1341
+ */
1342
+ export declare namespace MediaErrors {
1343
+ /**
1344
+ * @public
1345
+ * MediaErrors.ClientLocalDescFailed error.
1346
+ * Error code `53400`.
1347
+ */
1348
+ class ClientLocalDescFailed extends TwilioError {
1349
+ /**
1350
+ * The Client may not be using a supported WebRTC implementation.
1351
+ * The Client may not have the necessary resources to create or apply a new media description.
1352
+ */
1353
+ causes: string[];
1354
+ /**
1355
+ * Client is unable to create or apply a local media description
1356
+ */
1357
+ description: string;
1358
+ /**
1359
+ * Raised whenever a Client is unable to create or apply a local media description.
1360
+ */
1361
+ explanation: string;
1362
+ /**
1363
+ * ClientLocalDescFailed
1364
+ */
1365
+ name: string;
1366
+ /**
1367
+ * If you are experiencing this error using the JavaScript SDK, ensure you are running it with a supported WebRTC implementation.
1368
+ */
1369
+ solutions: string[];
1370
+ constructor(message: string);
1371
+ }
1372
+ /**
1373
+ * @public
1374
+ * MediaErrors.ServerLocalDescFailed error.
1375
+ * Error code `53401`.
1376
+ */
1377
+ class ServerLocalDescFailed extends TwilioError {
1378
+ /**
1379
+ * A server-side error has occurred.
1380
+ */
1381
+ causes: string[];
1382
+ /**
1383
+ * Server is unable to create or apply a local media description
1384
+ */
1385
+ description: string;
1386
+ /**
1387
+ * Raised whenever the Server is unable to create or apply a local media description.
1388
+ */
1389
+ explanation: string;
1390
+ /**
1391
+ * ServerLocalDescFailed
1392
+ */
1393
+ name: string;
1394
+ /**
1395
+ * If the problem persists, try connecting to another region.
1396
+ */
1397
+ solutions: string[];
1398
+ constructor(message: string);
1399
+ }
1400
+ /**
1401
+ * @public
1402
+ * MediaErrors.ClientRemoteDescFailed error.
1403
+ * Error code `53402`.
1404
+ */
1405
+ class ClientRemoteDescFailed extends TwilioError {
1406
+ /**
1407
+ * The Client may not be using a supported WebRTC implementation.
1408
+ * The Client may be connecting peer-to-peer with another Participant that is not using a supported WebRTC implementation.
1409
+ * The Client may not have the necessary resources to apply a new media description.
1410
+ */
1411
+ causes: string[];
1412
+ /**
1413
+ * Client is unable to apply a remote media description
1414
+ */
1415
+ description: string;
1416
+ /**
1417
+ * Raised whenever the Client receives a remote media description but is unable to apply it.
1418
+ */
1419
+ explanation: string;
1420
+ /**
1421
+ * ClientRemoteDescFailed
1422
+ */
1423
+ name: string;
1424
+ /**
1425
+ * If you are experiencing this error using the JavaScript SDK, ensure you are running it with a supported WebRTC implementation.
1426
+ */
1427
+ solutions: string[];
1428
+ constructor(message: string);
1429
+ }
1430
+ /**
1431
+ * @public
1432
+ * MediaErrors.ServerRemoteDescFailed error.
1433
+ * Error code `53403`.
1434
+ */
1435
+ class ServerRemoteDescFailed extends TwilioError {
1436
+ /**
1437
+ * The Client may not be using a supported WebRTC implementation.
1438
+ * The Client may not have the necessary resources to apply a new media description.
1439
+ * A Server-side error may have caused the Server to generate an invalid media description.
1440
+ */
1441
+ causes: string[];
1442
+ /**
1443
+ * Server is unable to apply a remote media description
1444
+ */
1445
+ description: string;
1446
+ /**
1447
+ * Raised whenever the Server receives a remote media description but is unable to apply it.
1448
+ */
1449
+ explanation: string;
1450
+ /**
1451
+ * ServerRemoteDescFailed
1452
+ */
1453
+ name: string;
1454
+ /**
1455
+ * If you are experiencing this error using the JavaScript SDK, ensure you are running it with a supported WebRTC implementation.
1456
+ * If the problem persists, try connecting to another region.
1457
+ */
1458
+ solutions: string[];
1459
+ constructor(message: string);
1460
+ }
1461
+ /**
1462
+ * @public
1463
+ * MediaErrors.NoSupportedCodec error.
1464
+ * Error code `53404`.
1465
+ */
1466
+ class NoSupportedCodec extends TwilioError {
1467
+ /**
1468
+ * The C++ SDK was built without the recommended set of codecs.
1469
+ * The JavaScript SDK is running in a browser that does not implement the recommended set of codecs.
1470
+ */
1471
+ causes: string[];
1472
+ /**
1473
+ * No supported codec
1474
+ */
1475
+ description: string;
1476
+ /**
1477
+ * Raised whenever the intersection of codecs supported by the Client and the Server (or, in peer-to-peer, the Client and another Participant) is empty.
1478
+ */
1479
+ explanation: string;
1480
+ /**
1481
+ * NoSupportedCodec
1482
+ */
1483
+ name: string;
1484
+ /**
1485
+ * If you are experiencing this error using the C++ SDK, ensure you build it with the recommended set of codecs.
1486
+ * If you are experiencing this error using the JavaScript SDK, ensure you are using a compatible browser.
1487
+ */
1488
+ solutions: string[];
1489
+ constructor(message: string);
1490
+ }
1491
+ /**
1492
+ * @public
1493
+ * MediaErrors.ConnectionError error.
1494
+ * Error code `53405`.
1495
+ */
1496
+ class ConnectionError extends TwilioError {
1497
+ /**
1498
+ * The Client was unable to establish a media connection.
1499
+ * A media connection which was active failed liveliness checks.
1500
+ */
1501
+ causes: string[];
1502
+ /**
1503
+ * Media connection failed
1504
+ */
1505
+ description: string;
1506
+ /**
1507
+ * Raised by the Client or Server whenever a media connection fails.
1508
+ */
1509
+ explanation: string;
1510
+ /**
1511
+ * ConnectionError
1512
+ */
1513
+ name: string;
1514
+ /**
1515
+ * If the problem persists, try connecting to another region.
1516
+ * Check your Client's network connectivity.
1517
+ * If you've provided custom ICE Servers then ensure that the URLs and credentials are valid.
1518
+ */
1519
+ solutions: string[];
1520
+ constructor(message: string);
1521
+ }
1522
+ /**
1523
+ * @public
1524
+ * MediaErrors.MediaDtlsTransportFailedError error.
1525
+ * Error code `53407`.
1526
+ */
1527
+ class MediaDtlsTransportFailedError extends TwilioError {
1528
+ /**
1529
+ * One or both of the DTLS peers have an invalid certificate.
1530
+ * One or both of the DTLS peers have an outdated version of DTLS.
1531
+ * One or both of the DTLS peers lost internet connectivity while performing a DTLS handshake.
1532
+ */
1533
+ causes: string[];
1534
+ /**
1535
+ * The media connection failed due to DTLS handshake failure
1536
+ */
1537
+ description: string;
1538
+ /**
1539
+ * There was a problem while negotiating with the remote DTLS peer. Therefore the Client will not be able to establish the media connection.
1540
+ */
1541
+ explanation: string;
1542
+ /**
1543
+ * MediaDtlsTransportFailedError
1544
+ */
1545
+ name: string;
1546
+ /**
1547
+ * Ensure that your certificate is valid.
1548
+ * Ensure that you have a stable internet connection.
1549
+ * Ensure that the browser or the Mobile SDK supports newer versions of DTLS.
1550
+ */
1551
+ solutions: string[];
1552
+ constructor(message: string);
1553
+ }
1554
+ }
1555
+ /**
1556
+ * @internal
1557
+ */
1558
+ export declare const errorsByCode: ReadonlyMap<number, typeof TwilioError>;