Skip to content

Commit 6c68494

Browse files
committed
fix: Add missing scopes to TokenScope enum
1 parent 933318c commit 6c68494

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Removed
9+
10+
- A bullet item for the Removed category.
11+
12+
-->
13+
<!--
14+
### Added
15+
16+
- A bullet item for the Added category.
17+
18+
-->
19+
<!--
20+
### Changed
21+
22+
- A bullet item for the Changed category.
23+
24+
-->
25+
<!--
26+
### Deprecated
27+
28+
- A bullet item for the Deprecated category.
29+
30+
-->
31+
32+
### Fixed
33+
34+
- Added missing scopes to the TokenScope Enum.
35+
36+
<!--
37+
### Security
38+
39+
- A bullet item for the Security category.
40+
41+
-->

pygitguardian/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,11 @@ class TokenScope(str, Enum):
749749
IP_ALLOWLIST_WRITE = "ip_allowlist:write"
750750
SOURCES_READ = "sources:read"
751751
SOURCES_WRITE = "sources:write"
752-
NHI_WRITE = "nhi:write"
752+
NHI_WRITE_VAULT = "nhi:write-vault"
753+
NHI_SEND_INVENTORY = "nhi:send-inventory"
754+
CUSTOM_TAGS_READ = "custom_tags:read"
755+
CUSTOM_TAGS_WRITE = "custom_tags:write"
756+
SECRET_READ = "secrets:read"
753757

754758

755759
class APITokensResponseSchema(BaseSchema):

0 commit comments

Comments
 (0)