Skip to content

Commit

Permalink
feat: deprecate IPLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Jan 10, 2024
1 parent 1afccbe commit 035024d
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
28 changes: 26 additions & 2 deletions resources/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ paths:
asn: '7922'
name: COMCAST-7922
network: 73.136.0.0/13
dataCenter:
datacenter:
result: true
name: DediPath
incognito:
Expand Down Expand Up @@ -3701,7 +3701,7 @@ paths:
asn: '7922'
name: COMCAST-7922
network: 73.136.0.0/13
dataCenter:
datacenter:
result: true
name: DediPath
rootApps:
Expand Down Expand Up @@ -4320,8 +4320,22 @@ components:
- asn
- network
title: ASN
DataCenterInfo:
type: object
additionalProperties: false
properties:
result:
type: boolean
name:
type: string
example: DediPath
required:
- result
title: DataCenterInfo
DataCenter:
type: object
deprecated: true
description: '`dataCenter` is deprecated in favor of `datacenter`'
additionalProperties: false
properties:
result:
Expand All @@ -4335,6 +4349,12 @@ components:
IPLocation:
type: object
additionalProperties: false
deprecated: true
description: >-
This field is **deprecated** and will not return a result for **accounts
created after December 18th, 2023**. Please use the [`ipInfo` Smart
signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation)
for geolocation information.
properties:
accuracyRadius:
description: >-
Expand Down Expand Up @@ -4857,6 +4877,8 @@ components:
$ref: '#/components/schemas/IPLocation'
asn:
$ref: '#/components/schemas/ASN'
datacenter:
$ref: '#/components/schemas/DataCenterInfo'
dataCenter:
$ref: '#/components/schemas/DataCenter'
v6:
Expand All @@ -4871,6 +4893,8 @@ components:
$ref: '#/components/schemas/IPLocation'
asn:
$ref: '#/components/schemas/ASN'
datacenter:
$ref: '#/components/schemas/DataCenterInfo'
dataCenter:
$ref: '#/components/schemas/DataCenter'
IpBlockListResult:
Expand Down
20 changes: 18 additions & 2 deletions src/generatedApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,27 @@ export interface components {
/** @example COMCAST-7922 */
name?: string;
};
/** DataCenter */
/** DataCenterInfo */
DataCenterInfo: {
result: boolean;
/** @example DediPath */
name?: string;
};
/**
* DataCenter
* @deprecated
* @description `dataCenter` is deprecated in favor of `datacenter`
*/
DataCenter: {
result: boolean;
/** @example DediPath */
name?: string;
};
/** IPLocation */
/**
* IPLocation
* @deprecated
* @description This field is **deprecated** and will not return a result for **accounts created after December 18th, 2023**. Please use the [`ipInfo` Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.
*/
IPLocation: {
/**
* @description The IP address is likely to be within this radius (in km) of the specified location.
Expand Down Expand Up @@ -775,6 +789,7 @@ export interface components {
address?: string;
geolocation?: components['schemas']['IPLocation'];
asn?: components['schemas']['ASN'];
datacenter?: components['schemas']['DataCenterInfo'];
dataCenter?: components['schemas']['DataCenter'];
};
v6?: {
Expand All @@ -785,6 +800,7 @@ export interface components {
address?: string;
geolocation?: components['schemas']['IPLocation'];
asn?: components['schemas']['ASN'];
datacenter?: components['schemas']['DataCenterInfo'];
dataCenter?: components['schemas']['DataCenter'];
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Object {
"name": "COMCAST-7922",
"network": "73.136.0.0/13",
},
"dataCenter": Object {
"datacenter": Object {
"name": "DediPath",
"result": true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Object {
"name": "COMCAST-7922",
"network": "73.136.0.0/13",
},
"dataCenter": Object {
"datacenter": Object {
"name": "DediPath",
"result": true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"name": "COMCAST-7922",
"network": "73.136.0.0/13"
},
"dataCenter": {
"datacenter": {
"result": true,
"name": "DediPath"
}
Expand Down Expand Up @@ -229,4 +229,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"name": "COMCAST-7922",
"network": "73.136.0.0/13"
},
"dataCenter": {
"datacenter": {
"result": true,
"name": "DediPath"
}
Expand Down Expand Up @@ -184,4 +184,4 @@
"locationSpoofing": {
"result": true
}
}
}

0 comments on commit 035024d

Please sign in to comment.