Socket
Socket
Sign inDemoInstall

firebase-admin

Package Overview
Dependencies
204
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.8.0 to 11.9.0

2

lib/app-check/app-check-api-client-internal.d.ts

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -729,2 +729,77 @@ * Copyright 2018 Google Inc.

}
/**
* A password policy configuration for a project or tenant
*/
export interface PasswordPolicyConfig {
/**
* Enforcement state of the password policy
*/
enforcementState?: PasswordPolicyEnforcementState;
/**
* Require users to have a policy-compliant password to sign in
*/
forceUpgradeOnSignin?: boolean;
/**
* The constraints that make up the password strength policy
*/
constraints?: CustomStrengthOptionsConfig;
}
/**
* A password policy's enforcement state.
*/
export type PasswordPolicyEnforcementState = 'ENFORCE' | 'OFF';
/**
* Constraints to be enforced on the password policy
*/
export interface CustomStrengthOptionsConfig {
/**
* The password must contain an upper case character
*/
requireUppercase?: boolean;
/**
* The password must contain a lower case character
*/
requireLowercase?: boolean;
/**
* The password must contain a non-alphanumeric character
*/
requireNonAlphanumeric?: boolean;
/**
* The password must contain a number
*/
requireNumeric?: boolean;
/**
* Minimum password length. Valid values are from 6 to 30
*/
minLength?: number;
/**
* Maximum password length. No default max length
*/
maxLength?: number;
}
/**
* Server side password policy configuration.
*/
export interface PasswordPolicyAuthServerConfig {
passwordPolicyEnforcementState?: PasswordPolicyEnforcementState;
passwordPolicyVersions?: PasswordPolicyVersionsAuthServerConfig[];
forceUpgradeOnSignin?: boolean;
}
/**
* Server side password policy versions configuration.
*/
export interface PasswordPolicyVersionsAuthServerConfig {
customStrengthOptions?: CustomStrengthOptionsAuthServerConfig;
}
/**
* Server side password policy constraints configuration.
*/
export interface CustomStrengthOptionsAuthServerConfig {
containsLowercaseCharacter?: boolean;
containsUppercaseCharacter?: boolean;
containsNumericCharacter?: boolean;
containsNonAlphanumericCharacter?: boolean;
minPasswordLength?: number;
maxPasswordLength?: number;
}
export {};

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -19,3 +19,3 @@ /*!

Object.defineProperty(exports, "__esModule", { value: true });
exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.validateTestPhoneNumbers = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
exports.PasswordPolicyAuthConfig = exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.validateTestPhoneNumbers = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
const validator = require("../utils/validator");

@@ -648,3 +648,3 @@ const deep_copy_1 = require("../utils/deep-copy");

// Only one of OAuth response types can be set to true.
if (allKeys > 1 && enabledCount != 1) {
if (allKeys > 1 && enabledCount !== 1) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_OAUTH_RESPONSETYPE, 'Only exactly one OAuth responseType should be set to true.');

@@ -804,3 +804,3 @@ }

}
if (typeof options.useAccountDefender != 'undefined') {
if (typeof options.useAccountDefender !== 'undefined') {
if (!validator.isBoolean(options.useAccountDefender)) {

@@ -862,1 +862,191 @@ throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"RecaptchaConfig.useAccountDefender" must be a boolean value".');

exports.RecaptchaAuthConfig = RecaptchaAuthConfig;
/**
* Defines the password policy config class used to convert client side PasswordPolicyConfig
* to a format that is understood by the Auth server.
*
* @internal
*/
class PasswordPolicyAuthConfig {
/**
* Static method to convert a client side request to a PasswordPolicyAuthServerConfig.
* Throws an error if validation fails.
*
* @param options - The options object to convert to a server request.
* @returns The resulting server request.
* @internal
*/
static buildServerRequest(options) {
const request = {};
PasswordPolicyAuthConfig.validate(options);
if (Object.prototype.hasOwnProperty.call(options, 'enforcementState')) {
request.passwordPolicyEnforcementState = options.enforcementState;
}
request.forceUpgradeOnSignin = false;
if (Object.prototype.hasOwnProperty.call(options, 'forceUpgradeOnSignin')) {
request.forceUpgradeOnSignin = options.forceUpgradeOnSignin;
}
const constraintsRequest = {
containsUppercaseCharacter: false,
containsLowercaseCharacter: false,
containsNonAlphanumericCharacter: false,
containsNumericCharacter: false,
minPasswordLength: 6,
maxPasswordLength: 4096,
};
request.passwordPolicyVersions = [];
if (Object.prototype.hasOwnProperty.call(options, 'constraints')) {
if (options) {
if (options.constraints?.requireUppercase !== undefined) {
constraintsRequest.containsUppercaseCharacter = options.constraints.requireUppercase;
}
if (options.constraints?.requireLowercase !== undefined) {
constraintsRequest.containsLowercaseCharacter = options.constraints.requireLowercase;
}
if (options.constraints?.requireNonAlphanumeric !== undefined) {
constraintsRequest.containsNonAlphanumericCharacter = options.constraints.requireNonAlphanumeric;
}
if (options.constraints?.requireNumeric !== undefined) {
constraintsRequest.containsNumericCharacter = options.constraints.requireNumeric;
}
if (options.constraints?.minLength !== undefined) {
constraintsRequest.minPasswordLength = options.constraints.minLength;
}
if (options.constraints?.maxLength !== undefined) {
constraintsRequest.maxPasswordLength = options.constraints.maxLength;
}
}
}
request.passwordPolicyVersions.push({ customStrengthOptions: constraintsRequest });
return request;
}
/**
* Validates the PasswordPolicyConfig options object. Throws an error on failure.
*
* @param options - The options object to validate.
* @internal
*/
static validate(options) {
const validKeys = {
enforcementState: true,
forceUpgradeOnSignin: true,
constraints: true,
};
if (!validator.isNonNullObject(options)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig" must be a non-null object.');
}
// Check for unsupported top level attributes.
for (const key in options) {
if (!(key in validKeys)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, `"${key}" is not a valid PasswordPolicyConfig parameter.`);
}
}
// Validate content.
if (typeof options.enforcementState === 'undefined' ||
!(options.enforcementState === 'ENFORCE' ||
options.enforcementState === 'OFF')) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.enforcementState" must be either "ENFORCE" or "OFF".');
}
if (typeof options.forceUpgradeOnSignin !== 'undefined') {
if (!validator.isBoolean(options.forceUpgradeOnSignin)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.forceUpgradeOnSignin" must be a boolean.');
}
}
if (typeof options.constraints !== 'undefined') {
if (options.enforcementState === 'ENFORCE' && !validator.isNonNullObject(options.constraints)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints" must be a non-empty object.');
}
const validCharKeys = {
requireUppercase: true,
requireLowercase: true,
requireNumeric: true,
requireNonAlphanumeric: true,
minLength: true,
maxLength: true,
};
// Check for unsupported attributes.
for (const key in options.constraints) {
if (!(key in validCharKeys)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, `"${key}" is not a valid PasswordPolicyConfig.constraints parameter.`);
}
}
if (typeof options.constraints.requireUppercase !== undefined &&
!validator.isBoolean(options.constraints.requireUppercase)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.requireUppercase" must be a boolean.');
}
if (typeof options.constraints.requireLowercase !== undefined &&
!validator.isBoolean(options.constraints.requireLowercase)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.requireLowercase" must be a boolean.');
}
if (typeof options.constraints.requireNonAlphanumeric !== undefined &&
!validator.isBoolean(options.constraints.requireNonAlphanumeric)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.requireNonAlphanumeric"' +
' must be a boolean.');
}
if (typeof options.constraints.requireNumeric !== undefined &&
!validator.isBoolean(options.constraints.requireNumeric)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.requireNumeric" must be a boolean.');
}
if (!validator.isNumber(options.constraints.minLength)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.minLength" must be a number.');
}
if (!validator.isNumber(options.constraints.maxLength)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.maxLength" must be a number.');
}
if (options.constraints.minLength === undefined) {
options.constraints.minLength = 6;
}
else {
if (!(options.constraints.minLength >= 6
&& options.constraints.minLength <= 30)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.minLength"' +
' must be an integer between 6 and 30, inclusive.');
}
}
if (options.constraints.maxLength === undefined) {
options.constraints.maxLength = 4096;
}
else {
if (!(options.constraints.maxLength >= options.constraints.minLength &&
options.constraints.maxLength <= 4096)) {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints.maxLength"' +
' must be greater than or equal to minLength and at max 4096.');
}
}
}
else {
if (options.enforcementState === 'ENFORCE') {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"PasswordPolicyConfig.constraints" must be defined.');
}
}
}
/**
* The PasswordPolicyAuthConfig constructor.
*
* @param response - The server side response used to initialize the
* PasswordPolicyAuthConfig object.
* @constructor
* @internal
*/
constructor(response) {
if (typeof response.passwordPolicyEnforcementState === 'undefined') {
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INTERNAL_ERROR, 'INTERNAL ASSERT FAILED: Invalid password policy configuration response');
}
this.enforcementState = response.passwordPolicyEnforcementState;
let constraintsResponse = {};
if (typeof response.passwordPolicyVersions !== 'undefined') {
(response.passwordPolicyVersions || []).forEach((policyVersion) => {
constraintsResponse = {
requireLowercase: policyVersion.customStrengthOptions?.containsLowercaseCharacter,
requireUppercase: policyVersion.customStrengthOptions?.containsUppercaseCharacter,
requireNonAlphanumeric: policyVersion.customStrengthOptions?.containsNonAlphanumericCharacter,
requireNumeric: policyVersion.customStrengthOptions?.containsNumericCharacter,
minLength: policyVersion.customStrengthOptions?.minPasswordLength,
maxLength: policyVersion.customStrengthOptions?.maxPasswordLength,
};
});
}
this.constraints = constraintsResponse;
this.forceUpgradeOnSignin = response.forceUpgradeOnSignin ? true : false;
}
}
exports.PasswordPolicyAuthConfig = PasswordPolicyAuthConfig;

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -48,3 +48,3 @@ * Copyright 2020 Google Inc.

