regula-documentreader-webclient 8.1.367.dev0__py3-none-any.whl → 8.1.370.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of regula-documentreader-webclient might be problematic. Click here for more details.

@@ -56,6 +56,7 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
56
56
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
57
57
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
58
58
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
59
+ from regula.documentreader.webclient.gen.models.device_info_documents_database import DeviceInfoDocumentsDatabase
59
60
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
60
61
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
61
62
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_item import DocBarCodeInfoItem
@@ -37,6 +37,7 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
37
37
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
38
38
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
39
39
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
40
+ from regula.documentreader.webclient.gen.models.device_info_documents_database import DeviceInfoDocumentsDatabase
40
41
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
41
42
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
42
43
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_item import DocBarCodeInfoItem
@@ -12,6 +12,7 @@ import json
12
12
  from datetime import datetime
13
13
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
14
14
  from typing import Any, ClassVar, Dict, List, Optional
15
+ from regula.documentreader.webclient.gen.models.device_info_documents_database import DeviceInfoDocumentsDatabase
15
16
  from typing import Optional, Set
16
17
  from typing_extensions import Self
17
18
 
@@ -19,13 +20,17 @@ class DeviceInfo(BaseModel):
19
20
  """
20
21
  DeviceInfo
21
22
  """ # noqa: E501
22
- app_name: Optional[StrictStr] = Field(default=None, alias="app-name")
23
- version: Optional[StrictStr] = None
24
- license_id: Optional[StrictStr] = Field(default=None, alias="license-id")
25
- license_serial: Optional[StrictStr] = Field(default=None, alias="license-serial")
26
- valid_until: Optional[datetime] = Field(default=None, alias="valid-until")
27
- server_time: Optional[datetime] = Field(default=None, alias="server-time")
28
- __properties: ClassVar[List[str]] = ["app-name", "version", "license-id", "license-serial", "valid-until", "server-time"]
23
+ app_name: Optional[StrictStr] = Field(default=None, description="Application name.", alias="app-name")
24
+ version: Optional[StrictStr] = Field(default=None, description="Product version.")
25
+ license_id: Optional[StrictStr] = Field(default=None, description="Unique license identifier.", alias="license-id")
26
+ license_serial: Optional[StrictStr] = Field(default=None, description="License serial number.", alias="license-serial")
27
+ license_type: Optional[StrictStr] = Field(default=None, alias="license-type")
28
+ valid_until: Optional[datetime] = Field(default=None, description="License validity date.", alias="valid-until")
29
+ server_time: Optional[StrictStr] = Field(default=None, alias="server-time")
30
+ supported_scenarios: Optional[List[StrictStr]] = Field(default=None, description="List of supported scenarios.", alias="supported-scenarios")
31
+ metadata: Optional[Dict[str, Any]] = None
32
+ documents_database: Optional[DeviceInfoDocumentsDatabase] = Field(default=None, alias="documents-database")
33
+ __properties: ClassVar[List[str]] = ["app-name", "version", "license-id", "license-serial", "license-type", "valid-until", "server-time", "supported-scenarios", "metadata", "documents-database"]
29
34
 
30
35
  model_config = ConfigDict(
31
36
  populate_by_name=True,
@@ -66,6 +71,9 @@ class DeviceInfo(BaseModel):
66
71
  exclude=excluded_fields,
67
72
  exclude_none=True,
68
73
  )
74
+ # override the default output from pydantic by calling `to_dict()` of documents_database
75
+ if self.documents_database:
76
+ _dict['documents-database'] = self.documents_database.to_dict()
69
77
  return _dict
70
78
 
71
79
  @classmethod
@@ -82,8 +90,12 @@ class DeviceInfo(BaseModel):
82
90
  "version": obj.get("version"),
83
91
  "license-id": obj.get("license-id"),
84
92
  "license-serial": obj.get("license-serial"),
93
+ "license-type": obj.get("license-type"),
85
94
  "valid-until": obj.get("valid-until"),
86
- "server-time": obj.get("server-time")
95
+ "server-time": obj.get("server-time"),
96
+ "supported-scenarios": obj.get("supported-scenarios"),
97
+ "metadata": obj.get("metadata"),
98
+ "documents-database": DeviceInfoDocumentsDatabase.from_dict(obj["documents-database"]) if obj.get("documents-database") is not None else None
87
99
  })
88
100
  return _obj
89
101
 
