bandwidth-sdk 8.1.5 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/.github/workflows/deploy.yml +1 -1
  2. package/.openapi-generator/FILES +4 -0
  3. package/README.md +2 -0
  4. package/api/media-api.ts +12 -12
  5. package/bandwidth.yml +65 -4
  6. package/configuration.ts +8 -2
  7. package/coverage/clover.xml +121 -104
  8. package/coverage/coverage-final.json +17 -15
  9. package/coverage/lcov-report/index.html +24 -24
  10. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
  11. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
  12. package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1 -1
  13. package/coverage/lcov-report/node-sdk/api/index.html +1 -1
  14. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +13 -13
  15. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
  16. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
  17. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +1 -1
  18. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
  19. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
  20. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
  21. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +1 -1
  22. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
  23. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  24. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  25. package/coverage/lcov-report/node-sdk/common.ts.html +18 -18
  26. package/coverage/lcov-report/node-sdk/configuration.ts.html +31 -13
  27. package/coverage/lcov-report/node-sdk/index.html +19 -19
  28. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
  29. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
  30. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  31. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +14 -14
  32. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  33. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  34. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +13 -13
  35. package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
  36. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  37. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  38. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +5 -2
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +8 -2
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +26 -2
  44. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  45. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  46. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  47. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  48. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +8 -2
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Refer.ts.html +190 -0
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +5 -5
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +8 -2
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +8 -2
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -2
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +23 -8
  69. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +7 -4
  70. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
  71. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +1 -1
  80. package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
  81. package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
  82. package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
  83. package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +1 -1
  84. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
  85. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
  86. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
  87. package/coverage/lcov-report/node-sdk/models/index.html +20 -5
  88. package/coverage/lcov-report/node-sdk/models/index.ts.html +10 -4
  89. package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
  90. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
  91. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
  92. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
  93. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
  94. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
  95. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
  96. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
  97. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
  98. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
  99. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
  100. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
  101. package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +1 -1
  102. package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +1 -1
  103. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
  104. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
  105. package/coverage/lcov-report/node-sdk/models/refer-call-status-enum.ts.html +172 -0
  106. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
  107. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
  108. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
  109. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
  110. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
  111. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
  112. package/coverage/lcov.info +232 -191
  113. package/custom_templates/configuration.mustache +7 -1
  114. package/dist/api/media-api.d.ts +12 -12
  115. package/dist/api/media-api.js +12 -12
  116. package/dist/configuration.d.ts +5 -0
  117. package/dist/configuration.js +5 -4
  118. package/dist/models/answer-callback.d.ts +1 -1
  119. package/dist/models/bridge-complete-callback.d.ts +1 -1
  120. package/dist/models/bridge-target-complete-callback.d.ts +1 -1
  121. package/dist/models/bxml/verbs/Connect.d.ts +1 -0
  122. package/dist/models/bxml/verbs/Forward.d.ts +2 -0
  123. package/dist/models/bxml/verbs/Gather.d.ts +8 -0
  124. package/dist/models/bxml/verbs/Record.d.ts +2 -0
  125. package/dist/models/bxml/verbs/Refer.d.ts +27 -0
  126. package/dist/models/bxml/verbs/Refer.js +45 -0
  127. package/dist/models/bxml/verbs/StartRecording.d.ts +2 -0
  128. package/dist/models/bxml/verbs/StartTranscription.d.ts +2 -0
  129. package/dist/models/bxml/verbs/Transfer.d.ts +1 -0
  130. package/dist/models/bxml/verbs/index.d.ts +1 -0
  131. package/dist/models/bxml/verbs/index.js +1 -0
  132. package/dist/models/conference-completed-callback.d.ts +1 -1
  133. package/dist/models/conference-created-callback.d.ts +1 -1
  134. package/dist/models/conference-member-exit-callback.d.ts +1 -1
  135. package/dist/models/conference-member-join-callback.d.ts +1 -1
  136. package/dist/models/conference-recording-available-callback.d.ts +1 -1
  137. package/dist/models/conference-redirect-callback.d.ts +1 -1
  138. package/dist/models/disconnect-callback.d.ts +1 -1
  139. package/dist/models/dtmf-callback.d.ts +1 -1
  140. package/dist/models/gather-callback.d.ts +1 -1
  141. package/dist/models/index.d.ts +2 -0
  142. package/dist/models/index.js +2 -0
  143. package/dist/models/initiate-callback.d.ts +1 -1
  144. package/dist/models/machine-detection-complete-callback.d.ts +1 -1
  145. package/dist/models/recording-available-callback.d.ts +1 -1
  146. package/dist/models/recording-complete-callback.d.ts +1 -1
  147. package/dist/models/redirect-callback.d.ts +1 -1
  148. package/dist/models/refer-call-status-enum.d.ts +19 -0
  149. package/dist/models/refer-call-status-enum.js +23 -0
  150. package/dist/models/refer-complete-callback.d.ts +72 -0
  151. package/dist/models/refer-complete-callback.js +15 -0
  152. package/dist/models/transcription-available-callback.d.ts +1 -1
  153. package/dist/models/transfer-answer-callback.d.ts +1 -1
  154. package/dist/models/transfer-complete-callback.d.ts +1 -1
  155. package/dist/models/transfer-disconnect-callback.d.ts +1 -1
  156. package/docs/AnswerCallback.md +1 -1
  157. package/docs/BridgeCompleteCallback.md +1 -1
  158. package/docs/BridgeTargetCompleteCallback.md +1 -1
  159. package/docs/ConferenceCompletedCallback.md +1 -1
  160. package/docs/ConferenceCreatedCallback.md +1 -1
  161. package/docs/ConferenceMemberExitCallback.md +1 -1
  162. package/docs/ConferenceMemberJoinCallback.md +1 -1
  163. package/docs/ConferenceRecordingAvailableCallback.md +1 -1
  164. package/docs/ConferenceRedirectCallback.md +1 -1
  165. package/docs/DisconnectCallback.md +1 -1
  166. package/docs/DtmfCallback.md +1 -1
  167. package/docs/GatherCallback.md +1 -1
  168. package/docs/InitiateCallback.md +1 -1
  169. package/docs/MachineDetectionCompleteCallback.md +1 -1
  170. package/docs/MediaApi.md +6 -6
  171. package/docs/RecordingAvailableCallback.md +1 -1
  172. package/docs/RecordingCompleteCallback.md +1 -1
  173. package/docs/RedirectCallback.md +1 -1
  174. package/docs/ReferCallStatusEnum.md +11 -0
  175. package/docs/ReferCompleteCallback.md +49 -0
  176. package/docs/TranscriptionAvailableCallback.md +1 -1
  177. package/docs/TransferAnswerCallback.md +1 -1
  178. package/docs/TransferCompleteCallback.md +1 -1
  179. package/docs/TransferDisconnectCallback.md +1 -1
  180. package/models/answer-callback.ts +1 -1
  181. package/models/bridge-complete-callback.ts +1 -1
  182. package/models/bridge-target-complete-callback.ts +1 -1
  183. package/models/bxml/verbs/Connect.ts +1 -0
  184. package/models/bxml/verbs/Forward.ts +2 -0
  185. package/models/bxml/verbs/Gather.ts +8 -0
  186. package/models/bxml/verbs/Record.ts +2 -0
  187. package/models/bxml/verbs/Refer.ts +35 -0
  188. package/models/bxml/verbs/StartRecording.ts +2 -0
  189. package/models/bxml/verbs/StartTranscription.ts +2 -0
  190. package/models/bxml/verbs/Transfer.ts +1 -0
  191. package/models/bxml/verbs/index.ts +1 -0
  192. package/models/conference-completed-callback.ts +1 -1
  193. package/models/conference-created-callback.ts +1 -1
  194. package/models/conference-member-exit-callback.ts +1 -1
  195. package/models/conference-member-join-callback.ts +1 -1
  196. package/models/conference-recording-available-callback.ts +1 -1
  197. package/models/conference-redirect-callback.ts +1 -1
  198. package/models/disconnect-callback.ts +1 -1
  199. package/models/dtmf-callback.ts +1 -1
  200. package/models/gather-callback.ts +1 -1
  201. package/models/index.ts +2 -0
  202. package/models/initiate-callback.ts +1 -1
  203. package/models/machine-detection-complete-callback.ts +1 -1
  204. package/models/recording-available-callback.ts +1 -1
  205. package/models/recording-complete-callback.ts +1 -1
  206. package/models/redirect-callback.ts +1 -1
  207. package/models/refer-call-status-enum.ts +29 -0
  208. package/models/refer-complete-callback.ts +84 -0
  209. package/models/transcription-available-callback.ts +1 -1
  210. package/models/transfer-answer-callback.ts +1 -1
  211. package/models/transfer-complete-callback.ts +1 -1
  212. package/models/transfer-disconnect-callback.ts +1 -1
  213. package/package.json +1 -1
  214. package/tests/smoke/bxml.test.ts +24 -7
  215. package/tests/unit/api/calls-api.test.ts +1 -2
  216. package/tests/unit/api/conferences-api.test.ts +1 -2
  217. package/tests/unit/api/endpoints-api.test.ts +1 -2
  218. package/tests/unit/api/media-api.test.ts +1 -2
  219. package/tests/unit/api/messages-api.test.ts +1 -2
  220. package/tests/unit/api/mfaapi.test.ts +1 -2
  221. package/tests/unit/api/multi-channel-api.test.ts +1 -2
  222. package/tests/unit/api/phone-number-lookup-api.test.ts +1 -2
  223. package/tests/unit/api/recordings-api.test.ts +1 -2
  224. package/tests/unit/api/statistics-api.test.ts +1 -2
  225. package/tests/unit/api/toll-free-verification-api.test.ts +1 -2
  226. package/tests/unit/api/transcriptions-api.test.ts +1 -2
  227. package/tests/unit/models/bxml/verbs/Connect.test.ts +6 -5
  228. package/tests/unit/models/bxml/verbs/Forward.test.ts +4 -2
  229. package/tests/unit/models/bxml/verbs/Gather.test.ts +14 -6
  230. package/tests/unit/models/bxml/verbs/Record.test.ts +4 -2
  231. package/tests/unit/models/bxml/verbs/Refer.test.ts +40 -0
  232. package/tests/unit/models/bxml/verbs/StartRecording.test.ts +4 -2
  233. package/tests/unit/models/bxml/verbs/StartTranscription.test.ts +8 -6
  234. package/tests/unit/models/bxml/verbs/Transfer.test.ts +7 -6
  235. package/tests/unit/models/refer-call-status-enum.test.ts +12 -0
  236. package/tests/unit/models/refer-complete-callback.test.ts +41 -0