export { Auth, } from './auth';
export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, } from './auth-config';
export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, PasswordPolicyConfig, PasswordPolicyEnforcementState, CustomStrengthOptionsConfig, } from './auth-config';
export { BaseAuth, DeleteUsersResult, GetUsersResult, ListUsersResult, SessionCookieOptions, } from './base-auth';

@@ -51,0 +51,0 @@ export { EmailIdentifier, PhoneIdentifier, ProviderIdentifier, UidIdentifier, UserIdentifier, } from './identifier';

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
import { ProjectConfig, UpdateProjectConfigRequest } from './project-config';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,3 +0,3 @@

/*! firebase-admin v11.8.0 */
import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig } from './auth-config';
/*! firebase-admin v11.9.0 */
import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig, PasswordPolicyAuthServerConfig, PasswordPolicyConfig } from './auth-config';
/**

@@ -22,2 +22,6 @@ * Interface representing the properties to update on the provided project config.

recaptchaConfig?: RecaptchaConfig;
/**
* The password policy configuration to update on the project
*/
passwordPolicyConfig?: PasswordPolicyConfig;
}

@@ -31,2 +35,3 @@ /**

recaptchaConfig?: RecaptchaConfig;
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
}

@@ -40,2 +45,3 @@ /**

recaptchaConfig?: RecaptchaConfig;
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
}

@@ -69,2 +75,6 @@ /**

/**
* The password policy configuration for the project
*/
readonly passwordPolicyConfig?: PasswordPolicyConfig;
/**
* Validates a project config options object. Throws an error on failure.

@@ -71,0 +81,0 @@ *

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -47,2 +47,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

recaptchaConfig: true,
passwordPolicyConfig: true,
};

@@ -67,2 +68,6 @@ // Check for unsupported top level attributes.

}
// Validate Password policy Config if provided
if (typeof request.passwordPolicyConfig !== 'undefined') {
auth_config_1.PasswordPolicyAuthConfig.validate(request.passwordPolicyConfig);
}
}

@@ -78,11 +83,15 @@ /**

ProjectConfig.validate(configOptions);
const request = configOptions;
if (configOptions.multiFactorConfig !== undefined) {
const request = {};
if (typeof configOptions.smsRegionConfig !== 'undefined') {
request.smsRegionConfig = configOptions.smsRegionConfig;
}
if (typeof configOptions.multiFactorConfig !== 'undefined') {
request.mfa = auth_config_1.MultiFactorAuthConfig.buildServerRequest(configOptions.multiFactorConfig);
}
// Backend API returns "mfa" in case of project config and "mfaConfig" in case of tenant config.
// The SDK exposes it as multiFactorConfig always.
// See https://cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants#resource:-tenant
// and https://cloud.google.com/identity-platform/docs/reference/rest/v2/Config
delete request.multiFactorConfig;
if (typeof configOptions.recaptchaConfig !== 'undefined') {
request.recaptchaConfig = configOptions.recaptchaConfig;
}
if (typeof configOptions.passwordPolicyConfig !== 'undefined') {
request.passwordPolicyConfig = auth_config_1.PasswordPolicyAuthConfig.buildServerRequest(configOptions.passwordPolicyConfig);
}
return request;

@@ -115,2 +124,5 @@ }

}
if (typeof response.passwordPolicyConfig !== 'undefined') {
this.passwordPolicyConfig = new auth_config_1.PasswordPolicyAuthConfig(response.passwordPolicyConfig);
}
}

@@ -128,2 +140,3 @@ /**

recaptchaConfig: this.recaptchaConfig_?.toJSON(),
passwordPolicyConfig: (0, deep_copy_1.deepCopy)(this.passwordPolicyConfig),
};

@@ -139,2 +152,5 @@ if (typeof json.smsRegionConfig === 'undefined') {

}
if (typeof json.passwordPolicyConfig === 'undefined') {
delete json.passwordPolicyConfig;
}
return json;

@@ -141,0 +157,0 @@ }

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -17,3 +17,3 @@ * Copyright 2019 Google Inc.

*/
import { EmailSignInConfigServerRequest, MultiFactorAuthServerConfig, MultiFactorConfig, EmailSignInProviderConfig, SmsRegionConfig, RecaptchaConfig } from './auth-config';
import { EmailSignInConfigServerRequest, MultiFactorAuthServerConfig, MultiFactorConfig, EmailSignInProviderConfig, SmsRegionConfig, RecaptchaConfig, PasswordPolicyConfig, PasswordPolicyAuthServerConfig } from './auth-config';
/**

@@ -57,2 +57,6 @@ * Interface representing the properties to update on the provided tenant.

recaptchaConfig?: RecaptchaConfig;
/**
* The password policy configuration for the tenant
*/
passwordPolicyConfig?: PasswordPolicyConfig;
}