@@ -0,0 +1,105 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Generated by: https://openapi-generator.tech
5
+ """
6
+
7
+ from __future__ import annotations
8
+ import pprint
9
+ import re # noqa: F401
10
+ import json
11
+
12
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
13
+ from typing import Any, ClassVar, Dict, List, Optional
14
+ from typing import Optional, Set
15
+ from typing_extensions import Self
16
+
17
+ class DeviceInfoDocumentsDatabase(BaseModel):
18
+ """
19
+ Database information.
20
+ """ # noqa: E501
21
+ id: Optional[StrictStr] = Field(description="Database identifier.")
22
+ version: Optional[StrictStr] = Field(description="Database version.")
23
+ export_date: Optional[StrictStr] = Field(description="Date of database creation.", alias="export-date")
24
+ description: Optional[StrictStr] = Field(description="Description of the database contents, such as the list of supported countries and documents.")
25
+ __properties: ClassVar[List[str]] = ["id", "version", "export-date", "description"]
26
+
27
+ model_config = ConfigDict(
28
+ populate_by_name=True,
29
+ validate_assignment=True,
30
+ protected_namespaces=(),
31
+ )
32
+
33
+
34
+ def to_str(self) -> str:
35
+ """Returns the string representation of the model using alias"""
36
+ return pprint.pformat(self.model_dump(by_alias=True))
37
+
38
+ def to_json(self) -> str:
39
+ """Returns the JSON representation of the model using alias"""
40
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
41
+ return json.dumps(self.to_dict())
42
+
43
+ @classmethod
44
+ def from_json(cls, json_str: str) -> Optional[Self]:
45
+ """Create an instance of DeviceInfoDocumentsDatabase from a JSON string"""
46
+ return cls.from_dict(json.loads(json_str))
47
+
48
+ def to_dict(self) -> Dict[str, Any]:
49
+ """Return the dictionary representation of the model using alias.
50
+
51
+ This has the following differences from calling pydantic's
52
+ `self.model_dump(by_alias=True)`:
53
+
54
+ * `None` is only added to the output dict for nullable fields that
55
+ were set at model initialization. Other fields with value `None`
56
+ are ignored.
57
+ """
58
+ excluded_fields: Set[str] = set([
59
+ ])
60
+
61
+ _dict = self.model_dump(
62
+ by_alias=True,
63
+ exclude=excluded_fields,
64
+ exclude_none=True,
65
+ )
66
+ # set to None if id (nullable) is None
67
+ # and model_fields_set contains the field
68
+ if self.id is None and "id" in self.model_fields_set:
69
+ _dict['id'] = None
70
+
71
+ # set to None if version (nullable) is None
72
+ # and model_fields_set contains the field
73
+ if self.version is None and "version" in self.model_fields_set:
74
+ _dict['version'] = None
75
+
76
+ # set to None if export_date (nullable) is None
77
+ # and model_fields_set contains the field
78
+ if self.export_date is None and "export_date" in self.model_fields_set:
79
+ _dict['export-date'] = None
80
+
81
+ # set to None if description (nullable) is None
82
+ # and model_fields_set contains the field
83
+ if self.description is None and "description" in self.model_fields_set:
84
+ _dict['description'] = None
85
+
86
+ return _dict
87
+
88
+ @classmethod
89
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
90
+ """Create an instance of DeviceInfoDocumentsDatabase from a dict"""
91
+ if obj is None:
92
+ return None
93
+
94
+ if not isinstance(obj, dict):
95
+ return cls.model_validate(obj)
96
+
97
+ _obj = cls.model_validate({
98
+ "id": obj.get("id"),
99
+ "version": obj.get("version"),
100
+ "export-date": obj.get("export-date"),
101
+ "description": obj.get("description")
102
+ })
103
+ return _obj
104
+
105
+
@@ -19,8 +19,8 @@ class ProcessParamsRfid(BaseModel):
19
19
  """
20
20
  Params for the RFID chip data reprocessing
