auth0-deploy-cli 7.15.1 → 7.16.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/.github/workflows/semgrep.yml +18 -0
- package/.nyc_output/{08f269c7-2bda-456b-9064-c7b1074e59c9.json → 0fafda5c-41f9-46fb-bd7b-6dab83c26135.json} +0 -0
- package/.nyc_output/{a6a342d6-c13c-4c02-9473-2dd51f10e305.json → a40df0b3-2286-48de-bc8c-3e7c403c0d90.json} +0 -0
- package/.nyc_output/d0ce7bd3-9483-465f-84b7-6b0c188b8615.json +1 -0
- package/.nyc_output/processinfo/0fafda5c-41f9-46fb-bd7b-6dab83c26135.json +1 -0
- package/.nyc_output/processinfo/a40df0b3-2286-48de-bc8c-3e7c403c0d90.json +1 -0
- package/.nyc_output/processinfo/d0ce7bd3-9483-465f-84b7-6b0c188b8615.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +33 -1
- package/README.md +35 -19
- package/coverage/lcov-report/index.html +53 -53
- package/coverage/lcov-report/src/args.ts.html +1 -1
- package/coverage/lcov-report/src/commands/export.ts.html +1 -1
- package/coverage/lcov-report/src/commands/import.ts.html +1 -1
- package/coverage/lcov-report/src/commands/index.html +1 -1
- package/coverage/lcov-report/src/configFactory.ts.html +1 -1
- package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +14 -5
- package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +11 -11
- package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
- package/coverage/lcov-report/src/context/directory/index.html +11 -11
- package/coverage/lcov-report/src/context/directory/index.ts.html +30 -21
- package/coverage/lcov-report/src/context/index.html +19 -19
- package/coverage/lcov-report/src/context/index.ts.html +124 -37
- package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +2 -2
- package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +4 -4
- package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +5 -5
- package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +4 -4
- package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +8 -8
- package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +3 -3
- package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +2 -2
- package/coverage/lcov-report/src/context/yaml/index.html +17 -17
- package/coverage/lcov-report/src/context/yaml/index.ts.html +75 -48
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/logger.ts.html +2 -2
- package/coverage/lcov-report/src/readonly.ts.html +3 -6
- package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +5 -5
- package/coverage/lcov-report/src/tools/auth0/client.ts.html +4 -4
- package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +32 -14
- package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +37 -37
- package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +26 -32
- package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/index.html +41 -41
- package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
- package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +44 -23
- package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +25 -16
- package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +7 -7
- package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +2 -2
- package/coverage/lcov-report/src/tools/auth0/index.html +18 -18
- package/coverage/lcov-report/src/tools/auth0/index.ts.html +64 -34
- package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
- package/coverage/lcov-report/src/tools/calculateChanges.ts.html +16 -16
- package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
- package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
- package/coverage/lcov-report/src/tools/index.html +1 -1
- package/coverage/lcov-report/src/tools/index.ts.html +2 -2
- package/coverage/lcov-report/src/tools/utils.ts.html +18 -18
- package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
- package/coverage/lcov-report/src/types.ts.html +26 -5
- package/coverage/lcov-report/src/utils.ts.html +12 -12
- package/coverage/lcov.info +1054 -986
- package/docs/configuring-the-deploy-cli.md +18 -2
- package/docs/excluding-from-management.md +19 -4
- package/docs/resource-specific-documentation.md +162 -0
- package/lib/args.d.ts +6 -6
- package/lib/configFactory.d.ts +1 -1
- package/lib/context/directory/handlers/actions.d.ts +1 -1
- package/lib/context/directory/handlers/attackProtection.d.ts +1 -1
- package/lib/context/directory/handlers/branding.d.ts +1 -1
- package/lib/context/directory/handlers/clientGrants.d.ts +1 -1
- package/lib/context/directory/handlers/clientGrants.js +3 -2
- package/lib/context/directory/handlers/clientGrants.js.map +1 -1
- package/lib/context/directory/handlers/clients.d.ts +1 -1
- package/lib/context/directory/handlers/connections.d.ts +1 -1
- package/lib/context/directory/handlers/customDomains.d.ts +1 -1
- package/lib/context/directory/handlers/databases.d.ts +1 -1
- package/lib/context/directory/handlers/emailProvider.d.ts +1 -1
- package/lib/context/directory/handlers/emailTemplates.d.ts +1 -1
- package/lib/context/directory/handlers/guardianFactorProviders.d.ts +1 -1
- package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +1 -1
- package/lib/context/directory/handlers/guardianFactors.d.ts +1 -1
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +1 -1
- package/lib/context/directory/handlers/guardianPolicies.d.ts +1 -1
- package/lib/context/directory/handlers/hooks.d.ts +1 -1
- package/lib/context/directory/handlers/index.d.ts +1 -1
- package/lib/context/directory/handlers/logStreams.d.ts +1 -1
- package/lib/context/directory/handlers/migrations.d.ts +1 -1
- package/lib/context/directory/handlers/organizations.d.ts +1 -1
- package/lib/context/directory/handlers/pages.d.ts +1 -1
- package/lib/context/directory/handlers/prompts.d.ts +1 -1
- package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
- package/lib/context/directory/handlers/roles.d.ts +1 -1
- package/lib/context/directory/handlers/rules.d.ts +1 -1
- package/lib/context/directory/handlers/rulesConfigs.d.ts +1 -1
- package/lib/context/directory/handlers/tenant.d.ts +1 -1
- package/lib/context/directory/handlers/themes.d.ts +1 -1
- package/lib/context/directory/handlers/triggers.d.ts +1 -1
- package/lib/context/directory/index.d.ts +1 -1
- package/lib/context/directory/index.js +3 -0
- package/lib/context/directory/index.js.map +1 -1
- package/lib/context/index.d.ts +2 -1
- package/lib/context/index.js +22 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/yaml/handlers/actions.d.ts +1 -1
- package/lib/context/yaml/handlers/attackProtection.d.ts +1 -1
- package/lib/context/yaml/handlers/branding.d.ts +2 -2
- package/lib/context/yaml/handlers/clientGrants.d.ts +1 -1
- package/lib/context/yaml/handlers/clients.d.ts +1 -1
- package/lib/context/yaml/handlers/connections.d.ts +1 -1
- package/lib/context/yaml/handlers/customDomains.d.ts +1 -1
- package/lib/context/yaml/handlers/databases.d.ts +1 -1
- package/lib/context/yaml/handlers/emailProvider.d.ts +1 -1
- package/lib/context/yaml/handlers/emailTemplates.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianFactors.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +1 -1
- package/lib/context/yaml/handlers/guardianPolicies.d.ts +1 -1
- package/lib/context/yaml/handlers/hooks.d.ts +1 -1
- package/lib/context/yaml/handlers/index.d.ts +1 -1
- package/lib/context/yaml/handlers/logStreams.d.ts +1 -1
- package/lib/context/yaml/handlers/migrations.d.ts +1 -1
- package/lib/context/yaml/handlers/organizations.d.ts +1 -1
- package/lib/context/yaml/handlers/pages.d.ts +1 -1
- package/lib/context/yaml/handlers/prompts.d.ts +1 -1
- package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
- package/lib/context/yaml/handlers/roles.d.ts +1 -1
- package/lib/context/yaml/handlers/rules.d.ts +1 -1
- package/lib/context/yaml/handlers/rulesConfigs.d.ts +1 -1
- package/lib/context/yaml/handlers/tenant.d.ts +1 -1
- package/lib/context/yaml/handlers/themes.d.ts +1 -1
- package/lib/context/yaml/handlers/triggers.d.ts +1 -1
- package/lib/context/yaml/index.js +9 -2
- package/lib/context/yaml/index.js.map +1 -1
- package/lib/readonly.js +0 -1
- package/lib/readonly.js.map +1 -1
- package/lib/tools/auth0/handlers/actions.d.ts +1 -1
- package/lib/tools/auth0/handlers/actions.js +3 -0
- package/lib/tools/auth0/handlers/actions.js.map +1 -1
- package/lib/tools/auth0/handlers/default.d.ts +1 -1
- package/lib/tools/auth0/handlers/emailProvider.js +2 -2
- package/lib/tools/auth0/handlers/emailProvider.js.map +1 -1
- package/lib/tools/auth0/handlers/logStreams.d.ts +9 -0
- package/lib/tools/auth0/handlers/logStreams.js +13 -6
- package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
- package/lib/tools/auth0/handlers/pages.d.ts +1 -1
- package/lib/tools/auth0/handlers/prompts.d.ts +6 -6
- package/lib/tools/auth0/handlers/prompts.js +5 -1
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/auth0/handlers/tenant.d.ts +2 -2
- package/lib/tools/auth0/index.d.ts +1 -1
- package/lib/tools/auth0/index.js +9 -1
- package/lib/tools/auth0/index.js.map +1 -1
- package/lib/types.d.ts +27 -18
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +2 -2
- package/package.json +9 -9
- package/.nyc_output/68afeb31-a1f4-4c3a-9fd6-ba40a6c4bbc6.json +0 -1
- package/.nyc_output/processinfo/08f269c7-2bda-456b-9064-c7b1074e59c9.json +0 -1
- package/.nyc_output/processinfo/68afeb31-a1f4-4c3a-9fd6-ba40a6c4bbc6.json +0 -1
- package/.nyc_output/processinfo/a6a342d6-c13c-4c02-9473-2dd51f10e305.json +0 -1
package/lib/context/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import YAMLContext from './yaml';
|
|
2
2
|
import DirectoryContext from './directory';
|
|
3
|
-
import { Config } from '../types';
|
|
3
|
+
import { AssetTypes, Config } from '../types';
|
|
4
4
|
export declare const setupContext: (config: Config) => Promise<DirectoryContext | YAMLContext>;
|
|
5
|
+
export declare const filterOnlyIncludedResourceTypes: (includedAssetTypes: AssetTypes[] | undefined) => ([handlerName, _]: [AssetTypes, any]) => boolean;
|
package/lib/context/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.setupContext = void 0;
|
|
15
|
+
exports.filterOnlyIncludedResourceTypes = exports.setupContext = void 0;
|
|
16
16
|
const path_1 = __importDefault(require("path"));
|
|
17
17
|
const auth0_1 = require("auth0");
|
|
18
18
|
const yaml_1 = __importDefault(require("./yaml"));
|
|
@@ -21,6 +21,8 @@ const utils_1 = require("../utils");
|
|
|
21
21
|
const logger_1 = __importDefault(require("../logger"));
|
|
22
22
|
const { version: packageVersion } = require('../../package.json');
|
|
23
23
|
const nonPrimitiveProps = [
|
|
24
|
+
// List of properties that are arrays or objects. This list
|
|
25
|
+
// enables decoding of string env variables for these configurations.
|
|
24
26
|
'AUTH0_KEYWORD_REPLACE_MAPPINGS',
|
|
25
27
|
'AUTH0_EXCLUDED_RULES',
|
|
26
28
|
'AUTH0_EXCLUDED_CLIENTS',
|
|
@@ -29,11 +31,11 @@ const nonPrimitiveProps = [
|
|
|
29
31
|
'AUTH0_EXCLUDED_RESOURCE_SERVERS',
|
|
30
32
|
'AUTH0_EXCLUDED_DEFAULTS',
|
|
31
33
|
'AUTH0_EXCLUDED',
|
|
34
|
+
'AUTH0_INCLUDED_ONLY',
|
|
32
35
|
'EXCLUDED_PROPS',
|
|
33
36
|
'INCLUDED_PROPS',
|
|
34
37
|
];
|
|
35
38
|
const setupContext = (config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
-
// Validate config
|
|
37
39
|
const missingParams = [];
|
|
38
40
|
if (!config.AUTH0_DOMAIN)
|
|
39
41
|
missingParams.push('AUTH0_DOMAIN');
|
|
@@ -46,6 +48,18 @@ const setupContext = (config) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
46
48
|
if (missingParams.length > 0) {
|
|
47
49
|
throw new Error(`The following parameters were missing. Please add them to your config.json or as an environment variable. ${JSON.stringify(missingParams)}`);
|
|
48
50
|
}
|
|
51
|
+
((config) => {
|
|
52
|
+
if (config.AUTH0_INCLUDED_ONLY === undefined)
|
|
53
|
+
return;
|
|
54
|
+
if (config.AUTH0_INCLUDED_ONLY.length === 0) {
|
|
55
|
+
throw new Error('Need to define at least one resource type in AUTH0_INCLUDED_ONLY configuration. See: https://github.com/auth0/auth0-deploy-cli/blob/master/docs/configuring-the-deploy-cli.md#auth0_included_only');
|
|
56
|
+
}
|
|
57
|
+
const hasExcludedResources = config.AUTH0_EXCLUDED !== undefined && config.AUTH0_EXCLUDED.length > 0;
|
|
58
|
+
const hasIncludedResources = config.AUTH0_INCLUDED_ONLY.length > 0;
|
|
59
|
+
if (hasExcludedResources && hasIncludedResources) {
|
|
60
|
+
throw new Error('Both AUTH0_EXCLUDED and AUTH0_INCLUDED_ONLY configuration values are defined, only one can be configured at a time. See: https://github.com/auth0/auth0-deploy-cli/blob/master/docs/excluding-from-management.md');
|
|
61
|
+
}
|
|
62
|
+
})(config);
|
|
49
63
|
((config) => {
|
|
50
64
|
// Detect and warn on usage of deprecated exclusion params. See: https://github.com/auth0/auth0-deploy-cli/issues/451#user-content-deprecated-exclusion-props
|
|
51
65
|
const deprecatedExclusionParams = [
|
|
@@ -119,4 +133,10 @@ const setupContext = (config) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
119
133
|
throw new Error(`Unable to determine context processor to load for file ${inputFile}, does it exist? `);
|
|
120
134
|
});
|
|
121
135
|
exports.setupContext = setupContext;
|
|
136
|
+
const filterOnlyIncludedResourceTypes = (includedAssetTypes) => ([handlerName, _]) => {
|
|
137
|
+
if (includedAssetTypes === undefined)
|
|
138
|
+
return true;
|
|
139
|
+
return includedAssetTypes.includes(handlerName);
|
|
140
|
+
};
|
|
141
|
+
exports.filterOnlyIncludedResourceTypes = filterOnlyIncludedResourceTypes;
|
|
122
142
|
//# sourceMappingURL=index.js.map
|
package/lib/context/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,iCAA+D;AAC/D,kDAAiC;AACjC,4DAA2C;AAE3C,oCAAuC;AACvC,uDAA4B;AAG5B,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAElE,MAAM,iBAAiB,GAAqB;IAC1C,gCAAgC;IAChC,sBAAsB;IACtB,wBAAwB;IACxB,0BAA0B;IAC1B,4BAA4B;IAC5B,iCAAiC;IACjC,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;CACjB,CAAC;AAEK,MAAM,YAAY,GAAG,CAAO,MAAc,EAA2C,EAAE;IAC5F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,iCAA+D;AAC/D,kDAAiC;AACjC,4DAA2C;AAE3C,oCAAuC;AACvC,uDAA4B;AAG5B,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,C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,UAAU,CAAC,CAAC;KAC5C;IAED,IAAI,IAAA,mBAAW,EAAC,SAAS,CAAC,EAAE;QAC1B,OAAO,IAAI,mBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KACjD;IAED,MAAM,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,MAAM,EAAE;QACrC,OAAO,IAAI,cAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KAC5C;IAED,MAAM,IAAI,KAAK,CACb,0DAA0D,SAAS,mBAAmB,CACvF,CAAC;AACJ,CAAC,CAAA,CAAC;AA5HW,QAAA,YAAY,gBA4HvB;AAEK,MAAM,+BAA+B,GAC1C,CAAC,kBAA4C,EAAE,EAAE,CACjD,CAAC,CAAC,WAAW,EAAE,CAAC,CAAoB,EAAE,EAAE;IACtC,IAAI,kBAAkB,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAClD,OAAO,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAClD,CAAC,CAAC;AALS,QAAA,+BAA+B,mCAKxC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { ParsedAsset } from '../../../types';
|
|
3
3
|
import { Action } from '../../../tools/auth0/handlers/actions';
|
|
4
|
-
|
|
4
|
+
type ParsedActions = ParsedAsset<'actions', Partial<Action>[]>;
|
|
5
5
|
declare const ActionsHandler: YAMLHandler<ParsedActions>;
|
|
6
6
|
export default ActionsHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedAttackProtection = ParsedAsset<'attackProtection', {
|
|
4
4
|
breachedPasswordDetection: Asset;
|
|
5
5
|
bruteForceProtection: Asset;
|
|
6
6
|
suspiciousIpThrottling: Asset;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type BrandingTemplate = {
|
|
4
4
|
template: string;
|
|
5
5
|
body: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type ParsedBranding = ParsedAsset<'branding', {
|
|
8
8
|
[key: string]: Asset;
|
|
9
9
|
} & {
|
|
10
10
|
templates?: BrandingTemplate[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedClientGrants = ParsedAsset<'clientGrants', Asset[]>;
|
|
4
4
|
declare const clientGrantsHandler: YAMLHandler<ParsedClientGrants>;
|
|
5
5
|
export default clientGrantsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedClients = ParsedAsset<'clients', Asset[]>;
|
|
4
4
|
declare const clientsHandler: YAMLHandler<ParsedClients>;
|
|
5
5
|
export default clientsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedConnections = ParsedAsset<'connections', Asset[]>;
|
|
4
4
|
declare const connectionsHandler: YAMLHandler<ParsedConnections>;
|
|
5
5
|
export default connectionsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedCustomDomains = ParsedAsset<'customDomains', Asset[]>;
|
|
4
4
|
declare const customDomainsHandler: YAMLHandler<ParsedCustomDomains>;
|
|
5
5
|
export default customDomainsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedDatabases = ParsedAsset<'databases', Asset[]>;
|
|
4
4
|
declare const databasesHandler: YAMLHandler<ParsedDatabases>;
|
|
5
5
|
export default databasesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedEmailProvider = ParsedAsset<'emailProvider', Asset>;
|
|
4
4
|
declare const emailProviderHandler: YAMLHandler<ParsedEmailProvider>;
|
|
5
5
|
export default emailProviderHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedEmailTemplates = ParsedAsset<'emailTemplates', Asset[]>;
|
|
4
4
|
declare const emailTemplatesHandler: YAMLHandler<ParsedEmailTemplates>;
|
|
5
5
|
export default emailTemplatesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianFactorProviders = ParsedAsset<'guardianFactorProviders', Asset[]>;
|
|
4
4
|
declare const guardianFactorProvidersHandler: YAMLHandler<ParsedGuardianFactorProviders>;
|
|
5
5
|
export default guardianFactorProvidersHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianFactorTemplates = ParsedAsset<'guardianFactorTemplates', Asset[]>;
|
|
4
4
|
declare const guardianFactorTemplatesHandler: YAMLHandler<ParsedGuardianFactorTemplates>;
|
|
5
5
|
export default guardianFactorTemplatesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianFactors = ParsedAsset<'guardianFactors', Asset[]>;
|
|
4
4
|
declare const guardianFactorsHandler: YAMLHandler<ParsedGuardianFactors>;
|
|
5
5
|
export default guardianFactorsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianFactorMessageTypes = ParsedAsset<'guardianPhoneFactorMessageTypes', Asset>;
|
|
4
4
|
declare const guardianPhoneFactorMessageTypesHandler: YAMLHandler<ParsedGuardianFactorMessageTypes>;
|
|
5
5
|
export default guardianPhoneFactorMessageTypesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianPhoneFactorSelectedProvider = ParsedAsset<'guardianPhoneFactorSelectedProvider', Asset>;
|
|
4
4
|
declare const guardianPhoneFactorSelectedProviderHandler: YAMLHandler<ParsedGuardianPhoneFactorSelectedProvider>;
|
|
5
5
|
export default guardianPhoneFactorSelectedProviderHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedGuardianPolicies = ParsedAsset<'guardianPolicies', {
|
|
4
4
|
policies: Asset[];
|
|
5
5
|
}>;
|
|
6
6
|
declare const guardianPoliciesHandler: YAMLHandler<ParsedGuardianPolicies>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedHooks = ParsedAsset<'hooks', Asset[]>;
|
|
4
4
|
declare const hooksHandler: YAMLHandler<ParsedHooks>;
|
|
5
5
|
export default hooksHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedLogStreams = ParsedAsset<'logStreams', Asset[]>;
|
|
4
4
|
declare const logStreamsHandler: YAMLHandler<ParsedLogStreams>;
|
|
5
5
|
export default logStreamsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedMigrations = ParsedAsset<'migrations', Asset[]>;
|
|
4
4
|
declare const migrationsHandler: YAMLHandler<ParsedMigrations>;
|
|
5
5
|
export default migrationsHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { ParsedAsset } from '../../../types';
|
|
3
3
|
import { Page } from '../../../tools/auth0/handlers/pages';
|
|
4
|
-
|
|
4
|
+
type ParsedPages = ParsedAsset<'pages', Page[]>;
|
|
5
5
|
declare const pagesHandler: YAMLHandler<ParsedPages>;
|
|
6
6
|
export default pagesHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { ParsedAsset } from '../../../types';
|
|
3
3
|
import { Prompts } from '../../../tools/auth0/handlers/prompts';
|
|
4
|
-
|
|
4
|
+
type ParsedPrompts = ParsedAsset<'prompts', Prompts>;
|
|
5
5
|
declare const promptsHandler: YAMLHandler<ParsedPrompts>;
|
|
6
6
|
export default promptsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedResourceServers = ParsedAsset<'resourceServers', Asset[]>;
|
|
4
4
|
declare const resourceServersHandler: YAMLHandler<ParsedResourceServers>;
|
|
5
5
|
export default resourceServersHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedRoles = ParsedAsset<'roles', Asset[]>;
|
|
4
4
|
declare const rolesHandler: YAMLHandler<ParsedRoles>;
|
|
5
5
|
export default rolesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedRules = ParsedAsset<'rules', Asset[]>;
|
|
4
4
|
declare const rulesHandler: YAMLHandler<ParsedRules>;
|
|
5
5
|
export default rulesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedRulesConfigs = ParsedAsset<'rulesConfigs', Asset[]>;
|
|
4
4
|
declare const rulesConfigsHandler: YAMLHandler<ParsedRulesConfigs>;
|
|
5
5
|
export default rulesConfigsHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedTenant = ParsedAsset<'tenant', Asset>;
|
|
4
4
|
declare const tenantHandler: YAMLHandler<ParsedTenant>;
|
|
5
5
|
export default tenantHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { ParsedAsset } from '../../../types';
|
|
3
3
|
import { Theme } from '../../../tools/auth0/handlers/themes';
|
|
4
|
-
|
|
4
|
+
type ParsedThemes = ParsedAsset<'themes', Theme[]>;
|
|
5
5
|
declare const themesHandler: YAMLHandler<ParsedThemes>;
|
|
6
6
|
export default themesHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { YAMLHandler } from '.';
|
|
2
2
|
import { Asset, ParsedAsset } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type ParsedTriggers = ParsedAsset<'triggers', Asset[]>;
|
|
4
4
|
declare const triggersHandler: YAMLHandler<ParsedTriggers>;
|
|
5
5
|
export default triggersHandler;
|
|
@@ -20,6 +20,7 @@ const logger_1 = __importDefault(require("../../logger"));
|
|
|
20
20
|
const utils_1 = require("../../utils");
|
|
21
21
|
const handlers_1 = __importDefault(require("./handlers"));
|
|
22
22
|
const readonly_1 = __importDefault(require("../../readonly"));
|
|
23
|
+
const __1 = require("..");
|
|
23
24
|
class YAMLContext {
|
|
24
25
|
constructor(config, mgmtClient) {
|
|
25
26
|
this.configFile = config.AUTH0_INPUT_FILE;
|
|
@@ -69,13 +70,18 @@ class YAMLContext {
|
|
|
69
70
|
throw new Error(`Problem loading ${this.configFile}\n${err}`);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
this.assets = Object.keys(this.assets).reduce((acc, key) => {
|
|
73
74
|
const excludedAssetTypes = this.config.AUTH0_EXCLUDED || [];
|
|
74
75
|
if (excludedAssetTypes.includes(key))
|
|
75
76
|
return acc;
|
|
76
77
|
return Object.assign(Object.assign({}, acc), { [key]: this.assets[key] });
|
|
77
78
|
}, {});
|
|
78
|
-
this.assets =
|
|
79
|
+
this.assets = Object.keys(this.assets).reduce((acc, key) => {
|
|
80
|
+
const includedAssetTypes = this.config.AUTH0_INCLUDED_ONLY;
|
|
81
|
+
if (includedAssetTypes !== undefined && !includedAssetTypes.includes(key))
|
|
82
|
+
return acc;
|
|
83
|
+
return Object.assign(Object.assign({}, acc), { [key]: this.assets[key] });
|
|
84
|
+
}, {});
|
|
79
85
|
// Run initial schema check to ensure valid YAML
|
|
80
86
|
const auth0 = new tools_1.Auth0(this.mgmtClient, this.assets, (0, utils_1.toConfigFn)(this.config));
|
|
81
87
|
yield auth0.validate();
|
|
@@ -114,6 +120,7 @@ class YAMLContext {
|
|
|
114
120
|
const excludedAssetTypes = this.config.AUTH0_EXCLUDED || [];
|
|
115
121
|
return !excludedAssetTypes.includes(handlerName);
|
|
116
122
|
})
|
|
123
|
+
.filter((0, __1.filterOnlyIncludedResourceTypes)(this.config.AUTH0_INCLUDED_ONLY))
|
|
117
124
|
.map(([name, handler]) => __awaiter(this, void 0, void 0, function* () {
|
|
118
125
|
try {
|
|
119
126
|
const data = yield handler.dump(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/yaml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,sDAA2B;AAC3B,gDAAwB;AACxB,uCAAgF;AAEhF,0DAA+B;AAC/B,uCAAiG;AACjG,0DAAmD;AACnD,8DAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/yaml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,sDAA2B;AAC3B,gDAAwB;AACxB,uCAAgF;AAEhF,0DAA+B;AAC/B,uCAAiG;AACjG,0DAAmD;AACnD,8DAAyC;AAEzC,0BAAqD;AAErD,MAAqB,WAAW;IAQ9B,YAAY,MAAc,EAAE,UAAU;QACpC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,8BAA8B,IAAI,EAAE,CAAC;QAC5D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAE7B,mEAAmE;QACnE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,qBAAqB;QACrB,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG;YACpB,KAAK,E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KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACtB,4IAA4I;YAC5I,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;SACvD;aAAM;YACL,4IAA4I;YAC5I,OAAO,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;SACnD;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,gBAAC,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAC,CAAC,QAAQ,CAAW,CAAC;AACjD,CAAC;AAlBD,8BAkBC"}
|
|
@@ -219,6 +219,9 @@ class ActionHandler extends default_1.default {
|
|
|
219
219
|
if (err.statusCode === 404 || err.statusCode === 501) {
|
|
220
220
|
return null;
|
|
221
221
|
}
|
|
222
|
+
if (err.statusCode === 500 && err.message === 'An internal server error occurred') {
|
|
223
|
+
throw new Error("Cannot process actions because the actions service is currently unavailable. Retrying may result in a successful operation. Alternatively, adding 'actions' to `AUTH0_EXCLUDED` configuration property will provide ability to skip until service is restored to actions service. This is not an issue with the Deploy CLI.");
|
|
224
|
+
}
|
|
222
225
|
if (isActionsDisabled(err)) {
|
|
223
226
|
logger_1.default.info('Skipping actions because it is not enabled.');
|
|
224
227
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,qDAAqD;AACrD,6DAAkC;AAClC,uCAA8C;AAG9C,MAAM,gCAAgC,GAAG,EAAE,CAAC,CAAC,2BAA2B;AA0BxE,mGAAmG;AACtF,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL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AAE,CAAC;gBACrC,OAAO,OAAO,CAAC;YACjB,CAAC,CAAA,CAAC,EAAE,CAAC;YAEL,iBAAiB;YACjB,MAAM,aAAa,GAAG;gBACpB,GAAG,OAAO,CAAC,MAAM;qBACd,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;qBACnC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE;;oBACvB,kCAAkC;oBAClC,MAAM,QAAQ,GAAG,MAAA,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,IAAI,CAAC,CAAC,mBAAmB,EAAE,EAAE;wBAClE,OAAO,mBAAmB,CAAC,IAAI,KAAK,eAAe,CAAC,IAAI,CAAC;oBAC3D,CAAC,CAAC,0CAAE,EAAE,CAAC;oBAEP,MAAM,YAAY,mCACb,eAAe,KAClB,EAAE,EAAE,QAAQ,GACb,CAAC;oBACF,OAAO,YAAY,CAAC;gBACtB,CAAC,CAAC;qBACD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;aACtD,CAAC;YAEF,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC;KAAA;CACF;AA7CO;IADL,IAAA,eAAK,EAAC,IAAI,CAAC;mDA6CX;AAnLH,gCAoLC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Asset, Assets, Auth0APIClient, CalculatedChanges } from '../../../types';
|
|
2
2
|
import { ConfigFunction } from '../../../configFactory';
|
|
3
3
|
export declare function order(value: any): (t: any, n: any, descriptor: any) => any;
|
|
4
|
-
|
|
4
|
+
type ApiMethodOverride = string | Function;
|
|
5
5
|
export default class APIHandler {
|
|
6
6
|
config: ConfigFunction;
|
|
7
7
|
id: string;
|
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.schema = void 0;
|
|
16
16
|
const default_1 = __importDefault(require("./default"));
|
|
17
|
-
const logger_1 = __importDefault(require("../../../logger"));
|
|
18
17
|
exports.schema = { type: 'object' };
|
|
19
18
|
// The Management API requires the fields to be specified
|
|
20
19
|
const defaultFields = ['name', 'enabled', 'credentials', 'settings', 'default_from_address'];
|
|
@@ -45,7 +44,8 @@ class EmailProviderHandler extends default_1.default {
|
|
|
45
44
|
let existing = yield this.getType();
|
|
46
45
|
if (Object.keys(emailProvider).length === 0) {
|
|
47
46
|
if (this.config('AUTH0_ALLOW_DELETE') === true) {
|
|
48
|
-
|
|
47
|
+
yield this.client.emailProvider.delete();
|
|
48
|
+
this.didDelete(existing);
|
|
49
49
|
}
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailProvider.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/emailProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAuC;
|
|
1
|
+
{"version":3,"file":"emailProvider.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/emailProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAuC;AAG1B,QAAA,MAAM,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAEzC,yDAAyD;AACzD,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,sBAAsB,CAAC,CAAC;AAE7F,MAAqB,oBAAqB,SAAQ,iBAAc;IAC9D,YAAY,OAAuB;QACjC,KAAK,iCACA,OAAO,KACV,IAAI,EAAE,eAAe,IACrB,CAAC;IACL,CAAC;IAEK,OAAO;;YACX,IAAI;gBACF,OAAO,MAAM,IAAI,CAAC,MAAM,CAA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AAa,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,CAAC,OAAO,EAAE,CAAC;gBAC9E,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBAChF,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;gBAClB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;aACzB;iBAAM;gBACL,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,CAAC,OAAO,EAAE,CAAC;gBAC9E,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACnF,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;gBAClB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;aACzB;QACH,CAAC;KAAA;CACF;AAzDD,uCAyDC"}
|
|
@@ -31,6 +31,15 @@ export declare const schema: {
|
|
|
31
31
|
required: string[];
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
+
export type LogStream = {
|
|
35
|
+
type: 'eventbridge' | 'eventgrid' | 'datadog' | 'http' | 'splunk' | 'sumo';
|
|
36
|
+
name: string;
|
|
37
|
+
id: string;
|
|
38
|
+
status?: 'active' | 'suspended' | 'paused';
|
|
39
|
+
sink?: {
|
|
40
|
+
[key: string]: string | boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
34
43
|
export default class LogStreamsHandler extends DefaultAPIHandler {
|
|
35
44
|
existing: Asset[] | null;
|
|
36
45
|
constructor(config: DefaultAPIHandler);
|
|
@@ -46,10 +46,13 @@ class LogStreamsHandler extends default_1.default {
|
|
|
46
46
|
if (this.existing) {
|
|
47
47
|
return this.existing;
|
|
48
48
|
}
|
|
49
|
-
const logStreams = yield this.client.logStreams.getAll({ paginate: false })
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
const logStreams = yield this.client.logStreams.getAll({ paginate: false }).then((logStreams) => logStreams.map((logStream) => {
|
|
50
|
+
if (logStream.status === 'suspended')
|
|
51
|
+
delete logStream.status;
|
|
52
|
+
return logStream;
|
|
53
|
+
}));
|
|
54
|
+
this.existing = logStreams;
|
|
55
|
+
return logStreams;
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
processChanges(assets) {
|
|
@@ -58,15 +61,19 @@ class LogStreamsHandler extends default_1.default {
|
|
|
58
61
|
});
|
|
59
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
63
|
const { logStreams } = assets;
|
|
61
|
-
// Do nothing if not set
|
|
62
64
|
if (!logStreams)
|
|
63
65
|
return;
|
|
64
|
-
// Figure out what needs to be updated vs created
|
|
65
66
|
const changes = yield this.calcChanges(assets).then((changes) => {
|
|
66
67
|
return Object.assign(Object.assign({}, changes), { update: changes.update.map((update) => {
|
|
67
68
|
if (update.type === 'eventbridge' || update.type === 'eventgrid') {
|
|
68
69
|
delete update.sink;
|
|
69
70
|
}
|
|
71
|
+
if (update.status === 'suspended') {
|
|
72
|
+
// @ts-ignore because while status is usually expected for update payloads, it is ok to be omitted
|
|
73
|
+
// for suspended log streams. Setting as `active` in these instances would probably be ok
|
|
74
|
+
// but bit presumptuous, let suspended log streams remain suspended.
|
|
75
|
+
delete update.status;
|
|
76
|
+
}
|
|
70
77
|
return update;
|
|
71
78
|
}) });
|
|
72
79
|
});
|