Skip to content

fix(tenant): correct TenantSettings type to match proto API#722

Merged
asafshen merged 1 commit intomainfrom
fix/tenant-settings-types
Apr 26, 2026
Merged

fix(tenant): correct TenantSettings type to match proto API#722
asafshen merged 1 commit intomainfrom
fix/tenant-settings-types

Conversation

@asafshen
Copy link
Copy Markdown
Member

Summary

  • Renames sessionSettingsEnabledenabled in TenantSettings to match the ConfigureTenantSettingsRequest proto field — the old name was silently ignored by the API
  • Adds missing ssoSetupSuiteSettings?: SSOSetupSuiteSettings field to TenantSettings
  • Adds new exported types SSOSetupSuiteSettings and SSOSetupSuiteSettingsDisabledFeatures

Fixes https://github.com/descope/etc/issues/15202

Test plan

  • Verify configureSettings correctly sends enabled in the request body
  • Verify getSettings response maps to enabled correctly
  • Verify ssoSetupSuiteSettings can be passed through configureSettings
  • TypeScript compilation passes with no new errors

🤖 Generated with Claude Code

Renames `sessionSettingsEnabled` to `enabled` to match the
`ConfigureTenantSettingsRequest` proto field — the old name was silently
ignored by the API. Also adds the missing `ssoSetupSuiteSettings` field
and its supporting types (`SSOSetupSuiteSettings`,
`SSOSetupSuiteSettingsDisabledFeatures`).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 25, 2026 20:01
@shuni-bot-dev
Copy link
Copy Markdown

shuni-bot-dev Bot commented Apr 25, 2026

🐕 Review complete — View session on Shuni Portal 🐾

Copy link
Copy Markdown

@shuni-bot-dev shuni-bot-dev Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐕 Shuni's Review

Fixes TenantSettings.sessionSettingsEnabledenabled to match the proto API (the old name was silently ignored), and adds the missing ssoSetupSuiteSettings field with its nested types.

No issues found — good bones! Clean, minimal fix. New types are properly exported via the barrel export *. Test updated correctly. Woof!

Comment thread lib/management/types.ts
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the Management SDK’s TenantSettings TypeScript types with the underlying proto/API so tenant settings requests/responses use the correct field names and support newly available settings.

Changes:

  • Renamed TenantSettings.sessionSettingsEnabledTenantSettings.enabled to match the proto field.
  • Added ssoSetupSuiteSettings?: SSOSetupSuiteSettings to TenantSettings plus new exported SSOSetupSuiteSettings* types.
  • Updated tenant management tests to use the renamed enabled property.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/management/types.ts Updates TenantSettings shape to match the proto API; introduces new SSO setup suite settings types/field.
lib/management/tenant.test.ts Updates mocked tenant settings to use the new enabled field name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/management/types.ts
@asafshen asafshen enabled auto-merge (squash) April 25, 2026 20:05
@asafshen asafshen requested a review from LioriE April 25, 2026 20:05
@asafshen asafshen merged commit 81b09ed into main Apr 26, 2026
31 checks passed
@asafshen asafshen deleted the fix/tenant-settings-types branch April 26, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants