bandwidth-sdk 3.1.1 → 3.2.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 (111) hide show
  1. package/.github/workflows/deploy.yml +7 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/calls-api.ts +5 -5
  4. package/api/conferences-api.ts +9 -9
  5. package/api/media-api.ts +10 -13
  6. package/api/messages-api.ts +2 -2
  7. package/api/mfaapi.ts +3 -3
  8. package/api/phone-number-lookup-api.ts +2 -2
  9. package/api/recordings-api.ts +10 -10
  10. package/api/statistics-api.ts +1 -1
  11. package/api/transcriptions-api.ts +3 -3
  12. package/bandwidth.yml +0 -2
  13. package/configuration.ts +7 -1
  14. package/coverage/clover.xml +121 -120
  15. package/coverage/coverage-final.json +11 -11
  16. package/coverage/lcov-report/index.html +18 -18
  17. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +13 -13
  18. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +21 -21
  19. package/coverage/lcov-report/node-sdk/api/index.html +21 -21
  20. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +23 -32
  21. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +7 -7
  22. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +9 -9
  23. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +7 -7
  24. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +22 -22
  25. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +5 -5
  26. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +9 -9
  27. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  28. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  29. package/coverage/lcov-report/node-sdk/common.ts.html +1 -1
  30. package/coverage/lcov-report/node-sdk/configuration.ts.html +23 -5
  31. package/coverage/lcov-report/node-sdk/index.html +5 -5
  32. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  33. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
  34. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  35. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  36. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +12 -9
  37. package/coverage/lcov-report/node-sdk/models/bxml/index.html +10 -10
  38. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  39. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  40. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  41. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  42. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  43. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  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 +1 -1
  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/ResumeRecording.ts.html +1 -1
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  69. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
  70. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
  71. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/index.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +1 -1
  80. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
  81. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
  82. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
  83. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
  84. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
  85. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
  86. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
  87. package/coverage/lcov.info +312 -306
  88. package/custom_templates/configuration.mustache +105 -0
  89. package/custom_templates/tsconfig.mustache +1 -2
  90. package/dist/api/calls-api.d.ts +5 -5
  91. package/dist/api/conferences-api.d.ts +9 -9
  92. package/dist/api/media-api.d.ts +4 -4
  93. package/dist/api/media-api.js +1 -1
  94. package/dist/api/messages-api.d.ts +2 -2
  95. package/dist/api/mfaapi.d.ts +3 -3
  96. package/dist/api/phone-number-lookup-api.d.ts +2 -2
  97. package/dist/api/recordings-api.d.ts +10 -10
  98. package/dist/api/statistics-api.d.ts +1 -1
  99. package/dist/api/transcriptions-api.d.ts +3 -3
  100. package/dist/configuration.js +13 -1
  101. package/dist/models/bxml/Verb.d.ts +2 -2
  102. package/dist/models/bxml/Verb.js +5 -2
  103. package/dist/models/message-failed-callback-message.d.ts +1 -1
  104. package/dist/models/message-sending-callback-message.d.ts +1 -1
  105. package/models/bxml/Verb.ts +5 -4
  106. package/models/message-failed-callback-message.ts +1 -1
  107. package/models/message-sending-callback-message.ts +1 -1
  108. package/openapi-config.yml +1 -0
  109. package/openapitools.json +1 -1
  110. package/package.json +1 -1
  111. package/tests/smoke/media-api.test.ts +15 -5
@@ -49,6 +49,13 @@ jobs:
49
49
  node-version: 22
50
50
  registry-url: "https://registry.npmjs.org"
51
51
 
52
+ - name: Generate SDK with Updated Version
53
+ uses: Bandwidth/generate-sdk-action@v4.0.0
54
+ with:
55
+ openapi-generator-version: 7.10.0
56
+ language: typescript-axios
57
+ additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
58
+
52
59
  - name: Install Packages and Test
53
60
  run: |
54
61
  yarn
@@ -58,7 +65,6 @@ jobs:
58
65
 
59
66
  - name: Publish npm Package
60
67
  run: |
61
- npm version $PACKAGE_VERSION --no-git-tag-version
62
68
  npm publish --access public
63
69
  env:
64
70
  NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.10.0
package/api/calls-api.ts CHANGED
@@ -398,7 +398,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
398
398
  * @param {*} [options] Override http request option.
399
399
  * @throws {RequiredError}
400
400
  */
