Skip to content

Latest commit

 

History

History
100 lines (79 loc) · 2.2 KB

firebase-admin.app.api.md

File metadata and controls

100 lines (79 loc) · 2.2 KB

API Report File for "firebase-admin.app"

Do not edit this file. It is a report generated by API Extractor.

/// <reference types="node" />

import { Agent } from 'http';

// @public
export interface App {
    name: string;
    options: AppOptions;
}

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

// @public
export interface AppOptions {
    credential?: Credential;
    databaseAuthVariableOverride?: object | null;
    databaseURL?: string;
    disableRetry?: boolean;
    httpAgent?: Agent;
    projectId?: string;
    retryConfig?: RetryConfig;
    serviceAccountId?: string;
    storageBucket?: string;
}

// @public
export function cert(serviceAccountPathOrObject: string | ServiceAccount, httpAgent?: Agent): Credential;

// @public
export interface Credential {
    getAccessToken(): Promise<GoogleOAuthAccessToken>;
}

// @public
export function deleteApp(app: App): Promise<void>;

// @public
export interface FirebaseArrayIndexError {
    error: FirebaseError;
    index: number;
}

// @public
export interface FirebaseError {
    code: string;
    message: string;
    stack?: string;
    toJSON(): object;
}

// @public (undocumented)
export function getApp(appName?: string): App;

// @public (undocumented)
export function getApps(): App[];

// @public
export interface GoogleOAuthAccessToken {
    // (undocumented)
    access_token: string;
    // (undocumented)
    expires_in: number;
}

// @public (undocumented)
export function initializeApp(options?: AppOptions, appName?: string): App;

// @public
export function refreshToken(refreshTokenPathOrObject: string | object, httpAgent?: Agent): Credential;

// @public
export interface RetryConfig {
    backOffFactor?: number;
    ioErrorCodes?: string[];
    maxDelayInMillis: number;
    maxRetries: number;
    statusCodes?: number[];
}

// @public (undocumented)
export const SDK_VERSION: string;

// @public (undocumented)
export interface ServiceAccount {
    // (undocumented)
    clientEmail?: string;
    // (undocumented)
    privateKey?: string;
    // (undocumented)
    projectId?: string;
}