cloudfire-auth 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -27
- package/dist/CloudFireAuth.d.ts +304 -1
- package/dist/CloudFireAuth.js +345 -0
- package/dist/rest-api/create-custom-token.d.ts +18 -0
- package/dist/rest-api/create-custom-token.js +20 -0
- package/dist/rest-api/create-provider-config.d.ts +16 -0
- package/dist/rest-api/create-provider-config.js +17 -0
- package/dist/rest-api/create-session-cookie.d.ts +18 -0
- package/dist/rest-api/create-session-cookie.js +19 -0
- package/dist/rest-api/delete-provider-config.d.ts +16 -0
- package/dist/rest-api/delete-provider-config.js +18 -0
- package/dist/rest-api/generate-email-verification-link.d.ts +18 -0
- package/dist/rest-api/generate-email-verification-link.js +19 -0
- package/dist/rest-api/generate-password-reset-link.d.ts +18 -0
- package/dist/rest-api/generate-password-reset-link.js +19 -0
- package/dist/rest-api/generate-sign-in-with-email-link.d.ts +18 -0
- package/dist/rest-api/generate-sign-in-with-email-link.js +19 -0
- package/dist/rest-api/generate-verify-and-change-email-link.d.ts +20 -0
- package/dist/rest-api/generate-verify-and-change-email-link.js +21 -0
- package/dist/rest-api/get-provider-config.d.ts +17 -0
- package/dist/rest-api/get-provider-config.js +18 -0
- package/dist/rest-api/import-users.d.ts +18 -0
- package/dist/rest-api/import-users.js +19 -0
- package/dist/rest-api/list-provider-configs.d.ts +17 -0
- package/dist/rest-api/list-provider-configs.js +18 -0
- package/dist/rest-api/update-provider-config.d.ts +18 -0
- package/dist/rest-api/update-provider-config.js +19 -0
- package/dist/types/firebase-admin/action-code-settings.d.ts +102 -0
- package/dist/types/firebase-admin/action-code-settings.js +17 -0
- package/dist/types/firebase-admin/auth-config.d.ts +39 -33
- package/dist/types/firebase-admin/auth-config.js +16 -0
- package/dist/types/firebase-admin/identifier.d.ts +6 -0
- package/dist/types/firebase-admin/identifier.js +16 -0
- package/dist/types/firebase-admin/index.d.ts +11 -2
- package/dist/types/firebase-admin/index.js +16 -0
- package/dist/types/firebase-admin/token-verifier.d.ts +6 -0
- package/dist/types/firebase-admin/token-verifier.js +16 -0
- package/dist/types/firebase-admin/user-import.d.ts +226 -0
- package/dist/types/firebase-admin/user-import.js +17 -0
- package/dist/types/firebase-admin/user-record.d.ts +6 -0
- package/dist/types/firebase-admin/user-record.js +17 -0
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ActionCodeSettings } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Generates an out-of-band email action link to verify and change a user's email.
|
|
4
|
+
*
|
|
5
|
+
* This link allows users to verify ownership of a new email address before updating
|
|
6
|
+
* their account email. The optional ActionCodeSettings object defines mobile app
|
|
7
|
+
* handling and additional state.
|
|
8
|
+
*
|
|
9
|
+
* @param email - The current email account
|
|
10
|
+
* @param newEmail - The email address the account is being updated to
|
|
11
|
+
* @param actionCodeSettings - Optional action code settings
|
|
12
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
13
|
+
* @returns Promise that resolves to the generated link
|
|
14
|
+
*
|
|
15
|
+
* @throws {Error} Not yet implemented
|
|
16
|
+
*
|
|
17
|
+
* @package
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function generateVerifyAndChangeEmailLinkHandler(email: string, newEmail: string, actionCodeSettings: ActionCodeSettings | undefined, oauth2AccessToken: string): Promise<string>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates an out-of-band email action link to verify and change a user's email.
|
|
3
|
+
*
|
|
4
|
+
* This link allows users to verify ownership of a new email address before updating
|
|
5
|
+
* their account email. The optional ActionCodeSettings object defines mobile app
|
|
6
|
+
* handling and additional state.
|
|
7
|
+
*
|
|
8
|
+
* @param email - The current email account
|
|
9
|
+
* @param newEmail - The email address the account is being updated to
|
|
10
|
+
* @param actionCodeSettings - Optional action code settings
|
|
11
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
12
|
+
* @returns Promise that resolves to the generated link
|
|
13
|
+
*
|
|
14
|
+
* @throws {Error} Not yet implemented
|
|
15
|
+
*
|
|
16
|
+
* @package
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export async function generateVerifyAndChangeEmailLinkHandler(email, newEmail, actionCodeSettings, oauth2AccessToken) {
|
|
20
|
+
throw new Error("Not implemented");
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AuthProviderConfig } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves an Auth provider configuration by provider ID.
|
|
4
|
+
*
|
|
5
|
+
* Returns the provider configuration for the specified ID. Throws an error if
|
|
6
|
+
* the configuration does not exist.
|
|
7
|
+
*
|
|
8
|
+
* @param providerId - The provider ID corresponding to the provider config
|
|
9
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
10
|
+
* @returns Promise that resolves to the provider configuration
|
|
11
|
+
*
|
|
12
|
+
* @throws {Error} Not yet implemented
|
|
13
|
+
*
|
|
14
|
+
* @package
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function getProviderConfigHandler(providerId: string, oauth2AccessToken: string): Promise<AuthProviderConfig>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves an Auth provider configuration by provider ID.
|
|
3
|
+
*
|
|
4
|
+
* Returns the provider configuration for the specified ID. Throws an error if
|
|
5
|
+
* the configuration does not exist.
|
|
6
|
+
*
|
|
7
|
+
* @param providerId - The provider ID corresponding to the provider config
|
|
8
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
9
|
+
* @returns Promise that resolves to the provider configuration
|
|
10
|
+
*
|
|
11
|
+
* @throws {Error} Not yet implemented
|
|
12
|
+
*
|
|
13
|
+
* @package
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export async function getProviderConfigHandler(providerId, oauth2AccessToken) {
|
|
17
|
+
throw new Error("Not implemented");
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UserImportRecord, UserImportOptions, UserImportResult } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Imports a list of users into Firebase Auth.
|
|
4
|
+
*
|
|
5
|
+
* A maximum of 1000 users can be imported at once. When importing users with passwords,
|
|
6
|
+
* UserImportOptions are required to specify the hash algorithm.
|
|
7
|
+
*
|
|
8
|
+
* @param users - The list of user records to import
|
|
9
|
+
* @param options - Optional import options, required when importing password hashes
|
|
10
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
11
|
+
* @returns Promise that resolves to the import result
|
|
12
|
+
*
|
|
13
|
+
* @throws {Error} Not yet implemented
|
|
14
|
+
*
|
|
15
|
+
* @package
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare function importUsersHandler(users: UserImportRecord[], options: UserImportOptions | undefined, oauth2AccessToken: string): Promise<UserImportResult>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imports a list of users into Firebase Auth.
|
|
3
|
+
*
|
|
4
|
+
* A maximum of 1000 users can be imported at once. When importing users with passwords,
|
|
5
|
+
* UserImportOptions are required to specify the hash algorithm.
|
|
6
|
+
*
|
|
7
|
+
* @param users - The list of user records to import
|
|
8
|
+
* @param options - Optional import options, required when importing password hashes
|
|
9
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
10
|
+
* @returns Promise that resolves to the import result
|
|
11
|
+
*
|
|
12
|
+
* @throws {Error} Not yet implemented
|
|
13
|
+
*
|
|
14
|
+
* @package
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export async function importUsersHandler(users, options, oauth2AccessToken) {
|
|
18
|
+
throw new Error("Not implemented");
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AuthProviderConfigFilter, ListProviderConfigResults } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Lists provider configurations matching the specified filter.
|
|
4
|
+
*
|
|
5
|
+
* Returns a list of SAML or OIDC provider configurations. At most 100 provider
|
|
6
|
+
* configs can be listed at a time.
|
|
7
|
+
*
|
|
8
|
+
* @param options - The provider config filter to apply
|
|
9
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
10
|
+
* @returns Promise that resolves to the list of provider configs
|
|
11
|
+
*
|
|
12
|
+
* @throws {Error} Not yet implemented
|
|
13
|
+
*
|
|
14
|
+
* @package
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function listProviderConfigsHandler(options: AuthProviderConfigFilter, oauth2AccessToken: string): Promise<ListProviderConfigResults>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lists provider configurations matching the specified filter.
|
|
3
|
+
*
|
|
4
|
+
* Returns a list of SAML or OIDC provider configurations. At most 100 provider
|
|
5
|
+
* configs can be listed at a time.
|
|
6
|
+
*
|
|
7
|
+
* @param options - The provider config filter to apply
|
|
8
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
9
|
+
* @returns Promise that resolves to the list of provider configs
|
|
10
|
+
*
|
|
11
|
+
* @throws {Error} Not yet implemented
|
|
12
|
+
*
|
|
13
|
+
* @package
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export async function listProviderConfigsHandler(options, oauth2AccessToken) {
|
|
17
|
+
throw new Error("Not implemented");
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UpdateAuthProviderRequest, AuthProviderConfig } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Updates an existing Auth provider configuration.
|
|
4
|
+
*
|
|
5
|
+
* Updates the provider configuration for the specified provider ID with the
|
|
6
|
+
* new settings. Throws an error if the configuration does not exist.
|
|
7
|
+
*
|
|
8
|
+
* @param providerId - The provider ID corresponding to the provider config to update
|
|
9
|
+
* @param updatedConfig - The updated configuration
|
|
10
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
11
|
+
* @returns Promise that resolves to the updated provider configuration
|
|
12
|
+
*
|
|
13
|
+
* @throws {Error} Not yet implemented
|
|
14
|
+
*
|
|
15
|
+
* @package
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare function updateProviderConfigHandler(providerId: string, updatedConfig: UpdateAuthProviderRequest, oauth2AccessToken: string): Promise<AuthProviderConfig>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Updates an existing Auth provider configuration.
|
|
3
|
+
*
|
|
4
|
+
* Updates the provider configuration for the specified provider ID with the
|
|
5
|
+
* new settings. Throws an error if the configuration does not exist.
|
|
6
|
+
*
|
|
7
|
+
* @param providerId - The provider ID corresponding to the provider config to update
|
|
8
|
+
* @param updatedConfig - The updated configuration
|
|
9
|
+
* @param oauth2AccessToken - OAuth2 access token for Firebase Admin API
|
|
10
|
+
* @returns Promise that resolves to the updated provider configuration
|
|
11
|
+
*
|
|
12
|
+
* @throws {Error} Not yet implemented
|
|
13
|
+
*
|
|
14
|
+
* @package
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export async function updateProviderConfigHandler(providerId, updatedConfig, oauth2AccessToken) {
|
|
18
|
+
throw new Error("Not implemented");
|
|
19
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2018 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* You can find the code taken from the Firebase Admin SDK in this location of
|
|
19
|
+
* the firebase-admin 13.4.0 npm package:
|
|
20
|
+
*
|
|
21
|
+
* firebase-admin/lib/auth/action-code-settings-builder.d.ts
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* This is the interface that defines the required continue/state URL with
|
|
25
|
+
* optional Android and iOS bundle identifiers.
|
|
26
|
+
*/
|
|
27
|
+
export interface ActionCodeSettings {
|
|
28
|
+
/**
|
|
29
|
+
* Defines the link continue/state URL, which has different meanings in
|
|
30
|
+
* different contexts:
|
|
31
|
+
* <ul>
|
|
32
|
+
* <li>When the link is handled in the web action widgets, this is the deep
|
|
33
|
+
* link in the `continueUrl` query parameter.</li>
|
|
34
|
+
* <li>When the link is handled in the app directly, this is the `continueUrl`
|
|
35
|
+
* query parameter in the deep link of the Dynamic Link.</li>
|
|
36
|
+
* </ul>
|
|
37
|
+
*/
|
|
38
|
+
url: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to open the link via a mobile app or a browser.
|
|
41
|
+
* The default is false. When set to true, the action code link is sent
|
|
42
|
+
* as a Universal Link or Android App Link and is opened by the app if
|
|
43
|
+
* installed. In the false case, the code is sent to the web widget first
|
|
44
|
+
* and then redirects to the app if installed.
|
|
45
|
+
*/
|
|
46
|
+
handleCodeInApp?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the iOS bundle ID. This will try to open the link in an iOS app if it
|
|
49
|
+
* is installed.
|
|
50
|
+
*/
|
|
51
|
+
iOS?: {
|
|
52
|
+
/**
|
|
53
|
+
* Defines the required iOS bundle ID of the app where the link should be
|
|
54
|
+
* handled if the application is already installed on the device.
|
|
55
|
+
*/
|
|
56
|
+
bundleId: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Defines the Android package name. This will try to open the link in an
|
|
60
|
+
* android app if it is installed. If `installApp` is passed, it specifies
|
|
61
|
+
* whether to install the Android app if the device supports it and the app is
|
|
62
|
+
* not already installed. If this field is provided without a `packageName`, an
|
|
63
|
+
* error is thrown explaining that the `packageName` must be provided in
|
|
64
|
+
* conjunction with this field. If `minimumVersion` is specified, and an older
|
|
65
|
+
* version of the app is installed, the user is taken to the Play Store to
|
|
66
|
+
* upgrade the app.
|
|
67
|
+
*/
|
|
68
|
+
android?: {
|
|
69
|
+
/**
|
|
70
|
+
* Defines the required Android package name of the app where the link should be
|
|
71
|
+
* handled if the Android app is installed.
|
|
72
|
+
*/
|
|
73
|
+
packageName: string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether to install the Android app if the device supports it and the app is
|
|
76
|
+
* not already installed.
|
|
77
|
+
*/
|
|
78
|
+
installApp?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The Android minimum version if available. If the installed app is an older
|
|
81
|
+
* version, the user is taken to the GOogle Play Store to upgrade the app.
|
|
82
|
+
*/
|
|
83
|
+
minimumVersion?: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Defines the dynamic link domain to use for the current link if it is to be
|
|
87
|
+
* opened using Firebase Dynamic Links, as multiple dynamic link domains can be
|
|
88
|
+
* configured per project. This field provides the ability to explicitly choose
|
|
89
|
+
* configured per project. This fields provides the ability explicitly choose
|
|
90
|
+
* one. If none is provided, the oldest domain is used by default.
|
|
91
|
+
* @deprecated use `linkDomain` instead
|
|
92
|
+
*/
|
|
93
|
+
dynamicLinkDomain?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Defines the custom Firebase Hosting domain to use when the link is to be opened
|
|
96
|
+
* via a specified mobile app,
|
|
97
|
+
* This is a replacement of Firebase Dynamic Link.
|
|
98
|
+
* If none is provided,
|
|
99
|
+
* a default hosting domain will be used (for example, `example.firebaseapp.com`)
|
|
100
|
+
*/
|
|
101
|
+
linkDomain?: string;
|
|
102
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2018 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* You can find the code taken from the Firebase Admin SDK in this location of
|
|
19
|
+
* the firebase-admin 13.4.0 npm package:
|
|
20
|
+
*
|
|
21
|
+
* firebase-admin/lib/auth/auth-config.d.ts
|
|
22
|
+
*/
|
|
17
23
|
/**
|
|
18
24
|
* Interface representing base properties of a user-enrolled second factor for a
|
|
19
25
|
* `CreateRequest`.
|
|
@@ -226,7 +232,7 @@ export interface AuthProviderConfigFilter {
|
|
|
226
232
|
* The former is used to look up SAML providers only, while the latter is used
|
|
227
233
|
* for OIDC providers.
|
|
228
234
|
*/
|
|
229
|
-
type:
|
|
235
|
+
type: "saml" | "oidc";
|
|
230
236
|
/**
|
|
231
237
|
* The maximum number of results to return per page. The default and maximum is
|
|
232
238
|
* 100.
|
|
@@ -381,7 +387,7 @@ export interface EmailSignInConfigServerRequest {
|
|
|
381
387
|
enableEmailLinkSignin?: boolean;
|
|
382
388
|
}
|
|
383
389
|
/** Identifies the server side second factor type. */
|
|
384
|
-
type AuthFactorServerType =
|
|
390
|
+
type AuthFactorServerType = "PHONE_SMS";
|
|
385
391
|
/** Server side multi-factor configuration. */
|
|
386
392
|
export interface MultiFactorAuthServerConfig {
|
|
387
393
|
state?: MultiFactorConfigState;
|
|
@@ -391,11 +397,11 @@ export interface MultiFactorAuthServerConfig {
|
|
|
391
397
|
/**
|
|
392
398
|
* Identifies a second factor type.
|
|
393
399
|
*/
|
|
394
|
-
export type AuthFactorType =
|
|
400
|
+
export type AuthFactorType = "phone";
|
|
395
401
|
/**
|
|
396
402
|
* Identifies a multi-factor configuration state.
|
|
397
403
|
*/
|
|
398
|
-
export type MultiFactorConfigState =
|
|
404
|
+
export type MultiFactorConfigState = "ENABLED" | "DISABLED";
|
|
399
405
|
/**
|
|
400
406
|
* Interface representing a multi-factor configuration.
|
|
401
407
|
* This can be used to define whether multi-factor authentication is enabled
|
|
@@ -433,8 +439,8 @@ export interface MultiFactorConfig {
|
|
|
433
439
|
*/
|
|
434
440
|
export interface TotpMultiFactorProviderConfig {
|
|
435
441
|
/**
|
|
436
|
-
|
|
437
|
-
|
|
442
|
+
* The allowed number of adjacent intervals that will be used for verification
|
|
443
|
+
* to compensate for clock skew. */
|
|
438
444
|
adjacentIntervals?: number;
|
|
439
445
|
}
|
|
440
446
|
/**
|
|
@@ -630,25 +636,25 @@ export interface AllowByDefault {
|
|
|
630
636
|
*/
|
|
631
637
|
export interface AllowlistOnly {
|
|
632
638
|
/**
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
639
|
+
* Two letter unicode region codes to allow as defined by
|
|
640
|
+
* https://cldr.unicode.org/
|
|
641
|
+
* The full list of these region codes is here:
|
|
642
|
+
* https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
|
|
643
|
+
*/
|
|
638
644
|
allowedRegions: string[];
|
|
639
645
|
}
|
|
640
646
|
/**
|
|
641
|
-
* Enforcement state of reCAPTCHA protection.
|
|
642
|
-
* - 'OFF': Unenforced.
|
|
643
|
-
* - 'AUDIT': Create assessment but don't enforce the result.
|
|
644
|
-
* - 'ENFORCE': Create assessment and enforce the result.
|
|
645
|
-
*/
|
|
646
|
-
export type RecaptchaProviderEnforcementState =
|
|
647
|
+
* Enforcement state of reCAPTCHA protection.
|
|
648
|
+
* - 'OFF': Unenforced.
|
|
649
|
+
* - 'AUDIT': Create assessment but don't enforce the result.
|
|
650
|
+
* - 'ENFORCE': Create assessment and enforce the result.
|
|
651
|
+
*/
|
|
652
|
+
export type RecaptchaProviderEnforcementState = "OFF" | "AUDIT" | "ENFORCE";
|
|
647
653
|
/**
|
|
648
|
-
* The actions to take for reCAPTCHA-protected requests.
|
|
649
|
-
* - 'BLOCK': The reCAPTCHA-protected request will be blocked.
|
|
650
|
-
*/
|
|
651
|
-
export type RecaptchaAction =
|
|
654
|
+
* The actions to take for reCAPTCHA-protected requests.
|
|
655
|
+
* - 'BLOCK': The reCAPTCHA-protected request will be blocked.
|
|
656
|
+
*/
|
|
657
|
+
export type RecaptchaAction = "BLOCK";
|
|
652
658
|
/**
|
|
653
659
|
* The config for a reCAPTCHA action rule.
|
|
654
660
|
*/
|
|
@@ -658,8 +664,8 @@ export interface RecaptchaManagedRule {
|
|
|
658
664
|
*/
|
|
659
665
|
endScore: number;
|
|
660
666
|
/**
|
|
661
|
-
|
|
662
|
-
|
|
667
|
+
* The action for reCAPTCHA-protected requests.
|
|
668
|
+
*/
|
|
663
669
|
action?: RecaptchaAction;
|
|
664
670
|
}
|
|
665
671
|
/**
|
|
@@ -668,8 +674,8 @@ export interface RecaptchaManagedRule {
|
|
|
668
674
|
*/
|
|
669
675
|
export interface RecaptchaTollFraudManagedRule {
|
|
670
676
|
/**
|
|
671
|
-
|
|
672
|
-
|
|
677
|
+
* The action will be enforced if the reCAPTCHA score of a request is larger than startScore.
|
|
678
|
+
*/
|
|
673
679
|
startScore: number;
|
|
674
680
|
/**
|
|
675
681
|
* The action for reCAPTCHA-protected requests.
|
|
@@ -679,7 +685,7 @@ export interface RecaptchaTollFraudManagedRule {
|
|
|
679
685
|
/**
|
|
680
686
|
* The key's platform type.
|
|
681
687
|
*/
|
|
682
|
-
export type RecaptchaKeyClientType =
|
|
688
|
+
export type RecaptchaKeyClientType = "WEB" | "IOS" | "ANDROID";
|
|
683
689
|
/**
|
|
684
690
|
* The reCAPTCHA key config.
|
|
685
691
|
*/
|
|
@@ -701,12 +707,12 @@ export interface RecaptchaKey {
|
|
|
701
707
|
*/
|
|
702
708
|
export interface RecaptchaConfig {
|
|
703
709
|
/**
|
|
704
|
-
|
|
705
|
-
|
|
710
|
+
* The enforcement state of the email password provider.
|
|
711
|
+
*/
|
|
706
712
|
emailPasswordEnforcementState?: RecaptchaProviderEnforcementState;
|
|
707
713
|
/**
|
|
708
|
-
|
|
709
|
-
|
|
714
|
+
* The enforcement state of the phone provider.
|
|
715
|
+
*/
|
|
710
716
|
phoneEnforcementState?: RecaptchaProviderEnforcementState;
|
|
711
717
|
/**
|
|
712
718
|
* The reCAPTCHA managed rules.
|
|
@@ -752,7 +758,7 @@ export interface RecaptchaAuthServerConfig {
|
|
|
752
758
|
}
|
|
753
759
|
/**
|
|
754
760
|
* A password policy configuration for a project or tenant
|
|
755
|
-
*/
|
|
761
|
+
*/
|
|
756
762
|
export interface PasswordPolicyConfig {
|
|
757
763
|
/**
|
|
758
764
|
* Enforcement state of the password policy
|
|
@@ -780,11 +786,11 @@ export interface MobileLinksConfig {
|
|
|
780
786
|
/**
|
|
781
787
|
* Open code in app domain to use for app links and universal links.
|
|
782
788
|
*/
|
|
783
|
-
export type MobileLinksDomain =
|
|
789
|
+
export type MobileLinksDomain = "HOSTING_DOMAIN" | "FIREBASE_DYNAMIC_LINK_DOMAIN";
|
|
784
790
|
/**
|
|
785
791
|
* A password policy's enforcement state.
|
|
786
792
|
*/
|
|
787
|
-
export type PasswordPolicyEnforcementState =
|
|
793
|
+
export type PasswordPolicyEnforcementState = "ENFORCE" | "OFF";
|
|
788
794
|
/**
|
|
789
795
|
* Constraints to be enforced on the password policy
|
|
790
796
|
*/
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2018 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
export {};
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* You can find the code taken from the Firebase Admin SDK in this location of
|
|
19
|
+
* the firebase-admin 13.4.0 npm package:
|
|
20
|
+
*
|
|
21
|
+
* firebase-admin/lib/auth/identifier.d.ts
|
|
22
|
+
*/
|
|
17
23
|
/**
|
|
18
24
|
* Used for looking up an account by uid.
|
|
19
25
|
*
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2020 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
export {};
|
|
@@ -14,11 +14,20 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* You can find the code taken from the Firebase Admin SDK in this location of
|
|
19
|
+
* the firebase-admin 13.4.0 npm package:
|
|
20
|
+
*
|
|
21
|
+
* firebase-admin/lib/auth/base-auth.d.ts
|
|
22
|
+
* firebase-admin/lib/app/index.d.ts
|
|
23
|
+
*/
|
|
17
24
|
import type { DecodedIdToken } from "./token-verifier.js";
|
|
18
25
|
import type { UserRecord } from "./user-record.js";
|
|
19
|
-
import type { CreateRequest, UpdateRequest } from "./auth-config.js";
|
|
26
|
+
import type { CreateRequest, UpdateRequest, AuthProviderConfig, UpdateAuthProviderRequest, AuthProviderConfigFilter, ListProviderConfigResults } from "./auth-config.js";
|
|
20
27
|
import type { UserIdentifier } from "./identifier.js";
|
|
21
|
-
|
|
28
|
+
import type { ActionCodeSettings } from "./action-code-settings.js";
|
|
29
|
+
import type { UserImportRecord, UserImportOptions, UserImportResult, HashAlgorithmType, UserMetadataRequest, UserProviderRequest } from "./user-import.js";
|
|
30
|
+
export type { DecodedIdToken, UserRecord, CreateRequest, UpdateRequest, UserIdentifier, AuthProviderConfig, UpdateAuthProviderRequest, AuthProviderConfigFilter, ListProviderConfigResults, ActionCodeSettings, UserImportRecord, UserImportOptions, UserImportResult, HashAlgorithmType, UserMetadataRequest, UserProviderRequest, };
|
|
22
31
|
/**
|
|
23
32
|
* `FirebaseError` is a subclass of the standard JavaScript `Error` object. In
|
|
24
33
|
* addition to a message string and stack trace, it contains a string code.
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2021 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
export {};
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* You can find the code taken from the Firebase Admin SDK in this location of
|
|
19
|
+
* the firebase-admin 13.4.0 npm package:
|
|
20
|
+
*
|
|
21
|
+
* firebase-admin/lib/auth/token-verifier.d.ts
|
|
22
|
+
*/
|
|
17
23
|
/**
|
|
18
24
|
* Interface representing a decoded Firebase ID token, returned from the
|
|
19
25
|
* {@link BaseAuth.verifyIdToken} method.
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright 2018 Google Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
1
17
|
export {};
|