auth0-deploy-cli 7.7.1 → 7.8.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/CHANGELOG.md +14 -1
- package/lib/args.d.ts +29 -0
- package/lib/commands/export.d.ts +2 -0
- package/lib/commands/import.d.ts +2 -0
- package/lib/commands/index.d.ts +9 -0
- package/lib/configFactory.d.ts +7 -0
- package/lib/context/defaults.d.ts +1 -0
- package/lib/context/directory/handlers/actions.d.ts +6 -0
- package/lib/context/directory/handlers/attackProtection.d.ts +10 -0
- package/lib/context/directory/handlers/branding.d.ts +6 -0
- package/lib/context/directory/handlers/clientGrants.d.ts +6 -0
- package/lib/context/directory/handlers/clients.d.ts +6 -0
- package/lib/context/directory/handlers/connections.d.ts +6 -0
- package/lib/context/directory/handlers/databases.d.ts +6 -0
- package/lib/context/directory/handlers/emailProvider.d.ts +6 -0
- package/lib/context/directory/handlers/emailTemplates.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactorProviders.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactors.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPolicies.d.ts +6 -0
- package/lib/context/directory/handlers/hooks.d.ts +6 -0
- package/lib/context/directory/handlers/index.d.ts +12 -0
- package/lib/context/directory/handlers/migrations.d.ts +6 -0
- package/lib/context/directory/handlers/organizations.d.ts +6 -0
- package/lib/context/directory/handlers/pages.d.ts +6 -0
- package/lib/context/directory/handlers/resourceServers.d.ts +6 -0
- package/lib/context/directory/handlers/roles.d.ts +6 -0
- package/lib/context/directory/handlers/rules.d.ts +6 -0
- package/lib/context/directory/handlers/rulesConfigs.d.ts +6 -0
- package/lib/context/directory/handlers/tenant.d.ts +10 -0
- package/lib/context/directory/handlers/triggers.d.ts +6 -0
- package/lib/context/directory/index.d.ts +17 -0
- package/lib/context/index.d.ts +4 -0
- package/lib/context/yaml/handlers/actions.d.ts +6 -0
- package/lib/context/yaml/handlers/attackProtection.d.ts +6 -0
- package/lib/context/yaml/handlers/branding.d.ts +6 -0
- package/lib/context/yaml/handlers/clientGrants.d.ts +6 -0
- package/lib/context/yaml/handlers/clients.d.ts +6 -0
- package/lib/context/yaml/handlers/connections.d.ts +6 -0
- package/lib/context/yaml/handlers/databases.d.ts +6 -0
- package/lib/context/yaml/handlers/emailProvider.d.ts +6 -0
- package/lib/context/yaml/handlers/emailTemplates.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactors.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPolicies.d.ts +6 -0
- package/lib/context/yaml/handlers/hooks.d.ts +6 -0
- package/lib/context/yaml/handlers/index.d.ts +12 -0
- package/lib/context/yaml/handlers/migrations.d.ts +6 -0
- package/lib/context/yaml/handlers/organizations.d.ts +6 -0
- package/lib/context/yaml/handlers/pages.d.ts +6 -0
- package/lib/context/yaml/handlers/resourceServers.d.ts +6 -0
- package/lib/context/yaml/handlers/roles.d.ts +6 -0
- package/lib/context/yaml/handlers/rules.d.ts +6 -0
- package/lib/context/yaml/handlers/rulesConfigs.d.ts +6 -0
- package/lib/context/yaml/handlers/tenant.d.ts +6 -0
- package/lib/context/yaml/handlers/triggers.d.ts +6 -0
- package/lib/context/yaml/index.d.ts +13 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.js +5 -2
- package/lib/logger.d.ts +2 -0
- package/lib/logger.js +7 -17
- package/lib/readonly.d.ts +2 -0
- package/lib/sessionDurationsToMinutes.d.ts +7 -0
- package/lib/tools/auth0/client.d.ts +2 -0
- package/lib/tools/auth0/handlers/actions.d.ts +95 -0
- package/lib/tools/auth0/handlers/actions.js +1 -1
- package/lib/tools/auth0/handlers/attackProtection.d.ts +28 -0
- package/lib/tools/auth0/handlers/branding.d.ts +27 -0
- package/lib/tools/auth0/handlers/clientGrants.d.ts +32 -0
- package/lib/tools/auth0/handlers/clients.d.ts +23 -0
- package/lib/tools/auth0/handlers/connections.d.ts +54 -0
- package/lib/tools/auth0/handlers/databases.d.ts +36 -0
- package/lib/tools/auth0/handlers/default.d.ts +54 -0
- package/lib/tools/auth0/handlers/default.js +22 -8
- package/lib/tools/auth0/handlers/emailProvider.d.ts +11 -0
- package/lib/tools/auth0/handlers/emailTemplates.d.ts +26 -0
- package/lib/tools/auth0/handlers/guardianFactorProviders.d.ts +25 -0
- package/lib/tools/auth0/handlers/guardianFactorTemplates.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianFactors.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.d.ts +18 -0
- package/lib/tools/auth0/handlers/guardianPolicies.d.ts +23 -0
- package/lib/tools/auth0/handlers/hooks.d.ts +58 -0
- package/lib/tools/auth0/handlers/index.d.ts +129 -0
- package/lib/tools/auth0/handlers/migrations.d.ts +15 -0
- package/lib/tools/auth0/handlers/migrations.js +1 -1
- package/lib/tools/auth0/handlers/organizations.d.ts +51 -0
- package/lib/tools/auth0/handlers/organizations.js +1 -1
- package/lib/tools/auth0/handlers/pages.d.ts +42 -0
- package/lib/tools/auth0/handlers/prompts.d.ts +11 -0
- package/lib/tools/auth0/handlers/resourceServers.d.ts +51 -0
- package/lib/tools/auth0/handlers/roles.d.ts +48 -0
- package/lib/tools/auth0/handlers/roles.js +1 -1
- package/lib/tools/auth0/handlers/rules.d.ts +55 -0
- package/lib/tools/auth0/handlers/rules.js +1 -1
- package/lib/tools/auth0/handlers/rulesConfigs.d.ts +25 -0
- package/lib/tools/auth0/handlers/tenant.d.ts +11 -0
- package/lib/tools/auth0/handlers/triggers.d.ts +35 -0
- package/lib/tools/auth0/handlers/triggers.js +1 -1
- package/lib/tools/auth0/index.d.ts +15 -0
- package/lib/tools/auth0/schema.d.ts +15 -0
- package/lib/tools/calculateChanges.d.ts +26 -0
- package/lib/tools/calculateChanges.js +1 -1
- package/lib/tools/constants.d.ts +71 -0
- package/lib/tools/constants.js +3 -1
- package/lib/tools/deploy.d.ts +3 -0
- package/lib/tools/deploy.js +2 -2
- package/lib/tools/index.d.ts +82 -0
- package/lib/tools/utils.d.ts +18 -0
- package/lib/tools/utils.js +35 -2
- package/lib/tools/validationError.d.ts +5 -0
- package/lib/types.d.ts +255 -0
- package/lib/utils.d.ts +66 -0
- package/package.json +7 -7
- package/tsconfig.json +2 -1
- package/lib/tools/logger.js +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.8.0] - 2022-04-14
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Type declarations for more seamless integration into Typescript projects when used as a module [#485]
|
|
15
|
+
|
|
16
|
+
### Security
|
|
17
|
+
|
|
18
|
+
- Updated Winston from 2.3.x to 3.3.0 which applies fix for theoretical prototype pollution vulnerability [#497]
|
|
19
|
+
|
|
10
20
|
## [7.7.1] - 2022-04-07
|
|
11
21
|
|
|
12
22
|
### Added
|
|
@@ -666,7 +676,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
666
676
|
[#478]: https://github.com/auth0/auth0-deploy-cli/issues/478
|
|
667
677
|
[#481]: https://github.com/auth0/auth0-deploy-cli/issues/481
|
|
668
678
|
[#482]: https://github.com/auth0/auth0-deploy-cli/issues/482
|
|
669
|
-
[
|
|
679
|
+
[#485]: https://github.com/auth0/auth0-deploy-cli/issues/485
|
|
680
|
+
[#497]: https://github.com/auth0/auth0-deploy-cli/issues/497
|
|
681
|
+
[unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.8.0...HEAD
|
|
682
|
+
[7.8.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.7.1...v7.8.0
|
|
670
683
|
[7.7.1]: https://github.com/auth0/auth0-deploy-cli/compare/v7.7.0...v7.7.1
|
|
671
684
|
[7.7.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.6.0...v7.7.0
|
|
672
685
|
[7.6.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.2...v7.6.0
|
package/lib/args.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Config } from './types';
|
|
2
|
+
declare type SharedParams = {
|
|
3
|
+
proxy_url?: string;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
config_file?: string;
|
|
6
|
+
env?: boolean;
|
|
7
|
+
secret?: string;
|
|
8
|
+
base_path?: string;
|
|
9
|
+
config?: Partial<Config>;
|
|
10
|
+
};
|
|
11
|
+
declare type ImportSpecificParams = {
|
|
12
|
+
input_file: string;
|
|
13
|
+
};
|
|
14
|
+
declare type ExportSpecificParams = {
|
|
15
|
+
format: 'yaml' | 'directory';
|
|
16
|
+
output_folder: string;
|
|
17
|
+
export_ids?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare type ExportParams = ExportSpecificParams & SharedParams;
|
|
20
|
+
export declare type ImportParams = ImportSpecificParams & SharedParams;
|
|
21
|
+
export declare type CliParams = (ExportParams | ImportParams) & {
|
|
22
|
+
_: ['export' | 'import' | 'deploy' | 'dump'];
|
|
23
|
+
};
|
|
24
|
+
declare function getParams(): CliParams;
|
|
25
|
+
declare const _default: {
|
|
26
|
+
getParams: typeof getParams;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
29
|
+
export { getParams };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Config } from './types';
|
|
2
|
+
export declare type ConfigFunction = (arg0: keyof Config) => any;
|
|
3
|
+
export declare const configFactory: () => {
|
|
4
|
+
(key: keyof Config): any;
|
|
5
|
+
setProvider(providerFunction: ConfigFunction): void;
|
|
6
|
+
setValue(key: keyof Config, value: any): void;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function emailProviderDefaults(emailProvider: any): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedAttackProtection = {
|
|
3
|
+
attackProtection: {
|
|
4
|
+
breachedPasswordDetection: unknown;
|
|
5
|
+
bruteForceProtection: unknown;
|
|
6
|
+
suspiciousIpThrottling: unknown;
|
|
7
|
+
} | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const attackProtectionHandler: DirectoryHandler<ParsedAttackProtection>;
|
|
10
|
+
export default attackProtectionHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianFactorProviders = {
|
|
3
|
+
guardianFactorProviders: unknown[] | undefined;
|
|
4
|
+
};
|
|
5
|
+
declare const guardianFactorProvidersHandler: DirectoryHandler<ParsedGuardianFactorProviders>;
|
|
6
|
+
export default guardianFactorProvidersHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianFactorTemplates = {
|
|
3
|
+
guardianFactorTemplates: unknown[] | undefined;
|
|
4
|
+
};
|
|
5
|
+
declare const guardianFactorTemplatesHandler: DirectoryHandler<ParsedGuardianFactorTemplates>;
|
|
6
|
+
export default guardianFactorTemplatesHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianFactorMessageTypes = {
|
|
3
|
+
guardianPhoneFactorMessageTypes: unknown;
|
|
4
|
+
} | {};
|
|
5
|
+
declare const guardianFactorMessageTypesHandler: DirectoryHandler<ParsedGuardianFactorMessageTypes>;
|
|
6
|
+
export default guardianFactorMessageTypesHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianFactorSelectedProvider = {
|
|
3
|
+
guardianPhoneFactorSelectedProvider: unknown;
|
|
4
|
+
} | {};
|
|
5
|
+
declare const guardianFactorSelectedProviderHandler: DirectoryHandler<ParsedGuardianFactorSelectedProvider>;
|
|
6
|
+
export default guardianFactorSelectedProviderHandler;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import DirectoryContext from '..';
|
|
2
|
+
import { AssetTypes } from '../../../types';
|
|
3
|
+
export declare type DirectoryHandler<T> = {
|
|
4
|
+
dump: (context: DirectoryContext) => void;
|
|
5
|
+
parse: (context: DirectoryContext) => T;
|
|
6
|
+
};
|
|
7
|
+
declare const directoryHandlers: {
|
|
8
|
+
[key in AssetTypes]: DirectoryHandler<{
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export default directoryHandlers;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DirectoryHandler } from '.';
|
|
2
|
+
declare type ParsedTenant = {
|
|
3
|
+
tenant: {
|
|
4
|
+
session_lifetime: number;
|
|
5
|
+
idle_session_lifetime: number;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
} | {};
|
|
9
|
+
declare const tenantHandler: DirectoryHandler<ParsedTenant>;
|
|
10
|
+
export default tenantHandler;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Assets, Auth0APIClient, Config } from '../../types';
|
|
2
|
+
declare type KeywordMappings = {
|
|
3
|
+
[key: string]: (string | number)[] | string | number;
|
|
4
|
+
};
|
|
5
|
+
export default class DirectoryContext {
|
|
6
|
+
basePath: string;
|
|
7
|
+
filePath: string;
|
|
8
|
+
config: Config;
|
|
9
|
+
mappings: KeywordMappings;
|
|
10
|
+
mgmtClient: Auth0APIClient;
|
|
11
|
+
assets: Assets;
|
|
12
|
+
constructor(config: Config, mgmtClient: Auth0APIClient);
|
|
13
|
+
loadFile(f: string, folder: string): string;
|
|
14
|
+
load(): Promise<void>;
|
|
15
|
+
dump(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { YAMLHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianFactorMessageTypes = {
|
|
3
|
+
guardianPhoneFactorMessageTypes: unknown;
|
|
4
|
+
};
|
|
5
|
+
declare const guardianPhoneFactorMessageTypesHandler: YAMLHandler<ParsedGuardianFactorMessageTypes>;
|
|
6
|
+
export default guardianPhoneFactorMessageTypesHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { YAMLHandler } from '.';
|
|
2
|
+
declare type ParsedGuardianPhoneFactorSelectedProvider = {
|
|
3
|
+
guardianPhoneFactorSelectedProvider: unknown;
|
|
4
|
+
};
|
|
5
|
+
declare const guardianPhoneFactorSelectedProviderHandler: YAMLHandler<ParsedGuardianPhoneFactorSelectedProvider>;
|
|
6
|
+
export default guardianPhoneFactorSelectedProviderHandler;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import YAMLContext from '..';
|
|
2
|
+
import { AssetTypes } from '../../../types';
|
|
3
|
+
export declare type YAMLHandler<T> = {
|
|
4
|
+
dump: (context: YAMLContext) => Promise<T | {}>;
|
|
5
|
+
parse: (context: YAMLContext) => Promise<T>;
|
|
6
|
+
};
|
|
7
|
+
declare const yamlHandlers: {
|
|
8
|
+
[key in AssetTypes]: YAMLHandler<{
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export default yamlHandlers;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Assets, Config, Auth0APIClient, KeywordMappings } from '../../types';
|
|
2
|
+
export default class YAMLContext {
|
|
3
|
+
basePath: string;
|
|
4
|
+
configFile: string;
|
|
5
|
+
config: Config;
|
|
6
|
+
mappings: KeywordMappings;
|
|
7
|
+
mgmtClient: Auth0APIClient;
|
|
8
|
+
assets: Assets;
|
|
9
|
+
constructor(config: Config, mgmtClient: any);
|
|
10
|
+
loadFile(f: any): string;
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
dump(): Promise<void>;
|
|
13
|
+
}
|