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.
Files changed (121) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/lib/args.d.ts +29 -0
  3. package/lib/commands/export.d.ts +2 -0
  4. package/lib/commands/import.d.ts +2 -0
  5. package/lib/commands/index.d.ts +9 -0
  6. package/lib/configFactory.d.ts +7 -0
  7. package/lib/context/defaults.d.ts +1 -0
  8. package/lib/context/directory/handlers/actions.d.ts +6 -0
  9. package/lib/context/directory/handlers/attackProtection.d.ts +10 -0
  10. package/lib/context/directory/handlers/branding.d.ts +6 -0
  11. package/lib/context/directory/handlers/clientGrants.d.ts +6 -0
  12. package/lib/context/directory/handlers/clients.d.ts +6 -0
  13. package/lib/context/directory/handlers/connections.d.ts +6 -0
  14. package/lib/context/directory/handlers/databases.d.ts +6 -0
  15. package/lib/context/directory/handlers/emailProvider.d.ts +6 -0
  16. package/lib/context/directory/handlers/emailTemplates.d.ts +6 -0
  17. package/lib/context/directory/handlers/guardianFactorProviders.d.ts +6 -0
  18. package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +6 -0
  19. package/lib/context/directory/handlers/guardianFactors.d.ts +6 -0
  20. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
  21. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
  22. package/lib/context/directory/handlers/guardianPolicies.d.ts +6 -0
  23. package/lib/context/directory/handlers/hooks.d.ts +6 -0
  24. package/lib/context/directory/handlers/index.d.ts +12 -0
  25. package/lib/context/directory/handlers/migrations.d.ts +6 -0
  26. package/lib/context/directory/handlers/organizations.d.ts +6 -0
  27. package/lib/context/directory/handlers/pages.d.ts +6 -0
  28. package/lib/context/directory/handlers/resourceServers.d.ts +6 -0
  29. package/lib/context/directory/handlers/roles.d.ts +6 -0
  30. package/lib/context/directory/handlers/rules.d.ts +6 -0
  31. package/lib/context/directory/handlers/rulesConfigs.d.ts +6 -0
  32. package/lib/context/directory/handlers/tenant.d.ts +10 -0
  33. package/lib/context/directory/handlers/triggers.d.ts +6 -0
  34. package/lib/context/directory/index.d.ts +17 -0
  35. package/lib/context/index.d.ts +4 -0
  36. package/lib/context/yaml/handlers/actions.d.ts +6 -0
  37. package/lib/context/yaml/handlers/attackProtection.d.ts +6 -0
  38. package/lib/context/yaml/handlers/branding.d.ts +6 -0
  39. package/lib/context/yaml/handlers/clientGrants.d.ts +6 -0
  40. package/lib/context/yaml/handlers/clients.d.ts +6 -0
  41. package/lib/context/yaml/handlers/connections.d.ts +6 -0
  42. package/lib/context/yaml/handlers/databases.d.ts +6 -0
  43. package/lib/context/yaml/handlers/emailProvider.d.ts +6 -0
  44. package/lib/context/yaml/handlers/emailTemplates.d.ts +6 -0
  45. package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +6 -0
  46. package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +6 -0
  47. package/lib/context/yaml/handlers/guardianFactors.d.ts +6 -0
  48. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
  49. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
  50. package/lib/context/yaml/handlers/guardianPolicies.d.ts +6 -0
  51. package/lib/context/yaml/handlers/hooks.d.ts +6 -0
  52. package/lib/context/yaml/handlers/index.d.ts +12 -0
  53. package/lib/context/yaml/handlers/migrations.d.ts +6 -0
  54. package/lib/context/yaml/handlers/organizations.d.ts +6 -0
  55. package/lib/context/yaml/handlers/pages.d.ts +6 -0
  56. package/lib/context/yaml/handlers/resourceServers.d.ts +6 -0
  57. package/lib/context/yaml/handlers/roles.d.ts +6 -0
  58. package/lib/context/yaml/handlers/rules.d.ts +6 -0
  59. package/lib/context/yaml/handlers/rulesConfigs.d.ts +6 -0
  60. package/lib/context/yaml/handlers/tenant.d.ts +6 -0
  61. package/lib/context/yaml/handlers/triggers.d.ts +6 -0
  62. package/lib/context/yaml/index.d.ts +13 -0
  63. package/lib/index.d.ts +88 -0
  64. package/lib/index.js +5 -2
  65. package/lib/logger.d.ts +2 -0
  66. package/lib/logger.js +7 -17
  67. package/lib/readonly.d.ts +2 -0
  68. package/lib/sessionDurationsToMinutes.d.ts +7 -0
  69. package/lib/tools/auth0/client.d.ts +2 -0
  70. package/lib/tools/auth0/handlers/actions.d.ts +95 -0
  71. package/lib/tools/auth0/handlers/actions.js +1 -1
  72. package/lib/tools/auth0/handlers/attackProtection.d.ts +28 -0
  73. package/lib/tools/auth0/handlers/branding.d.ts +27 -0
  74. package/lib/tools/auth0/handlers/clientGrants.d.ts +32 -0
  75. package/lib/tools/auth0/handlers/clients.d.ts +23 -0
  76. package/lib/tools/auth0/handlers/connections.d.ts +54 -0
  77. package/lib/tools/auth0/handlers/databases.d.ts +36 -0
  78. package/lib/tools/auth0/handlers/default.d.ts +54 -0
  79. package/lib/tools/auth0/handlers/default.js +22 -8
  80. package/lib/tools/auth0/handlers/emailProvider.d.ts +11 -0
  81. package/lib/tools/auth0/handlers/emailTemplates.d.ts +26 -0
  82. package/lib/tools/auth0/handlers/guardianFactorProviders.d.ts +25 -0
  83. package/lib/tools/auth0/handlers/guardianFactorTemplates.d.ts +21 -0
  84. package/lib/tools/auth0/handlers/guardianFactors.d.ts +21 -0
  85. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.d.ts +21 -0
  86. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.d.ts +18 -0
  87. package/lib/tools/auth0/handlers/guardianPolicies.d.ts +23 -0
  88. package/lib/tools/auth0/handlers/hooks.d.ts +58 -0
  89. package/lib/tools/auth0/handlers/index.d.ts +129 -0
  90. package/lib/tools/auth0/handlers/migrations.d.ts +15 -0
  91. package/lib/tools/auth0/handlers/migrations.js +1 -1
  92. package/lib/tools/auth0/handlers/organizations.d.ts +51 -0
  93. package/lib/tools/auth0/handlers/organizations.js +1 -1
  94. package/lib/tools/auth0/handlers/pages.d.ts +42 -0
  95. package/lib/tools/auth0/handlers/prompts.d.ts +11 -0
  96. package/lib/tools/auth0/handlers/resourceServers.d.ts +51 -0
  97. package/lib/tools/auth0/handlers/roles.d.ts +48 -0
  98. package/lib/tools/auth0/handlers/roles.js +1 -1
  99. package/lib/tools/auth0/handlers/rules.d.ts +55 -0
  100. package/lib/tools/auth0/handlers/rules.js +1 -1
  101. package/lib/tools/auth0/handlers/rulesConfigs.d.ts +25 -0
  102. package/lib/tools/auth0/handlers/tenant.d.ts +11 -0
  103. package/lib/tools/auth0/handlers/triggers.d.ts +35 -0
  104. package/lib/tools/auth0/handlers/triggers.js +1 -1
  105. package/lib/tools/auth0/index.d.ts +15 -0
  106. package/lib/tools/auth0/schema.d.ts +15 -0
  107. package/lib/tools/calculateChanges.d.ts +26 -0
  108. package/lib/tools/calculateChanges.js +1 -1
  109. package/lib/tools/constants.d.ts +71 -0
  110. package/lib/tools/constants.js +3 -1
  111. package/lib/tools/deploy.d.ts +3 -0
  112. package/lib/tools/deploy.js +2 -2
  113. package/lib/tools/index.d.ts +82 -0
  114. package/lib/tools/utils.d.ts +18 -0
  115. package/lib/tools/utils.js +35 -2
  116. package/lib/tools/validationError.d.ts +5 -0
  117. package/lib/types.d.ts +255 -0
  118. package/lib/utils.d.ts +66 -0
  119. package/package.json +7 -7
  120. package/tsconfig.json +2 -1
  121. 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
- [unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.7.1...HEAD
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,2 @@
1
+ import { ExportParams } from '../args';
2
+ export default function exportCMD(params: ExportParams): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { ImportParams } from '../args';
2
+ export default function importCMD(params: ImportParams): Promise<void>;
@@ -0,0 +1,9 @@
1
+ import importCMD from './import';
2
+ import exportCMD from './export';
3
+ declare const _default: {
4
+ import: typeof importCMD;
5
+ export: typeof exportCMD;
6
+ deploy: typeof importCMD;
7
+ dump: typeof exportCMD;
8
+ };
9
+ export default _default;
@@ -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,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedActions = {
3
+ actions: unknown[] | undefined;
4
+ };
5
+ declare const actionsHandler: DirectoryHandler<ParsedActions>;
6
+ export default actionsHandler;
@@ -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 ParsedBranding = {
3
+ branding: unknown | undefined;
4
+ };
5
+ declare const brandingHandler: DirectoryHandler<ParsedBranding>;
6
+ export default brandingHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedClientGrants = {
3
+ clientGrants: unknown[] | undefined;
4
+ };
5
+ declare const clientGrantsHandler: DirectoryHandler<ParsedClientGrants>;
6
+ export default clientGrantsHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedClients = {
3
+ clients: unknown | undefined;
4
+ };
5
+ declare const clientsHandler: DirectoryHandler<ParsedClients>;
6
+ export default clientsHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedConnections = {
3
+ connections: unknown[] | undefined;
4
+ };
5
+ declare const connectionsHandler: DirectoryHandler<ParsedConnections>;
6
+ export default connectionsHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedDatabases = {
3
+ databases: unknown[] | undefined;
4
+ };
5
+ declare const databasesHandler: DirectoryHandler<ParsedDatabases>;
6
+ export default databasesHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedEmailProvider = {
3
+ emailProvider: unknown;
4
+ } | {};
5
+ declare const emailProviderHandler: DirectoryHandler<ParsedEmailProvider>;
6
+ export default emailProviderHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedEmailTemplates = {
3
+ emailTemplates: unknown | undefined;
4
+ };
5
+ declare const emailTemplatesHandler: DirectoryHandler<ParsedEmailTemplates>;
6
+ export default emailTemplatesHandler;
@@ -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 ParsedGuardianFactors = {
3
+ guardianFactors: unknown[] | undefined;
4
+ };
5
+ declare const guardianFactorsHandler: DirectoryHandler<ParsedGuardianFactors>;
6
+ export default guardianFactorsHandler;
@@ -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,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedGuardianPolicies = {
3
+ guardianPolicies: unknown[];
4
+ } | {};
5
+ declare const guardianPoliciesHandler: DirectoryHandler<ParsedGuardianPolicies>;
6
+ export default guardianPoliciesHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedHooks = {
3
+ hooks: unknown[] | undefined;
4
+ };
5
+ declare const hooksHandler: DirectoryHandler<ParsedHooks>;
6
+ export default hooksHandler;
@@ -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,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedMigrations = {
3
+ migrations: unknown[];
4
+ } | {};
5
+ declare const migrationsHandler: DirectoryHandler<ParsedMigrations>;
6
+ export default migrationsHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedOrganizations = {
3
+ organizations: unknown[] | undefined;
4
+ };
5
+ declare const organizationsHandler: DirectoryHandler<ParsedOrganizations>;
6
+ export default organizationsHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedPages = {
3
+ pages: unknown[] | undefined;
4
+ };
5
+ declare const pagesHandler: DirectoryHandler<ParsedPages>;
6
+ export default pagesHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedResourceServers = {
3
+ resourceServers: unknown[] | undefined;
4
+ };
5
+ declare const resourceServersHandler: DirectoryHandler<ParsedResourceServers>;
6
+ export default resourceServersHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedRoles = {
3
+ roles: unknown[] | undefined;
4
+ };
5
+ declare const rolesHandler: DirectoryHandler<ParsedRoles>;
6
+ export default rolesHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from './index';
2
+ declare type ParsedRules = {
3
+ rules: unknown[] | undefined;
4
+ };
5
+ declare const rulesHandler: DirectoryHandler<ParsedRules>;
6
+ export default rulesHandler;
@@ -0,0 +1,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedRulesConfigs = {
3
+ rulesConfigs: unknown[] | undefined;
4
+ };
5
+ declare const rulesConfigsHandler: DirectoryHandler<ParsedRulesConfigs>;
6
+ export default rulesConfigsHandler;
@@ -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,6 @@
1
+ import { DirectoryHandler } from '.';
2
+ declare type ParsedTriggers = {
3
+ triggers: unknown[] | undefined;
4
+ };
5
+ declare const triggersHandler: DirectoryHandler<ParsedTriggers>;
6
+ export default triggersHandler;
@@ -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,4 @@
1
+ import YAMLContext from './yaml';
2
+ import DirectoryContext from './directory';
3
+ import { Config } from '../types';
4
+ export declare const setupContext: (config: Config) => Promise<DirectoryContext | YAMLContext>;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedActions = {
3
+ actions: unknown[] | undefined;
4
+ };
5
+ declare const ActionsHandler: YAMLHandler<ParsedActions>;
6
+ export default ActionsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedAttackProtection = {
3
+ attackProtection: unknown;
4
+ };
5
+ declare const attackProtectionHandler: YAMLHandler<ParsedAttackProtection>;
6
+ export default attackProtectionHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedBranding = {
3
+ branding: unknown;
4
+ };
5
+ declare const brandingHandler: YAMLHandler<ParsedBranding>;
6
+ export default brandingHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedClientGrants = {
3
+ clientGrants: unknown[];
4
+ };
5
+ declare const clientGrantsHandler: YAMLHandler<ParsedClientGrants>;
6
+ export default clientGrantsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedClients = {
3
+ clients: unknown[];
4
+ };
5
+ declare const clientsHandler: YAMLHandler<ParsedClients>;
6
+ export default clientsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedConnections = {
3
+ connections: unknown[];
4
+ };
5
+ declare const connectionsHandler: YAMLHandler<ParsedConnections>;
6
+ export default connectionsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedDatabases = {
3
+ databases: unknown[];
4
+ };
5
+ declare const databasesHandler: YAMLHandler<ParsedDatabases | {}>;
6
+ export default databasesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedEmailProvider = {
3
+ emailProvider: unknown;
4
+ };
5
+ declare const emailProviderHandler: YAMLHandler<ParsedEmailProvider>;
6
+ export default emailProviderHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedEmailTemplates = {
3
+ emailTemplates: unknown[];
4
+ };
5
+ declare const emailTemplatesHandler: YAMLHandler<ParsedEmailTemplates>;
6
+ export default emailTemplatesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedGuardianFactorProviders = {
3
+ guardianFactorProviders: unknown[];
4
+ };
5
+ declare const guardianFactorProvidersHandler: YAMLHandler<ParsedGuardianFactorProviders>;
6
+ export default guardianFactorProvidersHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedGuardianFactorTemplates = {
3
+ guardianFactorTemplates: unknown[];
4
+ };
5
+ declare const guardianFactorTemplatesHandler: YAMLHandler<ParsedGuardianFactorTemplates>;
6
+ export default guardianFactorTemplatesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedGuardianFactors = {
3
+ guardianFactors: unknown[];
4
+ };
5
+ declare const guardianFactorsHandler: YAMLHandler<ParsedGuardianFactors>;
6
+ export default guardianFactorsHandler;
@@ -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,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedGuardianPolicies = {
3
+ guardianPolicies: unknown;
4
+ };
5
+ declare const guardianPoliciesHandler: YAMLHandler<ParsedGuardianPolicies>;
6
+ export default guardianPoliciesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedHooks = {
3
+ hooks: unknown[];
4
+ } | {};
5
+ declare const hooksHandler: YAMLHandler<ParsedHooks>;
6
+ export default hooksHandler;
@@ -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,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedMigrations = {
3
+ migrations: unknown[];
4
+ };
5
+ declare const migrationsHandler: YAMLHandler<ParsedMigrations>;
6
+ export default migrationsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedOrganizations = {
3
+ organizations: unknown[];
4
+ };
5
+ declare const organizationsHandler: YAMLHandler<ParsedOrganizations>;
6
+ export default organizationsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedPages = {
3
+ pages: unknown[];
4
+ } | {};
5
+ declare const pagesHandler: YAMLHandler<ParsedPages>;
6
+ export default pagesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedResourceServers = {
3
+ resourceServers: unknown[];
4
+ };
5
+ declare const resourceServersHandler: YAMLHandler<ParsedResourceServers>;
6
+ export default resourceServersHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedRoles = {
3
+ roles: unknown[];
4
+ };
5
+ declare const rolesHandler: YAMLHandler<ParsedRoles>;
6
+ export default rolesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedRules = {
3
+ rules: unknown[];
4
+ } | {};
5
+ declare const rulesHandler: YAMLHandler<ParsedRules>;
6
+ export default rulesHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedRulesConfigs = {
3
+ rulesConfigs: unknown[];
4
+ } | {};
5
+ declare const rulesConfigsHandler: YAMLHandler<ParsedRulesConfigs>;
6
+ export default rulesConfigsHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedTenant = {
3
+ tenant: unknown[];
4
+ } | {};
5
+ declare const tenantHandler: YAMLHandler<ParsedTenant>;
6
+ export default tenantHandler;
@@ -0,0 +1,6 @@
1
+ import { YAMLHandler } from '.';
2
+ declare type ParsedTriggers = {
3
+ triggers: unknown[];
4
+ } | {};
5
+ declare const triggersHandler: YAMLHandler<ParsedTriggers>;
6
+ export default triggersHandler;
@@ -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
+ }