diff --git a/docs/Model/Botd.md b/docs/Model/Botd.md index fe8f125..9f03009 100644 --- a/docs/Model/Botd.md +++ b/docs/Model/Botd.md @@ -6,7 +6,7 @@ Contains all the information from Bot Detection product Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bot** | [**\Fingerprint\ServerAPI\Model\BotdBot**](BotdBot.md) | | -**meta** | **mixed** | | [optional] +**meta** | array | | [optional] **linked_id** | **string** | A customer-provided id that was sent with the request. | [optional] **url** | **string** | Page URL from which the request was sent. | **ip** | **string** | IP address of the requesting browser or bot. | diff --git a/docs/Model/EventsUpdateRequest.md b/docs/Model/EventsUpdateRequest.md index 43b0f2b..fa7847f 100644 --- a/docs/Model/EventsUpdateRequest.md +++ b/docs/Model/EventsUpdateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **linked_id** | **string** | LinkedID value to assign to the existing event | [optional] -**tag** | **mixed** | | [optional] +**tag** | array | | [optional] **suspect** | **bool** | Suspect flag indicating observed suspicious or fraudulent event | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/Identification.md b/docs/Model/Identification.md index 598de11..88c3a02 100644 --- a/docs/Model/Identification.md +++ b/docs/Model/Identification.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | **url** | **string** | Page URL from which the request was sent. | -**tag** | **mixed** | | +**tag** | array | | **confidence** | [**\Fingerprint\ServerAPI\Model\IdentificationConfidence**](IdentificationConfidence.md) | | [optional] **visitor_found** | **bool** | Attribute represents if a visitor had been identified before. | **first_seen_at** | [**\Fingerprint\ServerAPI\Model\IdentificationSeenAt**](IdentificationSeenAt.md) | | diff --git a/docs/Model/Visit.md b/docs/Model/Visit.md index ce14dc5..48e4ec1 100644 --- a/docs/Model/Visit.md +++ b/docs/Model/Visit.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the client agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | **url** | **string** | Page URL from which the request was sent. | -**tag** | **mixed** | | +**tag** | array | | **confidence** | [**\Fingerprint\ServerAPI\Model\IdentificationConfidence**](IdentificationConfidence.md) | | [optional] **visitor_found** | **bool** | Attribute represents if a visitor had been identified before. | **first_seen_at** | [**\Fingerprint\ServerAPI\Model\IdentificationSeenAt**](IdentificationSeenAt.md) | | diff --git a/docs/Model/Webhook.md b/docs/Model/Webhook.md index e4192fb..b226540 100644 --- a/docs/Model/Webhook.md +++ b/docs/Model/Webhook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **request_id** | **string** | Unique identifier of the user's request. | **url** | **string** | Page URL from which the request was sent. | **ip** | **string** | IP address of the requesting browser or bot. | -**tag** | **mixed** | | [optional] +**tag** | array | | [optional] **time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | **timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. | **ip_location** | [**\Fingerprint\ServerAPI\Model\DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional] diff --git a/scripts/generate.sh b/scripts/generate.sh index 369e5bc..9458af1 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -37,7 +37,7 @@ platform=$(uname) # clean models before generating rm -f ./src/Model/* -java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json --type-mapping RawDeviceAttributes=array,WebhookRawDeviceAttributes=array,Tag=mixed +java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json --type-mapping RawDeviceAttributes=array,WebhookRawDeviceAttributes=array,Tag=array if [ ! -f .php-cs-fixer.php ]; then echo ".php-cs-fixer.php configuration file not found!" diff --git a/src/Model/Botd.php b/src/Model/Botd.php index d8df4bc..d07023c 100644 --- a/src/Model/Botd.php +++ b/src/Model/Botd.php @@ -55,7 +55,7 @@ class Botd implements ModelInterface, \ArrayAccess */ protected static array $swaggerTypes = [ 'bot' => '\Fingerprint\ServerAPI\Model\BotdBot', - 'meta' => 'mixed', + 'meta' => 'array', 'linked_id' => 'string', 'url' => 'string', 'ip' => 'string', @@ -274,7 +274,7 @@ public function setBot(BotdBot $bot): self /** * Gets meta. */ - public function getMeta(): mixed + public function getMeta(): ?array { return $this->container['meta']; } @@ -282,11 +282,11 @@ public function getMeta(): mixed /** * Sets meta. * - * @param mixed $meta meta + * @param ?array $meta meta * * @return $this */ - public function setMeta(mixed $meta): self + public function setMeta(?array $meta): self { $this->container['meta'] = $meta; diff --git a/src/Model/EventsUpdateRequest.php b/src/Model/EventsUpdateRequest.php index b432439..7bf1677 100644 --- a/src/Model/EventsUpdateRequest.php +++ b/src/Model/EventsUpdateRequest.php @@ -53,7 +53,7 @@ class EventsUpdateRequest implements ModelInterface, \ArrayAccess */ protected static array $swaggerTypes = [ 'linked_id' => 'string', - 'tag' => 'mixed', + 'tag' => 'array', 'suspect' => 'bool']; /** @@ -221,7 +221,7 @@ public function setLinkedId(?string $linked_id): self /** * Gets tag. */ - public function getTag(): mixed + public function getTag(): ?array { return $this->container['tag']; } @@ -229,11 +229,11 @@ public function getTag(): mixed /** * Sets tag. * - * @param mixed $tag tag + * @param ?array $tag tag * * @return $this */ - public function setTag(mixed $tag): self + public function setTag(?array $tag): self { $this->container['tag'] = $tag; diff --git a/src/Model/Identification.php b/src/Model/Identification.php index 11dd6b4..180dc8f 100644 --- a/src/Model/Identification.php +++ b/src/Model/Identification.php @@ -62,7 +62,7 @@ class Identification implements ModelInterface, \ArrayAccess 'timestamp' => 'int', 'time' => '\DateTime', 'url' => 'string', - 'tag' => 'mixed', + 'tag' => 'array', 'confidence' => '\Fingerprint\ServerAPI\Model\IdentificationConfidence', 'visitor_found' => 'bool', 'first_seen_at' => '\Fingerprint\ServerAPI\Model\IdentificationSeenAt', @@ -536,7 +536,7 @@ public function setUrl(string $url): self /** * Gets tag. */ - public function getTag(): mixed + public function getTag(): array { return $this->container['tag']; } @@ -544,11 +544,11 @@ public function getTag(): mixed /** * Sets tag. * - * @param mixed $tag tag + * @param array $tag tag * * @return $this */ - public function setTag(mixed $tag): self + public function setTag(array $tag): self { $this->container['tag'] = $tag; diff --git a/src/Model/Visit.php b/src/Model/Visit.php index b60c655..0bb6940 100644 --- a/src/Model/Visit.php +++ b/src/Model/Visit.php @@ -61,7 +61,7 @@ class Visit implements ModelInterface, \ArrayAccess 'timestamp' => 'int', 'time' => '\DateTime', 'url' => 'string', - 'tag' => 'mixed', + 'tag' => 'array', 'confidence' => '\Fingerprint\ServerAPI\Model\IdentificationConfidence', 'visitor_found' => 'bool', 'first_seen_at' => '\Fingerprint\ServerAPI\Model\IdentificationSeenAt', @@ -505,7 +505,7 @@ public function setUrl(string $url): self /** * Gets tag. */ - public function getTag(): mixed + public function getTag(): array { return $this->container['tag']; } @@ -513,11 +513,11 @@ public function getTag(): mixed /** * Sets tag. * - * @param mixed $tag tag + * @param array $tag tag * * @return $this */ - public function setTag(mixed $tag): self + public function setTag(array $tag): self { $this->container['tag'] = $tag; diff --git a/src/Model/Webhook.php b/src/Model/Webhook.php index 7405e0f..27c0bd0 100644 --- a/src/Model/Webhook.php +++ b/src/Model/Webhook.php @@ -55,7 +55,7 @@ class Webhook implements ModelInterface, \ArrayAccess 'request_id' => 'string', 'url' => 'string', 'ip' => 'string', - 'tag' => 'mixed', + 'tag' => 'array', 'time' => '\DateTime', 'timestamp' => 'int', 'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedGeolocation', @@ -505,7 +505,7 @@ public function setIp(string $ip): self /** * Gets tag. */ - public function getTag(): mixed + public function getTag(): ?array { return $this->container['tag']; } @@ -513,11 +513,11 @@ public function getTag(): mixed /** * Sets tag. * - * @param mixed $tag tag + * @param ?array $tag tag * * @return $this */ - public function setTag(mixed $tag): self + public function setTag(?array $tag): self { $this->container['tag'] = $tag;