401
- createCall(accountId: string, createCall: CreateCall, options?: any): AxiosPromise<CreateCallResponse> {
401
+ createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): AxiosPromise<CreateCallResponse> {
402
402
  return localVarFp.createCall(accountId, createCall, options).then((request) => request(axios, basePath));
403
403
  },
404
404
  /**
@@ -409,7 +409,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
409
409
  * @param {*} [options] Override http request option.
410
410
  * @throws {RequiredError}
411
411
  */
412
- getCallState(accountId: string, callId: string, options?: any): AxiosPromise<CallState> {
412
+ getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallState> {
413
413
  return localVarFp.getCallState(accountId, callId, options).then((request) => request(axios, basePath));
414
414
  },
415
415
  /**
@@ -426,7 +426,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
426
426
  * @param {*} [options] Override http request option.
427
427
  * @throws {RequiredError}
428
428
  */
429
- listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: any): AxiosPromise<Array<CallState>> {
429
+ listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallState>> {
430
430
  return localVarFp.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then((request) => request(axios, basePath));
431
431
  },
432
432
  /**
@@ -438,7 +438,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
438
438
  * @param {*} [options] Override http request option.
439
439
  * @throws {RequiredError}
440
440
  */
441
- updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: any): AxiosPromise<void> {
441
+ updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): AxiosPromise<void> {
442
442
  return localVarFp.updateCall(accountId, callId, updateCall, options).then((request) => request(axios, basePath));
443
443
  },
444
444
  /**
@@ -450,7 +450,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
450
450
  * @param {*} [options] Override http request option.
451
451
  * @throws {RequiredError}
452
452
  */
453
- updateCallBxml(accountId: string, callId: string, body: string, options?: any): AxiosPromise<void> {
453
+ updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
454
454
  return localVarFp.updateCallBxml(accountId, callId, body, options).then((request) => request(axios, basePath));
455
455
  },
456
456
  };
@@ -638,7 +638,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
638
638
  * @param {*} [options] Override http request option.
639
639
  * @throws {RequiredError}
640
640
  */
641
- downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: any): AxiosPromise<File> {
641
+ downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
642
642
  return localVarFp.downloadConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
643
643
  },
644
644
  /**
@@ -649,7 +649,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
649
649
  * @param {*} [options] Override http request option.
650
650
  * @throws {RequiredError}
651
651
  */
652
- getConference(accountId: string, conferenceId: string, options?: any): AxiosPromise<Conference> {
652
+ getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Conference> {
653
653
  return localVarFp.getConference(accountId, conferenceId, options).then((request) => request(axios, basePath));
654
654
  },
655
655
  /**
@@ -661,7 +661,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
661
661
  * @param {*} [options] Override http request option.
662
662
  * @throws {RequiredError}
663
663
  */
664
- getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: any): AxiosPromise<ConferenceMember> {
664
+ getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceMember> {
665
665
  return localVarFp.getConferenceMember(accountId, conferenceId, memberId, options).then((request) => request(axios, basePath));
666
666
  },
667
667
  /**
@@ -673,7 +673,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
673
673
  * @param {*} [options] Override http request option.
674
674
  * @throws {RequiredError}
675
675
  */
676
- getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: any): AxiosPromise<ConferenceRecordingMetadata> {
676
+ getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceRecordingMetadata> {
677
677
  return localVarFp.getConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
678
678
  },
679
679
  /**
@@ -684,7 +684,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
684
684
  * @param {*} [options] Override http request option.
685
685
  * @throws {RequiredError}
686
686
  */
687
- listConferenceRecordings(accountId: string, conferenceId: string, options?: any): AxiosPromise<Array<ConferenceRecordingMetadata>> {
687
+ listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ConferenceRecordingMetadata>> {
688
688
  return localVarFp.listConferenceRecordings(accountId, conferenceId, options).then((request) => request(axios, basePath));
689
689
  },
690
690
  /**
@@ -699,7 +699,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
699
699
  * @param {*} [options] Override http request option.
700
700
  * @throws {RequiredError}
701
701
  */
702
- listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: any): AxiosPromise<Array<Conference>> {
702
+ listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Conference>> {
703
703
  return localVarFp.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then((request) => request(axios, basePath));
704
704
  },
705
705
  /**
@@ -711,7 +711,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
711
711
  * @param {*} [options] Override http request option.
712
712
  * @throws {RequiredError}
713
713
  */
714
- updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: any): AxiosPromise<void> {
714
+ updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): AxiosPromise<void> {
715
715
  return localVarFp.updateConference(accountId, conferenceId, updateConference, options).then((request) => request(axios, basePath));
716
716
  },
717
717
  /**
@@ -723,7 +723,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
723
723
  * @param {*} [options] Override http request option.
724
724
  * @throws {RequiredError}
725
725
  */
726
- updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: any): AxiosPromise<void> {
726
+ updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
727
727
  return localVarFp.updateConferenceBxml(accountId, conferenceId, body, options).then((request) => request(axios, basePath));
728
728
  },
