Skip to content

Commit 7b7905a

Browse files
authored
SWI-8913 Deprecate TN Lookup V1 (#84)
1 parent 565d56b commit 7b7905a

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

api/phone-number-lookup-api.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C
4141
* @param {string} accountId Your Bandwidth Account ID.
4242
* @param {LookupRequest} lookupRequest Phone number lookup request.
4343
* @param {*} [options] Override http request option.
44+
* @deprecated
4445
* @throws {RequiredError}
4546
*/
4647
createLookup: async (accountId: string, lookupRequest: LookupRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -85,6 +86,7 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C
8586
* @param {string} accountId Your Bandwidth Account ID.
8687
* @param {string} requestId The phone number lookup request ID from Bandwidth.
8788
* @param {*} [options] Override http request option.
89+
* @deprecated
8890
* @throws {RequiredError}
8991
*/
9092
getLookupStatus: async (accountId: string, requestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -137,6 +139,7 @@ export const PhoneNumberLookupApiFp = function(configuration?: Configuration) {
137139
* @param {string} accountId Your Bandwidth Account ID.
138140
* @param {LookupRequest} lookupRequest Phone number lookup request.
139141
* @param {*} [options] Override http request option.
142+
* @deprecated
140143
* @throws {RequiredError}
141144
*/
142145
async createLookup(accountId: string, lookupRequest: LookupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLookupResponse>> {
@@ -151,6 +154,7 @@ export const PhoneNumberLookupApiFp = function(configuration?: Configuration) {
151154
* @param {string} accountId Your Bandwidth Account ID.
152155
* @param {string} requestId The phone number lookup request ID from Bandwidth.
153156
* @param {*} [options] Override http request option.
157+
* @deprecated
154158
* @throws {RequiredError}
155159
*/
156160
async getLookupStatus(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LookupStatus>> {
@@ -175,6 +179,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
175179
* @param {string} accountId Your Bandwidth Account ID.
176180
* @param {LookupRequest} lookupRequest Phone number lookup request.
177181
* @param {*} [options] Override http request option.
182+
* @deprecated
178183
* @throws {RequiredError}
179184
*/
180185
createLookup(accountId: string, lookupRequest: LookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateLookupResponse> {
@@ -186,6 +191,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
186191
* @param {string} accountId Your Bandwidth Account ID.
187192
* @param {string} requestId The phone number lookup request ID from Bandwidth.
188193
* @param {*} [options] Override http request option.
194+
* @deprecated
189195
* @throws {RequiredError}
190196
*/
191197
getLookupStatus(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<LookupStatus> {
@@ -207,6 +213,7 @@ export class PhoneNumberLookupApi extends BaseAPI {
207213
* @param {string} accountId Your Bandwidth Account ID.
208214
* @param {LookupRequest} lookupRequest Phone number lookup request.
209215
* @param {*} [options] Override http request option.
216+
* @deprecated
210217
* @throws {RequiredError}
211218
* @memberof PhoneNumberLookupApi
212219
*/
@@ -220,6 +227,7 @@ export class PhoneNumberLookupApi extends BaseAPI {
220227
* @param {string} accountId Your Bandwidth Account ID.
221228
* @param {string} requestId The phone number lookup request ID from Bandwidth.
222229
* @param {*} [options] Override http request option.
230+
* @deprecated
223231
* @throws {RequiredError}
224232
* @memberof PhoneNumberLookupApi
225233
*/

bandwidth.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,7 @@ paths:
13301330
servers: *ref_2
13311331
/accounts/{accountId}/tnlookup:
13321332
post:
1333+
deprecated: true
13331334
summary: Create Lookup
13341335
description: Create a Phone Number Lookup Request.
13351336
operationId: createLookup
@@ -1359,6 +1360,7 @@ paths:
13591360
description: Production
13601361
/accounts/{accountId}/tnlookup/{requestId}:
13611362
get:
1363+
deprecated: true
13621364
summary: Get Lookup Request Status
13631365
description: Get an existing Phone Number Lookup Request.
13641366
operationId: getLookupStatus
@@ -3357,7 +3359,7 @@ components:
33573359
33583360
| verstat | (optional) The verification status indicating whether
33593361
the verification was successful or not. Possible values are
3360-
`TN-Verification-Passed` or `TN-Verification-Failed`. |
3362+
`TN-Validation-Passed` or `TN-Validation-Failed`. |
33613363
33623364
| attestationIndicator | (optional) The attestation level verified
33633365
by Bandwidth. Possible values are `A` (full), `B` (partial) or `C`
@@ -3375,7 +3377,7 @@ components:
33753377
additionalProperties:
33763378
type: string
33773379
example:
3378-
verstat: TN-Verification-Passed
3380+
verstat: TN-Validation-Passed
33793381
attestationIndicator: A
33803382
originatingId: abc123
33813383
identity:
@@ -5211,8 +5213,8 @@ components:
52115213
description: >-
52125214
(optional) The verification status indicating whether the
52135215
verification was successful or not. Possible values are
5214-
TN-Verification-Passed and TN-Verification-Failed.
5215-
example: Tn-Verification-Passed
5216+
TN-Validation-Passed and TN-Validation-Failed.
5217+
example: Tn-Validation-Passed
52165218
attestationIndicator:
52175219
type: string
52185220
description: >-

docs/CallState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**from** | **string** | The phone number that made the call, in E.164 format (e.g. +15555555555). | [optional] [default to undefined]
1414
**direction** | [**CallDirectionEnum**](CallDirectionEnum.md) | | [optional] [default to undefined]
1515
**state** | **string** | The current state of the call. Current possible values are &#x60;queued&#x60;, &#x60;initiated&#x60;, &#x60;answered&#x60; and &#x60;disconnected&#x60;. Additional states may be added in the future, so your application must be tolerant of unknown values. | [optional] [default to undefined]
16-
**stirShaken** | **{ [key: string]: string; }** | For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request &#x60;Identity&#x60; header. The verification status is stored in the call state &#x60;stirShaken&#x60; property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are &#x60;TN-Verification-Passed&#x60; or &#x60;TN-Verification-Failed&#x60;. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are &#x60;A&#x60; (full), &#x60;B&#x60; (partial) or &#x60;C&#x60; (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the &#x60;stirShaken&#x60; object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken). | [optional] [default to undefined]
16+
**stirShaken** | **{ [key: string]: string; }** | For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request &#x60;Identity&#x60; header. The verification status is stored in the call state &#x60;stirShaken&#x60; property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are &#x60;TN-Validation-Passed&#x60; or &#x60;TN-Validation-Failed&#x60;. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are &#x60;A&#x60; (full), &#x60;B&#x60; (partial) or &#x60;C&#x60; (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the &#x60;stirShaken&#x60; object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken). | [optional] [default to undefined]
1717
**identity** | **string** | The value of the &#x60;Identity&#x60; header from the inbound invite request. Only present for inbound calls and if the account is configured to forward this header. | [optional] [default to undefined]
1818
**enqueuedTime** | **string** | The time this call was placed in queue. | [optional] [default to undefined]
1919
**startTime** | **string** | The time the call was initiated, in ISO 8601 format. &#x60;null&#x60; if the call is still in your queue. | [optional] [default to undefined]

docs/StirShaken.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**verstat** | **string** | (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Verification-Passed and TN-Verification-Failed. | [optional] [default to undefined]
8+
**verstat** | **string** | (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Validation-Passed and TN-Validation-Failed. | [optional] [default to undefined]
99
**attestationIndicator** | **string** | (optional) The attestation level verified by Bandwidth. Possible values are A (full), B (partial) or C (gateway). | [optional] [default to undefined]
1010
**originatingId** | **string** | (optional) A unique origination identifier. | [optional] [default to undefined]
1111

models/call-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface CallState {
7272
*/
7373
'state'?: string;
7474
/**
75-
* For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request `Identity` header. The verification status is stored in the call state `stirShaken` property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are `TN-Verification-Passed` or `TN-Verification-Failed`. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are `A` (full), `B` (partial) or `C` (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the `stirShaken` object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken).
75+
* For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request `Identity` header. The verification status is stored in the call state `stirShaken` property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are `TN-Validation-Passed` or `TN-Validation-Failed`. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are `A` (full), `B` (partial) or `C` (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the `stirShaken` object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken).
7676
* @type {{ [key: string]: string; }}
7777
* @memberof CallState
7878
*/

models/stir-shaken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
export interface StirShaken {
2323
/**
24-
* (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Verification-Passed and TN-Verification-Failed.
24+
* (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Validation-Passed and TN-Validation-Failed.
2525
* @type {string}
2626
* @memberof StirShaken
2727
*/

0 commit comments

Comments
 (0)