Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dc04d30b352063b5c97e45de03be5c83629f5412
4b4e0618779460dbebc1cf5e0f02197c21796d1f
8 changes: 7 additions & 1 deletion scripts/sdk-release-metadata.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ function scopeFromName(name) {
if (/^(Group|CreateGroup|UpdateGroup)/.test(name)) return 'groups';
if (/OrganizationMembership/.test(name)) return 'organization_membership';
if (/^OrganizationDomain/.test(name)) return 'organization_domains';
if (/^DomainVerification/.test(name)) return 'organization_domains';
if (/^Organization/.test(name)) return 'organizations';
if (/^(Connection|SSO|Sso)/.test(name)) return 'sso';
if (/^(AuthenticationFactor|AuthenticationChallenge|ChallengeAuthenticationFactor|MultiFactor|Mfa)/.test(name)) {
Expand All @@ -428,6 +429,11 @@ function scopeFromName(name) {
if (/^(Role|Permission)/.test(name)) return 'authorization';
if (/^Widget/.test(name)) return 'widgets';
if (/^Event/.test(name)) return 'events';
// Admin Portal generate-link intent options (`GenerateLinkDto`). The SSO and
// domain-verification variants resolve to their own scopes via the rules
// above; this catches the bare `IntentOptions` aggregate and any other
// intent-options type not otherwise classified.
if (/IntentOptions$/.test(name)) return 'admin_portal';

return 'sdk';
}
Expand All @@ -443,7 +449,7 @@ function scopeFromFile(path) {
if (/connect|applicationcredential|externalauth|userobject/.test(normalized)) return 'connect';
if (/featureflag|featureflags|feature_flags/.test(normalized)) return 'feature_flags';
if (/multifactorauth|multi_factor_auth|mfa/.test(normalized)) return 'multi_factor_auth';
if (/organizationdomain|organizationdomains|organization_domains/.test(normalized)) return 'organization_domains';
if (/organizationdomain|organizationdomains|organization_domains|domainverification|domain_verification/.test(normalized)) return 'organization_domains';
if (/organizationmembership|organizationmemberships/.test(normalized)) return 'organization_membership';
if (/organization|organizations/.test(normalized)) return 'organizations';
if (/user_management|usermanagement|revoke_session|revokesession|createuser|updateuser/.test(normalized)) {
Expand Down
Loading
Loading