From 39a9397cf2685bcb1aefeb78fe84c92f3ab72151 Mon Sep 17 00:00:00 2001 From: Spencer Witt <3409780+spwitt@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:43:42 -0600 Subject: [PATCH 1/3] int build ENG-3774 --- pkg/fusionauth/Domain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/fusionauth/Domain.go b/pkg/fusionauth/Domain.go index 3bcb175..0f32fc2 100644 --- a/pkg/fusionauth/Domain.go +++ b/pkg/fusionauth/Domain.go @@ -686,6 +686,7 @@ type AuditLog struct { NewValue interface{} `json:"newValue,omitempty"` OldValue interface{} `json:"oldValue,omitempty"` Reason string `json:"reason,omitempty"` + TenantId string `json:"tenantId,omitempty"` } /** @@ -739,6 +740,7 @@ type AuditLogSearchCriteria struct { OldValue string `json:"oldValue,omitempty"` Reason string `json:"reason,omitempty"` Start int64 `json:"start,omitempty"` + TenantId string `json:"tenantId,omitempty"` User string `json:"user,omitempty"` } From 5a7d4b8b957034b7460a87c4d1d5823d32da606d Mon Sep 17 00:00:00 2001 From: Spencer Witt <3409780+spwitt@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:42:46 -0600 Subject: [PATCH 2/3] add IdentityProvider.source and IdentityProviderSource enum to clients ENG-3773 --- pkg/fusionauth/Domain.go | 24 ++++++++++++++++++++---- pkg/fusionauth/Domain_dynamic_test.go | 7 +++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/pkg/fusionauth/Domain.go b/pkg/fusionauth/Domain.go index 0f32fc2..3284ff2 100644 --- a/pkg/fusionauth/Domain.go +++ b/pkg/fusionauth/Domain.go @@ -923,6 +923,7 @@ type BaseIdentityProvider struct { LastUpdateInstant int64 `json:"lastUpdateInstant,omitempty"` LinkingStrategy IdentityProviderLinkingStrategy `json:"linkingStrategy,omitempty"` Name string `json:"name,omitempty"` + Source IdentityProviderSource `json:"source,omitempty"` TenantConfiguration map[string]IdentityProviderTenantConfiguration `json:"tenantConfiguration,omitempty"` TenantId string `json:"tenantId,omitempty"` Type IdentityProviderType `json:"type,omitempty"` @@ -3377,10 +3378,11 @@ func (b *IdentityProviderResponse) SetStatus(status int) { */ type IdentityProviderSearchCriteria struct { BaseSearchCriteria - ApplicationId string `json:"applicationId,omitempty"` - Name string `json:"name,omitempty"` - TenantId string `json:"tenantId,omitempty"` - Type IdentityProviderType `json:"type,omitempty"` + ApplicationId string `json:"applicationId,omitempty"` + Name string `json:"name,omitempty"` + Source IdentityProviderSource `json:"source,omitempty"` + TenantId string `json:"tenantId,omitempty"` + Type IdentityProviderType `json:"type,omitempty"` } /** @@ -3407,6 +3409,20 @@ func (b *IdentityProviderSearchResponse) SetStatus(status int) { b.StatusCode = status } +/** + * The source of an identity provider configuration. + */ +type IdentityProviderSource string + +func (e IdentityProviderSource) String() string { + return string(e) +} + +const ( + IdentityProviderSource_System IdentityProviderSource = "System" + IdentityProviderSource_TenantManager IdentityProviderSource = "TenantManager" +) + /** * @author Daniel DeGroff */ diff --git a/pkg/fusionauth/Domain_dynamic_test.go b/pkg/fusionauth/Domain_dynamic_test.go index e31c73c..6a4557c 100644 --- a/pkg/fusionauth/Domain_dynamic_test.go +++ b/pkg/fusionauth/Domain_dynamic_test.go @@ -308,6 +308,13 @@ func Test_ClientAuthenticationMethodImplementsStringer(t *testing.T) { } } +func Test_IdentityProviderSourceImplementsStringer(t *testing.T) { + var enum interface{} = IdentityProviderSource("Test") + if _, ok := enum.(fmt.Stringer); !ok { + t.Errorf("IdentityProviderSource does not implement stringer interface\n") + } +} + func Test_IdentityProviderTypeImplementsStringer(t *testing.T) { var enum interface{} = IdentityProviderType("Test") if _, ok := enum.(fmt.Stringer); !ok { From fe8c81fc4e9a970ecba2b944fa81c02867d7d842 Mon Sep 17 00:00:00 2001 From: Spencer Witt <3409780+spwitt@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:20:18 -0600 Subject: [PATCH 3/3] add KeySource and key.source to clients ENG-3772 --- pkg/fusionauth/Domain.go | 16 ++++++++++++++++ pkg/fusionauth/Domain_dynamic_test.go | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/pkg/fusionauth/Domain.go b/pkg/fusionauth/Domain.go index 3284ff2..00c737e 100644 --- a/pkg/fusionauth/Domain.go +++ b/pkg/fusionauth/Domain.go @@ -3786,6 +3786,7 @@ type Key struct { PrivateKey string `json:"privateKey,omitempty"` PublicKey string `json:"publicKey,omitempty"` Secret string `json:"secret,omitempty"` + Source KeySource `json:"source,omitempty"` Type KeyType `json:"type,omitempty"` } @@ -3821,6 +3822,20 @@ const ( KeyAlgorithm_Ed25519 KeyAlgorithm = "Ed25519" ) +/** + * The source of a key. + */ +type KeySource string + +func (e KeySource) String() string { + return string(e) +} + +const ( + KeySource_System KeySource = "System" + KeySource_TenantManager KeySource = "TenantManager" +) + type KeyType string func (e KeyType) String() string { @@ -3867,6 +3882,7 @@ type KeySearchCriteria struct { BaseSearchCriteria Algorithm KeyAlgorithm `json:"algorithm,omitempty"` Name string `json:"name,omitempty"` + Source KeySource `json:"source,omitempty"` Type KeyType `json:"type,omitempty"` } diff --git a/pkg/fusionauth/Domain_dynamic_test.go b/pkg/fusionauth/Domain_dynamic_test.go index 6a4557c..7293eab 100644 --- a/pkg/fusionauth/Domain_dynamic_test.go +++ b/pkg/fusionauth/Domain_dynamic_test.go @@ -336,6 +336,13 @@ func Test_KeyAlgorithmImplementsStringer(t *testing.T) { } } +func Test_KeySourceImplementsStringer(t *testing.T) { + var enum interface{} = KeySource("Test") + if _, ok := enum.(fmt.Stringer); !ok { + t.Errorf("KeySource does not implement stringer interface\n") + } +} + func Test_KeyTypeImplementsStringer(t *testing.T) { var enum interface{} = KeyType("Test") if _, ok := enum.(fmt.Stringer); !ok {