Skip to content

Conversation

@kduprey
Copy link
Contributor

@kduprey kduprey commented Oct 20, 2025

Changes

  • Add EnterpriseAccount type with SAML/OAuth enterprise connection support
  • Enhance User struct with new fields:
    • CreatedAt, UpdatedAt, MFAEnabledAt, MFADisabledAt, LegalAcceptedAt
    • EnterpriseAccounts for enterprise SSO support
  • Update EmailAddress with MatchesSsoConnection field
  • Add shared Verification and LinkedIdentification types

@kduprey kduprey self-assigned this Oct 20, 2025
@kduprey kduprey requested a review from a team as a code owner October 20, 2025 20:04
@kduprey kduprey requested a review from NicolasLopes7 October 20, 2025 20:08
@kduprey kduprey force-pushed the kenton/user-3746-add-missing-fields-on-user-struct-in-clerk-sdk-go branch from f23b38e to ce719d8 Compare October 20, 2025 20:18
email_address.go Outdated
Reserved bool `json:"reserved"`
Verification *Verification `json:"verification"`
LinkedTo []*LinkedIdentification `json:"linked_to"`
MatchesSsoConnection bool `json:"matches_sso_connection"`
Copy link

Choose a reason for hiding this comment

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

Should this be MatchesSSOConnection or do we have an existing style exception for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is currently the same name as what is in our main Go repo.

Copy link

Choose a reason for hiding this comment

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

Granted. But I'm not convinced that because we are not following Go conventions in our internal repo, that we should let that unduly influence our public Go repo. If we decide to rename this later it becomes a breaking change for our customers. But internally we can usually rename more easily. So I think we should try to "get it right the first time" in this repo.

- Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support
- Enhance `User` struct with new fields:
  - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt`
  - `EnterpriseAccounts` for enterprise SSO support
- Update `EmailAddress` with `MatchesSsoConnection` field
- Add shared `Verification` and `LinkedIdentification` types

Signed-off-by: Kenton Duprey <[email protected]>
@kduprey kduprey force-pushed the kenton/user-3746-add-missing-fields-on-user-struct-in-clerk-sdk-go branch from ce719d8 to 5013049 Compare October 20, 2025 20:27
@kduprey kduprey changed the title feat: add missing User struct fields WIP: feat: add missing User struct fields Oct 20, 2025
@kduprey kduprey requested a review from jfoshee October 20, 2025 20:54
@kduprey kduprey changed the title WIP: feat: add missing User struct fields feat: add missing User struct fields Oct 20, 2025
Copy link

@jfoshee jfoshee left a comment

Choose a reason for hiding this comment

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

Thanks!

…OrganizationMembershipPublicUserData struct

Signed-off-by: Kenton Duprey <[email protected]>
… and add ExternalAccount.PhoneNumber

- Export `EnterpriseAccountConnection` type to make it publicly accessible
- Add `PhoneNumber` field to `ExternalAccount` struct
- Update `SAMLConnection` field references to use exported type

Signed-off-by: Kenton Duprey <[email protected]>
@kduprey kduprey requested a review from jfoshee October 21, 2025 14:00
Copy link

@jfoshee jfoshee left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks

@kduprey kduprey merged commit afbe003 into v3 Oct 21, 2025
8 checks passed
@kduprey kduprey deleted the kenton/user-3746-add-missing-fields-on-user-struct-in-clerk-sdk-go branch October 21, 2025 14:31
kduprey added a commit that referenced this pull request Oct 21, 2025
* feat: add missing User struct fields

- Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support
- Enhance `User` struct with new fields:
  - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt`
  - `EnterpriseAccounts` for enterprise SSO support
- Update `EmailAddress` with `MatchesSsoConnection` field
- Add shared `Verification` and `LinkedIdentification` types

Signed-off-by: Kenton Duprey <[email protected]>

* refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs

Signed-off-by: Kenton Duprey <[email protected]>

* fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields

Signed-off-by: Kenton Duprey <[email protected]>

* feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct

Signed-off-by: Kenton Duprey <[email protected]>

* feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber

- Export `EnterpriseAccountConnection` type to make it publicly accessible
- Add `PhoneNumber` field to `ExternalAccount` struct
- Update `SAMLConnection` field references to use exported type

Signed-off-by: Kenton Duprey <[email protected]>

---------

Signed-off-by: Kenton Duprey <[email protected]>
kduprey added a commit that referenced this pull request Oct 22, 2025
* feat: add missing User struct fields

- Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support
- Enhance `User` struct with new fields:
  - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt`
  - `EnterpriseAccounts` for enterprise SSO support
- Update `EmailAddress` with `MatchesSsoConnection` field
- Add shared `Verification` and `LinkedIdentification` types

Signed-off-by: Kenton Duprey <[email protected]>

* refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs

Signed-off-by: Kenton Duprey <[email protected]>

* fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields

Signed-off-by: Kenton Duprey <[email protected]>

* feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct

Signed-off-by: Kenton Duprey <[email protected]>

* feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber

- Export `EnterpriseAccountConnection` type to make it publicly accessible
- Add `PhoneNumber` field to `ExternalAccount` struct
- Update `SAMLConnection` field references to use exported type

Signed-off-by: Kenton Duprey <[email protected]>

---------

Signed-off-by: Kenton Duprey <[email protected]>
kduprey added a commit that referenced this pull request Oct 22, 2025
* feat: add missing User struct fields

- Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support
- Enhance `User` struct with new fields:
  - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt`
  - `EnterpriseAccounts` for enterprise SSO support
- Update `EmailAddress` with `MatchesSsoConnection` field
- Add shared `Verification` and `LinkedIdentification` types



* refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs



* fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields



* feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct



* feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber

- Export `EnterpriseAccountConnection` type to make it publicly accessible
- Add `PhoneNumber` field to `ExternalAccount` struct
- Update `SAMLConnection` field references to use exported type



---------

Signed-off-by: Kenton Duprey <[email protected]>
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