bandwidth-sdk 7.0.0 → 7.1.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.
- package/.github/workflows/deploy.yml +3 -1
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/.openapi-generator/FILES +22 -6
- package/README.md +21 -5
- package/api/calls-api.ts +20 -0
- package/api/conferences-api.ts +36 -0
- package/api/media-api.ts +16 -0
- package/api/messages-api.ts +8 -0
- package/api/mfaapi.ts +12 -0
- package/api/multi-channel-api.ts +4 -0
- package/api/phone-number-lookup-api.ts +12 -0
- package/api/recordings-api.ts +40 -0
- package/api/statistics-api.ts +4 -0
- package/api/toll-free-verification-api.ts +36 -0
- package/api/transcriptions-api.ts +12 -0
- package/bandwidth.yml +85 -22
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1139 -1065
- package/coverage/coverage-final.json +14 -14
- package/coverage/lcov-report/index.html +32 -32
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/index.html +70 -70
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +77 -65
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +45 -39
- package/coverage/lcov-report/node-sdk/configuration.ts.html +140 -14
- package/coverage/lcov-report/node-sdk/index.html +30 -30
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +5 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +31 -7
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +2834 -2739
- package/custom_templates/README.mustache +2 -2
- package/custom_templates/common.mustache +3 -1
- package/custom_templates/configuration.mustache +43 -1
- package/custom_templates/package.mustache +5 -2
- package/dist/api/calls-api.js +192 -142
- package/dist/api/conferences-api.js +333 -243
- package/dist/api/media-api.js +142 -102
- package/dist/api/messages-api.js +145 -125
- package/dist/api/mfaapi.js +102 -72
- package/dist/api/multi-channel-api.js +34 -24
- package/dist/api/phone-number-lookup-api.js +101 -71
- package/dist/api/recordings-api.js +368 -268
- package/dist/api/statistics-api.js +30 -20
- package/dist/api/toll-free-verification-api.js +298 -208
- package/dist/api/transcriptions-api.js +105 -75
- package/dist/common.js +3 -1
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +71 -3
- package/dist/models/index.d.ts +11 -3
- package/dist/models/index.js +11 -3
- package/dist/models/multi-channel-action.d.ts +48 -21
- package/dist/models/{multi-channel-message-response-data-channel-list-inner.d.ts → multi-channel-channel-list-mmsobject.d.ts} +3 -3
- package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +17 -0
- package/dist/models/{multi-channel-channel-list-object.d.ts → multi-channel-channel-list-object-base.d.ts} +1 -3
- package/dist/models/multi-channel-channel-list-owner-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-owner-object.js +15 -0
- package/dist/models/{multi-channel-channel-list-object-content.d.ts → multi-channel-channel-list-rbmobject-all-of-content.d.ts} +2 -4
- package/dist/models/multi-channel-channel-list-rbmobject-all-of-content.js +15 -0
- package/dist/models/multi-channel-channel-list-rbmobject.d.ts +16 -0
- package/dist/models/multi-channel-channel-list-rbmobject.js +15 -0
- package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-rbmresponse-object.js +15 -0
- package/dist/models/multi-channel-channel-list-request-object.d.ts +25 -0
- package/dist/models/multi-channel-channel-list-request-object.js +15 -0
- package/dist/models/multi-channel-channel-list-response-object.d.ts +29 -0
- package/dist/models/multi-channel-channel-list-response-object.js +15 -0
- package/dist/models/multi-channel-channel-list-smsobject.d.ts +16 -0
- package/dist/models/multi-channel-channel-list-smsobject.js +15 -0
- package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +17 -0
- package/dist/models/multi-channel-channel-list-smsresponse-object.js +15 -0
- package/dist/models/multi-channel-message-request.d.ts +2 -2
- package/dist/models/multi-channel-message-response-data.d.ts +2 -2
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +4 -4
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelApi.md +1 -1
- package/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +4 -4
- package/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +4 -4
- package/docs/MultiChannelChannelListObjectBase.md +24 -0
- package/docs/MultiChannelChannelListOwnerObject.md +20 -0
- package/docs/MultiChannelChannelListRBMObject.md +26 -0
- package/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +5 -5
- package/docs/MultiChannelChannelListRBMResponseObject.md +28 -0
- package/docs/MultiChannelChannelListRequestObject.md +26 -0
- package/docs/MultiChannelChannelListResponseObject.md +28 -0
- package/docs/MultiChannelChannelListSMSObject.md +26 -0
- package/docs/MultiChannelChannelListSMSResponseObject.md +28 -0
- package/docs/MultiChannelMessageRequest.md +1 -1
- package/docs/MultiChannelMessageResponseData.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/jest.config.js +2 -0
- package/models/index.ts +11 -3
- package/models/multi-channel-action.ts +48 -4
- package/models/{multi-channel-message-response-data-channel-list-inner.ts → multi-channel-channel-list-mmsobject.ts} +4 -4
- package/models/multi-channel-channel-list-mmsresponse-object.ts +34 -0
- package/models/{multi-channel-channel-list-object.ts → multi-channel-channel-list-object-base.ts} +1 -5
- package/models/multi-channel-channel-list-owner-object.ts +23 -0
- package/models/{multi-channel-channel-list-object-content.ts → multi-channel-channel-list-rbmobject-all-of-content.ts} +5 -11
- package/models/multi-channel-channel-list-rbmobject.ts +31 -0
- package/models/multi-channel-channel-list-rbmresponse-object.ts +34 -0
- package/models/multi-channel-channel-list-request-object.ts +46 -0
- package/models/multi-channel-channel-list-response-object.ts +50 -0
- package/models/multi-channel-channel-list-smsobject.ts +31 -0
- package/models/multi-channel-channel-list-smsresponse-object.ts +34 -0
- package/models/multi-channel-message-request.ts +2 -2
- package/models/multi-channel-message-response-data.ts +2 -2
- package/package.json +6 -3
- package/tests/smoke/bxml.test.ts +4 -1
- package/tests/smoke/calls-api.test.ts +4 -1
- package/tests/smoke/conferences-api.test.ts +4 -1
- package/tests/smoke/multi-channel-api.test.ts +117 -10
- package/tests/smoke/phone-number-lookup-api.test.ts +4 -4
- package/tests/smoke/recordings-api.test.ts +4 -1
- package/tests/smoke/statistics-api.test.ts +4 -1
- package/tests/smoke/toll-free-verification-api.test.ts +4 -1
- package/tests/smoke/transcriptions-api.test.ts +4 -1
- package/tests/unit/api/multi-channel-api.test.ts +27 -10
- /package/dist/models/{multi-channel-channel-list-object-content.js → multi-channel-channel-list-mmsobject.js} +0 -0
- /package/dist/models/{multi-channel-channel-list-object.js → multi-channel-channel-list-mmsresponse-object.js} +0 -0
- /package/dist/models/{multi-channel-message-response-data-channel-list-inner.js → multi-channel-channel-list-object-base.js} +0 -0
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">92.
|
|
26
|
+
<span class="strong">92.38% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>97/105</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">94.04% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>79/84</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -374,7 +374,19 @@
|
|
|
374
374
|
<a name='L309'></a><a href='#L309'>309</a>
|
|
375
375
|
<a name='L310'></a><a href='#L310'>310</a>
|
|
376
376
|
<a name='L311'></a><a href='#L311'>311</a>
|
|
377
|
-
<a name='L312'></a><a href='#L312'>312</a
|
|
377
|
+
<a name='L312'></a><a href='#L312'>312</a>
|
|
378
|
+
<a name='L313'></a><a href='#L313'>313</a>
|
|
379
|
+
<a name='L314'></a><a href='#L314'>314</a>
|
|
380
|
+
<a name='L315'></a><a href='#L315'>315</a>
|
|
381
|
+
<a name='L316'></a><a href='#L316'>316</a>
|
|
382
|
+
<a name='L317'></a><a href='#L317'>317</a>
|
|
383
|
+
<a name='L318'></a><a href='#L318'>318</a>
|
|
384
|
+
<a name='L319'></a><a href='#L319'>319</a>
|
|
385
|
+
<a name='L320'></a><a href='#L320'>320</a>
|
|
386
|
+
<a name='L321'></a><a href='#L321'>321</a>
|
|
387
|
+
<a name='L322'></a><a href='#L322'>322</a>
|
|
388
|
+
<a name='L323'></a><a href='#L323'>323</a>
|
|
389
|
+
<a name='L324'></a><a href='#L324'>324</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
378
390
|
<span class="cline-any cline-neutral"> </span>
|
|
379
391
|
<span class="cline-any cline-neutral"> </span>
|
|
380
392
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -445,6 +457,10 @@
|
|
|
445
457
|
<span class="cline-any cline-neutral"> </span>
|
|
446
458
|
<span class="cline-any cline-neutral"> </span>
|
|
447
459
|
<span class="cline-any cline-neutral"> </span>
|
|
460
|
+
<span class="cline-any cline-yes">2x</span>
|
|
461
|
+
<span class="cline-any cline-neutral"> </span>
|
|
462
|
+
<span class="cline-any cline-neutral"> </span>
|
|
463
|
+
<span class="cline-any cline-neutral"> </span>
|
|
448
464
|
<span class="cline-any cline-yes">1x</span>
|
|
449
465
|
<span class="cline-any cline-yes">1x</span>
|
|
450
466
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -491,6 +507,10 @@
|
|
|
491
507
|
<span class="cline-any cline-neutral"> </span>
|
|
492
508
|
<span class="cline-any cline-neutral"> </span>
|
|
493
509
|
<span class="cline-any cline-neutral"> </span>
|
|
510
|
+
<span class="cline-any cline-yes">2x</span>
|
|
511
|
+
<span class="cline-any cline-neutral"> </span>
|
|
512
|
+
<span class="cline-any cline-neutral"> </span>
|
|
513
|
+
<span class="cline-any cline-neutral"> </span>
|
|
494
514
|
<span class="cline-any cline-yes">1x</span>
|
|
495
515
|
<span class="cline-any cline-yes">1x</span>
|
|
496
516
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -533,6 +553,10 @@
|
|
|
533
553
|
<span class="cline-any cline-neutral"> </span>
|
|
534
554
|
<span class="cline-any cline-neutral"> </span>
|
|
535
555
|
<span class="cline-any cline-neutral"> </span>
|
|
556
|
+
<span class="cline-any cline-yes">2x</span>
|
|
557
|
+
<span class="cline-any cline-neutral"> </span>
|
|
558
|
+
<span class="cline-any cline-neutral"> </span>
|
|
559
|
+
<span class="cline-any cline-neutral"> </span>
|
|
536
560
|
<span class="cline-any cline-yes">1x</span>
|
|
537
561
|
<span class="cline-any cline-yes">1x</span>
|
|
538
562
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -753,6 +777,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
753
777
|
// authentication Basic required
|
|
754
778
|
// http basic authentication required
|
|
755
779
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
780
|
+
|
|
781
|
+
// authentication OAuth2 required
|
|
782
|
+
// oauth required
|
|
783
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
756
784
|
|
|
757
785
|
|
|
758
786
|
|
|
@@ -799,6 +827,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
799
827
|
// authentication Basic required
|
|
800
828
|
// http basic authentication required
|
|
801
829
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
830
|
+
|
|
831
|
+
// authentication OAuth2 required
|
|
832
|
+
// oauth required
|
|
833
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
802
834
|
|
|
803
835
|
|
|
804
836
|
|
|
@@ -841,6 +873,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
841
873
|
// authentication Basic required
|
|
842
874
|
// http basic authentication required
|
|
843
875
|
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
876
|
+
|
|
877
|
+
// authentication OAuth2 required
|
|
878
|
+
// oauth required
|
|
879
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration)
|
|
844
880
|
|
|
845
881
|
|
|
846
882
|
|
|
@@ -1003,7 +1039,7 @@ export class TranscriptionsApi extends BaseAPI {
|
|
|
1003
1039
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1004
1040
|
Code coverage generated by
|
|
1005
1041
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1006
|
-
at 2025-
|
|
1042
|
+
at 2025-12-09T20:23:48.768Z
|
|
1007
1043
|
</div>
|
|
1008
1044
|
<script src="../../prettify.js"></script>
|
|
1009
1045
|
<script>
|
|
@@ -154,7 +154,7 @@ export * from './api/transcriptions-api';
|
|
|
154
154
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
155
155
|
Code coverage generated by
|
|
156
156
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
157
|
-
at 2025-
|
|
157
|
+
at 2025-12-09T20:23:48.768Z
|
|
158
158
|
</div>
|
|
159
159
|
<script src="../prettify.js"></script>
|
|
160
160
|
<script>
|
|
@@ -1156,7 +1156,7 @@ export const operationServerMap: ServerMap = {
|
|
|
1156
1156
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1157
1157
|
Code coverage generated by
|
|
1158
1158
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1159
|
-
at 2025-
|
|
1159
|
+
at 2025-12-09T20:23:48.768Z
|
|
1160
1160
|
</div>
|
|
1161
1161
|
<script src="../prettify.js"></script>
|
|
1162
1162
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">75.36% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>52/69</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">56.89% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>33/58</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">85.71% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>12/14</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">73.07% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>38/52</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -176,7 +176,9 @@
|
|
|
176
176
|
<a name='L111'></a><a href='#L111'>111</a>
|
|
177
177
|
<a name='L112'></a><a href='#L112'>112</a>
|
|
178
178
|
<a name='L113'></a><a href='#L113'>113</a>
|
|
179
|
-
<a name='L114'></a><a href='#L114'>114</a
|
|
179
|
+
<a name='L114'></a><a href='#L114'>114</a>
|
|
180
|
+
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
|
+
<a name='L116'></a><a href='#L116'>116</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
180
182
|
<span class="cline-any cline-neutral"> </span>
|
|
181
183
|
<span class="cline-any cline-neutral"> </span>
|
|
182
184
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -202,7 +204,7 @@
|
|
|
202
204
|
<span class="cline-any cline-neutral"> </span>
|
|
203
205
|
<span class="cline-any cline-neutral"> </span>
|
|
204
206
|
<span class="cline-any cline-yes">11x</span>
|
|
205
|
-
<span class="cline-any cline-yes">
|
|
207
|
+
<span class="cline-any cline-yes">121x</span>
|
|
206
208
|
<span class="cline-any cline-no"> </span>
|
|
207
209
|
<span class="cline-any cline-neutral"> </span>
|
|
208
210
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -217,8 +219,8 @@
|
|
|
217
219
|
<span class="cline-any cline-neutral"> </span>
|
|
218
220
|
<span class="cline-any cline-neutral"> </span>
|
|
219
221
|
<span class="cline-any cline-yes">11x</span>
|
|
220
|
-
<span class="cline-any cline-yes">
|
|
221
|
-
<span class="cline-any cline-yes">
|
|
222
|
+
<span class="cline-any cline-yes">55x</span>
|
|
223
|
+
<span class="cline-any cline-yes">52x</span>
|
|
222
224
|
<span class="cline-any cline-neutral"> </span>
|
|
223
225
|
<span class="cline-any cline-neutral"> </span>
|
|
224
226
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -232,23 +234,25 @@
|
|
|
232
234
|
<span class="cline-any cline-neutral"> </span>
|
|
233
235
|
<span class="cline-any cline-neutral"> </span>
|
|
234
236
|
<span class="cline-any cline-yes">11x</span>
|
|
237
|
+
<span class="cline-any cline-yes">55x</span>
|
|
238
|
+
<span class="cline-any cline-yes">55x</span>
|
|
239
|
+
<span class="cline-any cline-yes">110x</span>
|
|
235
240
|
<span class="cline-any cline-no"> </span>
|
|
236
|
-
<span class="cline-any cline-
|
|
237
|
-
<span class="cline-any cline-no"> </span>
|
|
238
|
-
<span class="cline-any cline-no"> </span>
|
|
241
|
+
<span class="cline-any cline-yes">55x</span>
|
|
239
242
|
<span class="cline-any cline-no"> </span>
|
|
240
243
|
<span class="cline-any cline-neutral"> </span>
|
|
241
244
|
<span class="cline-any cline-neutral"> </span>
|
|
242
245
|
<span class="cline-any cline-neutral"> </span>
|
|
243
246
|
<span class="cline-any cline-neutral"> </span>
|
|
244
|
-
<span class="cline-any cline-yes">163x</span>
|
|
245
|
-
<span class="cline-any cline-yes">109x</span>
|
|
246
|
-
<span class="cline-any cline-yes">109x</span>
|
|
247
|
-
<span class="cline-any cline-yes">108x</span>
|
|
248
|
-
<span class="cline-any cline-yes">54x</span>
|
|
249
247
|
<span class="cline-any cline-neutral"> </span>
|
|
248
|
+
<span class="cline-any cline-yes">166x</span>
|
|
249
|
+
<span class="cline-any cline-yes">111x</span>
|
|
250
|
+
<span class="cline-any cline-yes">111x</span>
|
|
251
|
+
<span class="cline-any cline-yes">110x</span>
|
|
252
|
+
<span class="cline-any cline-yes">55x</span>
|
|
250
253
|
<span class="cline-any cline-neutral"> </span>
|
|
251
|
-
<span class="cline-any cline-
|
|
254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
255
|
+
<span class="cline-any cline-yes">55x</span>
|
|
252
256
|
<span class="cline-any cline-yes">1x</span>
|
|
253
257
|
<span class="cline-any cline-neutral"> </span>
|
|
254
258
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -263,30 +267,30 @@
|
|
|
263
267
|
<span class="cline-any cline-neutral"> </span>
|
|
264
268
|
<span class="cline-any cline-neutral"> </span>
|
|
265
269
|
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-yes">
|
|
267
|
-
<span class="cline-any cline-yes">
|
|
268
|
-
<span class="cline-any cline-yes">
|
|
269
|
-
<span class="cline-any cline-yes">
|
|
270
|
+
<span class="cline-any cline-yes">165x</span>
|
|
271
|
+
<span class="cline-any cline-yes">55x</span>
|
|
272
|
+
<span class="cline-any cline-yes">55x</span>
|
|
273
|
+
<span class="cline-any cline-yes">55x</span>
|
|
270
274
|
<span class="cline-any cline-neutral"> </span>
|
|
271
275
|
<span class="cline-any cline-neutral"> </span>
|
|
272
276
|
<span class="cline-any cline-yes">11x</span>
|
|
273
|
-
<span class="cline-any cline-yes">
|
|
274
|
-
<span class="cline-any cline-yes">
|
|
277
|
+
<span class="cline-any cline-yes">23x</span>
|
|
278
|
+
<span class="cline-any cline-yes">23x</span>
|
|
275
279
|
<span class="cline-any cline-neutral"> </span>
|
|
276
280
|
<span class="cline-any cline-neutral"> </span>
|
|
277
|
-
<span class="cline-any cline-yes">
|
|
278
|
-
<span class="cline-any cline-yes">
|
|
281
|
+
<span class="cline-any cline-yes">23x</span>
|
|
282
|
+
<span class="cline-any cline-yes">130x</span>
|
|
279
283
|
<span class="cline-any cline-neutral"> </span>
|
|
280
284
|
<span class="cline-any cline-neutral"> </span>
|
|
281
285
|
<span class="cline-any cline-neutral"> </span>
|
|
282
286
|
<span class="cline-any cline-yes">11x</span>
|
|
283
|
-
<span class="cline-any cline-yes">
|
|
287
|
+
<span class="cline-any cline-yes">55x</span>
|
|
284
288
|
<span class="cline-any cline-neutral"> </span>
|
|
285
289
|
<span class="cline-any cline-neutral"> </span>
|
|
286
290
|
<span class="cline-any cline-yes">11x</span>
|
|
287
|
-
<span class="cline-any cline-yes">
|
|
288
|
-
<span class="cline-any cline-yes">
|
|
289
|
-
<span class="cline-any cline-yes">
|
|
291
|
+
<span class="cline-any cline-yes">55x</span>
|
|
292
|
+
<span class="cline-any cline-yes">55x</span>
|
|
293
|
+
<span class="cline-any cline-yes">55x</span>
|
|
290
294
|
<span class="cline-any cline-neutral"> </span>
|
|
291
295
|
<span class="cline-any cline-neutral"> </span>
|
|
292
296
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* tslint:disable */
|
|
@@ -344,12 +348,14 @@ export const setBearerAuthToObject = <span class="fstat-no" title="function not
|
|
|
344
348
|
}
|
|
345
349
|
}
|
|
346
350
|
|
|
347
|
-
export const setOAuthToObject =
|
|
348
|
-
if (<span class="
|
|
349
|
-
const
|
|
350
|
-
?
|
|
351
|
+
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
352
|
+
if (<span class="missing-if-branch" title="if path not taken" >I</span>configuration && configuration.accessToken) {
|
|
353
|
+
const localVarAccessTokenValue = <span class="missing-if-branch" title="if path not taken" >I</span>typeof configuration.accessToken === 'function'
|
|
354
|
+
? await configuration.accessToken(name, scopes)
|
|
351
355
|
: <span class="cstat-no" title="statement not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >await configuration.accessToken;</span></span>
|
|
352
|
-
<span class="
|
|
356
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (localVarAccessTokenValue) {
|
|
357
|
+
<span class="cstat-no" title="statement not covered" > object["Authorization"] = "Bearer " + localVarAccessTokenValue;</span>
|
|
358
|
+
}
|
|
353
359
|
}
|
|
354
360
|
}
|
|
355
361
|
|
|
@@ -409,7 +415,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
409
415
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
410
416
|
Code coverage generated by
|
|
411
417
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
412
|
-
at 2025-
|
|
418
|
+
at 2025-12-09T20:23:48.768Z
|
|
413
419
|
</div>
|
|
414
420
|
<script src="../prettify.js"></script>
|
|
415
421
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">79.41% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>27/34</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">54.16% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>13/24</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>5/5</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">80% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>24/30</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -185,7 +185,50 @@
|
|
|
185
185
|
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
186
|
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
187
|
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
-
<a name='L123'></a><a href='#L123'>123</a
|
|
188
|
+
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
+
<a name='L124'></a><a href='#L124'>124</a>
|
|
190
|
+
<a name='L125'></a><a href='#L125'>125</a>
|
|
191
|
+
<a name='L126'></a><a href='#L126'>126</a>
|
|
192
|
+
<a name='L127'></a><a href='#L127'>127</a>
|
|
193
|
+
<a name='L128'></a><a href='#L128'>128</a>
|
|
194
|
+
<a name='L129'></a><a href='#L129'>129</a>
|
|
195
|
+
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
|
+
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
|
+
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
+
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
+
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
+
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
+
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
+
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
+
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
+
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
+
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
+
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
+
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
+
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
+
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
+
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
+
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
+
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
+
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
+
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
+
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
+
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
+
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
+
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
+
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
+
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
+
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
+
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
+
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
+
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
+
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
+
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
+
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
+
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
+
<a name='L165'></a><a href='#L165'>165</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
231
|
+
<span class="cline-any cline-neutral"> </span>
|
|
189
232
|
<span class="cline-any cline-neutral"> </span>
|
|
190
233
|
<span class="cline-any cline-neutral"> </span>
|
|
191
234
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -197,6 +240,9 @@
|
|
|
197
240
|
<span class="cline-any cline-neutral"> </span>
|
|
198
241
|
<span class="cline-any cline-neutral"> </span>
|
|
199
242
|
<span class="cline-any cline-neutral"> </span>
|
|
243
|
+
<span class="cline-any cline-yes">11x</span>
|
|
244
|
+
<span class="cline-any cline-neutral"> </span>
|
|
245
|
+
<span class="cline-any cline-neutral"> </span>
|
|
200
246
|
<span class="cline-any cline-neutral"> </span>
|
|
201
247
|
<span class="cline-any cline-neutral"> </span>
|
|
202
248
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -274,12 +320,50 @@
|
|
|
274
320
|
<span class="cline-any cline-neutral"> </span>
|
|
275
321
|
<span class="cline-any cline-neutral"> </span>
|
|
276
322
|
<span class="cline-any cline-neutral"> </span>
|
|
323
|
+
<span class="cline-any cline-neutral"> </span>
|
|
324
|
+
<span class="cline-any cline-neutral"> </span>
|
|
325
|
+
<span class="cline-any cline-neutral"> </span>
|
|
326
|
+
<span class="cline-any cline-neutral"> </span>
|
|
327
|
+
<span class="cline-any cline-neutral"> </span>
|
|
328
|
+
<span class="cline-any cline-neutral"> </span>
|
|
329
|
+
<span class="cline-any cline-neutral"> </span>
|
|
330
|
+
<span class="cline-any cline-neutral"> </span>
|
|
331
|
+
<span class="cline-any cline-neutral"> </span>
|
|
332
|
+
<span class="cline-any cline-neutral"> </span>
|
|
333
|
+
<span class="cline-any cline-neutral"> </span>
|
|
334
|
+
<span class="cline-any cline-neutral"> </span>
|
|
335
|
+
<span class="cline-any cline-neutral"> </span>
|
|
336
|
+
<span class="cline-any cline-neutral"> </span>
|
|
337
|
+
<span class="cline-any cline-neutral"> </span>
|
|
338
|
+
<span class="cline-any cline-neutral"> </span>
|
|
339
|
+
<span class="cline-any cline-yes">14x</span>
|
|
340
|
+
<span class="cline-any cline-yes">14x</span>
|
|
277
341
|
<span class="cline-any cline-yes">14x</span>
|
|
278
342
|
<span class="cline-any cline-yes">14x</span>
|
|
279
343
|
<span class="cline-any cline-yes">14x</span>
|
|
280
344
|
<span class="cline-any cline-yes">14x</span>
|
|
281
345
|
<span class="cline-any cline-yes">14x</span>
|
|
282
346
|
<span class="cline-any cline-yes">14x</span>
|
|
347
|
+
<span class="cline-any cline-yes">55x</span>
|
|
348
|
+
<span class="cline-any cline-yes">55x</span>
|
|
349
|
+
<span class="cline-any cline-yes">110x</span>
|
|
350
|
+
<span class="cline-any cline-no"> </span>
|
|
351
|
+
<span class="cline-any cline-yes">110x</span>
|
|
352
|
+
<span class="cline-any cline-no"> </span>
|
|
353
|
+
<span class="cline-any cline-neutral"> </span>
|
|
354
|
+
<span class="cline-any cline-neutral"> </span>
|
|
355
|
+
<span class="cline-any cline-neutral"> </span>
|
|
356
|
+
<span class="cline-any cline-neutral"> </span>
|
|
357
|
+
<span class="cline-any cline-neutral"> </span>
|
|
358
|
+
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-no"> </span>
|
|
360
|
+
<span class="cline-any cline-no"> </span>
|
|
361
|
+
<span class="cline-any cline-no"> </span>
|
|
362
|
+
<span class="cline-any cline-no"> </span>
|
|
363
|
+
<span class="cline-any cline-neutral"> </span>
|
|
364
|
+
<span class="cline-any cline-yes">55x</span>
|
|
365
|
+
<span class="cline-any cline-neutral"> </span>
|
|
366
|
+
<span class="cline-any cline-yes">14x</span>
|
|
283
367
|
<span class="cline-any cline-yes">14x</span>
|
|
284
368
|
<span class="cline-any cline-yes">14x</span>
|
|
285
369
|
<span class="cline-any cline-yes">14x</span>
|
|
@@ -303,8 +387,8 @@
|
|
|
303
387
|
<span class="cline-any cline-neutral"> </span>
|
|
304
388
|
<span class="cline-any cline-neutral"> </span>
|
|
305
389
|
<span class="cline-any cline-yes">11x</span>
|
|
306
|
-
<span class="cline-any cline-yes">
|
|
307
|
-
<span class="cline-any cline-yes">
|
|
390
|
+
<span class="cline-any cline-yes">20x</span>
|
|
391
|
+
<span class="cline-any cline-yes">20x</span>
|
|
308
392
|
<span class="cline-any cline-neutral"> </span>
|
|
309
393
|
<span class="cline-any cline-yes">11x</span>
|
|
310
394
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* tslint:disable */
|
|
@@ -320,6 +404,8 @@
|
|
|
320
404
|
* Do not edit the class manually.
|
|
321
405
|
*/
|
|
322
406
|
|
|
407
|
+
import globalAxios from 'axios';
|
|
408
|
+
|
|
323
409
|
interface AWSv4Configuration {
|
|
324
410
|
options?: {
|
|
325
411
|
region?: string
|
|
@@ -336,6 +422,8 @@ export interface ConfigurationParameters {
|
|
|
336
422
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
337
423
|
username?: string;
|
|
338
424
|
password?: string;
|
|
425
|
+
clientId?: string;
|
|
426
|
+
clientSecret?: string;
|
|
339
427
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
340
428
|
awsv4?: AWSv4Configuration;
|
|
341
429
|
basePath?: string;
|
|
@@ -358,12 +446,28 @@ export class Configuration {
|
|
|
358
446
|
* parameter for basic security
|
|
359
447
|
*/
|
|
360
448
|
password?: string;
|
|
449
|
+
/**
|
|
450
|
+
* parameter for client ID
|
|
451
|
+
*/
|
|
452
|
+
clientId?: string;
|
|
453
|
+
/**
|
|
454
|
+
* parameter for client secret
|
|
455
|
+
*/
|
|
456
|
+
clientSecret?: string;
|
|
361
457
|
/**
|
|
362
458
|
* parameter for oauth2 security
|
|
363
459
|
* @param name security name
|
|
364
460
|
* @param scopes oauth2 scope
|
|
365
461
|
*/
|
|
366
462
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
463
|
+
/**
|
|
464
|
+
* temporary access token storage
|
|
465
|
+
*/
|
|
466
|
+
tempAccessToken?: string;
|
|
467
|
+
/**
|
|
468
|
+
* when the temporary access token expires
|
|
469
|
+
*/
|
|
470
|
+
tempAccessTokenExpiration?: number;
|
|
367
471
|
/**
|
|
368
472
|
* parameter for aws4 signature security
|
|
369
473
|
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
@@ -400,7 +504,29 @@ export class Configuration {
|
|
|
400
504
|
this.apiKey = param.apiKey;
|
|
401
505
|
this.username = param.username;
|
|
402
506
|
this.password = param.password;
|
|
403
|
-
this.
|
|
507
|
+
this.clientId = param.clientId;
|
|
508
|
+
this.clientSecret = param.clientSecret;
|
|
509
|
+
this.tempAccessToken;
|
|
510
|
+
this.tempAccessTokenExpiration;
|
|
511
|
+
this.accessToken = param.accessToken<span class="branch-0 cbranch-no" title="branch not covered" > ?? (</span>async (name, scopes) => {
|
|
512
|
+
const now = Math.floor(Date.now() / 1000);
|
|
513
|
+
if (this.tempAccessToken && (<span class="branch-1 cbranch-no" title="branch not covered" >!this.tempAccessTokenExpiration </span>|| <span class="branch-2 cbranch-no" title="branch not covered" >this.tempAccessTokenExpiration > now + 60)</span>) {
|
|
514
|
+
<span class="cstat-no" title="statement not covered" > return this.tempAccessToken;</span>
|
|
515
|
+
} else if (this.clientId && <span class="branch-1 cbranch-no" title="branch not covered" >this.clientSecret)</span> {
|
|
516
|
+
const <span class="cstat-no" title="statement not covered" >tokenRequestArgs = {</span>
|
|
517
|
+
method: 'POST',
|
|
518
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
519
|
+
auth: { username: this.clientId || '', password: this.clientSecret || '' },
|
|
520
|
+
data: 'grant_type=client_credentials',
|
|
521
|
+
url: 'https://api.bandwidth.com/api/v1/oauth2/token'
|
|
522
|
+
};
|
|
523
|
+
const <span class="cstat-no" title="statement not covered" >response = <span class="cstat-no" title="statement not covered" >await globalAxios.request(tokenRequestArgs);</span></span>
|
|
524
|
+
<span class="cstat-no" title="statement not covered" > this.tempAccessToken = response.data.access_token;</span>
|
|
525
|
+
<span class="cstat-no" title="statement not covered" > this.tempAccessTokenExpiration = now + response.data.expires_in;</span>
|
|
526
|
+
<span class="cstat-no" title="statement not covered" > return this.tempAccessToken!;</span>
|
|
527
|
+
}
|
|
528
|
+
return undefined;
|
|
529
|
+
});
|
|
404
530
|
this.awsv4 = param.awsv4;
|
|
405
531
|
this.basePath = param.basePath;
|
|
406
532
|
this.serverIndex = param.serverIndex;
|
|
@@ -408,7 +534,7 @@ export class Configuration {
|
|
|
408
534
|
...param.baseOptions,
|
|
409
535
|
headers: {
|
|
410
536
|
...param.baseOptions<span class="branch-1 cbranch-no" title="branch not covered" >?.headers,</span>
|
|
411
|
-
'User-Agent': "OpenAPI-Generator/7.
|
|
537
|
+
'User-Agent': "OpenAPI-Generator/7.1.0/typescript-axios"
|
|
412
538
|
},
|
|
413
539
|
};
|
|
414
540
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -436,7 +562,7 @@ export class Configuration {
|
|
|
436
562
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
437
563
|
Code coverage generated by
|
|
438
564
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
439
|
-
at 2025-
|
|
565
|
+
at 2025-12-09T20:23:48.768Z
|
|
440
566
|
</div>
|
|
441
567
|
<script src="../prettify.js"></script>
|
|
442
568
|
<script>
|