21
21
  """ # noqa: E501
22
- pa_sensitive_codes_disable: Optional[List[ParsingNotificationCodes]] = Field(default=None, description="A list of notification codes that should be ignored during passive authentication (PA)", alias="paSensitiveCodesDisable")
23
- __properties: ClassVar[List[str]] = ["paSensitiveCodesDisable"]
22
+ pa_ignore_notification_codes: Optional[List[ParsingNotificationCodes]] = Field(default=None, description="A list of notification codes that should be ignored during passive authentication (PA)", alias="paIgnoreNotificationCodes")
23
+ __properties: ClassVar[List[str]] = ["paIgnoreNotificationCodes"]
24
24
 
25
25
  model_config = ConfigDict(
26
26
  populate_by_name=True,
@@ -73,7 +73,7 @@ class ProcessParamsRfid(BaseModel):
73
73
  return cls.model_validate(obj)
74
74
 
75
75
  _obj = cls.model_validate({
76
- "paSensitiveCodesDisable": obj.get("paSensitiveCodesDisable")
76
+ "paIgnoreNotificationCodes": obj.get("paIgnoreNotificationCodes")
77
77
  })
78
78
  return _obj
79
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: regula_documentreader_webclient
3
- Version: 8.1.367.dev0
3
+ Version: 8.1.370.dev0
4
4
  Summary: Regula's Document Reader python client
5
5
  Home-page: https://regulaforensics.com
6
6
  Author: Regula Forensics, Inc.
@@ -17,7 +17,7 @@ regula/documentreader/webclient/ext/models/authenticity/ident.py,sha256=DSmXEJ-v
17
17
  regula/documentreader/webclient/ext/models/authenticity/image_ident.py,sha256=QmKTghP4Lo7bHBEubwzsVt1ob97NNaNIu_5QN_LUF9M,370
18
18
  regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py,sha256=BV0h2_UDrwUlWczoJQW8qTSkdZ0icm0n0pPDRY9Qwq4,407
19
19
  regula/documentreader/webclient/ext/models/authenticity/security_feature.py,sha256=t8egDyT1wlGvsyvZboAFOvcaYsALGpj41E50FUbvx68,622
20
- regula/documentreader/webclient/gen/__init__.py,sha256=pgq20ZqtwGg6nHsu4phO5RmSAOo2vTu-yKsD5lIXhTY,21764
20
+ regula/documentreader/webclient/gen/__init__.py,sha256=XV0t3wsDikpVE8rPtcG4FnwltBF218O5eZFkG0zx_ww,21878
21
21
  regula/documentreader/webclient/gen/api_client.py,sha256=HHg6WD9kdtzfaP_W15MQDVv6dHAC3axjYT-CnnL4iwQ,27357
22
22
  regula/documentreader/webclient/gen/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
23
23
  regula/documentreader/webclient/gen/configuration.py,sha256=0hMqlAxYaL30050LBPnHrh6Sg1EIfSfQLr0eGNRNz1w,18084
@@ -28,7 +28,7 @@ regula/documentreader/webclient/gen/api/__init__.py,sha256=uTpCYjhu-y6l3fzZZtnb0
28
28
  regula/documentreader/webclient/gen/api/healthcheck_api.py,sha256=g3Q3XsdgYfEmmdgnnspRX5DluONia4bDANKUZLRMMlQ,29942
29
29
  regula/documentreader/webclient/gen/api/process_api.py,sha256=RnJXVZy-M1bNfiXK0tHEQEuhOgxkXk9jMG-hpZfTjZ8,12123
30
30
  regula/documentreader/webclient/gen/api/transaction_api.py,sha256=gloxQil4dSiOQ_pfxrjVj1IU0-K0TTlq1OIBwD_gL_w,65601
31
- regula/documentreader/webclient/gen/models/__init__.py,sha256=vaSyDVBijG7Q583kH53UDaILOZm-H4K4pkOuq2-w51k,20790
31
+ regula/documentreader/webclient/gen/models/__init__.py,sha256=Kw8nesOzUHMG44Vh8nOiH7vo-bgHMTZ8lr2Arj-Jtdg,20904
32
32
  regula/documentreader/webclient/gen/models/area_array.py,sha256=4MSvqoocqZjfsXxniYQTOackHbhbi4cboIelOYbiFBo,3522
33
33
  regula/documentreader/webclient/gen/models/area_container.py,sha256=FLl6DdW1kxcFFLPvHkGcUjk0zpbhpAKRpKCd3gjbpaw,3480
34
34
  regula/documentreader/webclient/gen/models/auth_params.py,sha256=7YlqQeS23EmPgDUUUWo6BNICdU4Zp86aNVOVwncKos8,6463
@@ -59,7 +59,8 @@ regula/documentreader/webclient/gen/models/cross_source_value_comparison.py,sha2
59
59
  regula/documentreader/webclient/gen/models/data_module.py,sha256=2IExd2mBmjbo1MPYcYcC1Dit2IUIOYp5ofi2G6iMiaA,2851
60
60
  regula/documentreader/webclient/gen/models/details_optical.py,sha256=iVA6uutN4i1FrZis57sBduk6PKsMsYBP6S7BcZPraBY,3168
61
61
  regula/documentreader/webclient/gen/models/details_rfid.py,sha256=0YXK0Xm29EqCScRN2gyjDLYubYNm0fdI9Zda3X61l4k,2873
62
- regula/documentreader/webclient/gen/models/device_info.py,sha256=mAzRbJU0AZ5RqGIDcEY0kdUHnQk_GG7giRoE7IAm_b4,3012
62
+ regula/documentreader/webclient/gen/models/device_info.py,sha256=g23U-d9uwGkFk58fCLzLswBRYMO-RImMlK9OJPNkKw8,4313
63
+ regula/documentreader/webclient/gen/models/device_info_documents_database.py,sha256=HlfEe-SJKqUBPyGvboB1pnP8pom7gf0nOTDO0mKbiyE,3715
63
64
  regula/documentreader/webclient/gen/models/doc_bar_code_info.py,sha256=o-3dq242YuC2m66QGsmf2NKB2YM44HeafRwRkL6_6ZU,3146
64
65
  regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py,sha256=OHOPOYURF-eoKPM1peqHzMlr89p1TilKDjfCau6ShGg,3067
65
66
  regula/documentreader/webclient/gen/models/doc_bar_code_info_item.py,sha256=XVcBmHeuohJDczAlze3VLcD5hcwpjm5a9ITFNpv6qtA,2726
@@ -163,7 +164,7 @@ regula/documentreader/webclient/gen/models/point.py,sha256=_khsO-Zo2SIqXIPHQALJz
163
164
  regula/documentreader/webclient/gen/models/point_array.py,sha256=xcg4DqZl-oNKJt9BPyASdeGNTlPrO7G31zTMEzZkL2g,2768
164
165
  regula/documentreader/webclient/gen/models/points_container.py,sha256=6KKKe2sFAwg3d0QDWyejfQEHTqTzTE56o6MqSX5gO6A,2951
165
166
  regula/documentreader/webclient/gen/models/process_params.py,sha256=1eCoZYT99ga6uKFLhY3oJ2WtX8UHHXBCJRgFZCPmuPE,24220
166
- regula/documentreader/webclient/gen/models/process_params_rfid.py,sha256=YzSY3dormyWNln3ispy5G4j_7yhNhWJgKQpT45_ad5k,2646
167
+ regula/documentreader/webclient/gen/models/process_params_rfid.py,sha256=3oZtyyUdAKF83XU1AnCqAQLQIRX1zydn1MK743o3ua8,2656
167
168
  regula/documentreader/webclient/gen/models/process_request.py,sha256=SC4zwX2P9A9VjLe7tGXhUvx5Z3mzmsgJOWZAUocZ4JI,6129
168
169
  regula/documentreader/webclient/gen/models/process_request_image.py,sha256=yA0hfvr-KGBGFyR97fQZsAkDX3mh4XZEVsWDXiOLTPQ,2948
169
170
  regula/documentreader/webclient/gen/models/process_response.py,sha256=BcYBupKooHkVS9540-RotyYZuHSeARUlA3rsGpTyegk,4681
@@ -257,7 +258,7 @@ regula/documentreader/webclient/gen/models/verification_result.py,sha256=E6bCVR5
257
258
  regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=sOnkL-c9WIJPHcUjT5_KzxMiVZK574iOBppANc7zRSs,4861
258
259
  regula/documentreader/webclient/gen/models/visibility.py,sha256=GACgQd_8lx_cwMwI5lCi7cTxEWxw2atbJo6uI4mTKpQ,602
259
260
  regula/documentreader/webclient/gen/models/visual_extended_field_item.py,sha256=55PY8Wwn1Nh0msc-ynPZqlkmc6QwsghIy9-ICqvbRcA,5040
260
- regula_documentreader_webclient-8.1.367.dev0.dist-info/METADATA,sha256=0RafkNilq53vHYWog7S2hSscWRf7hqD0A4Fcpv3XTFQ,4001
261
- regula_documentreader_webclient-8.1.367.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
262
- regula_documentreader_webclient-8.1.367.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
263
- regula_documentreader_webclient-8.1.367.dev0.dist-info/RECORD,,
261
+ regula_documentreader_webclient-8.1.370.dev0.dist-info/METADATA,sha256=E0KlpnIvaoTCQM1lw0eN7noXXIdpS00hx5tS_Q5Z49A,4001
262
+ regula_documentreader_webclient-8.1.370.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
263
+ regula_documentreader_webclient-8.1.370.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
264
+ regula_documentreader_webclient-8.1.370.dev0.dist-info/RECORD,,