You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/generatedApiTypes.ts
+81-19Lines changed: 81 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@
6
6
exportinterfacepaths{
7
7
'/events/{request_id}': {
8
8
/**
9
-
* Get event by requestId
10
-
* @descriptionThis endpoint allows you to get a detailed analysis of an individual request.
9
+
* Get event by request ID
10
+
* @descriptionGet a detailed analysis of an individual identification event, including Smart Signals.
11
11
* **Only for Enterprise customers:** Please note that the response includes mobile signals (e.g. `rootApps`) even if the request originated from a non-mobile platform.
12
12
* It is highly recommended that you **ignore** the mobile signals for such requests.
13
13
*
@@ -17,15 +17,26 @@ export interface paths {
17
17
}
18
18
'/visitors/{visitor_id}': {
19
19
/**
20
-
* Get visits by visitorId
21
-
* @descriptionThis endpoint allows you to get a history of visits for a specific `visitorId`. Use the `visitorId` as a URL path parameter.
20
+
* Get visits by visitor ID
21
+
* @descriptionGet a history of visits (identification events) for a specific `visitorId`. Use the `visitorId` as a URL path parameter.
22
22
* Only information from the _Identification_ product is returned.
23
23
*
24
24
* #### Headers
25
25
*
26
26
* * `Retry-After` — Present in case of `429 Too many requests`. Indicates how long you should wait before making a follow-up request. The value is non-negative decimal integer indicating the seconds to delay after the response is received.
27
27
*/
28
28
get: operations['getVisits']
29
+
/**
30
+
* Delete data by visitor ID
31
+
* @description Request deleting all data associated with the specified visitor ID. This API is useful for compliance with privacy regulations.
32
+
* All delete requests are queued:
33
+
*
34
+
* * Recent data (10 days or newer) belonging to the specified visitor will be deleted within 24 hours.
35
+
* * Data from older (11 days or more) identification events will be deleted after 90 days.
36
+
*
37
+
* If you are interested in using this API, please [contact our support team](https://fingerprint.com/support/) to activate it for you. Otherwise, you will receive a 403.
38
+
*/
39
+
delete: operations['deleteVisitorData']
29
40
}
30
41
'/webhook': {
31
42
/** @description Fake path to describe webhook format. More information about webhooks can be found in the [documentation](https://dev.fingerprint.com/docs/webhooks) */
* @description Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted.
200
+
*
201
+
* @example VisitorNotFound
202
+
* @enum {string}
203
+
*/
204
+
code: 'VisitorNotFound'
205
+
/** @example visitor not found */
206
+
message: string
207
+
}
208
+
}
183
209
WebhookVisit: {
184
210
/** @example 3HNey93AkBW6CRbxV6xP */
185
211
visitorId: string
@@ -762,7 +788,7 @@ export interface components {
762
788
originCountry?: string
763
789
methods: {
764
790
/**
765
-
* @descriptionUser's browser timezone doesn't match the timezone from which the request was originally made.
791
+
* @descriptionThe browser timezone doesn't match the timezone inferred from the request IP address.
766
792
* @example false
767
793
*/
768
794
timezoneMismatch: boolean
@@ -962,8 +988,8 @@ export type external = Record<string, never>
962
988
963
989
exportinterfaceoperations{
964
990
/**
965
-
* Get event by requestId
966
-
* @descriptionThis endpoint allows you to get a detailed analysis of an individual request.
991
+
* Get event by request ID
992
+
* @descriptionGet a detailed analysis of an individual identification event, including Smart Signals.
967
993
* **Only for Enterprise customers:** Please note that the response includes mobile signals (e.g. `rootApps`) even if the request originated from a non-mobile platform.
968
994
* It is highly recommended that you **ignore** the mobile signals for such requests.
969
995
*
@@ -972,7 +998,7 @@ export interface operations {
972
998
getEvent: {
973
999
parameters: {
974
1000
path: {
975
-
/** @description The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each analysis request. */
1001
+
/** @description The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. */
* @description Request deleting all data associated with the specified visitor ID. This API is useful for compliance with privacy regulations.
1107
+
* All delete requests are queued:
1108
+
*
1109
+
* * Recent data (10 days or newer) belonging to the specified visitor will be deleted within 24 hours.
1110
+
* * Data from older (11 days or more) identification events will be deleted after 90 days.
1111
+
*
1112
+
* If you are interested in using this API, please [contact our support team](https://fingerprint.com/support/) to activate it for you. Otherwise, you will receive a 403.
1113
+
*/
1114
+
deleteVisitorData: {
1115
+
parameters: {
1116
+
path: {
1117
+
/** @description The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. */
1118
+
visitor_id: string
1119
+
}
1120
+
}
1121
+
responses: {
1122
+
/** @description OK. The visitor ID is scheduled for deletion. */
1123
+
200: {
1124
+
content: never
1125
+
}
1126
+
/** @description Forbidden. Access to this API is denied. */
@@ -77,6 +79,51 @@ export class FingerprintJsServerApiClient {
77
79
})
78
80
}
79
81
82
+
/**
83
+
* Delete data by visitor ID
84
+
* Request deleting all data associated with the specified visitor ID. This API is useful for compliance with privacy regulations. All delete requests are queued:
85
+
* Recent data (10 days or newer) belonging to the specified visitor will be deleted within 24 hours. * Data from older (11 days or more) identification events will be deleted after 90 days.
86
+
* If you are interested in using this API, please [contact our support team](https://fingerprint.com/support/) to activate it for you. Otherwise, you will receive a 403.
87
+
*
88
+
* @param visitorId The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete.*
0 commit comments