729
729
  /**
@@ -736,7 +736,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
736
736
  * @param {*} [options] Override http request option.
737
737
  * @throws {RequiredError}
738
738
  */
739
- updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: any): AxiosPromise<void> {
739
+ updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): AxiosPromise<void> {
740
740
  return localVarFp.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then((request) => request(axios, basePath));
741
741
  },
742
742
  };
package/api/media-api.ts CHANGED
@@ -143,12 +143,11 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
143
143
  // http basic authentication required
144
144
  setBasicAuthToObject(localVarRequestOptions, configuration)
145
145
 
146
+
147
+
146
148
  if (continuationToken != null) {
147
149
  localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
148
150
  }
149
-
150
-
151
-
152
151
  setSearchParams(localVarUrlObj, localVarQueryParameter);
153
152
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
153
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -194,18 +193,16 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
194
193
  // http basic authentication required
195
194
  setBasicAuthToObject(localVarRequestOptions, configuration)
196
195
 
196
+
197
+
198
+ localVarHeaderParameter['Content-Type'] = 'application/json';
199
+
197
200
  if (contentType != null) {
198
201
  localVarHeaderParameter['Content-Type'] = String(contentType);
199
202
  }
200
-
201
203
  if (cacheControl != null) {
202
204
  localVarHeaderParameter['Cache-Control'] = String(cacheControl);
203
205
  }
204
-
205
-
206
-
207
- localVarHeaderParameter['Content-Type'] = 'application/json';
208
-
209
206
  setSearchParams(localVarUrlObj, localVarQueryParameter);
210
207
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
208
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -303,7 +300,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
303
300
  * @param {*} [options] Override http request option.
304
301
  * @throws {RequiredError}
305
302
  */
306
- deleteMedia(accountId: string, mediaId: string, options?: any): AxiosPromise<void> {
303
+ deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
307
304
  return localVarFp.deleteMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
308
305
  },
309
306
  /**
@@ -314,7 +311,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
314
311
  * @param {*} [options] Override http request option.
315
312
  * @throws {RequiredError}
316
313
  */
317
- getMedia(accountId: string, mediaId: string, options?: any): AxiosPromise<File> {
314
+ getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
318
315
  return localVarFp.getMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
319
316
  },
320
317
  /**
@@ -325,7 +322,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
325
322
  * @param {*} [options] Override http request option.
326
323
  * @throws {RequiredError}
327
324
  */
328
- listMedia(accountId: string, continuationToken?: string, options?: any): AxiosPromise<Array<Media>> {
325
+ listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Media>> {
329
326
  return localVarFp.listMedia(accountId, continuationToken, options).then((request) => request(axios, basePath));
330
327
  },
331
328
  /**
@@ -339,7 +336,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
339
336
  * @param {*} [options] Override http request option.
340
337
  * @throws {RequiredError}
341
338
  */
342
- uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: any): AxiosPromise<void> {
339
+ uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
343
340
  return localVarFp.uploadMedia(accountId, mediaId, body, contentType, cacheControl, options).then((request) => request(axios, basePath));
344
341
  },
345
342
  };
@@ -270,7 +270,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
270
270
  * @param {*} [options] Override http request option.
271
271
  * @throws {RequiredError}
272
272
  */
273
- createMessage(accountId: string, messageRequest: MessageRequest, options?: any): AxiosPromise<Message> {
273
+ createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Message> {
274
274
  return localVarFp.createMessage(accountId, messageRequest, options).then((request) => request(axios, basePath));
275
275
  },
276
276
  /**
@@ -295,7 +295,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
295
295
  * @param {*} [options] Override http request option.
296
296
  * @throws {RequiredError}
297
297
  */
298
- listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: any): AxiosPromise<MessagesList> {
298
+ listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<MessagesList> {
299
299
  return localVarFp.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, options).then((request) => request(axios, basePath));
300
300
  },
