@punica/editor 1.42.0 → 1.43.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.42.0",
3
+ "version": "1.43.0",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "type": "module",
@@ -72,6 +72,12 @@ declare module 'punica' {
72
72
  * reviewer instead.
73
73
  */
74
74
  approvers?: readonly string[];
75
+ /**
76
+ * The organisation those approvers hold their roles in
77
+ * (`kernel.PolicyRequest.org`), so a host that asks a reviewer
78
+ * asks the right one. Absent means the file named none.
79
+ */
80
+ org?: string;
75
81
  /**
76
82
  * Set by `referPending`: the question was handed to a reviewer
77
83
  * outside this host, under this name. A run waiting on it holds
@@ -79,6 +79,12 @@ declare module 'punica' {
79
79
  * absent means anyone at this host may decide.
80
80
  */
81
81
  approvers?: readonly string[];
82
+ /**
83
+ * The organisation those approvers hold their roles in, from the
84
+ * file's `org:`. A role then counts only there; absent means a
85
+ * role in any of the person's organisations counts.
86
+ */
87
+ org?: string;
82
88
  }
83
89
 
84
90
  /**
@@ -224,6 +230,8 @@ declare module 'punica' {
224
230
  maxScope?: ApprovalScope;
225
231
  /** The deciding `require` rule's `approvers:`, when it wrote them. */
226
232
  approvers?: readonly string[];
233
+ /** The organisation those approvers hold their roles in (the file's `org:`). */
234
+ org?: string;
227
235
  reason?: string;
228
236
  /**
229
237
  * Set when a rule from a policy template decided this. Absent
@@ -557,6 +565,8 @@ declare module 'punica' {
557
565
  scope?: ApprovalScope;
558
566
  /** The rule's `approvers`, when it wrote them (`effect: require` only). */
559
567
  approvers?: string[];
568
+ /** The file's `org:`, when it wrote one — where those approvers hold their roles. */
569
+ org?: string;
560
570
  /** Digest of the template's rules — which policy text was in force. */
561
571
  digest?: string;
562
572
  /**
@@ -594,6 +604,12 @@ declare module 'punica' {
594
604
  name: string;
595
605
  description?: string;
596
606
  workspaceId?: string;
607
+ /**
608
+ * The file's `org:` — the organisation the rules' `approvers:`
609
+ * resolve against. Set by the loader on every template of a file
610
+ * that wrote it, and carried onto each rule's ref.
611
+ */
612
+ org?: string;
597
613
  rules: PolicyRule[];
598
614
  /**
599
615
  * Where the template came from. `file` templates are owned by