Skip to content

feat: Added support for ThirdPartyClientAccess in V1 SDK [EA Only] - #854

Merged
KartikJha merged 1 commit into
v1from
3p-client-access-orgs
Aug 26, 2026
Merged

feat: Added support for ThirdPartyClientAccess in V1 SDK [EA Only]#854
KartikJha merged 1 commit into
v1from
3p-client-access-orgs

Conversation

@KartikJha

Copy link
Copy Markdown

feat: add ThirdPartyClientAccess support to My Organization API (EA)

🔧 Changes

  • Add ThirdPartyClientAccess *MyOrganizationThirdPartyClientAccess field to MyOrganizationConfiguration on Client, controlling whether third-party clients can access organizations created for the client through the My Organization API (Early Access).
  • Add new MyOrganizationThirdPartyClientAccess type with DefaultValue *string and AllowedValues *[]string. AllowedValues is required whenever ThirdPartyClientAccess is set. Currently the API only accepts "block" for DefaultValue; "allow" is rejected with a 400.
  • Add generated getters (GetThirdPartyClientAccess, GetAllowedValues, GetDefaultValue) and String() for the new type.

🔬 Testing

  • Added TestClient_MyOrganizationConfigurationThirdPartyClientAccess, covering creating a client with a valid ThirdPartyClientAccess config and asserting the API rejects DefaultValue: "allow" with a 400.
  • Added generated getter tests (TestMyOrganizationConfiguration_GetThirdPartyClientAccess, TestMyOrganizationThirdPartyClientAccess_GetAllowedValues, TestMyOrganizationThirdPartyClientAccess_GetDefaultValue, TestMyOrganizationThirdPartyClientAccess_String).
  • New HTTP test recording added for the integration test.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@KartikJha
KartikJha requested a review from a team as a code owner August 26, 2026 12:25
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.88%. Comparing base (63daed0) to head (090402d).

Additional details and impacted files
@@           Coverage Diff           @@
##               v1     #854   +/-   ##
=======================================
  Coverage   96.88%   96.88%           
=======================================
  Files          62       62           
  Lines       11303    11317   +14     
=======================================
+ Hits        10951    10965   +14     
  Misses        234      234           
  Partials      118      118           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KartikJha
KartikJha merged commit 8008b92 into v1 Aug 26, 2026
4 checks passed
@KartikJha
KartikJha deleted the 3p-client-access-orgs branch August 26, 2026 14:08
@KartikJha KartikJha mentioned this pull request Aug 26, 2026
@duedares-rvj duedares-rvj changed the title DXCDT-2283: Added support for ThirdPartyClientAccess in V1 SDK [EA Only] feat: Added support for ThirdPartyClientAccess in V1 SDK [EA Only] Aug 26, 2026
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