@iblai/data-layer 1.38.0 → 1.38.1

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/dist/index.d.ts CHANGED
@@ -45,6 +45,21 @@ interface ApiToken {
45
45
  groups?: ApiTokenAssociation[];
46
46
  /** Present when the endpoint embeds per-field write flags in the payload. */
47
47
  field_permissions?: ApiTokenFieldPermissions;
48
+ /**
49
+ * What the caller may do with this token, embedded per row by the list
50
+ * endpoint. The only place edit/delete rights live: the `/apitokens/` RBAC
51
+ * resource carries just `list` and `create`.
52
+ */
53
+ permissions?: {
54
+ field?: Record<string, {
55
+ read?: boolean;
56
+ write?: boolean;
57
+ }>;
58
+ object?: {
59
+ write?: boolean;
60
+ delete?: boolean;
61
+ };
62
+ };
48
63
  }
49
64
  /**
50
65
  * Page envelope returned when `page_size` is sent. The backend reports page
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/data-layer",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
4
4
  "description": "ibl.ai data layer",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,6 +30,21 @@ export interface ApiToken {
30
30
  groups?: ApiTokenAssociation[];
31
31
  /** Present when the endpoint embeds per-field write flags in the payload. */
32
32
  field_permissions?: ApiTokenFieldPermissions;
33
+ /**
34
+ * What the caller may do with this token, embedded per row by the list
35
+ * endpoint. The only place edit/delete rights live: the `/apitokens/` RBAC
36
+ * resource carries just `list` and `create`.
37
+ */
38
+ permissions?: {
39
+ field?: Record<string, {
40
+ read?: boolean;
41
+ write?: boolean;
42
+ }>;
43
+ object?: {
44
+ write?: boolean;
45
+ delete?: boolean;
46
+ };
47
+ };
33
48
  }
34
49
  /**
35
50
  * Page envelope returned when `page_size` is sent. The backend reports page