From 628471277ffd74faaddc74307395cd17c1e0ccdd Mon Sep 17 00:00:00 2001 From: Guihon MENDY Date: Wed, 24 Jun 2026 09:47:47 +0200 Subject: [PATCH 1/2] feat(models): add AI_DISCOVER_SEND scope to APIScopes enum --- pygitguardian/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygitguardian/models.py b/pygitguardian/models.py index 286518b5..01f40dac 100644 --- a/pygitguardian/models.py +++ b/pygitguardian/models.py @@ -786,6 +786,7 @@ class TokenScope(str, Enum): NHI_WRITE_VAULT = "nhi:write-vault" NHI_SEND_INVENTORY = "nhi:send-inventory" ENDPOINTS_SEND = "endpoints:send" + AI_DISCOVER_SEND = "ai-discover:send" CUSTOM_TAGS_READ = "custom_tags:read" CUSTOM_TAGS_WRITE = "custom_tags:write" SECRET_READ = "secrets:read" From 889652a272b775e3db3d68766f2346bc7ba650ca Mon Sep 17 00:00:00 2001 From: Guihon MENDY Date: Wed, 24 Jun 2026 09:52:41 +0200 Subject: [PATCH 2/2] docs(changelog): document ai-discover:send scope addition --- changelog.d/20260624_000000_gmendy_ai_discover_send_scope.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog.d/20260624_000000_gmendy_ai_discover_send_scope.md diff --git a/changelog.d/20260624_000000_gmendy_ai_discover_send_scope.md b/changelog.d/20260624_000000_gmendy_ai_discover_send_scope.md new file mode 100644 index 00000000..58702664 --- /dev/null +++ b/changelog.d/20260624_000000_gmendy_ai_discover_send_scope.md @@ -0,0 +1,3 @@ +### Added + +- New `ai-discover:send` token scope.