301
301
  };
package/api/mfaapi.ts CHANGED
@@ -245,7 +245,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
245
245
  * @param {*} [options] Override http request option.
246
246
  * @throws {RequiredError}
247
247
  */
248
- generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: any): AxiosPromise<MessagingCodeResponse> {
248
+ generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<MessagingCodeResponse> {
249
249
  return localVarFp.generateMessagingCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
250
250
  },
251
251
  /**
@@ -256,7 +256,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
256
256
  * @param {*} [options] Override http request option.
257
257
  * @throws {RequiredError}
258
258
  */
259
- generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: any): AxiosPromise<VoiceCodeResponse> {
259
+ generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VoiceCodeResponse> {
260
260
  return localVarFp.generateVoiceCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
261
261
  },
262
262
  /**
@@ -267,7 +267,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
267
267
  * @param {*} [options] Override http request option.
268
268
  * @throws {RequiredError}
269
269
  */
270
- verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: any): AxiosPromise<VerifyCodeResponse> {
270
+ verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponse> {
271
271
  return localVarFp.verifyCode(accountId, verifyCodeRequest, options).then((request) => request(axios, basePath));
272
272
  },
273
273
  };
@@ -177,7 +177,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
177
177
  * @param {*} [options] Override http request option.
178
178
  * @throws {RequiredError}
179
179
  */
180
- createLookup(accountId: string, lookupRequest: LookupRequest, options?: any): AxiosPromise<CreateLookupResponse> {
180
+ createLookup(accountId: string, lookupRequest: LookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateLookupResponse> {
181
181
  return localVarFp.createLookup(accountId, lookupRequest, options).then((request) => request(axios, basePath));
182
182
  },
183
183
  /**
@@ -188,7 +188,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
188
188
  * @param {*} [options] Override http request option.
189
189
  * @throws {RequiredError}
190
190
  */
191
- getLookupStatus(accountId: string, requestId: string, options?: any): AxiosPromise<LookupStatus> {
191
+ getLookupStatus(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<LookupStatus> {
192
192
  return localVarFp.getLookupStatus(accountId, requestId, options).then((request) => request(axios, basePath));
193
193
  },
194
194
  };
@@ -694,7 +694,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
694
694
  * @param {*} [options] Override http request option.
695
695
  * @throws {RequiredError}
696
696
  */
697
- deleteRecording(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
697
+ deleteRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
698
698
  return localVarFp.deleteRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
699
699
  },
700
700
  /**
@@ -706,7 +706,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
706
706
  * @param {*} [options] Override http request option.
707
707
  * @throws {RequiredError}
708
708
  */
709
- deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
709
+ deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
710
710
  return localVarFp.deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
711
711
  },
712
712
  /**
@@ -718,7 +718,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
718
718
  * @param {*} [options] Override http request option.
719
719
  * @throws {RequiredError}
720
720
  */
721
- deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<void> {
721
+ deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
722
722
  return localVarFp.deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
723
723
  },
724
724
  /**
@@ -730,7 +730,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
730
730
  * @param {*} [options] Override http request option.
731
731
  * @throws {RequiredError}
732
732
  */
733
- downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<File> {
733
+ downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
734
734
  return localVarFp.downloadCallRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
735
735
  },
736
736
  /**
@@ -742,7 +742,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
742
742
  * @param {*} [options] Override http request option.
743
743
  * @throws {RequiredError}
744
744
  */
745
- getCallRecording(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<CallRecordingMetadata> {
745
+ getCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallRecordingMetadata> {
746
746
  return localVarFp.getCallRecording(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
747
747
  },
748
748
  /**
@@ -754,7 +754,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
754
754
  * @param {*} [options] Override http request option.
755
755
  * @throws {RequiredError}
756
756
  */
757
- getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: any): AxiosPromise<RecordingTranscriptions> {
757
+ getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<RecordingTranscriptions> {
758
758
  return localVarFp.getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(axios, basePath));
759
759
  },
760
760
  /**
@@ -768,7 +768,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
768
768
  * @param {*} [options] Override http request option.
769
769
  * @throws {RequiredError}
770
770
  */
771
- listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: any): AxiosPromise<Array<CallRecordingMetadata>> {
771
+ listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallRecordingMetadata>> {
772
772
  return localVarFp.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options).then((request) => request(axios, basePath));
773
773
  },
774
774
  /**
@@ -779,7 +779,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
779
779
  * @param {*} [options] Override http request option.
780
780
  * @throws {RequiredError}
781
781
  */
782
- listCallRecordings(accountId: string, callId: string, options?: any): AxiosPromise<Array<CallRecordingMetadata>> {
782
+ listCallRecordings(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallRecordingMetadata>> {
783
783
  return localVarFp.listCallRecordings(accountId, callId, options).then((request) => request(axios, basePath));
784
784
  },
785
785
  /**
@@ -792,7 +792,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
792
792
  * @param {*} [options] Override http request option.
793
793
  * @throws {RequiredError}
794
794
  */
795
- transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: any): AxiosPromise<void> {
795
+ transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: RawAxiosRequestConfig): AxiosPromise<void> {
796
796
  return localVarFp.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options).then((request) => request(axios, basePath));
797
797
  },
798
798
  /**
@@ -804,7 +804,7 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas
804
804
  * @param {*} [options] Override http request option.
805
805
  * @throws {RequiredError}
806
806
  */
807
- updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: any): AxiosPromise<void> {
807
+ updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: RawAxiosRequestConfig): AxiosPromise<void> {
808
808
  return localVarFp.updateCallRecordingState(accountId, callId, updateCallRecording, options).then((request) => request(axios, basePath));
809
809
  },
810
810
  };
@@ -109,7 +109,7 @@ export const StatisticsApiFactory = function (configuration?: Configuration, bas
109
109
  * @param {*} [options] Override http request option.
110
110
  * @throws {RequiredError}
111
111
  */
112
- getStatistics(accountId: string, options?: any): AxiosPromise<AccountStatistics> {
112
+ getStatistics(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountStatistics> {
113
113
  return localVarFp.getStatistics(accountId, options).then((request) => request(axios, basePath));
114
114
  },
115
115
  };
@@ -240,7 +240,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
240
240
  * @param {*} [options] Override http request option.
241
241
  * @throws {RequiredError}
242
242
  */
243
- deleteRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: any): AxiosPromise<void> {
243
+ deleteRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
244
244
  return localVarFp.deleteRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(axios, basePath));
245
245
  },
246
246
  /**
@@ -252,7 +252,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
252
252
  * @param {*} [options] Override http request option.
253
253
  * @throws {RequiredError}
254
254
  */
255
- getRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: any): AxiosPromise<CallTranscriptionResponse> {
255
+ getRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallTranscriptionResponse> {
256
256
  return localVarFp.getRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(axios, basePath));
257
257
  },
