kintone-as-code
Version:
A CLI tool for managing kintone applications as code with type-safe TypeScript schemas
27 lines • 1.02 kB
TypeScript
/**
* Utility functions for handling authentication and authorization errors
* from Kintone API responses
*/
/**
* Check if an error is related to authentication (401, invalid credentials, etc.)
*/
export declare function isAuthenticationError(error: any): boolean;
/**
* Check if an error is related to authorization (403, permission denied, etc.)
*/
export declare function isAuthorizationError(error: any): boolean;
/**
* Format authentication/authorization error messages with helpful context
*/
export declare function formatAuthErrorMessage(error: any): string;
/**
* Centralized error handler for Kintone API errors
* @param error - The error object from API call
* @returns boolean - true if operation should be retried, false if it should fail immediately
*/
export declare function handleKintoneApiError(error: any): boolean;
/**
* Mask sensitive information in error messages and logs
*/
export declare function maskSensitiveInfo(text: string): string;
//# sourceMappingURL=error-utils.d.ts.map