auth0-deploy-cli 8.16.0 → 8.18.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/claude-code-review.yml +16 -0
- package/AGENTS.md +338 -0
- package/CHANGELOG.md +28 -2
- package/lib/context/directory/handlers/index.js +2 -0
- package/lib/context/directory/handlers/index.js.map +1 -1
- package/lib/context/directory/handlers/selfServiceProfiles.js +10 -1
- package/lib/context/directory/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/context/directory/handlers/userAttributeProfiles.d.ts +6 -0
- package/lib/context/directory/handlers/userAttributeProfiles.js +54 -0
- package/lib/context/directory/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/context/directory/index.js +2 -0
- package/lib/context/directory/index.js.map +1 -1
- package/lib/context/yaml/handlers/index.js +2 -0
- package/lib/context/yaml/handlers/index.js.map +1 -1
- package/lib/context/yaml/handlers/selfServiceProfiles.js +10 -0
- package/lib/context/yaml/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/context/yaml/handlers/userAttributeProfiles.d.ts +6 -0
- package/lib/context/yaml/handlers/userAttributeProfiles.js +27 -0
- package/lib/context/yaml/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/tools/auth0/client.js +2 -1
- package/lib/tools/auth0/client.js.map +1 -1
- package/lib/tools/auth0/handlers/connections.d.ts +20 -0
- package/lib/tools/auth0/handlers/connections.js +16 -0
- package/lib/tools/auth0/handlers/connections.js.map +1 -1
- package/lib/tools/auth0/handlers/default.js +5 -1
- package/lib/tools/auth0/handlers/default.js.map +1 -1
- package/lib/tools/auth0/handlers/index.js +2 -0
- package/lib/tools/auth0/handlers/index.js.map +1 -1
- package/lib/tools/auth0/handlers/logStreams.js +43 -4
- package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +6 -1
- package/lib/tools/auth0/handlers/selfServiceProfiles.js +91 -2
- package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -1
- package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +121 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.js +275 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/tools/auth0/index.js +15 -4
- package/lib/tools/auth0/index.js.map +1 -1
- package/lib/tools/constants.d.ts +1 -0
- package/lib/tools/constants.js +1 -0
- package/lib/tools/constants.js.map +1 -1
- package/lib/tools/index.d.ts +1 -0
- package/lib/tools/utils.js +4 -2
- package/lib/tools/utils.js.map +1 -1
- package/lib/types.d.ts +5 -3
- package/lib/types.js +32 -0
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Claude Code PR Review
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
pull_request_review_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
claude-review:
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
issues: write
|
|
14
|
+
pull-requests: write
|
|
15
|
+
id-token: write
|
|
16
|
+
uses: auth0/auth0-ai-pr-analyzer-gh-action/.github/workflows/claude-code-review.yml@main
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
|
|
5
|
+
The Auth0 Deploy CLI is a TypeScript-based tool for managing Auth0 tenant configurations through bidirectional sync (export/import) operations. It supports both YAML and directory formats with dynamic keyword replacement for multi-environment workflows.
|
|
6
|
+
|
|
7
|
+
**Key Capabilities:**
|
|
8
|
+
|
|
9
|
+
- Export Auth0 tenant configurations to local files (YAML or directory structure)
|
|
10
|
+
- Import configurations from local files to Auth0 tenants
|
|
11
|
+
- Keyword replacement for multi-environment deployments
|
|
12
|
+
- Resource-specific handlers for 30+ Auth0 resource types
|
|
13
|
+
|
|
14
|
+
## Setup Commands
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Install dependencies
|
|
18
|
+
npm install
|
|
19
|
+
|
|
20
|
+
# Build TypeScript to JavaScript
|
|
21
|
+
npm run build
|
|
22
|
+
|
|
23
|
+
# Build in watch mode during development
|
|
24
|
+
npm run dev
|
|
25
|
+
|
|
26
|
+
# Run unit tests
|
|
27
|
+
npm test
|
|
28
|
+
|
|
29
|
+
# Run E2E tests (requires Auth0 tenant)
|
|
30
|
+
npm run test:e2e:node-module
|
|
31
|
+
npm run test:e2e:cli
|
|
32
|
+
|
|
33
|
+
# Run linter
|
|
34
|
+
npm run lint
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Development Workflow
|
|
38
|
+
|
|
39
|
+
### Local Development Commands
|
|
40
|
+
|
|
41
|
+
Common operations for working with the CLI:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Export tenant configuration to local/
|
|
45
|
+
npm run build && node lib/index.js export -c config-dev.json -f directory -o ./local/
|
|
46
|
+
|
|
47
|
+
# Import configuration
|
|
48
|
+
npm run build && node lib/index.js import -c config-dev.json -i ./local/tenant.json
|
|
49
|
+
|
|
50
|
+
# Export as YAML
|
|
51
|
+
npm run build && node lib/index.js export -c config-dev.json -f yaml -o ./local-export/
|
|
52
|
+
|
|
53
|
+
# Import from YAML
|
|
54
|
+
npm run build && node lib/index.js import -c config-dev.json -i ./local-export/tenant.yaml
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Build Process
|
|
58
|
+
|
|
59
|
+
- Source TypeScript files live in `src/`
|
|
60
|
+
- Compiled JavaScript output goes to `lib/` (published to npm)
|
|
61
|
+
- Always run `npm run build` before testing CLI changes
|
|
62
|
+
- Use `npm run dev` for watch mode during active development
|
|
63
|
+
|
|
64
|
+
### File Structure
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
src/ # TypeScript source
|
|
68
|
+
├── index.ts # CLI entry point
|
|
69
|
+
├── commands/ # import.ts, export.ts
|
|
70
|
+
├── tools/ # Core logic (deploy.ts, calculateChanges.ts)
|
|
71
|
+
│ └── auth0/ # Auth0 API integration
|
|
72
|
+
│ ├── handlers/ # 30+ resource-specific handlers
|
|
73
|
+
│ └── schema/ # JSON validation schemas
|
|
74
|
+
└── context/ # Format parsers (yaml/, directory/)
|
|
75
|
+
|
|
76
|
+
test/ # Test suite mirrors src/
|
|
77
|
+
├── tools/auth0/handlers/ # Handler unit tests
|
|
78
|
+
├── context/ # Context parser tests
|
|
79
|
+
└── e2e/ # End-to-end tests
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Code Style & Conventions
|
|
83
|
+
|
|
84
|
+
### TypeScript Standards
|
|
85
|
+
|
|
86
|
+
- Use strict TypeScript configuration (`tsconfig.json`)
|
|
87
|
+
- Define types in `src/types.ts` for shared interfaces
|
|
88
|
+
- Follow existing patterns for handler implementations
|
|
89
|
+
- Use proper async/await patterns, avoid callbacks
|
|
90
|
+
|
|
91
|
+
### Handler Implementation Pattern
|
|
92
|
+
|
|
93
|
+
Every resource handler in `src/tools/auth0/handlers/` must implement:
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
class ResourceHandler {
|
|
97
|
+
validate(); // Schema validation using AJV
|
|
98
|
+
processChanges(); // CRUD operations with API calls
|
|
99
|
+
calcChanges(); // Determine create/update/delete ops
|
|
100
|
+
dump(); // Format for export
|
|
101
|
+
getType(); // Fetch from Auth0 API
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Configuration Management
|
|
106
|
+
|
|
107
|
+
- All environment variables prefixed with `AUTH0_`
|
|
108
|
+
- Config priority: CLI args → env vars → config files → defaults
|
|
109
|
+
- Support both direct values and JSON serialization for complex types
|
|
110
|
+
|
|
111
|
+
### Error Handling
|
|
112
|
+
|
|
113
|
+
- Use `ValidationError` class from `src/tools/validationError.ts`
|
|
114
|
+
- Provide clear, actionable error messages
|
|
115
|
+
- Preserve context when bubbling errors up
|
|
116
|
+
- Validate early before making API calls
|
|
117
|
+
|
|
118
|
+
## Testing Instructions
|
|
119
|
+
|
|
120
|
+
### Running Tests
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# Unit tests only (fast)
|
|
124
|
+
npm test
|
|
125
|
+
|
|
126
|
+
# E2E tests as node module
|
|
127
|
+
npm run test:e2e:node-module
|
|
128
|
+
|
|
129
|
+
# E2E tests as CLI (requires real tenant credentials)
|
|
130
|
+
npm run test:e2e:cli
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Test Structure
|
|
134
|
+
|
|
135
|
+
- Unit tests mirror `src/` directory structure in `test/`
|
|
136
|
+
- Use `.test.js` or `.test.ts` extensions
|
|
137
|
+
- Handler tests use sinon stubs for Auth0 clients
|
|
138
|
+
- Context tests use temporary directories with fixtures
|
|
139
|
+
- E2E tests require real Auth0 tenant (configured via env vars)
|
|
140
|
+
|
|
141
|
+
### Writing Handler Tests
|
|
142
|
+
|
|
143
|
+
Pattern for testing resource handlers:
|
|
144
|
+
|
|
145
|
+
```javascript
|
|
146
|
+
const mockClient = {
|
|
147
|
+
resource: {
|
|
148
|
+
getAll: sinon.stub(),
|
|
149
|
+
create: sinon.stub(),
|
|
150
|
+
update: sinon.stub(),
|
|
151
|
+
delete: sinon.stub(),
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const mockConfig = (key) => {
|
|
156
|
+
const config = {
|
|
157
|
+
AUTH0_ALLOW_DELETE: true,
|
|
158
|
+
AUTH0_EXCLUDED: [],
|
|
159
|
+
};
|
|
160
|
+
return config[key];
|
|
161
|
+
};
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Test Coverage Requirements
|
|
165
|
+
|
|
166
|
+
- Add tests for any new handlers or features
|
|
167
|
+
- Test both success and error paths
|
|
168
|
+
- Check resource identifier mapping logic
|
|
169
|
+
- Test keyword replacement in context parsers
|
|
170
|
+
|
|
171
|
+
### Running Specific Tests
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Run specific test file
|
|
175
|
+
npm test -- test/tools/auth0/handlers/clients.test.js
|
|
176
|
+
|
|
177
|
+
# Run tests matching pattern
|
|
178
|
+
npm test -- --grep "should validate clients"
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Common Development Tasks
|
|
182
|
+
|
|
183
|
+
### Adding a New Resource Handler
|
|
184
|
+
|
|
185
|
+
1. Create handler in `src/tools/auth0/handlers/<resource>.ts`
|
|
186
|
+
2. Implement all required methods (validate, processChanges, dump, etc.)
|
|
187
|
+
3. Add resource type to `src/tools/constants.ts`
|
|
188
|
+
4. Create JSON schema in `src/tools/auth0/schema/`
|
|
189
|
+
5. Write unit tests in `test/tools/auth0/handlers/<resource>.test.js`
|
|
190
|
+
6. Add E2E test coverage if applicable
|
|
191
|
+
7. Update documentation in `docs/resource-specific-documentation.md`
|
|
192
|
+
|
|
193
|
+
### Working with Context Parsers
|
|
194
|
+
|
|
195
|
+
- **DirectoryContext** (`src/context/directory/`): Loads nested JSON files
|
|
196
|
+
- **YAMLContext** (`src/context/yaml/`): Parses single YAML file
|
|
197
|
+
- Both support keyword patterns: `@@KEY@@` (JSON-stringified) and `##KEY##` (literal)
|
|
198
|
+
- Test with fixtures in `test/context/{directory,yaml}/`
|
|
199
|
+
|
|
200
|
+
### Configuration Testing
|
|
201
|
+
|
|
202
|
+
- Mock config functions return expected values for each key
|
|
203
|
+
- Test resource exclusion with `AUTH0_EXCLUDED` and `AUTH0_EXCLUDED_*` patterns
|
|
204
|
+
- Test property exclusion with `EXCLUDED_PROPS` and `INCLUDED_PROPS`
|
|
205
|
+
- Verify keyword replacement mappings work correctly
|
|
206
|
+
|
|
207
|
+
## Pull Request Guidelines
|
|
208
|
+
|
|
209
|
+
### Before Committing
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Always run before commit
|
|
213
|
+
npm run build
|
|
214
|
+
npm test
|
|
215
|
+
npm run lint
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### PR Checklist
|
|
219
|
+
|
|
220
|
+
- [ ] All tests pass locally
|
|
221
|
+
- [ ] New code has corresponding tests
|
|
222
|
+
- [ ] TypeScript compiles without errors
|
|
223
|
+
- [ ] Updated relevant documentation in `docs/`
|
|
224
|
+
- [ ] Added entry to `CHANGELOG.md` if user-facing change
|
|
225
|
+
- [ ] Tested with both YAML and directory formats if applicable
|
|
226
|
+
- [ ] Checked backward compatibility
|
|
227
|
+
|
|
228
|
+
### Commit Message Format
|
|
229
|
+
|
|
230
|
+
Follow conventional commits style:
|
|
231
|
+
|
|
232
|
+
- `feat: add support for new resource type`
|
|
233
|
+
- `fix: resolve table formatting issue`
|
|
234
|
+
- `docs: update handler implementation guide`
|
|
235
|
+
- `test: add coverage for keyword replacement`
|
|
236
|
+
- `refactor: simplify change calculation logic`
|
|
237
|
+
|
|
238
|
+
## Security Considerations
|
|
239
|
+
|
|
240
|
+
### API Credentials
|
|
241
|
+
|
|
242
|
+
- Never commit Auth0 credentials or API keys
|
|
243
|
+
- Config files with credentials should be gitignored
|
|
244
|
+
- Use environment variables for sensitive data
|
|
245
|
+
- Example configs use `.json.example` suffix
|
|
246
|
+
|
|
247
|
+
### Validation & Safety
|
|
248
|
+
|
|
249
|
+
- All resources validated against JSON schemas before processing
|
|
250
|
+
- Delete operations require explicit `AUTH0_ALLOW_DELETE=true`
|
|
251
|
+
- Resource identifiers properly sanitized before API calls
|
|
252
|
+
|
|
253
|
+
### Testing with Real Tenants
|
|
254
|
+
|
|
255
|
+
- Use dedicated development tenants for E2E tests
|
|
256
|
+
- Never run E2E tests against production tenants
|
|
257
|
+
- Credentials stored in environment variables only
|
|
258
|
+
- Clean up test resources after test runs
|
|
259
|
+
|
|
260
|
+
## Debugging Tips
|
|
261
|
+
|
|
262
|
+
### Enable Debug Logging
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
export AUTH0_DEBUG=true
|
|
266
|
+
npm run build && node lib/index.js import -c config.json
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Common Issues
|
|
270
|
+
|
|
271
|
+
- **Build errors**: Check `tsconfig.json` and ensure all imports resolve
|
|
272
|
+
- **Handler not found**: Verify resource added to `src/tools/constants.ts`
|
|
273
|
+
- **Schema validation fails**: Check JSON schema in `src/tools/auth0/schema/`
|
|
274
|
+
- **Keyword replacement not working**: Verify mappings in config and context parser
|
|
275
|
+
|
|
276
|
+
### Useful Commands
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# Check compiled output
|
|
280
|
+
cat lib/index.js
|
|
281
|
+
|
|
282
|
+
# Test CLI directly
|
|
283
|
+
node lib/index.js export -c config.json --output_folder ./test-output
|
|
284
|
+
|
|
285
|
+
# Run with verbose errors
|
|
286
|
+
NODE_ENV=development npm test
|
|
287
|
+
|
|
288
|
+
# Check Auth0 API pagination
|
|
289
|
+
AUTH0_DEBUG=true npm run test:e2e:node-module
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Architecture Notes
|
|
293
|
+
|
|
294
|
+
### Request Flow
|
|
295
|
+
|
|
296
|
+
1. **CLI Entry** (`src/index.ts`) → Command routing
|
|
297
|
+
2. **Commands** (`src/commands/import.ts`) → Load config and context
|
|
298
|
+
3. **Deploy** (`src/tools/deploy.ts`) → Orchestrate deployment
|
|
299
|
+
4. **Handlers** (`src/tools/auth0/handlers/*`) → Resource-specific logic
|
|
300
|
+
5. **Auth0 Client** (`src/tools/auth0/client.ts`) → Management API calls
|
|
301
|
+
|
|
302
|
+
### Change Calculation
|
|
303
|
+
|
|
304
|
+
- Compare local assets (from YAML/directory) with remote state (from API)
|
|
305
|
+
- Use resource identifiers (name, id, etc.) to match resources
|
|
306
|
+
- Determine CREATE (new), UPDATE (changed), DELETE (removed) operations
|
|
307
|
+
- Respect exclusion patterns and allow-delete config
|
|
308
|
+
|
|
309
|
+
## Additional Resources
|
|
310
|
+
|
|
311
|
+
- **Full documentation**: See `docs/` directory
|
|
312
|
+
- **Examples**: Check `examples/yaml/` and `examples/directory/`
|
|
313
|
+
- **Contributing**: Read `CONTRIBUTING.md`
|
|
314
|
+
- **Migration guide**: See `docs/v8_MIGRATION_GUIDE.md`
|
|
315
|
+
- **Issue templates**: `.github/ISSUE_TEMPLATE/`
|
|
316
|
+
|
|
317
|
+
## Quick Reference
|
|
318
|
+
|
|
319
|
+
### Environment Variables
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
AUTH0_DOMAIN # Tenant domain
|
|
323
|
+
AUTH0_CLIENT_ID # Client ID
|
|
324
|
+
AUTH0_CLIENT_SECRET # Client secret
|
|
325
|
+
AUTH0_ALLOW_DELETE=true # Enable deletions
|
|
326
|
+
AUTH0_KEYWORD_REPLACE_MAPPINGS # JSON mapping for replacements
|
|
327
|
+
AUTH0_EXCLUDED # Array of resources to exclude
|
|
328
|
+
AUTH0_DEBUG=true # Verbose logging
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Key Files to Know
|
|
332
|
+
|
|
333
|
+
- `src/tools/deploy.ts` - Main deployment orchestrator
|
|
334
|
+
- `src/tools/calculateChanges.ts` - Change detection logic
|
|
335
|
+
- `src/tools/constants.ts` - Supported resource types
|
|
336
|
+
- `src/configFactory.ts` - Configuration management
|
|
337
|
+
- `src/types.ts` - TypeScript type definitions
|
|
338
|
+
- `test/utils.js` - Test helper functions
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [8.18.0] - 2025-10-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add support for connection purpose configuration options in `connections`. [#1162]
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fix execution order for `logStreams`. [#1175]
|
|
19
|
+
- Fix keyword replacement handling for special characters. [#1174]
|
|
20
|
+
|
|
21
|
+
## [8.17.0] - 2025-09-30
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Add support for user attribute profiles EA [#1166]
|
|
26
|
+
- Add support for `user_attribute_profile_id` in `selfServiceProfiles` [#1166]
|
|
27
|
+
- Add support for new language codes [#1159]
|
|
28
|
+
|
|
10
29
|
## [8.16.0] - 2025-09-16
|
|
11
30
|
|
|
12
31
|
### Added
|
|
@@ -74,7 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
74
93
|
|
|
75
94
|
### Added
|
|
76
95
|
|
|
77
|
-
- Add support
|
|
96
|
+
- Add support for limit M2M usage - EA [#1093]
|
|
78
97
|
- Add support to fetch list `prompt` screen's settings [#1104]
|
|
79
98
|
|
|
80
99
|
### Fixed
|
|
@@ -1430,8 +1449,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1430
1449
|
[#1146]: https://github.com/auth0/auth0-deploy-cli/issues/1146
|
|
1431
1450
|
[#1155]: https://github.com/auth0/auth0-deploy-cli/issues/1155
|
|
1432
1451
|
[#1158]: https://github.com/auth0/auth0-deploy-cli/issues/1158
|
|
1452
|
+
[#1159]: https://github.com/auth0/auth0-deploy-cli/issues/1159
|
|
1433
1453
|
[#1161]: https://github.com/auth0/auth0-deploy-cli/issues/1161
|
|
1434
|
-
[
|
|
1454
|
+
[#1162]: https://github.com/auth0/auth0-deploy-cli/issues/1162
|
|
1455
|
+
[#1166]: https://github.com/auth0/auth0-deploy-cli/issues/1166
|
|
1456
|
+
[#1174]: https://github.com/auth0/auth0-deploy-cli/issues/1174
|
|
1457
|
+
[#1175]: https://github.com/auth0/auth0-deploy-cli/issues/1175
|
|
1458
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v8.18.0...HEAD
|
|
1459
|
+
[8.18.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.17.0...v8.18.0
|
|
1460
|
+
[8.17.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.16.0...v8.17.0
|
|
1435
1461
|
[8.16.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.15.0...v8.16.0
|
|
1436
1462
|
[8.15.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.13.0...v8.15.0
|
|
1437
1463
|
[8.13.0]: https://github.com/auth0/auth0-deploy-cli/compare/v8.12.0...v8.13.0
|
|
@@ -36,6 +36,7 @@ const forms_1 = __importDefault(require("./forms"));
|
|
|
36
36
|
const flows_1 = __importDefault(require("./flows"));
|
|
37
37
|
const flowVaultConnections_1 = __importDefault(require("./flowVaultConnections"));
|
|
38
38
|
const networkACLs_1 = __importDefault(require("./networkACLs"));
|
|
39
|
+
const userAttributeProfiles_1 = __importDefault(require("./userAttributeProfiles"));
|
|
39
40
|
const selfServiceProfiles_1 = __importDefault(require("./selfServiceProfiles"));
|
|
40
41
|
const directoryHandlers = {
|
|
41
42
|
rules: rules_1.default,
|
|
@@ -72,6 +73,7 @@ const directoryHandlers = {
|
|
|
72
73
|
flowVaultConnections: flowVaultConnections_1.default,
|
|
73
74
|
selfServiceProfiles: selfServiceProfiles_1.default,
|
|
74
75
|
networkACLs: networkACLs_1.default,
|
|
76
|
+
userAttributeProfiles: userAttributeProfiles_1.default,
|
|
75
77
|
};
|
|
76
78
|
exports.default = directoryHandlers;
|
|
77
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,wDAAgC;AAChC,oEAA4C;AAC5C,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,wDAAgC;AAChC,oEAA4C;AAC5C,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;AACxC,oFAA4D;AAI5D,gFAAwD;AAOxD,MAAM,iBAAiB,GAEnB;IACF,KAAK,EAAL,eAAK;IACL,YAAY,EAAZ,sBAAY;IACZ,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,qBAAW;IACX,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,cAAc,EAAd,wBAAc;IACd,eAAe,EAAf,yBAAe;IACf,uBAAuB,EAAvB,iCAAuB;IACvB,uBAAuB,EAAvB,iCAAuB;IACvB,+BAA+B,EAA/B,yCAA+B;IAC/B,mCAAmC,EAAnC,6CAAmC;IACnC,gBAAgB,EAAhB,0BAAgB;IAChB,KAAK,EAAL,eAAK;IACL,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,QAAQ,EAAR,kBAAQ;IACR,gBAAgB,EAAhB,0BAAgB;IAChB,QAAQ,EAAR,kBAAQ;IACR,cAAc,EAAd,uBAAc;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,MAAM,EAAN,gBAAM;IACN,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,oBAAoB,EAApB,8BAAoB;IACpB,mBAAmB,EAAnB,6BAAmB;IACnB,WAAW,EAAX,qBAAW;IACX,qBAAqB,EAArB,+BAAqB;CACtB,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -35,12 +35,13 @@ function parse(context) {
|
|
|
35
35
|
}
|
|
36
36
|
function dump(context) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const { selfServiceProfiles } = context.assets;
|
|
38
|
+
const { selfServiceProfiles, userAttributeProfilesWithId } = context.assets;
|
|
39
39
|
if (!selfServiceProfiles)
|
|
40
40
|
return;
|
|
41
41
|
const selfServiceProfilesFolder = path_1.default.join(context.filePath, tools_1.constants.SELF_SERVICE_PROFILE_DIRECTORY);
|
|
42
42
|
fs_extra_1.default.ensureDirSync(selfServiceProfilesFolder);
|
|
43
43
|
selfServiceProfiles.forEach((profile) => {
|
|
44
|
+
var _a;
|
|
44
45
|
const ssProfileFile = path_1.default.join(selfServiceProfilesFolder, (0, utils_1.sanitize)(`${profile.name}.json`));
|
|
45
46
|
logger_1.default.info(`Writing ${ssProfileFile}`);
|
|
46
47
|
if ('created_at' in profile) {
|
|
@@ -49,6 +50,14 @@ function dump(context) {
|
|
|
49
50
|
if ('updated_at' in profile) {
|
|
50
51
|
delete profile.updated_at;
|
|
51
52
|
}
|
|
53
|
+
if (profile.user_attribute_profile_id) {
|
|
54
|
+
const p = userAttributeProfilesWithId === null || userAttributeProfilesWithId === void 0 ? void 0 : userAttributeProfilesWithId.find((uap) => uap.id === profile.user_attribute_profile_id);
|
|
55
|
+
profile.user_attribute_profile_id = (p === null || p === void 0 ? void 0 : p.name) || profile.user_attribute_profile_id;
|
|
56
|
+
if (((_a = profile.user_attributes) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
57
|
+
// @ts-expect-error - ignore type error here as we know that user_attributes can be removed.
|
|
58
|
+
delete profile.user_attributes;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
52
61
|
(0, utils_1.dumpJSON)(ssProfileFile, profile);
|
|
53
62
|
});
|
|
54
63
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selfServiceProfiles.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/selfServiceProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,0CAA2C;AAC3C,6DAAkC;AAElC,0CAAyF;AAWzF,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,yBAAyB,GAAG,cAAI,CAAC,IAAI,CACzC,OAAO,CAAC,QAAQ,EAChB,iBAAS,CAAC,8BAA8B,CACzC,CAAC;IACF,IAAI,CAAC,IAAA,uBAAe,EAAC,yBAAyB,CAAC;QAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE9F,MAAM,KAAK,GAAG,IAAA,gBAAQ,EAAC,yBAAyB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7D,MAAM,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC1C,MAAM,UAAU,qBACX,IAAA,gBAAQ,EAAC,CAAC,EAAE;YACb,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;SAC7D,CAAC,CACH,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,mBAAmB;KACpB,CAAC;AACJ,CAAC;AAED,SAAe,IAAI,CAAC,OAAyB;;QAC3C,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"selfServiceProfiles.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/selfServiceProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,0CAA2C;AAC3C,6DAAkC;AAElC,0CAAyF;AAWzF,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,yBAAyB,GAAG,cAAI,CAAC,IAAI,CACzC,OAAO,CAAC,QAAQ,EAChB,iBAAS,CAAC,8BAA8B,CACzC,CAAC;IACF,IAAI,CAAC,IAAA,uBAAe,EAAC,yBAAyB,CAAC;QAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE9F,MAAM,KAAK,GAAG,IAAA,gBAAQ,EAAC,yBAAyB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7D,MAAM,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC1C,MAAM,UAAU,qBACX,IAAA,gBAAQ,EAAC,CAAC,EAAE;YACb,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;SAC7D,CAAC,CACH,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,mBAAmB;KACpB,CAAC;AACJ,CAAC;AAED,SAAe,IAAI,CAAC,OAAyB;;QAC3C,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EAAE,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,oBAAoB,GAAgD;IACxE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserAttributeProfile } from 'auth0';
|
|
2
|
+
import { DirectoryHandler } from '.';
|
|
3
|
+
import { ParsedAsset } from '../../../types';
|
|
4
|
+
type ParsedUserAttributeProfiles = ParsedAsset<'userAttributeProfiles', Partial<UserAttributeProfile>[]>;
|
|
5
|
+
declare const userAttributeProfilesHandler: DirectoryHandler<ParsedUserAttributeProfiles>;
|
|
6
|
+
export default userAttributeProfilesHandler;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
17
|
+
const tools_1 = require("../../../tools");
|
|
18
|
+
const utils_1 = require("../../../utils");
|
|
19
|
+
function parse(context) {
|
|
20
|
+
const userAttributeProfilesFolder = path_1.default.join(context.filePath, tools_1.constants.USER_ATTRIBUTE_PROFILES_DIRECTORY);
|
|
21
|
+
if (!(0, utils_1.existsMustBeDir)(userAttributeProfilesFolder))
|
|
22
|
+
return { userAttributeProfiles: null }; // Skip
|
|
23
|
+
const files = (0, utils_1.getFiles)(userAttributeProfilesFolder, ['.json']);
|
|
24
|
+
const userAttributeProfiles = files.map((f) => {
|
|
25
|
+
const uaProfiles = Object.assign({}, (0, utils_1.loadJSON)(f, {
|
|
26
|
+
mappings: context.mappings,
|
|
27
|
+
disableKeywordReplacement: context.disableKeywordReplacement,
|
|
28
|
+
}));
|
|
29
|
+
return uaProfiles;
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
userAttributeProfiles,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function dump(context) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const { userAttributeProfiles } = context.assets;
|
|
38
|
+
if (!userAttributeProfiles)
|
|
39
|
+
return;
|
|
40
|
+
const userAttributeProfilesFolder = path_1.default.join(context.filePath, tools_1.constants.USER_ATTRIBUTE_PROFILES_DIRECTORY);
|
|
41
|
+
fs_extra_1.default.ensureDirSync(userAttributeProfilesFolder);
|
|
42
|
+
userAttributeProfiles.forEach((profile) => {
|
|
43
|
+
const profileName = (0, utils_1.sanitize)(profile.name);
|
|
44
|
+
const uapFile = path_1.default.join(userAttributeProfilesFolder, `${profileName}.json`);
|
|
45
|
+
(0, utils_1.dumpJSON)(uapFile, profile);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const userAttributeProfilesHandler = {
|
|
50
|
+
parse,
|
|
51
|
+
dump,
|
|
52
|
+
};
|
|
53
|
+
exports.default = userAttributeProfilesHandler;
|
|
54
|
+
//# sourceMappingURL=userAttributeProfiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userAttributeProfiles.js","sourceRoot":"","sources":["../../../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5C,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,WAAW,OAAO,CAAC,CAAC;YAC9E,IAAA,gBAAQ,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,4BAA4B,GAAkD;IAClF,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
|
@@ -138,6 +138,8 @@ class DirectoryContext {
|
|
|
138
138
|
// Must copy as the client_id will be stripped if AUTH0_EXPORT_IDENTIFIERS is false
|
|
139
139
|
//@ts-ignore because assets haven't been typed yet TODO: type assets
|
|
140
140
|
this.assets.clientsOrig = [...(this.assets.clients || [])];
|
|
141
|
+
// Copy user attribute profiles with their IDs for use by self-service profiles mapping
|
|
142
|
+
this.assets.userAttributeProfilesWithId = [...(this.assets.userAttributeProfiles || [])];
|
|
141
143
|
// Optionally Strip identifiers
|
|
142
144
|
if (!this.config.AUTH0_EXPORT_IDENTIFIERS) {
|
|
143
145
|
this.assets = (0, utils_1.stripIdentifiers)(auth0, this.assets);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/directory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,uCAAgE;AAChE,sEAAmD;AAEnD,8DAAyC;AACzC,0DAA+B;AAC/B,0DAAwD;AACxD,uCAAgF;AAEhF,0BAAqD;AACrD,mEAA6D;AAI7D,MAAqB,gBAAgB;IASnC,YAAY,MAAc,EAAE,UAA4B;QACtD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,8BAA8B,IAAI,EAAE,CAAC;QAC5D,IAAI,CA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ACrB,MAAM,CAAC,CAAC,CAAC,WAAW,CAAsC,EAAE,EAAE;gBAC7D,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;gBAC5D,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACnD,CAAC,CAAC;iBACD,MAAM,CAAC,IAAA,mCAA+B,EAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;iBACxE,GAAG,CAAC,KAAwB,EAAE,0CAAnB,CAAC,IAAI,EAAE,OAAO,CAAC;gBACzB,IAAI,CAAC;oBACH,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3B,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;gBAC/C,CAAC;YACH,CAAC,CAAA,CAAC,CACL,CAAC;QACJ,CAAC;KAAA;CACF;AA3HD,mCA2HC"}
|
|
@@ -36,6 +36,7 @@ const forms_1 = __importDefault(require("./forms"));
|
|
|
36
36
|
const flows_1 = __importDefault(require("./flows"));
|
|
37
37
|
const flowVaultConnections_1 = __importDefault(require("./flowVaultConnections"));
|
|
38
38
|
const networkACLs_1 = __importDefault(require("./networkACLs"));
|
|
39
|
+
const userAttributeProfiles_1 = __importDefault(require("./userAttributeProfiles"));
|
|
39
40
|
const selfServiceProfiles_1 = __importDefault(require("./selfServiceProfiles"));
|
|
40
41
|
const yamlHandlers = {
|
|
41
42
|
rules: rules_1.default,
|
|
@@ -72,6 +73,7 @@ const yamlHandlers = {
|
|
|
72
73
|
flowVaultConnections: flowVaultConnections_1.default,
|
|
73
74
|
selfServiceProfiles: selfServiceProfiles_1.default,
|
|
74
75
|
networkACLs: networkACLs_1.default,
|
|
76
|
+
userAttributeProfiles: userAttributeProfiles_1.default,
|
|
75
77
|
};
|
|
76
78
|
exports.default = yamlHandlers;
|
|
77
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,oEAA4C;AAC5C,wDAAgC;AAChC,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/index.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wDAAgC;AAChC,sDAA8B;AAC9B,oEAA4C;AAC5C,gEAAwC;AACxC,4DAAoC;AACpC,sEAA8C;AAC9C,kEAA0C;AAC1C,wEAAgD;AAChD,wEAAgD;AAChD,wFAAgE;AAChE,wFAAgE;AAChE,wGAAgF;AAChF,gHAAwF;AACxF,0EAAkD;AAClD,oDAA4B;AAC5B,oEAA4C;AAC5C,wDAAgC;AAChC,0DAAkC;AAClC,0EAAkD;AAClD,0DAAkC;AAClC,oEAA6C;AAC7C,8DAAsC;AACtC,wDAAgC;AAChC,oEAA4C;AAC5C,sDAA8B;AAC9B,oDAA4B;AAC5B,kEAA0C;AAC1C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,kFAA0D;AAC1D,gEAAwC;AACxC,oFAA4D;AAI5D,gFAAwD;AAOxD,MAAM,YAAY,GAAqE;IACrF,KAAK,EAAL,eAAK;IACL,YAAY,EAAZ,sBAAY;IACZ,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,SAAS,EAAT,mBAAS;IACT,YAAY,EAAZ,sBAAY;IACZ,eAAe,EAAf,yBAAe;IACf,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,qBAAW;IACX,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,cAAc,EAAd,wBAAc;IACd,eAAe,EAAf,yBAAe;IACf,uBAAuB,EAAvB,iCAAuB;IACvB,uBAAuB,EAAvB,iCAAuB;IACvB,KAAK,EAAL,eAAK;IACL,+BAA+B,EAA/B,yCAA+B;IAC/B,mCAAmC,EAAnC,6CAAmC;IACnC,gBAAgB,EAAhB,0BAAgB;IAChB,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,QAAQ,EAAR,kBAAQ;IACR,gBAAgB,EAAhB,0BAAgB;IAChB,QAAQ,EAAR,kBAAQ;IACR,cAAc,EAAd,uBAAc;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,uBAAa;IACb,MAAM,EAAN,gBAAM;IACN,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,oBAAoB,EAApB,8BAAoB;IACpB,mBAAmB,EAAnB,6BAAmB;IACnB,WAAW,EAAX,qBAAW;IACX,qBAAqB,EAArB,+BAAqB;CACtB,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -21,16 +21,26 @@ function parse(context) {
|
|
|
21
21
|
}
|
|
22
22
|
function dump(context) {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const { userAttributeProfiles } = context.assets;
|
|
24
25
|
let { selfServiceProfiles } = context.assets;
|
|
25
26
|
if (!selfServiceProfiles)
|
|
26
27
|
return { selfServiceProfiles: null };
|
|
27
28
|
selfServiceProfiles = selfServiceProfiles.map((profile) => {
|
|
29
|
+
var _a;
|
|
28
30
|
if ('created_at' in profile) {
|
|
29
31
|
delete profile.created_at;
|
|
30
32
|
}
|
|
31
33
|
if ('updated_at' in profile) {
|
|
32
34
|
delete profile.updated_at;
|
|
33
35
|
}
|
|
36
|
+
if (profile.user_attribute_profile_id) {
|
|
37
|
+
const p = userAttributeProfiles === null || userAttributeProfiles === void 0 ? void 0 : userAttributeProfiles.find((uap) => uap.id === profile.user_attribute_profile_id);
|
|
38
|
+
profile.user_attribute_profile_id = (p === null || p === void 0 ? void 0 : p.name) || profile.user_attribute_profile_id;
|
|
39
|
+
if (((_a = profile.user_attributes) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
40
|
+
// @ts-expect-error - ignore type error here as we know that user_attributes can be removed.
|
|
41
|
+
delete profile.user_attributes;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
34
44
|
return Object.assign({}, profile);
|
|
35
45
|
});
|
|
36
46
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selfServiceProfiles.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/selfServiceProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,SAAe,KAAK,CAAC,OAAoB;;QACvC,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAE/C,IAAI,CAAC,mBAAmB;YAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;QAE/D,OAAO;YACL,mBAAmB;SACpB,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,IAAI,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7C,IAAI,CAAC,mBAAmB;YAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;QAE/D,mBAAm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jF,IAAI,CAAA,MAAA,OAAO,CAAC,eAAe,0CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;oBAC1C,4FAA4F;oBAC5F,OAAO,OAAO,CAAC,eAAe,CAAC;gBACjC,CAAC;YACH,CAAC;YAED,yBACK,OAAO,EACV;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,mBAAmB;SACpB,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,yBAAyB,GAA2C;IACxE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserAttributeProfile } from 'auth0';
|
|
2
|
+
import { YAMLHandler } from '.';
|
|
3
|
+
import { ParsedAsset } from '../../../types';
|
|
4
|
+
type ParsedUserAttributeProfiles = ParsedAsset<'userAttributeProfiles', Partial<UserAttributeProfile>[]>;
|
|
5
|
+
declare const selfServiceProfileHandler: YAMLHandler<ParsedUserAttributeProfiles>;
|
|
6
|
+
export default selfServiceProfileHandler;
|