auth0-deploy-cli 8.30.0 → 8.32.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/.circleci/config.yml +17 -5
- package/AGENTS.md +21 -1
- package/CHANGELOG.md +48 -415
- package/CLAUDE.md +3 -0
- package/lib/args.d.ts +5 -0
- package/lib/args.js +23 -0
- package/lib/commands/export.js +5 -1
- package/lib/commands/import.js +40 -3
- package/lib/context/directory/handlers/actions.js +1 -2
- package/lib/context/directory/handlers/clients.js +14 -0
- package/lib/context/directory/handlers/connections.js +1 -0
- package/lib/context/directory/handlers/guardianFactors.js +8 -6
- package/lib/context/directory/handlers/tenant.d.ts +1 -6
- package/lib/context/directory/handlers/tenant.js +0 -1
- package/lib/context/directory/handlers/triggers.js +1 -3
- package/lib/context/index.js +5 -0
- package/lib/context/yaml/handlers/clients.js +12 -0
- package/lib/context/yaml/handlers/connections.js +1 -17
- package/lib/context/yaml/handlers/guardianFactors.js +3 -1
- package/lib/context/yaml/handlers/tenant.js +1 -1
- package/lib/context/yaml/index.js +2 -1
- package/lib/sessionDurationsToMinutes.d.ts +9 -7
- package/lib/sessionDurationsToMinutes.js +11 -10
- package/lib/tools/auth0/handlers/actions.d.ts +1 -0
- package/lib/tools/auth0/handlers/actions.js +36 -0
- package/lib/tools/auth0/handlers/attackProtection.js +15 -0
- package/lib/tools/auth0/handlers/branding.js +7 -0
- package/lib/tools/auth0/handlers/clientGrants.js +32 -4
- package/lib/tools/auth0/handlers/clients.d.ts +52 -2
- package/lib/tools/auth0/handlers/clients.js +175 -22
- package/lib/tools/auth0/handlers/connections.d.ts +1 -1
- package/lib/tools/auth0/handlers/connections.js +42 -6
- package/lib/tools/auth0/handlers/customDomains.d.ts +5 -0
- package/lib/tools/auth0/handlers/customDomains.js +26 -0
- package/lib/tools/auth0/handlers/databases.d.ts +91 -0
- package/lib/tools/auth0/handlers/databases.js +162 -2
- package/lib/tools/auth0/handlers/default.d.ts +4 -0
- package/lib/tools/auth0/handlers/default.js +82 -4
- package/lib/tools/auth0/handlers/emailProvider.js +8 -0
- package/lib/tools/auth0/handlers/emailTemplates.js +7 -0
- package/lib/tools/auth0/handlers/flowVaultConnections.js +6 -1
- package/lib/tools/auth0/handlers/flows.js +13 -4
- package/lib/tools/auth0/handlers/forms.js +10 -1
- package/lib/tools/auth0/handlers/guardianFactors.js +7 -1
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +8 -1
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +8 -1
- package/lib/tools/auth0/handlers/guardianPolicies.js +7 -0
- package/lib/tools/auth0/handlers/hooks.d.ts +1 -0
- package/lib/tools/auth0/handlers/hooks.js +10 -0
- package/lib/tools/auth0/handlers/organizations.d.ts +11 -1
- package/lib/tools/auth0/handlers/organizations.js +48 -52
- package/lib/tools/auth0/handlers/pages.js +7 -0
- package/lib/tools/auth0/handlers/phoneProvider.js +7 -0
- package/lib/tools/auth0/handlers/prompts.js +7 -0
- package/lib/tools/auth0/handlers/resourceServers.d.ts +1 -2
- package/lib/tools/auth0/handlers/resourceServers.js +9 -25
- package/lib/tools/auth0/handlers/roles.js +7 -0
- package/lib/tools/auth0/handlers/rules.d.ts +1 -0
- package/lib/tools/auth0/handlers/rules.js +9 -0
- package/lib/tools/auth0/handlers/rulesConfigs.d.ts +1 -0
- package/lib/tools/auth0/handlers/rulesConfigs.js +3 -0
- package/lib/tools/auth0/handlers/scimHandler.js +8 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +1 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.js +10 -17
- package/lib/tools/auth0/handlers/tenant.d.ts +13 -1
- package/lib/tools/auth0/handlers/tenant.js +48 -4
- package/lib/tools/auth0/handlers/themes.js +11 -2
- package/lib/tools/auth0/handlers/triggers.js +6 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.js +16 -10
- package/lib/tools/auth0/index.d.ts +3 -0
- package/lib/tools/auth0/index.js +204 -0
- package/lib/tools/calculateChanges.d.ts +2 -2
- package/lib/tools/calculateChanges.js +21 -6
- package/lib/tools/calculateDryRunChanges.d.ts +71 -0
- package/lib/tools/calculateDryRunChanges.js +492 -0
- package/lib/tools/deploy.js +25 -1
- package/lib/tools/utils.d.ts +5 -0
- package/lib/tools/utils.js +64 -3
- package/lib/types.d.ts +17 -0
- package/lib/utils.d.ts +7 -0
- package/lib/utils.js +46 -2
- package/package.json +10 -6
package/.circleci/config.yml
CHANGED
|
@@ -6,7 +6,7 @@ orbs:
|
|
|
6
6
|
jobs:
|
|
7
7
|
e2e_test_as_node_module:
|
|
8
8
|
docker:
|
|
9
|
-
- image: cimg/node:22.
|
|
9
|
+
- image: cimg/node:22.19.0
|
|
10
10
|
working_directory: ~/repo
|
|
11
11
|
steps:
|
|
12
12
|
- checkout
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
|
|
16
16
|
e2e_test_as_cli:
|
|
17
17
|
docker:
|
|
18
|
-
- image: cimg/node:22.
|
|
18
|
+
- image: cimg/node:22.19.0
|
|
19
19
|
working_directory: ~/repo
|
|
20
20
|
steps:
|
|
21
21
|
- checkout
|
|
@@ -45,21 +45,31 @@ jobs:
|
|
|
45
45
|
- run: npm run test:coverage
|
|
46
46
|
- persist_to_workspace:
|
|
47
47
|
root: ~/repo
|
|
48
|
-
paths:
|
|
48
|
+
paths:
|
|
49
|
+
- .
|
|
49
50
|
- codecov/upload
|
|
50
51
|
|
|
51
52
|
does_typescript_compile:
|
|
52
53
|
docker:
|
|
53
|
-
- image: cimg/node:22.
|
|
54
|
+
- image: cimg/node:22.19.0
|
|
54
55
|
working_directory: ~/repo
|
|
55
56
|
steps:
|
|
56
57
|
- checkout
|
|
57
58
|
- run: npm i
|
|
58
59
|
- run: npx tsc --noEmit
|
|
59
60
|
|
|
61
|
+
does_format_pass:
|
|
62
|
+
docker:
|
|
63
|
+
- image: cimg/node:22.19.0
|
|
64
|
+
working_directory: ~/repo
|
|
65
|
+
steps:
|
|
66
|
+
- checkout
|
|
67
|
+
- run: npm i
|
|
68
|
+
- run: npm run format:check
|
|
69
|
+
|
|
60
70
|
does_lint_pass:
|
|
61
71
|
docker:
|
|
62
|
-
- image: cimg/node:22.
|
|
72
|
+
- image: cimg/node:22.19.0
|
|
63
73
|
working_directory: ~/repo
|
|
64
74
|
steps:
|
|
65
75
|
- checkout
|
|
@@ -83,6 +93,8 @@ workflows:
|
|
|
83
93
|
jobs:
|
|
84
94
|
- does_typescript_compile:
|
|
85
95
|
name: Does Typescript compile?
|
|
96
|
+
- does_format_pass:
|
|
97
|
+
name: Does format pass?
|
|
86
98
|
- does_lint_pass:
|
|
87
99
|
name: Does lint pass?
|
|
88
100
|
- unit_test:
|
package/AGENTS.md
CHANGED
|
@@ -63,7 +63,7 @@ npm run build && node lib/index.js import -c config-dev.json -i ./local-export/t
|
|
|
63
63
|
|
|
64
64
|
### File Structure
|
|
65
65
|
|
|
66
|
-
```
|
|
66
|
+
```text
|
|
67
67
|
src/ # TypeScript source
|
|
68
68
|
├── index.ts # CLI entry point
|
|
69
69
|
├── commands/ # import.ts, export.ts
|
|
@@ -225,6 +225,26 @@ npm run lint
|
|
|
225
225
|
- [ ] Tested with both YAML and directory formats if applicable
|
|
226
226
|
- [ ] Checked backward compatibility
|
|
227
227
|
|
|
228
|
+
### Checklist for Every Feature or Fix
|
|
229
|
+
|
|
230
|
+
#### Completion
|
|
231
|
+
|
|
232
|
+
- [ ] Change is complete and matches the intended feature or fix
|
|
233
|
+
- [ ] TypeScript compiles and tests pass locally
|
|
234
|
+
|
|
235
|
+
#### Format and behavior
|
|
236
|
+
|
|
237
|
+
- [ ] Works for both YAML and directory flows when the resource supports both
|
|
238
|
+
- [ ] Keyword preservation still works as expected
|
|
239
|
+
- [ ] Sorted-key output stays stable; no unintended order changes were introduced
|
|
240
|
+
- [ ] Exported configs do not rely on IDs by default; resources should link by names where possible
|
|
241
|
+
|
|
242
|
+
#### Safety and compatibility
|
|
243
|
+
|
|
244
|
+
- [ ] Dry-run output is correct and non-destructive
|
|
245
|
+
- [ ] Unit tests cover the changed path and any important edge cases
|
|
246
|
+
- [ ] Backward compatibility was checked and no existing behavior was unintentionally broken
|
|
247
|
+
|
|
228
248
|
### Commit Message Format
|
|
229
249
|
|
|
230
250
|
Follow conventional commits style:
|