Coverage for fingerprint_server_sdk / models / bot_info_identity.py: 92%

13 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-05-26 17:42 +0000

1""" 

2Server API 

3Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. 

4Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. 

5 

6The version of the OpenAPI document: 4 

7Contact: support@fingerprint.com 

8Generated by OpenAPI Generator (https://openapi-generator.tech) 

9 

10Do not edit the class manually. 

11""" # noqa: E501 

12 

13from __future__ import annotations 

14 

15import json 

16from enum import Enum 

17 

18from typing_extensions import Self 

19 

20 

21class BotInfoIdentity(str, Enum): 

22 """ 

23 The verification status of the bot's identity: * `verified` - well-known bot with publicly verifiable identity, directed by the bot provider. * `signed` - bot that signs its platform via Web Bot Auth, directed by the bot provider's customers. * `spoofed` - bot that claims a public identity but fails verification. * `unknown` - bot that does not publish a verifiable identity. 

24 """ 

25 

26 """ 

27 allowed enum values 

28 """ 

29 VERIFIED = 'verified' 

30 SIGNED = 'signed' 

31 SPOOFED = 'spoofed' 

32 UNKNOWN = 'unknown' 

33 

34 @classmethod 

35 def from_json(cls, json_str: str) -> Self: 

36 """Create an instance of BotInfoIdentity from a JSON string""" 

37 return cls(json.loads(json_str))