@@ -22,6 +22,7 @@ export interface ConfigurationParameters {
22
22
  clientId?: string;
23
23
  clientSecret?: string;
24
24
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
25
+ accessTokenUrl?: string;
25
26
  awsv4?: AWSv4Configuration;
26
27
  basePath?: string;
27
28
  serverIndex?: number;
@@ -57,6 +58,10 @@ export class Configuration {
57
58
  * @param scopes oauth2 scope
58
59
  */
59
60
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
61
+ /**
62
+ * oauth2 token url
63
+ */
64
+ accessTokenUrl?: string;
60
65
  /**
61
66
  * temporary access token storage
62
67
  */
@@ -105,6 +110,7 @@ export class Configuration {
105
110
  this.clientSecret = param.clientSecret;
106
111
  this.tempAccessToken;
107
112
  this.tempAccessTokenExpiration;
113
+ this.accessTokenUrl = param.accessTokenUrl ?? 'https://api.bandwidth.com/api/v1/oauth2/token';
108
114
  this.accessToken = param.accessToken ?? (async (name, scopes) => {
109
115
  const now = Math.floor(Date.now() / 1000);
110
116
  if (this.tempAccessToken && (!this.tempAccessTokenExpiration || this.tempAccessTokenExpiration > now + 60)) {
@@ -115,7 +121,7 @@ export class Configuration {
115
121
  headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
116
122
  auth: { username: this.clientId || '', password: this.clientSecret || '' },
117
123
  data: 'grant_type=client_credentials',
118
- url: 'https://api.bandwidth.com/api/v1/oauth2/token'
124
+ url: this.accessTokenUrl
119
125
  };
120
126
  const response = await globalAxios.request(tokenRequestArgs);
121
127
  this.tempAccessToken = response.data.access_token;
@@ -21,7 +21,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
21
21
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
22
22
  * @summary Delete Media
23
23
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
24
- * @param {string} mediaId Media ID to retrieve.
24
+ * @param {string} mediaId The ID of the media file.
25
25
  * @param {*} [options] Override http request option.
26
26
  * @throws {RequiredError}
27
27
  */
@@ -30,7 +30,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
30
30
  * Downloads a media file you previously uploaded.
31
31
  * @summary Get Media
32
32
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
33
- * @param {string} mediaId Media ID to retrieve.
33
+ * @param {string} mediaId The ID of the media file.
34
34
  * @param {*} [options] Override http request option.
35
35
  * @throws {RequiredError}
36
36
  */
@@ -48,7 +48,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
48
48
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
49
49
  * @summary Upload Media
50
50
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
51
- * @param {string} mediaId Media ID to retrieve.
51
+ * @param {string} mediaId The ID of the media file.
52
52
  * @param {File} body
53
53
  * @param {string} [contentType] The media type of the entity-body.
54
54
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -65,7 +65,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
65
65
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
66
66
  * @summary Delete Media
67
67
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
68
- * @param {string} mediaId Media ID to retrieve.
68
+ * @param {string} mediaId The ID of the media file.
69
69
  * @param {*} [options] Override http request option.
70
70
  * @throws {RequiredError}
71
71
  */
@@ -74,7 +74,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
74
74
  * Downloads a media file you previously uploaded.
75
75
  * @summary Get Media
76
76
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
77
- * @param {string} mediaId Media ID to retrieve.
77
+ * @param {string} mediaId The ID of the media file.
78
78
  * @param {*} [options] Override http request option.
79
79
  * @throws {RequiredError}
80
80
  */
@@ -92,7 +92,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
92
92
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
93
93
  * @summary Upload Media
94
94
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
95
- * @param {string} mediaId Media ID to retrieve.
95
+ * @param {string} mediaId The ID of the media file.
96
96
  * @param {File} body
97
97
  * @param {string} [contentType] The media type of the entity-body.
98
98
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -109,7 +109,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
109
109
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
110
110
  * @summary Delete Media
111
111
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
112
- * @param {string} mediaId Media ID to retrieve.
112
+ * @param {string} mediaId The ID of the media file.
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
@@ -118,7 +118,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
118
118
  * Downloads a media file you previously uploaded.
119
119
  * @summary Get Media
120
120
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
121
- * @param {string} mediaId Media ID to retrieve.
121
+ * @param {string} mediaId The ID of the media file.
122
122
  * @param {*} [options] Override http request option.
123
123
  * @throws {RequiredError}
124
124
  */
@@ -136,7 +136,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
136
136
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
137
137
  * @summary Upload Media
138
138
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
139
- * @param {string} mediaId Media ID to retrieve.
139
+ * @param {string} mediaId The ID of the media file.
140
140
  * @param {File} body
141
141
  * @param {string} [contentType] The media type of the entity-body.
142
142
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -153,7 +153,7 @@ export declare class MediaApi extends BaseAPI {
153
153
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
154
154
  * @summary Delete Media
155
155
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
156
- * @param {string} mediaId Media ID to retrieve.
156
+ * @param {string} mediaId The ID of the media file.
157
157
  * @param {*} [options] Override http request option.
158
158
  * @throws {RequiredError}
159
159
  */
@@ -162,7 +162,7 @@ export declare class MediaApi extends BaseAPI {
162
162
  * Downloads a media file you previously uploaded.
163
163
  * @summary Get Media
164
164
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
165
- * @param {string} mediaId Media ID to retrieve.
165
+ * @param {string} mediaId The ID of the media file.
166
166
  * @param {*} [options] Override http request option.
167
167
  * @throws {RequiredError}
168
168
  */
@@ -180,7 +180,7 @@ export declare class MediaApi extends BaseAPI {
180
180
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
181
181
  * @summary Upload Media
182
182
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
183
- * @param {string} mediaId Media ID to retrieve.
183
+ * @param {string} mediaId The ID of the media file.
184
184
  * @param {File} body
185
185
  * @param {string} [contentType] The media type of the entity-body.
186
186
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -101,7 +101,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
101
101
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
102
102
  * @summary Delete Media
103
103
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
104
- * @param {string} mediaId Media ID to retrieve.
104
+ * @param {string} mediaId The ID of the media file.
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
@@ -156,7 +156,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
156
156
  * Downloads a media file you previously uploaded.
157
157
  * @summary Get Media
158
158
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
159
- * @param {string} mediaId Media ID to retrieve.
159
+ * @param {string} mediaId The ID of the media file.
160
160
  * @param {*} [options] Override http request option.
161
161
  * @throws {RequiredError}
162
162
  */
@@ -266,7 +266,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
266
266
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
267
267
  * @summary Upload Media
268
268
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
269
- * @param {string} mediaId Media ID to retrieve.
269
+ * @param {string} mediaId The ID of the media file.
270
270
  * @param {File} body
271
271
  * @param {string} [contentType] The media type of the entity-body.
272
272
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -343,7 +343,7 @@ var MediaApiFp = function (configuration) {
343
343
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
344
344
  * @summary Delete Media
345
345
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
346
- * @param {string} mediaId Media ID to retrieve.
346
+ * @param {string} mediaId The ID of the media file.
347
347
  * @param {*} [options] Override http request option.
348
348
  * @throws {RequiredError}
349
349
  */
@@ -367,7 +367,7 @@ var MediaApiFp = function (configuration) {
367
367
  * Downloads a media file you previously uploaded.
368
368
  * @summary Get Media
369
369
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
370
- * @param {string} mediaId Media ID to retrieve.
370
+ * @param {string} mediaId The ID of the media file.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
373
  */
@@ -415,7 +415,7 @@ var MediaApiFp = function (configuration) {
415
415
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
416
416
  * @summary Upload Media
417
417
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
418
- * @param {string} mediaId Media ID to retrieve.
418
+ * @param {string} mediaId The ID of the media file.
419
419
  * @param {File} body
420
420
  * @param {string} [contentType] The media type of the entity-body.
421
421
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -451,7 +451,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
451
451
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
452
452
  * @summary Delete Media
453
453
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
454
- * @param {string} mediaId Media ID to retrieve.
454
+ * @param {string} mediaId The ID of the media file.
455
455
  * @param {*} [options] Override http request option.
456
456
  * @throws {RequiredError}
457
457
  */
@@ -462,7 +462,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
462
462
  * Downloads a media file you previously uploaded.
463
463
  * @summary Get Media
464
464
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
465
- * @param {string} mediaId Media ID to retrieve.
465
+ * @param {string} mediaId The ID of the media file.
466
466
  * @param {*} [options] Override http request option.
467
467
  * @throws {RequiredError}
468
468
  */
@@ -484,7 +484,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
484
484
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
485
485
  * @summary Upload Media
486
486
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
487
- * @param {string} mediaId Media ID to retrieve.
487
+ * @param {string} mediaId The ID of the media file.
488
488
  * @param {File} body
489
489
  * @param {string} [contentType] The media type of the entity-body.
490
490
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -509,7 +509,7 @@ var MediaApi = /** @class */ (function (_super) {
509
509
  * Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
510
510
  * @summary Delete Media
511
511
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
512
- * @param {string} mediaId Media ID to retrieve.
512
+ * @param {string} mediaId The ID of the media file.
513
513
  * @param {*} [options] Override http request option.
514
514
  * @throws {RequiredError}
515
515
  */
@@ -521,7 +521,7 @@ var MediaApi = /** @class */ (function (_super) {
521
521
  * Downloads a media file you previously uploaded.
522
522
  * @summary Get Media
523
523
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
524
- * @param {string} mediaId Media ID to retrieve.
524
+ * @param {string} mediaId The ID of the media file.
525
525
  * @param {*} [options] Override http request option.
526
526
  * @throws {RequiredError}
527
527
  */
@@ -545,7 +545,7 @@ var MediaApi = /** @class */ (function (_super) {
545
545
  * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
546
546
  * @summary Upload Media
547
547
  * @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
548
- * @param {string} mediaId Media ID to retrieve.
548
+ * @param {string} mediaId The ID of the media file.
549
549
  * @param {File} body
550
550
  * @param {string} [contentType] The media type of the entity-body.
551
551
  * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -27,6 +27,7 @@ export interface ConfigurationParameters {
27
27
  clientId?: string;
28
28
  clientSecret?: string;
29
29
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
30
+ accessTokenUrl?: string;
30
31
  awsv4?: AWSv4Configuration;
31
32
  basePath?: string;
32
33
  serverIndex?: number;
@@ -61,6 +62,10 @@ export declare class Configuration {
61
62
  * @param scopes oauth2 scope
62
63
  */
63
64
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
65
+ /**
66
+ * oauth2 token url
67
+ */
68
+ accessTokenUrl?: string;
64
69
  /**
65
70
  * temporary access token storage
66
71
  */
@@ -65,7 +65,7 @@ var Configuration = /** @class */ (function () {
65
65
  function Configuration(param) {
66
66
  if (param === void 0) { param = {}; }
67
67
  var _this = this;
68
- var _a, _b;
68
+ var _a, _b, _c;
69
69
  this.apiKey = param.apiKey;
70
70
  this.username = param.username;
71
71
  this.password = param.password;
@@ -73,7 +73,8 @@ var Configuration = /** @class */ (function () {
73
73
  this.clientSecret = param.clientSecret;
74
74
  this.tempAccessToken;
75
75
  this.tempAccessTokenExpiration;
76
- this.accessToken = (_a = param.accessToken) !== null && _a !== void 0 ? _a : (function (name, scopes) { return __awaiter(_this, void 0, void 0, function () {
76
+ this.accessTokenUrl = (_a = param.accessTokenUrl) !== null && _a !== void 0 ? _a : 'https://api.bandwidth.com/api/v1/oauth2/token';
77
+ this.accessToken = (_b = param.accessToken) !== null && _b !== void 0 ? _b : (function (name, scopes) { return __awaiter(_this, void 0, void 0, function () {
77
78
  var now, tokenRequestArgs, response;
78
79
  return __generator(this, function (_a) {
79
80
  switch (_a.label) {
@@ -88,7 +89,7 @@ var Configuration = /** @class */ (function () {
88
89
  headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
89
90
  auth: { username: this.clientId || '', password: this.clientSecret || '' },
90
91
  data: 'grant_type=client_credentials',
91
- url: 'https://api.bandwidth.com/api/v1/oauth2/token'
92
+ url: this.accessTokenUrl
92
93
  };
93
94
  return [4 /*yield*/, axios_1.default.request(tokenRequestArgs)];
94
95
  case 2:
@@ -103,7 +104,7 @@ var Configuration = /** @class */ (function () {
103
104
  this.awsv4 = param.awsv4;
104
105
  this.basePath = param.basePath;
105
106
  this.serverIndex = param.serverIndex;
106
- this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (_b = param.baseOptions) === null || _b === void 0 ? void 0 : _b.headers), { 'User-Agent': "OpenAPI-Generator/8.1.5/typescript-axios" }) });
107
+ this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (_c = param.baseOptions) === null || _c === void 0 ? void 0 : _c.headers), { 'User-Agent': "OpenAPI-Generator/8.3.0/typescript-axios" }) });
107
108
  this.formDataCtor = param.formDataCtor;
108
109
  }
109
110
  /**
@@ -16,7 +16,7 @@ import type { MachineDetectionResult } from './machine-detection-result';
16
16
  */
17
17
  export interface AnswerCallback {
18
18
  /**
19
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
20
20
  */
21
21
  'eventType'?: string;
22
22
  /**
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
15
15
  */
16
16
  export interface BridgeCompleteCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
15
15
  */
16
16
  export interface BridgeTargetCompleteCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -2,6 +2,7 @@ import { NestableVerb } from '../NestableVerb';
2
2
  import { Endpoint } from './Endpoint';
3
3
  export interface ConnectAttributes {
4
4
  eventCallbackUrl?: string;
5
+ eventFallbackUrl?: string;
5
6
  }
6
7
  /**
7
8
  * @export
@@ -6,6 +6,8 @@ export interface ForwardAttributes {
6
6
  diversionTreatment?: string;
7
7
  diversionReason?: string;
8
8
  uui?: string;
9
+ privacy?: boolean;
10
+ callerDisplayName?: string;
9
11
  }
10
12
  /**
11
13
  * @export
@@ -18,6 +18,14 @@ export interface GatherAttributes {
18
18
  interDigitTimeout?: number;
19
19
  firstDigitTimeout?: number;
20
20
  repeatCount?: number;
21
+ input?: string;
22
+ hints?: string;
23
+ language?: string;
24
+ partialResultCallback?: string;
25
+ partialResultCallbackMethod?: string;
26
+ profanityFilter?: boolean;
27
+ speechModel?: string;
28
+ speechTimeout?: number;
21
29
  }
22
30
  /**
23
31
  * @export
@@ -18,6 +18,8 @@ export interface RecordAttributes {
18
18
  maxDuration?: number;
19
19
  silenceTimeout?: number;
20
20
  fileFormat?: string;
21
+ detectLanguage?: boolean;
22
+ recordingName?: string;
21
23
  }
22
24
  /**
23
25
  * @export
@@ -0,0 +1,27 @@
1
+ import { NestableVerb } from '../NestableVerb';
2
+ import { SipUri } from './SipUri';
3
+ export interface ReferAttributes {
4
+ referCompleteUrl?: string;
5
+ referCompleteMethod?: string;
6
+ tag?: string;
7
+ }
8
+ /**
9
+ * @export
10
+ * @class Refer
11
+ * @extends {NestableVerb}
12
+ * Represents a Refer verb.
13
+ */
14
+ export declare class Refer extends NestableVerb {
15
+ attributes: ReferAttributes;
16
+ /**
17
+ * Creates an instance of Refer
18
+ * @param {ReferAttributes} attributes The attributes to add to the element
19
+ * @param {SipUri} sipUri The SipUri to refer to
20
+ */
21
+ constructor(attributes?: ReferAttributes, sipUri?: SipUri);
22
+ /**
23
+ * Set the SipUri for this Refer verb
24
+ * @param {SipUri} sipUri The SipUri to refer to
25
+ */
26
+ setSipUri(sipUri: SipUri): void;
27
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Refer = void 0;
19
+ var NestableVerb_1 = require("../NestableVerb");
20
+ /**
21
+ * @export
22
+ * @class Refer
23
+ * @extends {NestableVerb}
24
+ * Represents a Refer verb.
25
+ */
26
+ var Refer = /** @class */ (function (_super) {
27
+ __extends(Refer, _super);
28
+ /**
29
+ * Creates an instance of Refer
30
+ * @param {ReferAttributes} attributes The attributes to add to the element
31
+ * @param {SipUri} sipUri The SipUri to refer to
32
+ */
33
+ function Refer(attributes, sipUri) {
34
+ return _super.call(this, 'Refer', undefined, attributes, sipUri) || this;
35
+ }
36
+ /**
37
+ * Set the SipUri for this Refer verb
38
+ * @param {SipUri} sipUri The SipUri to refer to
39
+ */
40
+ Refer.prototype.setSipUri = function (sipUri) {
41
+ this.nestedVerbs = [sipUri];
42
+ };
43
+ return Refer;
44
+ }(NestableVerb_1.NestableVerb));
45
+ exports.Refer = Refer;
@@ -10,6 +10,8 @@ export interface StartRecordingAttributes {
10
10
  tag?: string;
11
11
  fileFormat?: string;
12
12
  multiChannel?: boolean;
13
+ detectLanguage?: boolean;
14
+ recordingName?: string;
13
15
  }
14
16
  /**
15
17
  * @export
@@ -9,6 +9,8 @@ export interface StartTranscriptionAttributes {
9
9
  password?: string;
10
10
  destination?: string;
11
11
  stabilized?: boolean;
12
+ detectLanguage?: boolean;
13
+ preferredLanguages?: string;
12
14
  }
13
15
  /**
14
16
  * @export
@@ -17,6 +17,7 @@ export interface TransferAttributes {
17
17
  tag?: string;
18
18
  diversionTreatment?: string;
19
19
  diversionReason?: string;
20
+ privacy?: boolean;
20
21
  }
21
22
  /**
22
23
  * @export
@@ -12,6 +12,7 @@ export * from './PhoneNumber';
12
12
  export * from './PlayAudio';
13
13
  export * from './Record';
14
14
  export * from './Redirect';
15
+ export * from './Refer';
15
16
  export * from './ResumeRecording';
16
17
  export * from './Ring';
17
18
  export * from './SendDtmf';
@@ -28,6 +28,7 @@ __exportStar(require("./PhoneNumber"), exports);
28
28
  __exportStar(require("./PlayAudio"), exports);
29
29
  __exportStar(require("./Record"), exports);
30
30
  __exportStar(require("./Redirect"), exports);
31
+ __exportStar(require("./Refer"), exports);
31
32
  __exportStar(require("./ResumeRecording"), exports);
32
33
  __exportStar(require("./Ring"), exports);
33
34
  __exportStar(require("./SendDtmf"), exports);
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface ConferenceCompletedCallback {
16
16
  /**
17
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
17
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
18
  */
19
19
  'eventType'?: string;
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface ConferenceCreatedCallback {
16
16
  /**
17
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
17
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
18
  */
19
19
  'eventType'?: string;
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface ConferenceMemberExitCallback {
16
16
  /**
17
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
17
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
18
  */
19
19
  'eventType'?: string;
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface ConferenceMemberJoinCallback {
16
16
  /**
17
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
17
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
18
  */
19
19
  'eventType'?: string;
20
20
  /**
@@ -15,7 +15,7 @@ import type { FileFormatEnum } from './file-format-enum';
15
15
  */
16
16
  export interface ConferenceRecordingAvailableCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -14,7 +14,7 @@
14
14
  */
15
15
  export interface ConferenceRedirectCallback {
16
16
  /**
17
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
17
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
18
  */
19
19
  'eventType'?: string;
20
20
  /**
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
15
15
  */
16
16
  export interface DisconnectCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
15
15
  */
16
16
  export interface DtmfCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
15
15
  */
16
16
  export interface GatherCallback {
17
17
  /**
18
- * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
18
+ * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
19
19
  */
20
20
  'eventType'?: string;
21
21
  /**
@@ -155,6 +155,8 @@ export * from './recording-transcription-metadata';
155
155
  export * from './recording-transcriptions';
156
156
  export * from './redirect-callback';
157
157
  export * from './redirect-method-enum';
158
+ export * from './refer-call-status-enum';
159
+ export * from './refer-complete-callback';
158
160
  export * from './sip-connection-metadata';
159
161
  export * from './sip-credentials';
160
162
  export * from './sms-message-content';