@@ -73,2 +77,3 @@ /**

recaptchaConfig?: RecaptchaConfig;
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
}

@@ -88,2 +93,3 @@ /** The tenant server response interface. */

recaptchaConfig?: RecaptchaConfig;
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
}

@@ -142,2 +148,6 @@ /**

/**
* The password policy configuration for the tenant
*/
readonly passwordPolicyConfig?: PasswordPolicyConfig;
/**
* Validates a tenant options object. Throws an error on failure.

@@ -144,0 +154,0 @@ *

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -79,2 +79,5 @@ /*!

}
if (typeof tenantOptions.passwordPolicyConfig !== 'undefined') {
request.passwordPolicyConfig = auth_config_1.PasswordPolicyAuthConfig.buildServerRequest(tenantOptions.passwordPolicyConfig);
}
return request;

@@ -113,2 +116,3 @@ }

recaptchaConfig: true,
passwordPolicyConfig: true,
};

@@ -150,3 +154,3 @@ const label = createRequest ? 'CreateTenantRequest' : 'UpdateTenantRequest';

// Validate SMS Regions Config if provided.
if (typeof request.smsRegionConfig != 'undefined') {
if (typeof request.smsRegionConfig !== 'undefined') {
auth_config_1.SmsRegionsAuthConfig.validate(request.smsRegionConfig);

@@ -158,2 +162,7 @@ }

}
// Validate passwordPolicyConfig type if provided.
if (typeof request.passwordPolicyConfig !== 'undefined') {
// This will throw an error if invalid.
auth_config_1.PasswordPolicyAuthConfig.buildServerRequest(request.passwordPolicyConfig);
}
}

@@ -196,2 +205,5 @@ /**

}
if (typeof response.passwordPolicyConfig !== 'undefined') {
this.passwordPolicyConfig = new auth_config_1.PasswordPolicyAuthConfig(response.passwordPolicyConfig);
}
}

@@ -231,2 +243,3 @@ /**

recaptchaConfig: this.recaptchaConfig_?.toJSON(),
passwordPolicyConfig: (0, deep_copy_1.deepCopy)(this.passwordPolicyConfig),
};

@@ -245,2 +258,5 @@ if (typeof json.multiFactorConfig === 'undefined') {

}
if (typeof json.passwordPolicyConfig === 'undefined') {
delete json.passwordPolicyConfig;
}
return json;

@@ -247,0 +263,0 @@ }

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -168,3 +168,3 @@ /*!

.catch((err) => {
if (err.code == jwt_1.JwtErrorCode.INVALID_ARGUMENT) {
if (err.code === jwt_1.JwtErrorCode.INVALID_ARGUMENT) {
const verifyJwtTokenDocsMessage = ` See ${this.tokenInfo.url} ` +

@@ -171,0 +171,0 @@ `for details on how to retrieve ${this.shortNameArticle} ${this.tokenInfo.shortName}.`;

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -11,2 +11,3 @@ import mod from "../../firestore/index.js";

export const FieldValue = mod.FieldValue;
export const Filter = mod.Filter;
export const Firestore = mod.Firestore;

@@ -13,0 +14,0 @@ export const GeoPoint = mod.GeoPoint;

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -35,2 +35,3 @@ * Copyright 2021 Google Inc.

export import FieldValue = _firestore.FieldValue;
export import Filter = _firestore.Filter;
export import Firestore = _firestore.Firestore;

@@ -37,0 +38,0 @@ export import FirestoreDataConverter = _firestore.FirestoreDataConverter;

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -36,2 +36,3 @@ /*!

firestore.FieldValue = _firestore.FieldValue;
firestore.Filter = _firestore.Filter;
firestore.Firestore = _firestore.Firestore;

@@ -38,0 +39,0 @@ firestore.GeoPoint = _firestore.GeoPoint;

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -25,3 +25,3 @@ * Copyright 2020 Google Inc.

import { FirestoreSettings } from './firestore-internal';
export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpdateFields, CollectionGroup, CollectionReference, DocumentChange, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, NestedUpdateFields, OrderByDirection, PartialWithFieldValue, Precondition, Primitive, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, ReadOnlyTransactionOptions, ReadWriteTransactionOptions, Settings, SetOptions, Timestamp, Transaction, UpdateData, UnionToIntersection, WhereFilterOp, WithFieldValue, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpdateFields, CollectionGroup, CollectionReference, DocumentChange, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Filter, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, NestedUpdateFields, OrderByDirection, PartialWithFieldValue, Precondition, Primitive, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, ReadOnlyTransactionOptions, ReadWriteTransactionOptions, Settings, SetOptions, Timestamp, Transaction, UpdateData, UnionToIntersection, WhereFilterOp, WithFieldValue, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
export { FirestoreSettings };

@@ -28,0 +28,0 @@ /**

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -19,3 +19,3 @@ /*!

Object.defineProperty(exports, "__esModule", { value: true });
exports.initializeFirestore = exports.getFirestore = exports.setLogFunction = exports.v1 = exports.WriteResult = exports.WriteBatch = exports.Transaction = exports.Timestamp = exports.QuerySnapshot = exports.QueryPartition = exports.QueryDocumentSnapshot = exports.Query = exports.GrpcStatus = exports.GeoPoint = exports.Firestore = exports.FieldValue = exports.FieldPath = exports.DocumentSnapshot = exports.DocumentReference = exports.CollectionReference = exports.CollectionGroup = exports.BundleBuilder = exports.BulkWriter = void 0;
exports.initializeFirestore = exports.getFirestore = exports.setLogFunction = exports.v1 = exports.WriteResult = exports.WriteBatch = exports.Transaction = exports.Timestamp = exports.QuerySnapshot = exports.QueryPartition = exports.QueryDocumentSnapshot = exports.Query = exports.GrpcStatus = exports.GeoPoint = exports.Firestore = exports.Filter = exports.FieldValue = exports.FieldPath = exports.DocumentSnapshot = exports.DocumentReference = exports.CollectionReference = exports.CollectionGroup = exports.BundleBuilder = exports.BulkWriter = void 0;
const app_1 = require("../app");

@@ -33,2 +33,3 @@ const firestore_internal_1 = require("./firestore-internal");

Object.defineProperty(exports, "FieldValue", { enumerable: true, get: function () { return firestore_1.FieldValue; } });
Object.defineProperty(exports, "Filter", { enumerable: true, get: function () { return firestore_1.Filter; } });
Object.defineProperty(exports, "Firestore", { enumerable: true, get: function () { return firestore_1.Firestore; } });

@@ -35,0 +36,0 @@ Object.defineProperty(exports, "GeoPoint", { enumerable: true, get: function () { return firestore_1.GeoPoint; } });

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
import { App } from '../app/index';

@@ -3,0 +3,0 @@ import { InstanceId as TInstanceId } from './instance-id';

@@ -1,3 +0,3 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2018 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -101,3 +101,3 @@ /*!

let ifMatch = template.etag;
if (options && options.force == true) {
if (options && options.force === true) {
// setting `If-Match: *` forces the Remote Config template to be updated

@@ -221,3 +221,3 @@ // and circumvent the ETag, and the protection from that it provides.

toRemoteConfigTemplate(resp, customEtag) {
const etag = (typeof customEtag == 'undefined') ? resp.headers['etag'] : customEtag;
const etag = (typeof customEtag === 'undefined') ? resp.headers['etag'] : customEtag;
this.validateEtag(etag);

@@ -224,0 +224,0 @@ return {

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2019 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2020 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * Copyright 2021 Google Inc.

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
/*!

@@ -3,0 +3,0 @@ * @license

@@ -1,2 +0,2 @@

/*! firebase-admin v11.8.0 */
/*! firebase-admin v11.9.0 */
"use strict";

@@ -3,0 +3,0 @@ /*!

{
"name": "firebase-admin",
"version": "11.8.0",
"version": "11.9.0",
"description": "Firebase admin SDK for Node.js",

@@ -209,3 +209,3 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"optionalDependencies": {
"@google-cloud/firestore": "^6.5.0",
"@google-cloud/firestore": "^6.6.0",
"@google-cloud/storage": "^6.9.5"

@@ -212,0 +212,0 @@ },

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc