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
@@ -0,0 +1,25 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ name: {
9
+ type: string;
10
+ enum: string[];
11
+ };
12
+ provider: {
13
+ type: string;
14
+ enum: string[];
15
+ };
16
+ };
17
+ required: string[];
18
+ };
19
+ };
20
+ export default class GuardianFactorProvidersHandler extends DefaultHandler {
21
+ existing: Asset[];
22
+ constructor(options: DefaultHandler);
23
+ getType(): Promise<Asset[]>;
24
+ processChanges(assets: Assets): Promise<void>;
25
+ }
@@ -0,0 +1,21 @@
1
+ import DefaultHandler from './default';
2
+ import { Assets, Asset } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ name: {
9
+ type: string;
10
+ enum: string[];
11
+ };
12
+ };
13
+ required: string[];
14
+ };
15
+ };
16
+ export default class GuardianFactorTemplatesHandler extends DefaultHandler {
17
+ existing: Asset[];
18
+ constructor(options: any);
19
+ getType(): Promise<Asset[]>;
20
+ processChanges(assets: Assets): Promise<void>;
21
+ }
@@ -0,0 +1,21 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ name: {
9
+ type: string;
10
+ enum: string[];
11
+ };
12
+ };
13
+ required: string[];
14
+ };
15
+ };
16
+ export default class GuardianFactorsHandler extends DefaultHandler {
17
+ existing: Asset[];
18
+ constructor(options: DefaultHandler);
19
+ getType(): Promise<Asset[]>;
20
+ processChanges(assets: Assets): Promise<void>;
21
+ }
@@ -0,0 +1,21 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ properties: {
6
+ message_types: {
7
+ type: string;
8
+ items: {
9
+ type: string;
10
+ enum: string[];
11
+ };
12
+ };
13
+ };
14
+ additionalProperties: boolean;
15
+ };
16
+ export default class GuardianPhoneMessageTypesHandler extends DefaultHandler {
17
+ existing: Asset[];
18
+ constructor(options: DefaultHandler);
19
+ getType(): Promise<Asset[] | {}>;
20
+ processChanges(assets: Assets): Promise<void>;
21
+ }
@@ -0,0 +1,18 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ properties: {
6
+ provider: {
7
+ type: string;
8
+ enum: string[];
9
+ };
10
+ };
11
+ additionalProperties: boolean;
12
+ };
13
+ export default class GuardianPhoneSelectedProviderHandler extends DefaultHandler {
14
+ existing: Asset[];
15
+ constructor(options: any);
16
+ getType(): Promise<{}>;
17
+ processChanges(assets: Assets): Promise<void>;
18
+ }
@@ -0,0 +1,23 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ properties: {
6
+ policies: {
7
+ type: string;
8
+ items: {
9
+ type: string;
10
+ enum: string[];
11
+ };
12
+ };
13
+ };
14
+ additionalProperties: boolean;
15
+ };
16
+ export default class GuardianPoliciesHandler extends DefaultHandler {
17
+ existing: {
18
+ policies: Asset[];
19
+ };
20
+ constructor(options: any);
21
+ getType(): Promise<GuardianPoliciesHandler['existing'] | {}>;
22
+ processChanges(assets: Assets): Promise<void>;
23
+ }
@@ -0,0 +1,58 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
3
+ export declare const excludeSchema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ };
8
+ };
9
+ export declare const schema: {
10
+ type: string;
11
+ items: {
12
+ type: string;
13
+ default: never[];
14
+ properties: {
15
+ script: {
16
+ type: string;
17
+ description: string;
18
+ default: string;
19
+ };
20
+ name: {
21
+ type: string;
22
+ description: string;
23
+ pattern: string;
24
+ };
25
+ enabled: {
26
+ type: string;
27
+ description: string;
28
+ default: boolean;
29
+ };
30
+ triggerId: {
31
+ type: string;
32
+ description: string;
33
+ enum: string[];
34
+ };
35
+ secrets: {
36
+ type: string;
37
+ description: string;
38
+ default: {};
39
+ };
40
+ dependencies: {
41
+ type: string;
42
+ default: {};
43
+ description: string;
44
+ };
45
+ };
46
+ required: string[];
47
+ };
48
+ };
49
+ export default class HooksHandler extends DefaultHandler {
50
+ existing: Asset[];
51
+ constructor(options: DefaultHandler);
52
+ objString(hook: any): string;
53
+ processSecrets(hooks: any): Promise<void>;
54
+ getType(reload: boolean): Promise<Asset[]>;
55
+ calcChanges(assets: Assets): Promise<CalculatedChanges>;
56
+ validate(assets: any): Promise<void>;
57
+ processChanges(assets: Assets): Promise<void>;
58
+ }
@@ -0,0 +1,129 @@
1
+ import APIHandler from './default';
2
+ declare const _default: {
3
+ rules: {
4
+ default: typeof APIHandler;
5
+ excludeSchema?: any;
6
+ schema: any;
7
+ };
8
+ rulesConfigs: {
9
+ default: typeof APIHandler;
10
+ excludeSchema?: any;
11
+ schema: any;
12
+ };
13
+ hooks: {
14
+ default: typeof APIHandler;
15
+ excludeSchema?: any;
16
+ schema: any;
17
+ };
18
+ pages: {
19
+ default: typeof APIHandler;
20
+ excludeSchema?: any;
21
+ schema: any;
22
+ };
23
+ databases: {
24
+ default: typeof APIHandler;
25
+ excludeSchema?: any;
26
+ schema: any;
27
+ };
28
+ clientGrants: {
29
+ default: typeof APIHandler;
30
+ excludeSchema?: any;
31
+ schema: any;
32
+ };
33
+ resourceServers: {
34
+ default: typeof APIHandler;
35
+ excludeSchema?: any;
36
+ schema: any;
37
+ };
38
+ clients: {
39
+ default: typeof APIHandler;
40
+ excludeSchema?: any;
41
+ schema: any;
42
+ };
43
+ connections: {
44
+ default: typeof APIHandler;
45
+ excludeSchema?: any;
46
+ schema: any;
47
+ };
48
+ tenant: {
49
+ default: typeof APIHandler;
50
+ excludeSchema?: any;
51
+ schema: any;
52
+ };
53
+ emailProvider: {
54
+ default: typeof APIHandler;
55
+ excludeSchema?: any;
56
+ schema: any;
57
+ };
58
+ emailTemplates: {
59
+ default: typeof APIHandler;
60
+ excludeSchema?: any;
61
+ schema: any;
62
+ };
63
+ guardianFactors: {
64
+ default: typeof APIHandler;
65
+ excludeSchema?: any;
66
+ schema: any;
67
+ };
68
+ guardianFactorProviders: {
69
+ default: typeof APIHandler;
70
+ excludeSchema?: any;
71
+ schema: any;
72
+ };
73
+ guardianFactorTemplates: {
74
+ default: typeof APIHandler;
75
+ excludeSchema?: any;
76
+ schema: any;
77
+ };
78
+ migrations: {
79
+ default: typeof APIHandler;
80
+ excludeSchema?: any;
81
+ schema: any;
82
+ };
83
+ guardianPhoneFactorMessageTypes: {
84
+ default: typeof APIHandler;
85
+ excludeSchema?: any;
86
+ schema: any;
87
+ };
88
+ guardianPhoneFactorSelectedProvider: {
89
+ default: typeof APIHandler;
90
+ excludeSchema?: any;
91
+ schema: any;
92
+ };
93
+ guardianPolicies: {
94
+ default: typeof APIHandler;
95
+ excludeSchema?: any;
96
+ schema: any;
97
+ };
98
+ roles: {
99
+ default: typeof APIHandler;
100
+ excludeSchema?: any;
101
+ schema: any;
102
+ };
103
+ actions: {
104
+ default: typeof APIHandler;
105
+ excludeSchema?: any;
106
+ schema: any;
107
+ };
108
+ organizations: {
109
+ default: typeof APIHandler;
110
+ excludeSchema?: any;
111
+ schema: any;
112
+ };
113
+ triggers: {
114
+ default: typeof APIHandler;
115
+ excludeSchema?: any;
116
+ schema: any;
117
+ };
118
+ attackProtection: {
119
+ default: typeof APIHandler;
120
+ excludeSchema?: any;
121
+ schema: any;
122
+ };
123
+ branding: {
124
+ default: typeof APIHandler;
125
+ excludeSchema?: any;
126
+ schema: any;
127
+ };
128
+ };
129
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ additionalProperties: {
6
+ type: string;
7
+ };
8
+ };
9
+ export default class MigrationsHandler extends DefaultHandler {
10
+ constructor(options: DefaultHandler);
11
+ getType(): Promise<Asset[] | {}>;
12
+ processChanges(assets: Assets): Promise<void>;
13
+ logUnavailableMigrations(ignoreUnavailableMigrations: boolean, ignoredMigrations: string[]): void;
14
+ removeUnavailableMigrations(migrations: Asset[]): Promise<Asset[]>;
15
+ }
@@ -43,7 +43,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
44
  exports.schema = void 0;
45
45
  const default_1 = __importStar(require("./default"));
46
- const logger_1 = __importDefault(require("../../logger"));
46
+ const logger_1 = __importDefault(require("../../../logger"));
47
47
  exports.schema = {
48
48
  type: 'object',
49
49
  additionalProperties: { type: 'boolean' },
@@ -0,0 +1,51 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ name: {
9
+ type: string;
10
+ };
11
+ display_name: {
12
+ type: string;
13
+ };
14
+ branding: {
15
+ type: string;
16
+ };
17
+ metadata: {
18
+ type: string;
19
+ };
20
+ connections: {
21
+ type: string;
22
+ items: {
23
+ type: string;
24
+ properties: {
25
+ connection_id: {
26
+ type: string;
27
+ };
28
+ assign_membership_on_login: {
29
+ type: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ };
35
+ required: string[];
36
+ };
37
+ };
38
+ export default class OrganizationsHandler extends DefaultHandler {
39
+ existing: Asset[];
40
+ constructor(config: DefaultHandler);
41
+ deleteOrganization(org: any): Promise<void>;
42
+ deleteOrganizations(data: any): Promise<void>;
43
+ createOrganization(org: any): Promise<Asset>;
44
+ createOrganizations(creates: CalculatedChanges['create']): Promise<void>;
45
+ updateOrganization(org: any, organizations: any): Promise<{
46
+ id: any;
47
+ }>;
48
+ updateOrganizations(updates: CalculatedChanges['update'], orgs: Asset[]): Promise<void>;
49
+ getType(): Promise<Asset[]>;
50
+ processChanges(assets: Assets): Promise<void>;
51
+ }
@@ -45,7 +45,7 @@ exports.schema = void 0;
45
45
  const lodash_1 = __importDefault(require("lodash"));
46
46
  const default_1 = __importStar(require("./default"));
47
47
  const calculateChanges_1 = require("../../calculateChanges");
48
- const logger_1 = __importDefault(require("../../logger"));
48
+ const logger_1 = __importDefault(require("../../../logger"));
49
49
  exports.schema = {
50
50
  type: 'array',
51
51
  items: {
@@ -0,0 +1,42 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const supportedPages: string[];
4
+ export declare const pageNameMap: {
5
+ guardian_multifactor: string;
6
+ password_reset: string;
7
+ error_page: string;
8
+ };
9
+ export declare const schema: {
10
+ type: string;
11
+ items: {
12
+ type: string;
13
+ properties: {
14
+ name: {
15
+ type: string;
16
+ enum: string[];
17
+ };
18
+ html: {
19
+ type: string;
20
+ default: string;
21
+ };
22
+ url: {
23
+ type: string;
24
+ };
25
+ show_log_link: {
26
+ type: string;
27
+ };
28
+ enabled: {
29
+ type: string;
30
+ };
31
+ };
32
+ required: string[];
33
+ };
34
+ };
35
+ export default class PagesHandler extends DefaultHandler {
36
+ constructor(options: DefaultHandler);
37
+ objString(page: any): string;
38
+ updateLoginPage(page: any): Promise<void>;
39
+ updatePages(pages: Asset[]): Promise<void>;
40
+ getType(): Promise<Asset[]>;
41
+ processChanges(assets: Assets): Promise<void>;
42
+ }
@@ -0,0 +1,11 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ };
6
+ export default class PromptsHandler extends DefaultHandler {
7
+ existing: Asset[];
8
+ constructor(options: DefaultHandler);
9
+ getType(): Promise<Asset[]>;
10
+ processChanges(assets: Assets): Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
3
+ export declare const excludeSchema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ };
8
+ };
9
+ export declare const schema: {
10
+ type: string;
11
+ items: {
12
+ type: string;
13
+ properties: {
14
+ name: {
15
+ type: string;
16
+ };
17
+ identifier: {
18
+ type: string;
19
+ };
20
+ scopes: {
21
+ type: string;
22
+ items: {
23
+ type: string;
24
+ properties: {
25
+ name: {
26
+ type: string;
27
+ };
28
+ description: {
29
+ type: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ enforce_policies: {
35
+ type: string;
36
+ };
37
+ token_dialect: {
38
+ type: string;
39
+ };
40
+ };
41
+ required: string[];
42
+ };
43
+ };
44
+ export default class ResourceServersHandler extends DefaultHandler {
45
+ existing: Asset[];
46
+ constructor(options: DefaultHandler);
47
+ objString(resourceServer: any): string;
48
+ getType(): Promise<Asset[]>;
49
+ calcChanges(assets: Assets): Promise<CalculatedChanges>;
50
+ validate(assets: Assets): Promise<void>;
51
+ }
@@ -0,0 +1,48 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ name: {
9
+ type: string;
10
+ };
11
+ id: {
12
+ type: string;
13
+ };
14
+ description: {
15
+ type: string;
16
+ };
17
+ permissions: {
18
+ type: string;
19
+ items: {
20
+ type: string;
21
+ properties: {
22
+ permission_name: {
23
+ type: string;
24
+ };
25
+ resource_server_identifier: {
26
+ type: string;
27
+ };
28
+ };
29
+ };
30
+ };
31
+ };
32
+ required: string[];
33
+ };
34
+ };
35
+ export default class RolesHandler extends DefaultHandler {
36
+ existing: Asset[];
37
+ constructor(config: DefaultHandler);
38
+ createRole(data: any): Promise<Asset>;
39
+ createRoles(creates: CalculatedChanges['create']): Promise<void>;
40
+ deleteRole(data: any): Promise<void>;
41
+ deleteRoles(dels: CalculatedChanges['del']): Promise<void>;
42
+ updateRole(data: any, roles: any): Promise<{
43
+ id: any;
44
+ }>;
45
+ updateRoles(updates: CalculatedChanges['update'], roles: any): Promise<void>;
46
+ getType(): Promise<Asset[]>;
47
+ processChanges(assets: Assets): Promise<void>;
48
+ }
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
44
44
  exports.schema = void 0;
45
45
  const default_1 = __importStar(require("./default"));
46
46
  const calculateChanges_1 = require("../../calculateChanges");
47
- const logger_1 = __importDefault(require("../../logger"));
47
+ const logger_1 = __importDefault(require("../../../logger"));
48
48
  exports.schema = {
49
49
  type: 'array',
50
50
  items: {
@@ -0,0 +1,55 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
3
+ export declare const excludeSchema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ };
8
+ };
9
+ export declare const schema: {
10
+ type: string;
11
+ items: {
12
+ type: string;
13
+ default: never[];
14
+ properties: {
15
+ script: {
16
+ type: string;
17
+ description: string;
18
+ default: string;
19
+ };
20
+ name: {
21
+ type: string;
22
+ description: string;
23
+ pattern: string;
24
+ };
25
+ order: {
26
+ type: string[];
27
+ description: string;
28
+ default: null;
29
+ };
30
+ enabled: {
31
+ type: string;
32
+ description: string;
33
+ default: boolean;
34
+ };
35
+ stage: {
36
+ type: string;
37
+ description: string;
38
+ default: string;
39
+ enum: string[];
40
+ };
41
+ };
42
+ required: string[];
43
+ };
44
+ };
45
+ export default class RulesHandler extends DefaultHandler {
46
+ existing: Asset[];
47
+ constructor(options: DefaultHandler);
48
+ getType(): Promise<Asset[]>;
49
+ objString(rule: any): string;
50
+ calcChanges(assets: any, includeExcluded?: boolean): Promise<CalculatedChanges & {
51
+ reOrder: Asset[];
52
+ }>;
53
+ validate(assets: Assets): Promise<void>;
54
+ processChanges(assets: Assets): Promise<void>;
55
+ }
@@ -16,7 +16,7 @@ exports.schema = exports.excludeSchema = void 0;
16
16
  const validationError_1 = __importDefault(require("../../validationError"));
17
17
  const utils_1 = require("../../utils");
18
18
  const default_1 = __importDefault(require("./default"));
19
- const logger_1 = __importDefault(require("../../logger"));
19
+ const logger_1 = __importDefault(require("../../../logger"));
20
20
  const calculateChanges_1 = require("../../calculateChanges");
21
21
  exports.excludeSchema = {
22
22
  type: 'array',
@@ -0,0 +1,25 @@
1
+ import { Assets, Asset, CalculatedChanges } from '../../../types';
2
+ import DefaultHandler from './default';
3
+ export declare const schema: {
4
+ type: string;
5
+ items: {
6
+ type: string;
7
+ properties: {
8
+ key: {
9
+ type: string;
10
+ pattern: string;
11
+ };
12
+ value: {
13
+ type: string;
14
+ };
15
+ };
16
+ required: string[];
17
+ };
18
+ additionalProperties: boolean;
19
+ };
20
+ export default class RulesConfigsHandler extends DefaultHandler {
21
+ constructor(options: DefaultHandler);
22
+ getType(): Promise<Asset[]>;
23
+ objString(item: any): string;
24
+ calcChanges(assets: Assets): Promise<CalculatedChanges>;
25
+ }
@@ -0,0 +1,11 @@
1
+ import DefaultHandler from './default';
2
+ import { Asset, Assets } from '../../../types';
3
+ export declare const schema: {
4
+ type: string;
5
+ };
6
+ export default class TenantHandler extends DefaultHandler {
7
+ constructor(options: DefaultHandler);
8
+ getType(): Promise<Asset>;
9
+ validate(assets: Assets): Promise<void>;
10
+ processChanges(assets: Assets): Promise<void>;
11
+ }