Skip to content

Commit

Permalink
Merge pull request #64 from fingerprintjs/datacenter-asn
Browse files Browse the repository at this point in the history
SMSI-75 & SMSI-50: datacenter and asn
  • Loading branch information
ilfa authored Sep 7, 2023
2 parents 7385728 + 2cadaaa commit 2212614
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
9 changes: 9 additions & 0 deletions examples/get_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@
"name": "Hlavni mesto Praha"
}
]
},
"asn": {
"asn": "7922",
"name": "COMCAST-7922",
"network": "73.136.0.0/13"
},
"dataCenter": {
"result": true,
"name": "DediPath"
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions examples/get_event_pro_plus_bot_detected.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
"name": "Hlavni mesto Praha"
}
]
},
"asn": {
"asn": "7922",
"name": "COMCAST-7922",
"network": "73.136.0.0/13"
},
"dataCenter": {
"result": true,
"name": "DediPath"
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions examples/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@
"name": "Hlavni mesto Praha"
}
]
},
"asn": {
"asn": "7922",
"name": "COMCAST-7922",
"network": "73.136.0.0/13"
},
"dataCenter": {
"result": true,
"name": "DediPath"
}
}
},
Expand Down
39 changes: 38 additions & 1 deletion schemas/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,35 @@ components:
example:
global: '2022-05-05T18:28:54.535Z'
subscription: null
ASN:
type: object
additionalProperties: false
properties:
asn:
type: string
example: '7922'
network:
type: string
example: '73.136.0.0/13'
name:
type: string
example: 'COMCAST-7922'
required:
- asn
- network
title: ASN
DataCenter:
type: object
additionalProperties: false
properties:
result:
type: boolean
name:
type: string
example: 'DediPath'
required:
- result
title: DataCenter
IPLocation:
type: object
additionalProperties: false
Expand Down Expand Up @@ -1032,7 +1061,7 @@ components:
**Pro Plus:**
If a bot is detected (`products.botd.bot.result != "notDetected"`), the `visitorId` value contains a placeholder string `BotDetected000000000`.
example:
example:
- Ibk1527CUFmcnjLwIs4A
- BotDetected000000000
required:
Expand Down Expand Up @@ -1358,6 +1387,10 @@ components:
example: '94.142.239.124'
geolocation:
$ref: '#/components/schemas/IPLocation'
asn:
$ref: '#/components/schemas/ASN'
dataCenter:
$ref: '#/components/schemas/DataCenter'
v6:
type: object
additionalProperties: false
Expand All @@ -1368,6 +1401,10 @@ components:
example: '2001:0db8:85a3:0000:0000:8a2e:0370:7334'
geolocation:
$ref: '#/components/schemas/IPLocation'
asn:
$ref: '#/components/schemas/ASN'
dataCenter:
$ref: '#/components/schemas/DataCenter'
IpBlockListResult:
type: object
properties:
Expand Down

0 comments on commit 2212614

Please sign in to comment.