@@ -147,13 +147,59 @@ class Error(Enum):
147147 FILE_INVALID_JSON = f"{ error_prefix } Initialization failed. File at {{}} is not in valid JSON format. Verify the file contents."
148148 INVALID_JSON_FORMAT_IN_CREDENTIALS_ENV = f"{ error_prefix } Validation error. Invalid JSON format in SKYFLOW_CREDENTIALS environment variable."
149149
150+ INVALID_TEXT_IN_DEIDENTIFY : f"{ error_prefix } Validation error. The text field is required and must be a non-empty string. Specify a valid text."
151+ INVALID_ENTITIES_IN_DEIDENTIFY : f"{ error_prefix } Validation error. The entities field must be an array of DetectEntities enums. Specify a valid entities."
152+ INVALID_ALLOW_REGEX_LIST : f"{ error_prefix } Validation error. The allowRegexList field must be an array of strings. Specify a valid allowRegexList."
153+ INVALID_RESTRICT_REGEX_LIST : f"{ error_prefix } Validation error. The restrictRegexList field must be an array of strings. Specify a valid restrictRegexList."
154+ INVALID_TOKEN_FORMAT : f"{ error_prefix } Validation error. The tokenFormat key must be an instance of TokenFormat. Specify a valid token format."
155+ INVALID_TRANSFORMATIONS : f"{ error_prefix } Validation error. The transformations key must be an instance of Transformations. Specify a valid transformations."
156+
157+ INVALID_TEXT_IN_REIDENTIFY : f"{ error_prefix } Validation error. The text field is required and must be a non-empty string. Specify a valid text."
158+ INVALID_REDACTED_ENTITIES_IN_REIDENTIFY : f"{ error_prefix } Validation error. The redactedEntities field must be an array of DetectEntities enums. Specify a valid redactedEntities."
159+ INVALID_MASKED_ENTITIES_IN_REIDENTIFY : f"{ error_prefix } Validation error. The maskedEntities field must be an array of DetectEntities enums. Specify a valid maskedEntities."
160+ INVALID_PLAIN_TEXT_ENTITIES_IN_REIDENTIFY : f"{ error_prefix } Validation error. The plainTextEntities field must be an array of DetectEntities enums. Specify a valid plainTextEntities."
161+
162+ INVALID_DEIDENTIFY_FILE_REQUEST : f"{ error_prefix } Validation error. Invalid deidentify file request. Specify a valid deidentify file request."
163+ EMPTY_FILE_OBJECT : f"{ error_prefix } Validation error. File object cannot be empty. Specify a valid file object."
164+ INVALID_FILE_FORMAT : f"{ error_prefix } Validation error. Invalid file format. Specify a valid file format."
165+ MISSING_FILE_SOURCE : f"{ error_prefix } Validation error. Provide exactly one of filePath, base64, or fileObject."
166+ INVALID_FILE_OBJECT : f"{ error_prefix } Validation error. Invalid file object. Specify a valid file object."
167+ INVALID_BASE64_STRING : f"{ error_prefix } Validation error. Invalid base64 string. Specify a valid base64 string."
168+ INVALID_DEIDENTIFY_FILE_OPTIONS : f"{ error_prefix } Validation error. Invalid deidentify file options. Specify a valid deidentify file options."
169+ INVALID_ENTITIES : f"{ error_prefix } Validation error. Invalid entities. Specify valid entities as string array."
170+ EMPTY_ENTITIES : f"{ error_prefix } Validation error. Entities cannot be empty. Specify valid entities."
171+ EMPTY_ALLOW_REGEX_LIST : f"{ error_prefix } Validation error. Allow regex list cannot be empty. Specify valid allow regex list."
172+ INVALID_ALLOW_REGEX : f"{ error_prefix } Validation error. Invalid allow regex. Specify valid allow regex at index {{}}."
173+ EMPTY_RESTRICT_REGEX_LIST : f"{ error_prefix } Validation error. Restrict regex list cannot be empty. Specify valid restrict regex list."
174+ INVALID_RESTRICT_REGEX : f"{ error_prefix } Validation error. Invalid restrict regex. Specify valid restrict regex at index {{}}."
175+ INVALID_OUTPUT_PROCESSED_IMAGE : f"{ error_prefix } Validation error. Invalid output processed image. Specify valid output processed image as string."
176+ INVALID_OUTPUT_OCR_TEXT : f"{ error_prefix } Validation error. Invalid output ocr text. Specify valid output ocr text as string."
177+ INVALID_MASKING_METHOD : f"{ error_prefix } Validation error. Invalid masking method. Specify valid masking method as string."
178+ INVALID_PIXEL_DENSITY : f"{ error_prefix } Validation error. Invalid pixel density. Specify valid pixel density as string."
179+ INVALID_OUTPUT_TRANSCRIPTION : f"{ error_prefix } Validation error. Invalid output transcription. Specify valid output transcription as string."
180+ INVALID_OUTPUT_PROCESSED_AUDIO : f"{ error_prefix } Validation error. Invalid output processed audio. Specify valid output processed audio as string."
181+ INVALID_MAX_RESOLUTION : f"{ error_prefix } Validation error. Invalid max resolution. Specify valid max resolution as string."
182+ INVALID_BLEEP : f"{ error_prefix } Validation error. Invalid bleep. Specify valid bleep as object."
183+ INVALID_FILE_OR_ENCODED_FILE : f"{ error_prefix } . Error while decoding base64 and saving file"
184+ INVALID_FILE_TYPE : f"{ error_prefix } Validation error. Invalid file type. Specify a valid file type."
185+ INVALID_FILE_NAME : f"{ error_prefix } Validation error. Invalid file name. Specify a valid file name."
186+ FILE_READ_ERROR : f"{ error_prefix } Validation error. Unable to read file. Verify the file path."
187+ INVALID_BASE64_HEADER : f"{ error_prefix } Validation error. Invalid base64 header. Specify a valid base64 header."
188+ INVALID_WAIT_TIME : f"{ error_prefix } Validation error. Invalid wait time. Specify a valid wait time as number and should not be greater than 20 secs."
189+ INVALID_OUTPUT_DIRECTORY : f"{ error_prefix } Validation error. Invalid output directory. Specify a valid output directory as string."
190+ INVALID_OUTPUT_DIRECTORY_PATH : f"{ error_prefix } Validation error. Invalid output directory path. Specify a valid output directory path as string."
191+ EMPTY_RUN_ID : f"{ error_prefix } Validation error. Run id cannot be empty. Specify a valid run id."
192+ INVALID_RUN_ID : f"{ error_prefix } Validation error. Invalid run id. Specify a valid run id as string."
193+ INTERNAL_SERVER_ERROR : f"{ error_prefix } . Internal server error. {{}}."
194+
150195 class Info (Enum ):
151196 CLIENT_INITIALIZED = f"{ INFO } : [{ error_prefix } ] Initialized skyflow client."
152197 VALIDATING_VAULT_CONFIG = f"{ INFO } : [{ error_prefix } ] Validating vault config."
153198 VALIDATING_CONNECTION_CONFIG = f"{ INFO } : [{ error_prefix } ] Validating connection config."
154199 UNABLE_TO_GENERATE_SDK_METRIC = f"{ INFO } : [{ error_prefix } ] Unable to generate {{}} metric."
155200 VAULT_CONTROLLER_INITIALIZED = f"{ INFO } : [{ error_prefix } ] Initialized vault controller with vault ID {{}}."
156201 CONNECTION_CONTROLLER_INITIALIZED = f"{ INFO } : [{ error_prefix } ] Initialized connection controller with connection ID {{}}."
202+ DETECT_CONTROLLER_INITIALIZED = f"{ INFO } : [{ error_prefix } ] Initialized detect controller with vault ID {{}}."
157203 VAULT_CONFIG_EXISTS = f"{ INFO } : [{ error_prefix } ] Vault config with vault ID {{}} already exists."
158204 VAULT_CONFIG_DOES_NOT_EXIST = f"{ INFO } : [{ error_prefix } ] Vault config with vault ID {{}} doesn't exist."
159205 CONNECTION_CONFIG_EXISTS = f"{ INFO } : [{ error_prefix } ] Connection config with connection ID {{}} already exists."
@@ -166,10 +212,9 @@ class Info(Enum):
166212 GET_BEARER_TOKEN_SUCCESS = f"{ INFO } : [{ error_prefix } ] Bearer token generated."
167213 GET_SIGNED_DATA_TOKENS_TRIGGERED = f"{ INFO } : [{ error_prefix } ] generate_signed_data_tokens method triggered."
168214 GET_SIGNED_DATA_TOKEN_SUCCESS = f"{ INFO } : [{ error_prefix } ] Signed data tokens generated."
169- GENERATE_BEARER_TOKEN_FROM_CREDENTIALS_STRING_TRIGGERED = f"{ INFO } : [{ error_prefix } ] generate bearer_token_from_credential_string method triggered ."
215+ GENERATE_BEARER_TOKEN_FROM_CREDENTIALS_STRING_TRIGGERED = f"{ INFO } : [{ error_prefix } ] generate bearer_token_from_credential_string method triggered."
170216 REUSE_BEARER_TOKEN = f"{ INFO } : [{ error_prefix } ] Reusing bearer token."
171217
172-
173218 VALIDATE_INSERT_REQUEST = f"{ INFO } : [{ error_prefix } ] Validating insert request."
174219 INSERT_TRIGGERED = f"{ INFO } : [{ error_prefix } ] Insert method triggered."
175220 INSERT_SUCCESS = f"{ INFO } : [{ error_prefix } ] Data inserted."
@@ -210,6 +255,28 @@ class Info(Enum):
210255 INVOKE_CONNECTION_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Invoke connection request resolved."
211256 INVOKE_CONNECTION_SUCCESS = f"{ INFO } : [{ error_prefix } ] Invoke Connection Success."
212257
258+ DEIDENTIFY_TEXT_TRIGGERED = f"{ INFO } : [{ error_prefix } ] Deidentify text method triggered."
259+ VALIDATING_DEIDENTIFY_TEXT_INPUT = f"{ INFO } : [{ error_prefix } ] Validating deidentify text input."
260+ DEIDENTIFY_TEXT_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Deidentify text request is resolved."
261+ DEIDENTIFY_TEXT_SUCCESS = f"{ INFO } : [{ error_prefix } ] data deidentified."
262+
263+ REIDENTIFY_TEXT_TRIGGERED = f"{ INFO } : [{ error_prefix } ] Reidentify text method triggered."
264+ VALIDATING_REIDENTIFY_TEXT_INPUT = f"{ INFO } : [{ error_prefix } ] Validating reidentify text input."
265+ REIDENTIFY_TEXT_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Reidentify text request is resolved."
266+ REIDENTIFY_TEXT_SUCCESS = f"{ INFO } : [{ error_prefix } ] data reidentified."
267+
268+ DEIDENTIFY_FILE_TRIGGERED = f"{ INFO } : [{ error_prefix } ] Deidentify file triggered."
269+ VALIDATING_DETECT_FILE_INPUT = f"{ INFO } : [{ error_prefix } ] Validating deidentify file input."
270+ DEIDENTIFY_FILE_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Deidentify file request is resolved."
271+ DEIDENTIFY_FILE_SUCCESS = f"{ INFO } : [{ error_prefix } ] file deidentified."
272+
273+ GET_DETECT_RUN_TRIGGERED = f"{ INFO } : [{ error_prefix } ] Get detect run triggered."
274+ VALIDATING_GET_DETECT_RUN_INPUT = f"{ INFO } : [{ error_prefix } ] Validating get detect run input."
275+ GET_DETECT_RUN_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Get detect run request is resolved."
276+ GET_DETECT_RUN_SUCCESS = f"{ INFO } : [{ error_prefix } ] get detect run success." # will see for a better message
277+
278+ DETECT_REQUEST_RESOLVED = f"{ INFO } : [{ error_prefix } ] Detect request is resolved." # Whats this for?
279+
213280 class ErrorLogs (Enum ):
214281 VAULTID_IS_REQUIRED = f"{ ERROR } : [{ error_prefix } ] Invalid vault config. Vault ID is required."
215282 EMPTY_VAULTID = f"{ ERROR } : [{ error_prefix } ] Invalid vault config. Vault ID can not be empty."
@@ -280,6 +347,13 @@ class ErrorLogs(Enum):
280347 QUERY_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Query request resulted in failure."
281348 GET_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Get request resulted in failure."
282349 INVOKE_CONNECTION_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Invoke connection request resulted in failure."
350+
351+ EMPTY_RUN_ID = f"{ ERROR } : [{ error_prefix } ] Validation error. Run id cannot be empty. Specify a valid run id."
352+ INVALID_RUN_ID = f"{ ERROR } : [{ error_prefix } ] Validation error. Invalid run id. Specify a valid run id as string."
353+ DEIDENTIFY_FILE_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Deidentify file resulted in failure."
354+ DETECT_RUN_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Detect get run resulted in failure."
355+ DEIDENTIFY_TEXT_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Deidentify text resulted in failure."
356+ REIDENTIFY_TEXT_REQUEST_REJECTED = f"{ ERROR } : [{ error_prefix } ] Reidentify text resulted in failure."
283357
284358 class Interface (Enum ):
285359 INSERT = "INSERT"
0 commit comments