258
258
  /**
@@ -263,7 +263,7 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration,
263
263
  * @param {*} [options] Override http request option.
264
264
  * @throws {RequiredError}
265
265
  */
266
- listRealTimeTranscriptions(accountId: string, callId: string, options?: any): AxiosPromise<Array<CallTranscriptionMetadata>> {
266
+ listRealTimeTranscriptions(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallTranscriptionMetadata>> {
267
267
  return localVarFp.listRealTimeTranscriptions(accountId, callId, options).then((request) => request(axios, basePath));
268
268
  },
269
269
  };
package/bandwidth.yml CHANGED
@@ -1862,7 +1862,6 @@ components:
1862
1862
  - from
1863
1863
  - text
1864
1864
  - media
1865
- - priority
1866
1865
  messageDeliveredCallback:
1867
1866
  description: Message Delivered Callback
1868
1867
  type: object
@@ -2035,7 +2034,6 @@ components:
2035
2034
  - from
2036
2035
  - text
2037
2036
  - tag
2038
- - priority
2039
2037
  callbackMethodEnum:
2040
2038
  type: string
2041
2039
  nullable: true
package/configuration.ts CHANGED
@@ -89,7 +89,13 @@ export class Configuration {
89
89
  this.accessToken = param.accessToken;
90
90
  this.basePath = param.basePath;
91
91
  this.serverIndex = param.serverIndex;
92
- this.baseOptions = param.baseOptions;
92
+ this.baseOptions = {
93
+ ...param.baseOptions,
94
+ headers: {
95
+ ...param.baseOptions?.headers,
96
+ 'User-Agent': "OpenAPI-Generator/3.2.0/typescript-axios"
97
+ }
98
+ };
93
99
  this.formDataCtor = param.formDataCtor;
94
100
  }
95
101