square-authentication 6.2.2__py3-none-any.whl → 7.0.0__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.
@@ -94,6 +94,12 @@ try:
94
94
  ldict_configuration["SQUARE_FILE_STORE_HELPER"]["SQUARE_FILE_STORE_PORT"]
95
95
  )
96
96
  # ===========================================
97
+
98
+ # ===========================================
99
+ # EMAIL
100
+
101
+ MAIL_GUN_API_KEY = ldict_configuration["EMAIL"]["MAIL_GUN_API_KEY"]
102
+ # ===========================================
97
103
  # Initialize logger
98
104
  global_object_square_logger = SquareLogger(
99
105
  pstr_log_file_name=config_str_log_file_name,
@@ -51,4 +51,7 @@ SQUARE_DATABASE_PORT = 10010
51
51
 
52
52
  SQUARE_FILE_STORE_PROTOCOL = http
53
53
  SQUARE_FILE_STORE_IP = localhost
54
- SQUARE_FILE_STORE_PORT = 10100
54
+ SQUARE_FILE_STORE_PORT = 10100
55
+
56
+ [EMAIL]
57
+ MAIL_GUN_API_KEY = dummy_mailgun_api_key
@@ -51,4 +51,7 @@ SQUARE_DATABASE_PORT = 20010
51
51
 
52
52
  SQUARE_FILE_STORE_PROTOCOL = http
53
53
  SQUARE_FILE_STORE_IP = raspi.thepmsquare.com
54
- SQUARE_FILE_STORE_PORT = 20010
54
+ SQUARE_FILE_STORE_PORT = 20010
55
+
56
+ [EMAIL]
57
+ MAIL_GUN_API_KEY = dummy_mailgun_api_key
@@ -13,8 +13,18 @@ messages = {
13
13
  "GENERIC_READ_SUCCESSFUL": "data retrieved successfully.",
14
14
  "GENERIC_UPDATE_SUCCESSFUL": "your information has been updated successfully.",
15
15
  "GENERIC_DELETE_SUCCESSFUL": "your records have been deleted successfully.",
16
+ "GENERIC_ACTION_SUCCESSFUL": "the action was completed successfully.",
16
17
  "GENERIC_400": "the request is invalid or cannot be processed.",
17
18
  "GENERIC_500": "an internal server error occurred. please try again later.",
18
19
  "INVALID_FILE_FORMAT": "the file format is not supported. please upload a valid file.",
19
20
  "FILE_SIZE_EXCEEDS_LIMIT": "the file size exceeds the limit. please upload a smaller file.",
21
+ "INCORRECT_AUTH_PROVIDER": "you have not linked this authentication provider to your account. please link it first.",
22
+ "INVALID_EMAIL_FORMAT": "the email address is invalid. please provide a valid email address.",
23
+ "INVALID_PHONE_NUMBER_FORMAT": "the phone number is invalid. please provide a valid phone number.",
24
+ "GENERIC_MISSING_REQUIRED_FIELD": "a required field is missing. please check your input and try again.",
25
+ "RECOVERY_METHOD_NOT_ENABLED": "the recovery method you are trying to use is not enabled for your account.",
26
+ "INCORRECT_BACKUP_CODE": "the backup code you provided is incorrect or has already been used. please try again with a valid code.",
27
+ "EMAIL_ALREADY_VERIFIED": "your email address has already been verified.",
28
+ "INCORRECT_VERIFICATION_CODE": "the verification code you entered is incorrect or has expired. please request a new code.",
29
+ "EMAIL_NOT_VERIFIED": "your email address has not been verified. please verify your email to continue.",
20
30
  }
@@ -33,3 +33,15 @@ class TokenType(Enum):
33
33
 
34
34
  class LogoutAppsV0(BaseModel):
35
35
  app_ids: List[int]
36
+
37
+
38
+ class ResetPasswordAndLoginUsingBackupCodeV0(BaseModel):
39
+ backup_code: str
40
+ username: str
41
+ new_password: str
42
+ app_id: int
43
+
44
+
45
+ class SendResetPasswordEmailV0(BaseModel):
46
+ username: str
47
+ app_id: int
@@ -0,0 +1,5 @@
1
+ from pydantic import BaseModel
2
+
3
+
4
+ class ValidateEmailVerificationCodeV0(BaseModel):
5
+ verification_code: str