sf-plugin-permission-sets 0.0.0-dev.7 → 0.0.0-dev.70
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/LICENSE.md +28 -0
- package/README.md +304 -88
- package/lib/adapters/connection-org-client.d.ts +23 -0
- package/lib/adapters/connection-org-client.d.ts.map +1 -0
- package/lib/adapters/connection-org-client.js +361 -0
- package/lib/adapters/connection-org-client.js.map +1 -0
- package/lib/adapters/index.d.ts +2 -0
- package/lib/adapters/index.d.ts.map +1 -0
- package/lib/adapters/index.js +2 -0
- package/lib/adapters/index.js.map +1 -0
- package/lib/commands/ps/apply.d.ts +41 -0
- package/lib/commands/ps/apply.d.ts.map +1 -0
- package/lib/commands/ps/apply.js +178 -0
- package/lib/commands/ps/apply.js.map +1 -0
- package/lib/commands/ps/check.d.ts +21 -0
- package/lib/commands/ps/check.d.ts.map +1 -0
- package/lib/commands/ps/check.js +55 -0
- package/lib/commands/ps/check.js.map +1 -0
- package/lib/commands/ps/export.d.ts +26 -0
- package/lib/commands/ps/export.d.ts.map +1 -0
- package/lib/commands/ps/export.js +74 -0
- package/lib/commands/ps/export.js.map +1 -0
- package/lib/commands/ps/plan.d.ts +61 -0
- package/lib/commands/ps/plan.d.ts.map +1 -0
- package/lib/commands/ps/plan.js +212 -0
- package/lib/commands/ps/plan.js.map +1 -0
- package/lib/commands/ps/validate.d.ts +21 -0
- package/lib/commands/ps/validate.d.ts.map +1 -0
- package/lib/commands/ps/validate.js +56 -0
- package/lib/commands/ps/validate.js.map +1 -0
- package/lib/core/diff.d.ts +10 -0
- package/lib/core/diff.d.ts.map +1 -0
- package/lib/core/diff.js +54 -0
- package/lib/core/diff.js.map +1 -0
- package/lib/core/finding.d.ts +41 -0
- package/lib/core/finding.d.ts.map +1 -0
- package/lib/core/finding.js +76 -0
- package/lib/core/finding.js.map +1 -0
- package/lib/core/index.d.ts +10 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/index.js +9 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/load.d.ts +4 -0
- package/lib/core/load.d.ts.map +1 -0
- package/lib/core/load.js +60 -0
- package/lib/core/load.js.map +1 -0
- package/lib/core/mode.d.ts +18 -0
- package/lib/core/mode.d.ts.map +1 -0
- package/lib/core/mode.js +16 -0
- package/lib/core/mode.js.map +1 -0
- package/lib/core/model.d.ts +78 -0
- package/lib/core/model.d.ts.map +1 -0
- package/lib/core/model.js +2 -0
- package/lib/core/model.js.map +1 -0
- package/lib/core/normalize.d.ts +17 -0
- package/lib/core/normalize.d.ts.map +1 -0
- package/lib/core/normalize.js +72 -0
- package/lib/core/normalize.js.map +1 -0
- package/lib/core/parse.d.ts +10 -0
- package/lib/core/parse.d.ts.map +1 -0
- package/lib/core/parse.js +20 -0
- package/lib/core/parse.js.map +1 -0
- package/lib/core/report.d.ts +15 -0
- package/lib/core/report.d.ts.map +1 -0
- package/lib/core/report.js +122 -0
- package/lib/core/report.js.map +1 -0
- package/lib/core/resolve.d.ts +20 -0
- package/lib/core/resolve.d.ts.map +1 -0
- package/lib/core/resolve.js +88 -0
- package/lib/core/resolve.js.map +1 -0
- package/lib/core/schema.d.ts +23 -0
- package/lib/core/schema.d.ts.map +1 -0
- package/lib/core/schema.js +35 -0
- package/lib/core/schema.js.map +1 -0
- package/lib/core/serialize.d.ts +9 -0
- package/lib/core/serialize.d.ts.map +1 -0
- package/lib/core/serialize.js +36 -0
- package/lib/core/serialize.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/services/adapters/index.d.ts +2 -0
- package/lib/services/adapters/index.d.ts.map +1 -0
- package/lib/services/adapters/index.js +2 -0
- package/lib/services/adapters/index.js.map +1 -0
- package/lib/services/adapters/org-client.d.ts +26 -0
- package/lib/services/adapters/org-client.d.ts.map +1 -0
- package/lib/services/adapters/org-client.js +2 -0
- package/lib/services/adapters/org-client.js.map +1 -0
- package/lib/services/apply.d.ts +39 -0
- package/lib/services/apply.d.ts.map +1 -0
- package/lib/services/apply.js +85 -0
- package/lib/services/apply.js.map +1 -0
- package/lib/services/check.d.ts +14 -0
- package/lib/services/check.d.ts.map +1 -0
- package/lib/services/check.js +18 -0
- package/lib/services/check.js.map +1 -0
- package/lib/services/export.d.ts +19 -0
- package/lib/services/export.d.ts.map +1 -0
- package/lib/services/export.js +29 -0
- package/lib/services/export.js.map +1 -0
- package/lib/services/index.d.ts +6 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/plan.d.ts +29 -0
- package/lib/services/plan.d.ts.map +1 -0
- package/lib/services/plan.js +51 -0
- package/lib/services/plan.js.map +1 -0
- package/lib/services/resolution.d.ts +18 -0
- package/lib/services/resolution.d.ts.map +1 -0
- package/lib/services/resolution.js +59 -0
- package/lib/services/resolution.js.map +1 -0
- package/lib/services/validate.d.ts +22 -0
- package/lib/services/validate.d.ts.map +1 -0
- package/lib/services/validate.js +59 -0
- package/lib/services/validate.js.map +1 -0
- package/messages/ps.apply.md +85 -0
- package/messages/ps.check.md +33 -0
- package/messages/ps.export.md +45 -0
- package/messages/ps.plan.md +85 -0
- package/messages/ps.validate.md +29 -0
- package/package.json +119 -180
- package/lib/commands/ps/info.d.ts +0 -11
- package/lib/commands/ps/info.js +0 -17
- package/lib/commands/ps/info.js.map +0 -1
- package/messages/ps.info.md +0 -17
- package/oclif.lock +0 -7781
- package/oclif.manifest.json +0 -51
package/LICENSE.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Isaac Ferreira
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# sf-plugin-permission-sets
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/sf-plugin-permission-sets) [](https://npmjs.org/package/sf-plugin-permission-sets) [](https://raw.githubusercontent.com/zaclummys/sf-plugin-permission-sets/main/LICENSE.
|
|
3
|
+
[](https://www.npmjs.com/package/sf-plugin-permission-sets) [](https://npmjs.org/package/sf-plugin-permission-sets) [](https://semver.org/#spec-item-4) [](https://raw.githubusercontent.com/zaclummys/sf-plugin-permission-sets/main/LICENSE.md)
|
|
4
4
|
|
|
5
5
|
> Declarative, GitOps-style management of **permission set assignments** for Salesforce orgs.
|
|
6
6
|
> Define who gets what in version-controlled YAML. The plugin reconciles your org to match it: `plan` then `apply`, just like Terraform.
|
|
7
7
|
|
|
8
|
+
> ⚠️ **Under active development.** This plugin is `0.x`. Per [semver's major-version-zero rule](https://semver.org/#spec-item-4), anything (commands, flags, the YAML schema) may change in a breaking way between `0.x` releases. Pin a version in CI. The public API stabilizes at `v1.0.0`.
|
|
9
|
+
|
|
8
10
|
Stop clicking through Setup to grant access. Commit a YAML file, open a PR, let CI show the diff, and merge to apply. Your git history becomes the audit log of who-had-access-when.
|
|
9
11
|
|
|
10
12
|
---
|
|
@@ -17,23 +19,29 @@ Stop clicking through Setup to grant access. Commit a YAML file, open a PR, let
|
|
|
17
19
|
- [Permission files](#permission-files)
|
|
18
20
|
- [Organizing files](#organizing-files)
|
|
19
21
|
- [Modes](#modes)
|
|
22
|
+
- [Validations](#validations)
|
|
20
23
|
- [Commands](#commands)
|
|
21
|
-
- [
|
|
24
|
+
- [GitHub Actions](#github-actions)
|
|
22
25
|
- [Inspiration & equivalents](#inspiration--equivalents)
|
|
26
|
+
- [Versioning](#versioning)
|
|
27
|
+
- [Architecture](#architecture)
|
|
28
|
+
- [Development](#development)
|
|
23
29
|
|
|
24
30
|
---
|
|
25
31
|
|
|
26
32
|
## Why
|
|
27
33
|
|
|
28
|
-
Permission set assignments drift. People get access for a project and keep it forever. Offboarding misses a set. Nobody can answer "who can see X and why?" without a SOQL spelunking session.
|
|
34
|
+
Permission set assignments drift. People get access for a project and keep it forever. Offboarding misses a set. Nobody can answer "who can see X and why?" without a SOQL spelunking session. And in higher environments those grants happen by hand in Setup, with no review and no trail.
|
|
29
35
|
|
|
30
36
|
This plugin makes the desired state **declarative and reviewable**:
|
|
31
37
|
|
|
32
38
|
- ✅ **Single source of truth:** the YAML in git is authoritative, and the org is reconciled to it.
|
|
33
39
|
- ✅ **Plan before apply:** see exactly what will be added/removed before anything changes.
|
|
34
40
|
- ✅ **Safe by default:** deletions are opt-in and guarded by a delete threshold.
|
|
35
|
-
- ✅ **CI-native:**
|
|
41
|
+
- ✅ **CI-native:** `check` needs no org, exit codes for gating, and `--json` on every command.
|
|
36
42
|
- ✅ **Flexible at the edges:** pick your file layout (by permission set or by user) and your sync mode.
|
|
43
|
+
- ✅ **GitOps for access, the SFDX way:** assignments live in source and ship through the same git and CI pipeline as your metadata, instead of being clicked into Setup by hand.
|
|
44
|
+
- ✅ **Fewer hands in Setup for higher environments:** because access is applied from git through CI, fewer people need direct Setup access in UAT and production, and every change is a reviewed pull request with a git audit trail.
|
|
37
45
|
|
|
38
46
|
## Install
|
|
39
47
|
|
|
@@ -47,33 +55,33 @@ Or pin a version:
|
|
|
47
55
|
sf plugins install sf-plugin-permission-sets@x.y.z
|
|
48
56
|
```
|
|
49
57
|
|
|
50
|
-
Requires Salesforce CLI (`sf`) and Node.js
|
|
58
|
+
Requires Salesforce CLI (`sf`) and Node.js 20+.
|
|
51
59
|
|
|
52
60
|
## Quick start
|
|
53
61
|
|
|
54
62
|
```bash
|
|
55
63
|
# 1. Bootstrap YAML from an existing org (so you don't start from scratch)
|
|
56
|
-
sf ps export --target-org dev --output-
|
|
64
|
+
sf ps export --target-org dev --output-file permissions/dev.yml
|
|
57
65
|
|
|
58
|
-
# 2. Edit the files, commit, open a PR.
|
|
59
|
-
sf ps check --file "
|
|
66
|
+
# 2. Edit the files, commit, open a PR. Check them, no org needed:
|
|
67
|
+
sf ps check --file "permissions/*.yml"
|
|
60
68
|
|
|
61
69
|
# 3. Validate against a real org (do the users/permission sets exist?)
|
|
62
|
-
sf ps validate --file "
|
|
70
|
+
sf ps validate --file "permissions/*.yml" --target-org dev
|
|
63
71
|
|
|
64
72
|
# 4. See what would change
|
|
65
|
-
sf ps plan --file "
|
|
73
|
+
sf ps plan --file "permissions/*.yml" --target-org dev
|
|
66
74
|
|
|
67
75
|
# 5. Apply it (additive by default, only adds)
|
|
68
|
-
sf ps apply --file "
|
|
76
|
+
sf ps apply --file "permissions/*.yml" --target-org dev
|
|
69
77
|
|
|
70
78
|
# 6. Full reconcile, including removals (opt-in)
|
|
71
|
-
sf ps apply --file "
|
|
79
|
+
sf ps apply --file "permissions/*.yml" --target-org prod --mode sync
|
|
72
80
|
```
|
|
73
81
|
|
|
74
82
|
## Permission files
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
`check`, `validate`, `plan`, and `apply` read one or more YAML files with `--file` (alias `-f`). (`export` writes YAML rather than reading it, so there `-f` is the output file.)
|
|
77
85
|
|
|
78
86
|
Multiple files are merged into one model, so splitting by team is encouraged. The files contain **only declarative data**: knobs like sync mode and exclusions are CLI flags (see [Commands](#commands)), so there's no separate config format to learn yet. Each top-level key is unique within a file, and `check` flags duplicates.
|
|
79
87
|
|
|
@@ -108,6 +116,24 @@ users:
|
|
|
108
116
|
- Sales_Manager
|
|
109
117
|
```
|
|
110
118
|
|
|
119
|
+
### Timed access (expiration)
|
|
120
|
+
|
|
121
|
+
A permission set or permission set group entry can be a plain name or an object with an `expiration`. The expiration is an ISO 8601 datetime, and Salesforce removes access automatically when it passes. Plain names never expire.
|
|
122
|
+
|
|
123
|
+
```yaml
|
|
124
|
+
users:
|
|
125
|
+
contractor@acme.com:
|
|
126
|
+
permissionSets:
|
|
127
|
+
- Read_Only # permanent
|
|
128
|
+
- name: Sales_Manager # expires automatically
|
|
129
|
+
expiration: 2026-12-31T23:59:59Z
|
|
130
|
+
permissionSetGroups:
|
|
131
|
+
- name: Project_Phoenix_Bundle
|
|
132
|
+
expiration: 2026-09-30T00:00:00Z
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Expiration is a property of the grant, so `plan` and `apply` treat a changed `expiration` on an already-assigned target as an **update** (the `~` line, which shows the `old → new` transition), not an add or a remove. Updates ride with the additive half: they run in `additive` and `sync` modes and never count against `--max-deletes`. Permission set **licenses** cannot expire (Salesforce has no expiration on `PermissionSetLicenseAssign`), so the object form is rejected there. `export` writes the object form for any assignment that currently has an expiration in the org.
|
|
136
|
+
|
|
111
137
|
The `--file` flag is repeatable and the plugin expands globs itself, so all of these work:
|
|
112
138
|
|
|
113
139
|
```bash
|
|
@@ -155,15 +181,27 @@ The two compose: a directory per environment, each split into functional files.
|
|
|
155
181
|
|
|
156
182
|
## Modes
|
|
157
183
|
|
|
158
|
-
A run performs
|
|
184
|
+
A run performs three operations: **add** missing assignments, **update** changed expirations on declared ones, and **remove** undeclared ones. Updates ride with the additive half (they touch a declared grant, never revoke access). The mode selects which it actually executes. Set it with `--mode` (default `additive`):
|
|
185
|
+
|
|
186
|
+
| Mode | Adds missing | Updates expirations | Removes undeclared | Use when… |
|
|
187
|
+
| ------------- | :----------: | :-----------------: | :----------------: | --------------------------------------------------------------------- |
|
|
188
|
+
| `sync` | ✅ | ✅ | ✅ | Full reconcile: make the org exactly match the YAML (`sync` = `additive` + `destructive`). |
|
|
189
|
+
| `additive` | ✅ | ✅ | ❌ | **Default.** Grant access, never revoke. Safe rollout. |
|
|
190
|
+
| `destructive` | ❌ | ❌ | ✅ | Prune/revoke access that isn't declared, without granting anything new. |
|
|
159
191
|
|
|
160
|
-
|
|
161
|
-
| ------------- | :----------: | :----------------: | --------------------------------------------------------------------- |
|
|
162
|
-
| `additive` | ✅ | ❌ | **Default.** Grant access, never revoke. Safe rollout. |
|
|
163
|
-
| `destructive` | ❌ | ✅ | Prune/revoke access that isn't declared, without granting anything new. |
|
|
164
|
-
| `sync` | ✅ | ✅ | Full reconcile: make the org exactly match the YAML (`sync` = `additive` + `destructive`). |
|
|
192
|
+
`plan` and `apply` preview and act on exactly what the selected mode covers, so the body shows only those operations and what `plan` shows is what `apply` does. Anything the mode won't touch (an undeclared assignment under `additive`, a missing grant under `destructive`) is reported beneath the plan as **drift**, naming the mode that would include it. `sync` covers everything, so it never reports drift.
|
|
165
193
|
|
|
166
|
-
|
|
194
|
+
## Validations
|
|
195
|
+
|
|
196
|
+
Every run checks the files first. `check` runs the file checks with no org, and `validate` adds the org-side checks. When files merge, most overlaps are unions rather than errors.
|
|
197
|
+
|
|
198
|
+
| Situation | Checked by | Severity | Result |
|
|
199
|
+
| --- | --- | :---: | --- |
|
|
200
|
+
| Same user in two files with different targets | `check` | ✅ ok | Merged into one model, the point of slicing |
|
|
201
|
+
| Same target listed twice for a user | `check` | ⚠️ warning | Deduped |
|
|
202
|
+
| A user with no scopes, or an empty list | `check` | ⚠️ warning | Ignored as a no-op |
|
|
203
|
+
| Same username key appears twice in one file | `check` | ❌ error | Rejected, the intent is ambiguous |
|
|
204
|
+
| Declared user, permission set, group, or license missing or not unique | `validate` | ❌ error | Run fails before any change |
|
|
167
205
|
|
|
168
206
|
## Commands
|
|
169
207
|
|
|
@@ -171,13 +209,13 @@ A run performs two atomic operations: **add** missing assignments and **remove**
|
|
|
171
209
|
| ---------------- | ---------------------------------------------------------------------- |
|
|
172
210
|
| `sf ps check` | Static analysis of the files alone: schema, duplicates, conflicts, identifier shape. No org, no auth. |
|
|
173
211
|
| `sf ps validate` | Everything `check` does, plus resolving every user/permission set against the org. |
|
|
174
|
-
| `sf ps plan` | Compute and display the change set
|
|
212
|
+
| `sf ps plan` | Compute and display the change set: a read-only preview of what `apply` would do. |
|
|
175
213
|
| `sf ps apply` | Reconcile the org. Honors `--mode`, prompts before deletes, enforces guardrails. |
|
|
176
214
|
| `sf ps export` | Generate YAML from the current org state to bootstrap adoption. |
|
|
177
215
|
|
|
178
216
|
### `sf ps check`
|
|
179
217
|
|
|
180
|
-
|
|
218
|
+
Needs no org: runs in any CI job or pre-commit hook without org credentials.
|
|
181
219
|
|
|
182
220
|
```
|
|
183
221
|
USAGE
|
|
@@ -188,11 +226,11 @@ FLAGS
|
|
|
188
226
|
--strict Treat warnings as errors.
|
|
189
227
|
|
|
190
228
|
CHECKS
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
229
|
+
- valid YAML & schema (unknown keys rejected)
|
|
230
|
+
- duplicate assignees / duplicate (user, target) pairs
|
|
231
|
+
- conflicting intent across files
|
|
232
|
+
- empty or malformed assignee usernames
|
|
233
|
+
- internal referential integrity
|
|
196
234
|
```
|
|
197
235
|
|
|
198
236
|
### `sf ps validate`
|
|
@@ -205,7 +243,7 @@ FLAGS
|
|
|
205
243
|
-o, --target-org=<org> (required) Org to resolve against.
|
|
206
244
|
-f, --file=<glob>... (required) YAML file(s) to read. Repeatable, globs expanded by the plugin.
|
|
207
245
|
|
|
208
|
-
Runs
|
|
246
|
+
Runs everything `check` does, then verifies that every user (active), permission set,
|
|
209
247
|
group, and license referenced actually exists and resolves uniquely.
|
|
210
248
|
```
|
|
211
249
|
|
|
@@ -213,44 +251,65 @@ group, and license referenced actually exists and resolves uniquely.
|
|
|
213
251
|
|
|
214
252
|
```
|
|
215
253
|
USAGE
|
|
216
|
-
$ sf ps plan -o <org> -f <glob>... [--mode <value>] [--
|
|
254
|
+
$ sf ps plan -o <org> -f <glob>... [--mode <value>] [--show-unchanged] [--json]
|
|
217
255
|
|
|
218
256
|
FLAGS
|
|
219
257
|
-o, --target-org=<org> (required)
|
|
220
258
|
-f, --file=<glob>... (required) YAML file(s) to read. Repeatable, globs expanded by the plugin.
|
|
221
259
|
--mode=<value> additive | destructive | sync [default: additive]
|
|
222
|
-
--
|
|
260
|
+
--show-unchanged List assignments that already match, instead of only counting them.
|
|
223
261
|
```
|
|
224
262
|
|
|
225
|
-
|
|
263
|
+
The body shows only what the mode will do, and unchanged assignments are summarized as a count (pass `--show-unchanged` to list them). The default `additive` run previews only what it grants, and reports the undeclared assignment it won't remove as drift:
|
|
226
264
|
|
|
227
265
|
```text
|
|
228
|
-
$ sf ps plan -o prod
|
|
266
|
+
$ sf ps plan -o prod -f "permissions/*.yml"
|
|
229
267
|
|
|
230
268
|
Permission Set Assignments Plan
|
|
231
|
-
Org: prod (00D5g0000000abcEAA) Mode:
|
|
269
|
+
Org: prod (00D5g0000000abcEAA) Mode: additive
|
|
232
270
|
|
|
233
|
-
|
|
271
|
+
Permission Sets
|
|
272
|
+
Report_Builder
|
|
273
|
+
+ jdoe@acme.com
|
|
234
274
|
Sales_Manager
|
|
235
275
|
+ asmith@acme.com
|
|
236
|
-
|
|
237
|
-
|
|
276
|
+
~ csmith@acme.com expires 2026-12-31T23:59:59Z → 2027-06-30T23:59:59Z
|
|
277
|
+
|
|
278
|
+
Plan: 2 to add, 1 to update. 3 users affected.
|
|
279
|
+
Drift: 1 undeclared assignment not removed in additive mode. Run --mode sync to remove it.
|
|
280
|
+
Unchanged: 4 assignments (--show-unchanged to list).
|
|
281
|
+
|
|
282
|
+
Next: sf ps apply -o prod -f "permissions/*.yml"
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
The same files under `--mode sync` act on that drift too, so the removal now appears in the body and the drift line is gone:
|
|
286
|
+
|
|
287
|
+
```text
|
|
288
|
+
$ sf ps plan -o prod -f "permissions/*.yml" --mode sync
|
|
289
|
+
|
|
290
|
+
Permission Set Assignments Plan
|
|
291
|
+
Org: prod (00D5g0000000abcEAA) Mode: sync
|
|
292
|
+
|
|
293
|
+
Permission Sets
|
|
238
294
|
Report_Builder
|
|
239
295
|
+ jdoe@acme.com
|
|
296
|
+
Sales_Manager
|
|
297
|
+
+ asmith@acme.com
|
|
298
|
+
~ csmith@acme.com expires 2026-12-31T23:59:59Z → 2027-06-30T23:59:59Z
|
|
299
|
+
- bwayne@acme.com
|
|
240
300
|
|
|
241
|
-
|
|
242
|
-
|
|
301
|
+
Plan: 2 to add, 1 to update, 1 to remove. 4 users affected.
|
|
302
|
+
Unchanged: 4 assignments (--show-unchanged to list).
|
|
243
303
|
|
|
244
|
-
|
|
245
|
-
► Review, then run: sf ps apply -o prod --mode sync
|
|
304
|
+
Next: sf ps apply -o prod -f "permissions/*.yml" --mode sync
|
|
246
305
|
```
|
|
247
306
|
|
|
248
307
|
### `sf ps apply`
|
|
249
308
|
|
|
250
309
|
```
|
|
251
310
|
USAGE
|
|
252
|
-
$ sf ps apply -o <org> -f <glob>... [--mode <value>]
|
|
253
|
-
[--dry-run] [--no-prompt] [--json]
|
|
311
|
+
$ sf ps apply -o <org> -f <glob>... [--mode <value>]
|
|
312
|
+
[--max-deletes <n>] [--dry-run] [--show-unchanged] [--no-prompt] [--json]
|
|
254
313
|
|
|
255
314
|
FLAGS
|
|
256
315
|
-o, --target-org=<org> (required)
|
|
@@ -258,88 +317,245 @@ FLAGS
|
|
|
258
317
|
--mode=<value> additive | destructive | sync [default: additive]
|
|
259
318
|
--max-deletes=<n> Abort if a run would remove more than n assignments. [default: 50]
|
|
260
319
|
--dry-run Resolve and diff, print what would happen, change nothing.
|
|
320
|
+
--show-unchanged List assignments that already match, instead of only counting them.
|
|
261
321
|
--no-prompt Skip the deletion confirmation prompt (for CI).
|
|
262
322
|
```
|
|
263
323
|
|
|
324
|
+
`apply` recomputes from the files every run: it re-reads the YAML, re-resolves every reference to an org id, and re-diffs against live state, then acts per `--mode`. Run `plan` shortly before `apply` so the preview you review reflects what `apply` will do (an edited file, a renamed permission set, or another admin's change between the two shifts the outcome).
|
|
325
|
+
|
|
264
326
|
Deletions always prompt for confirmation unless `--no-prompt` is set, and are hard-capped by `--max-deletes` so a bad merge can't unassign your whole org. DML is executed with the sObject Collections API and reports partial successes/failures per record.
|
|
265
327
|
|
|
266
328
|
### `sf ps export`
|
|
267
329
|
|
|
330
|
+
Read-only. Snapshots the org's current assignments as YAML you can commit and then feed back into the other commands. Writes to a file with `--output-file`, or to stdout when that flag is omitted.
|
|
331
|
+
|
|
268
332
|
```
|
|
269
333
|
USAGE
|
|
270
|
-
$ sf ps export -o <org> [
|
|
271
|
-
|
|
334
|
+
$ sf ps export -o <org> [-f <file>] [--user <username>...]
|
|
335
|
+
[--kind <scope>...] [--json]
|
|
272
336
|
|
|
273
337
|
FLAGS
|
|
274
|
-
-o, --target-org=<org>
|
|
275
|
-
--output-
|
|
276
|
-
--
|
|
277
|
-
--
|
|
338
|
+
-o, --target-org=<org> (required) Org to read assignments from.
|
|
339
|
+
-f, --output-file=<file> Path of the YAML file to write. Parent directories are created; an existing file is overwritten. Omit to write to stdout.
|
|
340
|
+
--user=<username>... Only export these users. Repeatable, matched on exact username.
|
|
341
|
+
--kind=<scope>... Only export these scopes: permissionSets | permissionSetGroups | permissionSetLicenses. Repeatable.
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
It exports every assignable permission set, group, and license assignment held by active users, keyed by username, so the result is immediately valid input for `check`, `validate`, `plan`, and `apply`. Profile-owned permission sets and inactive users are skipped.
|
|
345
|
+
|
|
346
|
+
With `--output-file` the command writes the file and prints a one-line summary. Omit the flag and the YAML goes to stdout instead, byte-for-byte identical to what the file would contain, so it pipes and diffs cleanly: in that mode only the document reaches stdout and warnings go to stderr, so there is nothing to strip. Under `--json` the envelope is the only thing on stdout, and when `--output-file` is omitted the document comes back in its `content` field.
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
# Diff the org's live state against a committed snapshot
|
|
350
|
+
sf ps export -o prod | diff - permissions/prod.yml
|
|
351
|
+
|
|
352
|
+
# Redirect a scoped snapshot to a file of your choosing
|
|
353
|
+
sf ps export -o prod --user jdoe@acme.com > jdoe.yml
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
By default the whole org is exported. `--user` and `--kind` narrow the snapshot: pass either to scope it down, and pass both to intersect (the named users, restricted to the named scopes). Values within a flag are a union, so `--user jdoe@acme.com --user asmith@acme.com` exports both. The `--kind` values are the same scope keys the file uses, so `--kind permissionSetLicenses` reads back exactly the `permissionSetLicenses:` block.
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
# Snapshot one team's permission sets and groups only
|
|
360
|
+
sf ps export -o prod --output-file team.yml \
|
|
361
|
+
--user jdoe@acme.com --user asmith@acme.com \
|
|
362
|
+
--kind permissionSets --kind permissionSetGroups
|
|
278
363
|
```
|
|
279
364
|
|
|
280
|
-
|
|
365
|
+
A requested `--user` that has no matching assignments (a typo, or a user who genuinely holds nothing in scope) is reported as a warning and the export continues with whoever matched, so a mistyped username never masquerades as a clean empty file.
|
|
281
366
|
|
|
282
|
-
|
|
367
|
+
## GitHub Actions
|
|
368
|
+
|
|
369
|
+
Three small workflows that build on each other: check pull requests with no org at all, validate the same files against the real org, then apply on merge.
|
|
370
|
+
|
|
371
|
+
**1. Check pull requests to main** (no org, no secrets):
|
|
283
372
|
|
|
284
373
|
```yaml
|
|
285
|
-
# .github/workflows/
|
|
286
|
-
name:
|
|
374
|
+
# .github/workflows/permissions-check.yml
|
|
375
|
+
name: permissions-check
|
|
376
|
+
|
|
287
377
|
on:
|
|
288
378
|
pull_request:
|
|
289
|
-
push:
|
|
290
379
|
branches: [main]
|
|
291
380
|
|
|
292
381
|
jobs:
|
|
293
382
|
check:
|
|
294
383
|
runs-on: ubuntu-latest
|
|
295
384
|
steps:
|
|
296
|
-
- uses: actions/checkout@
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
385
|
+
- uses: actions/checkout@v7
|
|
386
|
+
- uses: actions/setup-node@v7
|
|
387
|
+
with:
|
|
388
|
+
node-version: 20
|
|
389
|
+
|
|
390
|
+
- name: Install Salesforce CLI
|
|
391
|
+
run: npm install --global @salesforce/cli
|
|
392
|
+
|
|
393
|
+
- name: Install the plugin
|
|
394
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
395
|
+
|
|
396
|
+
- name: Check the permission files
|
|
397
|
+
run: sf ps check --file "permissions/*.yml"
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
**2. Validate pull requests against the org** (needs org auth):
|
|
401
|
+
|
|
402
|
+
```yaml
|
|
403
|
+
# .github/workflows/permissions-validate.yml
|
|
404
|
+
name: permissions-validate
|
|
405
|
+
|
|
406
|
+
on:
|
|
407
|
+
pull_request:
|
|
408
|
+
branches: [main]
|
|
409
|
+
paths:
|
|
410
|
+
- "permissions/**"
|
|
411
|
+
|
|
412
|
+
jobs:
|
|
413
|
+
validate:
|
|
304
414
|
runs-on: ubuntu-latest
|
|
305
415
|
steps:
|
|
306
|
-
- uses: actions/checkout@
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
416
|
+
- uses: actions/checkout@v7
|
|
417
|
+
- uses: actions/setup-node@v7
|
|
418
|
+
with:
|
|
419
|
+
node-version: 20
|
|
420
|
+
|
|
421
|
+
- name: Install Salesforce CLI
|
|
422
|
+
run: npm install --global @salesforce/cli
|
|
423
|
+
|
|
424
|
+
- name: Install the plugin
|
|
425
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
426
|
+
|
|
427
|
+
- name: Log in to the org
|
|
428
|
+
run: echo '${{ secrets.SFDX_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
|
|
429
|
+
|
|
430
|
+
- name: Validate the permission files
|
|
431
|
+
run: sf ps validate --file "permissions/*.yml" --target-org prod
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**3. Apply on merge to main** (needs org auth):
|
|
435
|
+
|
|
436
|
+
```yaml
|
|
437
|
+
# .github/workflows/permissions-apply.yml
|
|
438
|
+
name: permissions-apply
|
|
439
|
+
|
|
440
|
+
on:
|
|
441
|
+
push:
|
|
442
|
+
branches: [main]
|
|
314
443
|
|
|
444
|
+
jobs:
|
|
315
445
|
apply:
|
|
316
|
-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
317
|
-
needs: check
|
|
318
446
|
runs-on: ubuntu-latest
|
|
319
447
|
steps:
|
|
320
|
-
- uses: actions/checkout@
|
|
321
|
-
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
448
|
+
- uses: actions/checkout@v7
|
|
449
|
+
- uses: actions/setup-node@v7
|
|
450
|
+
with:
|
|
451
|
+
node-version: 20
|
|
452
|
+
|
|
453
|
+
- name: Install Salesforce CLI
|
|
454
|
+
run: npm install --global @salesforce/cli
|
|
455
|
+
|
|
456
|
+
- name: Install the plugin
|
|
457
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
458
|
+
|
|
459
|
+
- name: Log in to the org
|
|
460
|
+
run: echo '${{ secrets.SFDX_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
|
|
461
|
+
|
|
462
|
+
- name: Apply the assignments
|
|
463
|
+
run: sf ps apply --file "permissions/*.yml" --target-org prod --mode sync --no-prompt
|
|
327
464
|
```
|
|
328
465
|
|
|
329
|
-
|
|
466
|
+
Workflows 2 and 3 share one secret. Get the auth URL once with `sf org display --verbose --target-org prod`, copy the `Sfdx Auth Url` value, and save it as a repository secret named `SFDX_AUTH_URL`.
|
|
467
|
+
|
|
468
|
+
Want the diff on the PR before merging? Add a `sf ps plan --file "permissions/*.yml" --target-org prod` step to workflow 2, right after the login step, so reviewers see the change set that `apply` will carry out on merge.
|
|
330
469
|
|
|
331
470
|
## Inspiration & equivalents
|
|
332
471
|
|
|
333
|
-
|
|
472
|
+
This plugin's command surface borrows ideas from tools you already know:
|
|
473
|
+
|
|
474
|
+
- [Terraform](https://developer.hashicorp.com/terraform/docs)
|
|
475
|
+
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/)
|
|
476
|
+
- [AWS SAM](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/)
|
|
477
|
+
- [Salesforce CLI](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm)
|
|
478
|
+
|
|
479
|
+
## Versioning
|
|
480
|
+
|
|
481
|
+
Releases follow [semantic versioning](https://semver.org). Snapshots are automatic, real releases are a manual decision.
|
|
482
|
+
|
|
483
|
+
**Automatic, no action needed:**
|
|
484
|
+
|
|
485
|
+
- Every push to `main` publishes a snapshot `0.0.0-dev.<run>` to the `dev` dist-tag.
|
|
486
|
+
- Creating a release triggers CI to build, stamp the version from the tag, publish it with provenance, and smoke-test the result.
|
|
487
|
+
|
|
488
|
+
**Manual, you decide and trigger:**
|
|
489
|
+
|
|
490
|
+
- Choosing the version bump (patch, minor, or major).
|
|
491
|
+
- Creating the GitHub Release, which is what triggers the publish above.
|
|
492
|
+
|
|
493
|
+
**While on `0.x`:** breaking changes may ship in **any** release, including minor bumps. The plugin is under active development and the public API is not yet stable. The table below describes the contract that takes effect at `v1.0.0`.
|
|
494
|
+
|
|
495
|
+
| Bump | When | Example tag |
|
|
496
|
+
| --- | --- | --- |
|
|
497
|
+
| patch | bug fix, no behavior change | `v0.1.1` |
|
|
498
|
+
| minor | new backward-compatible feature | `v0.2.0` |
|
|
499
|
+
| major | breaking change to a command, flag, or the YAML schema | `v1.0.0` |
|
|
500
|
+
|
|
501
|
+
Cut a release with a tag off `main`:
|
|
502
|
+
|
|
503
|
+
```bash
|
|
504
|
+
gh release create v0.2.0 --target main --title v0.2.0 --notes "Add ps export"
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
| dist-tag | Published by | Install |
|
|
508
|
+
| --- | --- | --- |
|
|
509
|
+
| `latest` | manual release with a normal tag like `v1.2.0` | `sf plugins install sf-plugin-permission-sets` |
|
|
510
|
+
| `dev` | automatic on every push to `main` | `sf plugins install sf-plugin-permission-sets@dev` |
|
|
511
|
+
|
|
512
|
+
## Architecture
|
|
513
|
+
|
|
514
|
+
The plugin is layered so every command reuses the same core. Commands stay thin, services hold the orchestration, core holds the reusable primitives, and a thin adapter layer isolates the Salesforce SDK.
|
|
515
|
+
|
|
516
|
+
- **Commands** (`src/commands/ps/`): oclif only. They parse flags, construct the service (wiring in the org adapter when the command needs one), render output, and set the exit code.
|
|
517
|
+
- **Services** (`src/services/`): one per command (`check`, `validate`, `export`, `apply`, and `plan`), plus `resolution`, which the org-facing ones share. Each is a class whose constructor takes only its dependencies (the org client, a confirmation callback), while the per-invocation inputs are `run()` parameters, so one instance serves any number of runs. A service also declares the ports it needs from the outside, like the `OrgClient` interface its adapter implements.
|
|
518
|
+
- **Core** (`src/core/`): the reusable building blocks. Pure, with no `@salesforce/*` imports, so every piece is unit-testable on its own.
|
|
519
|
+
- **Adapters** (`src/adapters/`): the boundary to the outside world. `ConnectionOrgClient` implements the `OrgClient` port (declared in services) with a Salesforce `Connection`, and owns all the SOQL and SObject detail. Services depend on the port, not the SDK, so they test against a fake and stay free of connection detail.
|
|
520
|
+
|
|
521
|
+
| Core module | Responsibility |
|
|
522
|
+
| --- | --- |
|
|
523
|
+
| `model` | Shared domain types (assignment, org, diff). |
|
|
524
|
+
| `finding` | The finding type and code vocabulary, plus constructors, formatting, and counting. |
|
|
525
|
+
| `schema` | The zod contract for a file, plus validation. |
|
|
526
|
+
| `parse` | File text to an object, with YAML and duplicate-key errors. |
|
|
527
|
+
| `normalize` | A validated file to canonical `(assignee, kind, target)` tuples, plus structural findings. |
|
|
528
|
+
| `serialize` | Canonical tuples back to a user-keyed YAML document (the inverse of `normalize`). |
|
|
529
|
+
| `load` | Expand globs, run parse then validate then normalize per file, and merge by union. |
|
|
530
|
+
| `resolve` | Pure rules that turn declared references and the org's answers into findings, plus id lookups for assigning. No SOQL: the adapter owns that. |
|
|
531
|
+
| `diff` | The desired model vs. the org's current state, producing adds, removes, and unchanged. |
|
|
532
|
+
| `mode` | Scope a diff to what a reconcile mode acts on, plus the drift it leaves alone. |
|
|
533
|
+
| `report` | Format a diff as a plan. |
|
|
534
|
+
|
|
535
|
+
Commands are slices of one pipeline. `check` runs the **load** stage only, with no org. `validate` adds **resolve**: it looks the declared references up through the `OrgClient` port (the adapter builds the SOQL) and evaluates the org's answers with resolve's pure rules. `export` runs in the opposite direction: it **fetch**es the org's current assignments through the port and **serialize**s them straight back to YAML, skipping load entirely. `apply` is the full pipeline: load, resolve to ids, **fetch** current state, **diff**, then insert and delete through the Collections API per the mode (guarded by `--max-deletes` and a confirmation). `plan` is that same pipeline stopping before the DML: load, resolve to ids, **fetch** current state, **diff**, and report, the same preview `apply --dry-run` produces.
|
|
536
|
+
|
|
537
|
+
## Development
|
|
538
|
+
|
|
539
|
+
```bash
|
|
540
|
+
npm ci
|
|
541
|
+
npm run build # compile and lint
|
|
542
|
+
npm test # compile, then run the suite
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
The suite is black-box: every spec spawns the real `sf ps ...` binary. Install the Salesforce CLI first (`npm install -g @salesforce/cli`). The test run links this plugin into `sf` before the first spec and unlinks it at the end.
|
|
546
|
+
|
|
547
|
+
### Test environment
|
|
548
|
+
|
|
549
|
+
Tests take their parameters from the environment, never from a committed file. Copy the template and fill it in:
|
|
550
|
+
|
|
551
|
+
```bash
|
|
552
|
+
cp .env.example .env
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
| Variable | Required | What it is |
|
|
556
|
+
| --- | --- | --- |
|
|
557
|
+
| `PS_TARGET_ORG` | yes | Username or alias of an already-authenticated org. The `plan`, `apply`, and `export` specs run against it. |
|
|
334
558
|
|
|
335
|
-
| This plugin | Terraform | CloudFormation / SAM | sf core |
|
|
336
|
-
| -------------------- | ---------------------- | ------------------------------- | -------------------------- |
|
|
337
|
-
| `ps check` | `terraform validate` | `sam validate --lint` | n/a |
|
|
338
|
-
| `ps validate` | `terraform plan` (refresh) | `cfn validate-template` | `project deploy validate` |
|
|
339
|
-
| `ps plan` | `terraform plan` | `cfn create-change-set` | `project deploy preview` |
|
|
340
|
-
| `ps apply` | `terraform apply` | `cfn execute-change-set` / `sam deploy` | `project deploy start` |
|
|
341
|
-
| `ps export` | `terraform import` | n/a | n/a |
|
|
342
|
-
| `--fail-on-drift` | drift in plan exit code | `cfn detect-stack-drift` | n/a |
|
|
343
559
|
|
|
344
560
|
## License
|
|
345
561
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Connection } from '@salesforce/core';
|
|
2
|
+
import { ActualAssignment, AssignmentFilter, AssignmentOutcome, AssignmentUpdate, DesiredAssignment, OrgTarget, OrgUser, ResolvedAddition, TargetRef } from '../core/index.js';
|
|
3
|
+
import { OrgClient } from '../services/adapters/index.js';
|
|
4
|
+
/** Adapter backing OrgClient with a Salesforce Connection. autoFetchQuery pages past 2000 rows. */
|
|
5
|
+
export declare class ConnectionOrgClient implements OrgClient {
|
|
6
|
+
private readonly connection;
|
|
7
|
+
constructor(connection: Connection);
|
|
8
|
+
findUsers(usernames: string[]): Promise<OrgUser[]>;
|
|
9
|
+
findPermissionSets(names: string[]): Promise<OrgTarget[]>;
|
|
10
|
+
findPermissionSetGroups(names: string[]): Promise<OrgTarget[]>;
|
|
11
|
+
findPermissionSetLicenses(names: string[]): Promise<OrgTarget[]>;
|
|
12
|
+
listAssignments(filter?: AssignmentFilter): Promise<DesiredAssignment[]>;
|
|
13
|
+
private listMemberships;
|
|
14
|
+
private listLicenses;
|
|
15
|
+
listCurrentAssignments(targets: TargetRef[]): Promise<ActualAssignment[]>;
|
|
16
|
+
private listMembershipAssignments;
|
|
17
|
+
private listLicenseAssignments;
|
|
18
|
+
addAssignments(additions: ResolvedAddition[]): Promise<AssignmentOutcome[]>;
|
|
19
|
+
updateAssignments(updates: AssignmentUpdate[]): Promise<AssignmentOutcome[]>;
|
|
20
|
+
removeAssignments(removals: ActualAssignment[]): Promise<AssignmentOutcome[]>;
|
|
21
|
+
private query;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=connection-org-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-org-client.d.ts","sourceRoot":"","sources":["../../src/adapters/connection-org-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAEjB,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,SAAS,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAgR1D,mGAAmG;AACnG,qBAAa,mBAAoB,YAAW,SAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE7C,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMlD,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAMzD,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAM9D,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAMhE,eAAe,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAkBvE,eAAe;YAoBf,YAAY;IAYb,sBAAsB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAqBxE,yBAAyB;YAezB,sBAAsB;IAWvB,cAAc,CAAC,SAAS,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAkB3E,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAkB5E,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAmB5E,KAAK;CAItB"}
|