-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate new source file with updated swagger
BREAKING CHANGE: `StSeenAt` type renamed to `SeenAt`
- Loading branch information
Showing
43 changed files
with
290 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# BotdError | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Code** | **string** | Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error | [default to null] | ||
**Message** | **string** | | [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# ErrorResponse | ||
# ErrorEvent403Response | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Error_** | [***ErrorResponseError**](ErrorResponseError.md) | | [optional] [default to null] | ||
**Error_** | [***ErrorEvent403ResponseError**](ErrorEvent403ResponseError.md) | | [optional] [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ErrorEvent403ResponseError | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Code** | **string** | Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - subscription not found for specified secret key * `SubscriptionNotActive` - subscription is not active * `WrongRegion` - server and subscription region differ | [default to null] | ||
**Message** | **string** | | [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# ErrorResponseError | ||
# ErrorEvent404Response | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Code** | **string** | | [optional] [default to null] | ||
**Message** | **string** | | [optional] [default to null] | ||
**Error_** | [***ErrorEvent404ResponseError**](ErrorEvent404ResponseError.md) | | [optional] [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ErrorEvent404ResponseError | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Code** | **string** | Error code: * `RequestNotFound` - request not found for specified id | [default to null] | ||
**Message** | **string** | | [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# StSeenAt | ||
# SeenAt | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
@@ -22,10 +22,10 @@ import ( | |
type FingerprintApiService service | ||
|
||
/* | ||
FingerprintApiService Get event by request ID | ||
This endpoint allows you to get events with all the information from each activated product - BOTD and Fingerprinting. Use the requestId as a URL path :request_id parameter. This API method is scoped to a request, i.e. all returned information is by requestId. | ||
FingerprintApiService Get event by requestId | ||
This endpoint allows you to get events with all the information from each activated product (Fingerprint Pro or Bot Detection). Use the requestId as a URL path :request_id parameter. This API method is scoped to a request, i.e. all returned information is by requestId. | ||
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). | ||
- @param requestId Request ID | ||
- @param requestId requestId is the unique identifier of each request | ||
@return EventResponse | ||
*/ | ||
|
@@ -113,8 +113,8 @@ func (a *FingerprintApiService) GetEvent(ctx context.Context, requestId string) | |
newErr.model = v | ||
return localVarReturnValue, localVarHttpResponse, newErr | ||
} | ||
if localVarHttpResponse.StatusCode == 400 { | ||
var v ErrorResponse | ||
if localVarHttpResponse.StatusCode == 403 { | ||
var v ErrorEvent403Response | ||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) | ||
if err != nil { | ||
newErr.error = err.Error() | ||
|
@@ -123,8 +123,8 @@ func (a *FingerprintApiService) GetEvent(ctx context.Context, requestId string) | |
newErr.model = v | ||
return localVarReturnValue, localVarHttpResponse, newErr | ||
} | ||
if localVarHttpResponse.StatusCode == 403 { | ||
var v ErrorResponse | ||
if localVarHttpResponse.StatusCode == 404 { | ||
var v ErrorEvent404Response | ||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) | ||
if err != nil { | ||
newErr.error = err.Error() | ||
|
@@ -150,13 +150,13 @@ func (a *FingerprintApiService) GetEvent(ctx context.Context, requestId string) | |
} | ||
|
||
/* | ||
FingerprintApiService | ||
FingerprintApiService Get visits by visitorId | ||
This endpoint allows you to get a history of visits with all available information. Use the visitorId as a URL path parameter. This API method is scoped to a visitor, i.e. all returned information is by visitorId. | ||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). | ||
* @param visitorId | ||
* @param optional nil or *FingerprintApiGetVisitsOpts - Optional Parameters: | ||
* @param "RequestId" (optional.String) - Filter events by requestId | ||
* @param "LinkedId" (optional.String) - Filter events by custom identifier | ||
* @param "RequestId" (optional.String) - Filter visits by requestId | ||
* @param "LinkedId" (optional.String) - Filter visits by custom identifier | ||
* @param "Limit" (optional.Int32) - Limit scanned results | ||
* @param "Before" (optional.Int32) - Used to paginate results | ||
@return Response | ||
|
@@ -268,6 +268,16 @@ func (a *FingerprintApiService) GetVisits(ctx context.Context, visitorId string, | |
newErr.model = v | ||
return localVarReturnValue, localVarHttpResponse, newErr | ||
} | ||
if localVarHttpResponse.StatusCode == 403 { | ||
var v string | ||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) | ||
if err != nil { | ||
newErr.error = err.Error() | ||
return localVarReturnValue, localVarHttpResponse, newErr | ||
} | ||
newErr.model = v | ||
return localVarReturnValue, localVarHttpResponse, newErr | ||
} | ||
if localVarHttpResponse.StatusCode == 429 { | ||
var v ManyRequestsResponse | ||
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package sdk | ||
|
||
type BotdError struct { | ||
// Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error | ||
Code string `json:"code"` | ||
Message string `json:"message"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
@@ -13,7 +13,7 @@ import ( | |
"time" | ||
) | ||
|
||
// Contains all the information from BOTD product | ||
// Contains all the information from Bot Detection product | ||
type BotdResult struct { | ||
// IP address of the requesting browser or bot. | ||
Ip string `json:"ip"` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro. | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. This API can be used for data exports, decision-making, and data analysis scenarios. | ||
* | ||
* API version: 3 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package sdk | ||
|
||
type ErrorEvent403Response struct { | ||
Error_ *ErrorEvent403ResponseError `json:"error,omitempty"` | ||
} |
Oops, something went wrong.