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 {