Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2e2b779
chore(auth): Refactor auth error logic
jonathanedey May 1, 2026
fa404c6
chore(installations): Refactor installations and instance id error logic
jonathanedey May 1, 2026
d474a7b
chore(fcm): Refactor fcm error logic
jonathanedey May 1, 2026
a2f7e62
fix(auth): Fix auth error mapping that were not copied correctly
jonathanedey May 1, 2026
c34bcff
fix(auth): Fixed `INVALID_SERVICE_ACCOUNT` to map to a valid client code
jonathanedey May 1, 2026
47820b9
chore(pm): Refactor project management error logic
jonathanedey May 4, 2026
e00ebd3
chore: Fix license year for new files
jonathanedey May 4, 2026
9da4435
chore(rtdb): Refactor rtdb error logic
jonathanedey May 4, 2026
e63d6f4
chore(fs): Refactor firestore error logic
jonathanedey May 4, 2026
79b0b64
chore(app): Refactor app error logic
jonathanedey May 4, 2026
ce65c3f
chore(security-rules): Refactor security rules error logic
jonathanedey May 4, 2026
00e52d1
chore(app-check): Refactor app check error logic
jonathanedey May 4, 2026
bdfd6a2
chore(remote-config): Refactor remote config error logic
jonathanedey May 4, 2026
6fdb6e4
chore(functions): Refactor functions error logic
jonathanedey May 4, 2026
663b62e
chore(extensions): Refactor extensions error logic
jonathanedey May 4, 2026
8c4721d
chore(fdc): Refactor data connect error logic
jonathanedey May 4, 2026
a6d0ade
chore(ml): Refactor ml error logic
jonathanedey May 4, 2026
c07414a
chore(eventarc): Refactor eventarc error logic
jonathanedey May 4, 2026
3296873
chore(fpnv): Refactor pnv error logic
jonathanedey May 4, 2026
5218f75
fix: address gemini review
jonathanedey May 5, 2026
e708f27
fix: Use Declaration Merging to expose error code constant mapping al…
jonathanedey May 5, 2026
afd6a90
fix: Address gemini review
jonathanedey May 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ module.exports = {
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "variable",
"modifiers": ["const"],
"format": ["PascalCase", "camelCase", "UPPER_CASE"],
"filter": {
"regex": "ErrorCode$", // Matches only if it ends exactly with ErrorCode
"match": true,
},
},
{
"selector": "parameter",
"format": ["camelCase"],
Expand Down
15 changes: 14 additions & 1 deletion etc/firebase-admin.app-check.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@ export class AppCheck {
}

// @public
export type AppCheckErrorCode = 'aborted' | 'invalid-argument' | 'invalid-credential' | 'internal-error' | 'permission-denied' | 'unauthenticated' | 'not-found' | 'app-check-token-expired' | 'unknown-error';
export const AppCheckErrorCode: {
readonly ABORTED: "aborted";
readonly INVALID_ARGUMENT: "invalid-argument";
readonly INVALID_CREDENTIAL: "invalid-credential";
readonly INTERNAL: "internal-error";
readonly PERMISSION_DENIED: "permission-denied";
readonly UNAUTHENTICATED: "unauthenticated";
readonly NOT_FOUND: "not-found";
readonly APP_CHECK_TOKEN_EXPIRED: "app-check-token-expired";
readonly UNKNOWN: "unknown-error";
};

// @public
export type AppCheckErrorCode = typeof AppCheckErrorCode[keyof typeof AppCheckErrorCode];

// @public
export interface AppCheckToken {
Expand Down
40 changes: 16 additions & 24 deletions etc/firebase-admin.app.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,22 @@ export interface App {
}

// @public
export class AppErrorCodes {
// (undocumented)
static APP_DELETED: string;
// (undocumented)
static DUPLICATE_APP: string;
// (undocumented)
static INTERNAL_ERROR: string;
// (undocumented)
static INVALID_APP_NAME: string;
// (undocumented)
static INVALID_APP_OPTIONS: string;
// (undocumented)
static INVALID_ARGUMENT: string;
// (undocumented)
static INVALID_CREDENTIAL: string;
// (undocumented)
static NETWORK_ERROR: string;
// (undocumented)
static NETWORK_TIMEOUT: string;
// (undocumented)
static NO_APP: string;
// (undocumented)
static UNABLE_TO_PARSE_RESPONSE: string;
}
export const AppErrorCode: {
readonly APP_DELETED: "app-deleted";
readonly DUPLICATE_APP: "duplicate-app";
readonly INVALID_ARGUMENT: "invalid-argument";
readonly INTERNAL_ERROR: "internal-error";
readonly INVALID_APP_NAME: "invalid-app-name";
readonly INVALID_APP_OPTIONS: "invalid-app-options";
readonly INVALID_CREDENTIAL: "invalid-credential";
readonly NETWORK_ERROR: "network-error";
readonly NETWORK_TIMEOUT: "network-timeout";
readonly NO_APP: "no-app";
readonly UNABLE_TO_PARSE_RESPONSE: "unable-to-parse-response";
};

// @public
export type AppErrorCode = typeof AppErrorCode[keyof typeof AppErrorCode];

// @public
export function applicationDefault(httpAgent?: Agent): Credential;
Expand Down
Loading
Loading