/** * Palantir Foundry API error types and codes. * Covers all documented v2 error names, OAuth2 endpoint errors, and general HTTP status codes. * @see https://www.palantir.com/docs/foundry/api/v2/general/overview/errors */ export declare const PalantirErrorCode: { readonly INVALID_ARGUMENT: "INVALID_ARGUMENT"; readonly UNAUTHORIZED: "UNAUTHORIZED"; readonly PERMISSION_DENIED: "PERMISSION_DENIED"; readonly NOT_FOUND: "NOT_FOUND"; readonly CONFLICT: "CONFLICT"; readonly INTERNAL: "INTERNAL"; readonly TIMEOUT: "TIMEOUT"; }; export type PalantirErrorCode = (typeof PalantirErrorCode)[keyof typeof PalantirErrorCode]; export declare const GeneralErrorName: { readonly ApiFeaturePreviewUsageOnly: "ApiFeaturePreviewUsageOnly"; readonly ApiUsageDenied: "ApiUsageDenied"; readonly ConjureInvalidArgument: "Conjure:InvalidArgument"; readonly ConjureUnprocessableEntity: "Conjure:UnprocessableEntity"; readonly ConjureUnsupportedMediaType: "Conjure:UnsupportedMediaType"; readonly DefaultInternal: "Default:Internal"; readonly DefaultPermissionDenied: "Default:PermissionDenied"; readonly DefaultUnauthorized: "Default:Unauthorized"; readonly InvalidPageSize: "InvalidPageSize"; readonly InvalidPageToken: "InvalidPageToken"; readonly InvalidParameterCombination: "InvalidParameterCombination"; readonly MissingCredentials: "MissingCredentials"; }; export type GeneralErrorName = (typeof GeneralErrorName)[keyof typeof GeneralErrorName]; export declare const OntologyErrorName: { readonly ActionEditedPropertiesNotFound: "ActionEditedPropertiesNotFound"; readonly ActionParameterObjectTypeNotFound: "ActionParameterObjectTypeNotFound"; readonly ActionParameterObjectNotFound: "ActionParameterObjectNotFound"; readonly ActionTypeNotFound: "ActionTypeNotFound"; readonly ActionValidationFailed: "ActionValidationFailed"; readonly AggregationGroupCountExceededLimit: "AggregationGroupCountExceededLimit"; readonly ApplyActionFailed: "ApplyActionFailed"; readonly AttachmentNotFound: "AttachmentNotFound"; readonly AttachmentSizeExceededLimit: "AttachmentSizeExceededLimit"; readonly CompositePrimaryKeyNotSupported: "CompositePrimaryKeyNotSupported"; readonly DuplicateOrderBy: "DuplicateOrderBy"; readonly FunctionEncounteredUserFacingError: "FunctionEncounteredUserFacingError"; readonly FunctionInvalidInput: "FunctionInvalidInput"; readonly FunctionExecutionTimedOut: "FunctionExecutionTimedOut"; readonly InvalidContentLength: "InvalidContentLength"; readonly InvalidContentType: "InvalidContentType"; readonly InvalidDurationGroupByValue: "InvalidDurationGroupByValue"; readonly InvalidDurationGroupByPropertyType: "InvalidDurationGroupByPropertyType"; readonly InvalidFields: "InvalidFields"; readonly InvalidGroupId: "InvalidGroupId"; readonly InvalidParameterValue: "InvalidParameterValue"; readonly InvalidPropertyFiltersCombination: "InvalidPropertyFiltersCombination"; readonly InvalidPropertyType: "InvalidPropertyType"; readonly InvalidPropertyValue: "InvalidPropertyValue"; readonly InvalidSortOrder: "InvalidSortOrder"; readonly InvalidSortType: "InvalidSortType"; readonly InvalidUserId: "InvalidUserId"; readonly LinkAlreadyExists: "LinkAlreadyExists"; readonly LinkedObjectNotFound: "LinkedObjectNotFound"; readonly LinkTypeNotFound: "LinkTypeNotFound"; readonly MalformedPropertyFilters: "MalformedPropertyFilters"; readonly MultiplePropertyValuesNotSupported: "MultiplePropertyValuesNotSupported"; readonly ObjectNotFound: "ObjectNotFound"; readonly ObjectsExceededLimit: "ObjectsExceededLimit"; readonly ObjectTypeNotFound: "ObjectTypeNotFound"; readonly ObjectTypeNotSynced: "ObjectTypeNotSynced"; readonly OntologyEditsExceededLimit: "OntologyEditsExceededLimit"; readonly OntologyNotFound: "OntologyNotFound"; readonly OntologySyncing: "OntologySyncing"; readonly ParametersNotFound: "ParametersNotFound"; readonly ParameterTypeNotSupported: "ParameterTypeNotSupported"; readonly PropertiesNotFound: "PropertiesNotFound"; readonly PropertiesNotSearchable: "PropertiesNotSearchable"; readonly PropertiesNotSortable: "PropertiesNotSortable"; readonly PropertyApiNameNotFound: "PropertyApiNameNotFound"; readonly PropertyBaseTypeNotSupported: "PropertyBaseTypeNotSupported"; readonly PropertyFiltersNotSupported: "PropertyFiltersNotSupported"; readonly QueryEncounteredUserFacingError: "QueryEncounteredUserFacingError"; readonly QueryRuntimeError: "QueryRuntimeError"; readonly QueryTimeExceededLimit: "QueryTimeExceededLimit"; readonly QueryMemoryExceededLimit: "QueryMemoryExceededLimit"; readonly ViewObjectPermissionDenied: "ViewObjectPermissionDenied"; }; export type OntologyErrorName = (typeof OntologyErrorName)[keyof typeof OntologyErrorName]; export declare const DatasetErrorName: { readonly AbortTransactionPermissionDenied: "AbortTransactionPermissionDenied"; readonly BranchAlreadyExists: "BranchAlreadyExists"; readonly BranchNotFound: "BranchNotFound"; readonly ColumnTypesNotSupported: "ColumnTypesNotSupported"; readonly CommitTransactionPermissionDenied: "CommitTransactionPermissionDenied"; readonly CreateBranchPermissionDenied: "CreateBranchPermissionDenied"; readonly CreateDatasetPermissionDenied: "CreateDatasetPermissionDenied"; readonly CreateTransactionPermissionDenied: "CreateTransactionPermissionDenied"; readonly DatasetNotFound: "DatasetNotFound"; readonly DatasetReadNotSupported: "DatasetReadNotSupported"; readonly ReadTableRowLimitExceeded: "ReadTableRowLimitExceeded"; readonly GetDatasetSchemaPermissionDenied: "GetDatasetSchemaPermissionDenied"; readonly DeleteBranchPermissionDenied: "DeleteBranchPermissionDenied"; readonly FileAlreadyExists: "FileAlreadyExists"; readonly FileNotFoundOnBranch: "FileNotFoundOnBranch"; readonly FileNotFoundOnTransactionRange: "FileNotFoundOnTransactionRange"; readonly InvalidBranchId: "InvalidBranchId"; readonly InvalidTransactionType: "InvalidTransactionType"; readonly OpenTransactionAlreadyExists: "OpenTransactionAlreadyExists"; readonly ReadTablePermissionDenied: "ReadTablePermissionDenied"; readonly SchemaNotFound: "SchemaNotFound"; readonly TransactionNotCommitted: "TransactionNotCommitted"; readonly TransactionNotFound: "TransactionNotFound"; readonly TransactionNotOpen: "TransactionNotOpen"; readonly UploadFilePermissionDenied: "UploadFilePermissionDenied"; }; export type DatasetErrorName = (typeof DatasetErrorName)[keyof typeof DatasetErrorName]; export declare const FilesystemErrorName: { readonly FolderNotFound: "FolderNotFound"; readonly ResourceNameAlreadyExists: "ResourceNameAlreadyExists"; readonly ResourceNotFound: "ResourceNotFound"; readonly InvalidFolder: "InvalidFolder"; readonly GetRootFolderNotSupported: "GetRootFolderNotSupported"; readonly GetSpaceResourceNotSupported: "GetSpaceResourceNotSupported"; readonly CreateFolderOutsideProjectNotSupported: "CreateFolderOutsideProjectNotSupported"; readonly CreateFolderPermissionDenied: "CreateFolderPermissionDenied"; readonly PathNotFound: "PathNotFound"; readonly InvalidPath: "InvalidPath"; readonly GetByPathPermissionDenied: "GetByPathPermissionDenied"; }; export type FilesystemErrorName = (typeof FilesystemErrorName)[keyof typeof FilesystemErrorName]; export declare const OperationErrorName: { readonly OperationNotFound: "OperationNotFound"; }; export declare const AipErrorName: { readonly ContextSizeExceededLimit: "ContextSizeExceededLimit"; readonly AgentIterationsExceededLimit: "AgentIterationsExceededLimit"; readonly RateLimitExceeded: "RateLimitExceeded"; readonly RetryAttemptsExceeded: "RetryAttemptsExceeded"; readonly AgentNotFound: "AgentNotFound"; readonly SessionNotFound: "SessionNotFound"; readonly SessionExpired: "SessionExpired"; readonly InvalidUserMessage: "InvalidUserMessage"; readonly ModelNotAvailable: "ModelNotAvailable"; readonly ContentNotFound: "ContentNotFound"; readonly CancelSessionFailedMessageNotInProgress: "CancelSessionFailedMessageNotInProgress"; readonly BlockingContinueSessionPermissionDenied: "BlockingContinueSessionPermissionDenied"; readonly StreamingContinueSessionPermissionDenied: "StreamingContinueSessionPermissionDenied"; }; export type OperationErrorName = (typeof OperationErrorName)[keyof typeof OperationErrorName]; export type AipErrorName = (typeof AipErrorName)[keyof typeof AipErrorName]; export declare const ConnectivityErrorName: { readonly ConnectionNotFound: "ConnectionNotFound"; readonly ConnectionTypeNotSupported: "ConnectionTypeNotSupported"; readonly CreateConnectionPermissionDenied: "CreateConnectionPermissionDenied"; readonly GetConfigurationPermissionDenied: "GetConfigurationPermissionDenied"; readonly ParentFolderNotFoundForConnection: "ParentFolderNotFoundForConnection"; readonly PropertyCannotBeBlank: "PropertyCannotBeBlank"; readonly UnknownWorkerCannotBeUsedForCreatingOrUpdatingConnections: "UnknownWorkerCannotBeUsedForCreatingOrUpdatingConnections"; }; export type ConnectivityErrorName = (typeof ConnectivityErrorName)[keyof typeof ConnectivityErrorName]; export declare const AdminErrorName: { readonly UserNotFound: "UserNotFound"; readonly UserDeleted: "UserDeleted"; readonly UserIsActive: "UserIsActive"; readonly GroupNotFound: "GroupNotFound"; readonly OrganizationNotFound: "OrganizationNotFound"; readonly CreateOrganizationPermissionDenied: "CreateOrganizationPermissionDenied"; readonly OrganizationNameAlreadyExists: "OrganizationNameAlreadyExists"; readonly PrincipalNotFound: "PrincipalNotFound"; readonly EnrollmentNotFound: "EnrollmentNotFound"; readonly GetCurrentUserPermissionDenied: "GetCurrentUserPermissionDenied"; readonly RevokeAllTokensUserPermissionDenied: "RevokeAllTokensUserPermissionDenied"; readonly SearchUsersPermissionDenied: "SearchUsersPermissionDenied"; readonly ReplaceOrganizationPermissionDenied: "ReplaceOrganizationPermissionDenied"; readonly InvalidHostName: "InvalidHostName"; readonly CreateOrganizationMissingInitialAdminRole: "CreateOrganizationMissingInitialAdminRole"; readonly AddOrganizationRoleAssignmentsPermissionDenied: "AddOrganizationRoleAssignmentsPermissionDenied"; }; export type AdminErrorName = (typeof AdminErrorName)[keyof typeof AdminErrorName]; export declare const OrchestrationErrorName: { readonly ScheduleNotFound: "ScheduleNotFound"; readonly CreateSchedulePermissionDenied: "CreateSchedulePermissionDenied"; readonly RunSchedulePermissionDenied: "RunSchedulePermissionDenied"; readonly ReplaceSchedulePermissionDenied: "ReplaceSchedulePermissionDenied"; readonly DeleteSchedulePermissionDenied: "DeleteSchedulePermissionDenied"; }; export type OrchestrationErrorName = (typeof OrchestrationErrorName)[keyof typeof OrchestrationErrorName]; export declare const OAuth2ErrorCode: { readonly invalid_request: "invalid_request"; readonly invalid_client: "invalid_client"; readonly invalid_grant: "invalid_grant"; readonly unauthorized_client: "unauthorized_client"; readonly access_denied: "access_denied"; readonly unsupported_response_type: "unsupported_response_type"; readonly invalid_scope: "invalid_scope"; readonly server_error: "server_error"; readonly temporarily_unavailable: "temporarily_unavailable"; }; export type OAuth2ErrorCode = (typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode]; export type PalantirErrorName = GeneralErrorName | OntologyErrorName | DatasetErrorName | FilesystemErrorName | OperationErrorName | AipErrorName | ConnectivityErrorName | AdminErrorName | OrchestrationErrorName; export interface PalantirApiErrorBody { errorCode: PalantirErrorCode; /** Palantir error name. Known names are in the ErrorName constants; unknown names are possible. */ errorName: string; errorInstanceId: string; parameters?: Record; } export interface OAuth2TokenErrorBody { error: OAuth2ErrorCode; error_description: string; error_uri?: string; } export declare class PalantirApiError extends Error { readonly errorCode: PalantirErrorCode; readonly errorName: string; readonly errorInstanceId: string; readonly statusCode: number; readonly parameters?: Record; constructor(body: PalantirApiErrorBody, statusCode: number); } export declare class PalantirCredentialError extends Error { constructor(message: string); } export declare class PalantirOAuth2Error extends Error { readonly oauthErrorCode: OAuth2ErrorCode; readonly description: string; constructor(body: OAuth2TokenErrorBody); } export declare const HttpStatus: { readonly OK: 200; readonly NO_CONTENT: 204; readonly BAD_REQUEST: 400; readonly UNAUTHORIZED: 401; readonly FORBIDDEN: 403; readonly NOT_FOUND: 404; readonly CONFLICT: 409; readonly UNPROCESSABLE_ENTITY: 422; readonly URI_TOO_LONG: 414; readonly UNSUPPORTED_MEDIA_TYPE: 415; readonly TOO_MANY_REQUESTS: 429; readonly HEADER_TOO_LARGE: 431; readonly INTERNAL_SERVER_ERROR: 500; readonly SERVICE_UNAVAILABLE: 503; readonly GATEWAY_TIMEOUT: 504; }; export type HttpStatus = (typeof HttpStatus)[keyof typeof HttpStatus]; //# sourceMappingURL=errors.d.ts.map