// Copyright © 2022-2026 Partium, Inc. DBA Partium export declare enum SDK_ERROR_CODES { NO_INTERNET = "NO_INTERNET",// currently there is no internet connection available COULD_NOT_REACH_SERVER = "COULD_NOT_REACH_SERVER",// the server could not be reached UNKNOWN_HOST_ERROR = "UNKNOWN_HOST_ERROR", BAD_REQUEST = "BAD_REQUEST",// http 400 FORBIDDEN = "FORBIDDEN",// http 403 NOT_FOUND = "NOT_FOUND",// http 404 CONFLICT = "CONFLICT",// http 409 CONTENT_TOO_LARGE = "CONTENT_TOO_LARGE",// http 413, eg upload size or image dimensions exceed the allowed maximum UNSUPPORTED_MEDIA_TYPE = "UNSUPPORTED_MEDIA_TYPE",// http 415, eg unsupported image format UNPROCESSABLE_ENTITY = "UNPROCESSABLE_ENTITY",// http 422 INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",// http 500 NOT_IMPLEMENTED = "NOT_IMPLEMENTED",// http 501 BAD_GATEWAY = "BAD_GATEWAY",// http 502 SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",// http 503 GATEWAY_TIMEOUT = "GATEWAY_TIMEOUT",// http 504 INVALID_AUTH_CONFIG = "INVALID_AUTH_CONFIG",// auth configuration is not valid, eg unknown client-id for keycloak USER_UNAUTHORIZED = "USER_UNAUTHORIZED",// when the user not authorzied to perform the desired request on the server INVALID_API_KEY_FORMAT = "INVALID_API_KEY_FORMAT",// the provided API-Key has an invalid format API_KEY_MISSING = "API_KEY_MISSING",// for api-key authentication, if the API-Key is missing WRONG_AUTH_TYPE = "wrongAuthType",// wrong authentication type NO_AUTHENTICATION_CONFIG_FOUND = "NO_AUTHENTICATION_CONFIG_FOUND",// no user found for given email address INVALID_AUTHENTICATION = "INVALID_AUTHENTICATION",// login credentials are invalid, either username unknown or password wrong VALIDATION_ERROR = "VALIDATION_ERROR",// an invalid email adress is entered INVALID_LOGIN_CONFIG = "INVALID_LOGIN_CONFIG",// login configuration is not valid, eg missing api-key and active-session UNKNOWN_ERROR = "UNKNOWN_ERROR", NO_SEARCH_SESSION_ACTIVE = "NO_SEARCH_SESSION_ACTIVE",// we try to add some information to the current search session. but no search session is currently active RESULT_UNDEFINED = "RESULT_UNDEFINED",// throws exception when search result is undefined. Initial state of search result is undefined, we reset to undefined when start new search. INVALID_SEARCH_MODALITY_CONFIG = "INVALID_SEARCH_MODALITY_CONFIG",// the search modality that should have been added to search-session is not configured correctly INVALID_MULTIPLE_IMAGE_SEARCHES = "INVALID_MULTIPLE_IMAGE_SEARCHES",// multiple image searches on same search session are not allowed INVALID_SEARCH_LANGUAGE = "INVALID_SEARCH_LANGUAGE",// invalid language input when creating a search session or invalid search input for this language GENERAL_SEARCH_ERROR = "GENERAL_SEARCH_ERROR",// an error occurred during the search-process, that is not closer specified INVALID_ASSET_STATUS = "INVALID_ASSET_STATUS",// the asset state is not the expected one when a certain function is called FILE_NOT_FOUND = "FILE_NOT_FOUND",// file to upload could not be found MULTIPART_UPLOAD_NOT_SUPPORTED = "MULTIPART_UPLOAD_NOT_SUPPORTED",// the platform-specific PFile implementation does not support multipart upload CAPTURE_IMAGE_FAILED = "CAPTURE_IMAGE_FAILED",// capturing of an image with the camera has failed LOADING_FROM_GALLERY_FAILED = "LOADING_FROM_GALLERY_FAILED",// loading an image/video from the local device failed IMAGE_SEARCH_ERROR = "IMAGE_SEARCH_ERROR",// error while performing the image search PICK_IMAGE_ABORTED_BY_USER = "PICK_IMAGE_ABORTED_BY_USER",// user aborted pick-image from gallery action SEARCH_RESULT_TIMEOUT = "SEARCH_RESULT_TIMEOUT",// when polling took too long without resolving with a result (probably related to an issue in the backend) TIMEOUT_ERROR = "TIMEOUT_ERROR",// timeout error happened in the backend INTEGRATION_ERROR = "INTEGRATION_ERROR",// if this error occurs, this usually indicates that the SDK was not integrated properly. INITIAL_ITEMS_NOT_YET_LOADED = "INITIAL_ITEMS_NOT_YET_LOADED",// the request for the first page of items has not yet finished NO_MORE_ITEMS_AVAILABLE = "NO_MORE_ITEMS_AVAILABLE",// can't load more items, because the end of the list is reached NO_PAGINATION_CURSOR_AVAILABLE = "NO_PAGINATION_CURSOR_AVAILABLE",// can't load more items, because there is no cursor available INVALID_PAGINATION_CURSOR_URL = "INVALID_PAGINATION_CURSOR_URL",// backend returned an invalid next page URL UNEXPECTED_API_VERSION = "UNEXPECTED_API_VERSION",// the function that was called can not be executed with the selected Backend-API version, UNEXPECTED_SEARCH_VERSION = "UNEXPECTED_SEARCH_VERSION",// the search-function that was called can not be executed with the selected Backend-API version, SSO_USER_CERT = "SSO_USER_CERT", SSO_TOKEN_REFRESH = "SSO_TOKEN_REFRESH", TOKEN_EXPIRED = "TOKEN_EXPIRED", INVALID_TOKEN = "INVALID_TOKEN", REFRESH_TOKEN_EXPIRED = "REFRESH_TOKEN_EXPIRED",// refresh token expired error OAUTH_ERROR = "OAUTH_ERROR",// general error occured during oauth operations (e.g. during login/refresh, etc) LOGIN_CANCELLED = "LOGIN_CANCELLED",// is not a real error, happens when the user cancels the login operation LOGIN_ALREADY_IN_PROGRESS = "LOGIN_ALREADY_IN_PROGRESS",// this error occurs when multiple logins are attempted simultaniously (or also on multiple refreshes) MISSING_STORAGE_ACCESS_PERMISSION = "MISSING_STORAGE_ACCESS_PERMISSION",// trying to access the device storage, but permission not granted SDK_OUTDATED = "SDK_OUTDATED",// app/sdk version is outdated BACKEND_DOWN = "BACKEND_DOWN",// partium-backend is down STATUS_BACKEND_DOWN = "STATUS_BACKEND_DOWN",// status backend is down INVALID_FILE_TYPE = "INVALID_FILE_TYPE", INVALID_CROP_AREA = "INVALID_CROP_AREA",// invalid crop area ORGANIZATION_NOT_FOUND = "ORGANIZATION_NOT_FOUND",// organization not found NO_UPIS_FOUND = "NO_UPIS_FOUND" } /** * Any error that is emitted within or by the Partium-SDK should be of type SdkError. */ export declare class SdkError { code: SDK_ERROR_CODES; detail: Object; private errorString; constructor(code: SDK_ERROR_CODES, detail: Object, message?: string); toString(): string; }