@gapi/ac 1.8.151 → 1.8.153

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/README.md CHANGED
@@ -1,3 +1,12 @@
1
+ The @gapi/ac library is an access control utility designed for use in GraphQL applications. It helps developers manage permissions for different user roles, such as GUEST, USER, and ADMIN, across various GraphQL actions like queries, mutations, subscriptions, and events. It allows developers to define and enforce rules for which roles can access or manipulate specific resources in the system.
2
+
3
+ Key features include:
4
+
5
+ Role-based permissions: You can define access control based on user roles (like GUEST, USER, ADMIN) and control what actions they can perform.
6
+ GraphQL-focused: Specifically built to handle permissioning in GraphQL, making it a natural fit for applications using this API standard.
7
+ Filtering data: The library allows filtering data based on user roles, so different roles see only the data they are authorized to access.
8
+ For example, an admin might have access to query a certain data field (status), while a regular user might have partial access, where some attributes of the response are filtered out based on the permission definitions.
9
+
1
10
  ```ts
2
11
  import { AccessControl, Union } from '@gapi/ac';
3
12
 
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Tue Jun 18 2024 15:55:53 GMT+0000 (Coordinated Universal Time)
98
+ at Mon Dec 08 2025 18:16:35 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="prettify.js"></script>
@@ -310,7 +310,7 @@ export * from './types';
310
310
  <div class='footer quiet pad2 space-top1 center small'>
311
311
  Code coverage generated by
312
312
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
313
- at Tue Jun 18 2024 15:55:53 GMT+0000 (Coordinated Universal Time)
313
+ at Mon Dec 08 2025 18:16:35 GMT+0000 (Coordinated Universal Time)
314
314
  </div>
315
315
  </div>
316
316
  <script src="prettify.js"></script>
@@ -95,7 +95,7 @@
95
95
  <div class='footer quiet pad2 space-top1 center small'>
96
96
  Code coverage generated by
97
97
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
98
- at Tue Jun 18 2024 15:55:53 GMT+0000 (Coordinated Universal Time)
98
+ at Mon Dec 08 2025 18:16:35 GMT+0000 (Coordinated Universal Time)
99
99
  </div>
100
100
  </div>
101
101
  <script src="prettify.js"></script>
@@ -310,7 +310,7 @@ export * from './types';
310
310
  <div class='footer quiet pad2 space-top1 center small'>
311
311
  Code coverage generated by
312
312
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
313
- at Tue Jun 18 2024 15:55:53 GMT+0000 (Coordinated Universal Time)
313
+ at Mon Dec 08 2025 18:16:35 GMT+0000 (Coordinated Universal Time)
314
314
  </div>
315
315
  </div>
316
316
  <script src="prettify.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/ac",
3
- "version": "1.8.151",
3
+ "version": "1.8.153",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"