diff --git a/intents/intent_response_typed.go b/intents/intent_response_typed.go index 1a4e378..4afe24d 100644 --- a/intents/intent_response_typed.go +++ b/intents/intent_response_typed.go @@ -8,6 +8,8 @@ import ( func IntentResponseTypeToCode[T any](t *T) IntentResponseCode { var data any = t switch data.(type) { + case *IntentResponseAuthInitiated: + return IntentResponseCode_authInitiated case *IntentResponseSessionOpened: return IntentResponseCode_sessionOpened case *IntentResponseValidationStarted: @@ -32,6 +34,8 @@ func IntentResponseTypeToCode[T any](t *T) IntentResponseCode { return IntentResponseCode_accountFederated case *IntentResponseAccountRemoved: return IntentResponseCode_accountRemoved + case *IntentResponseIdToken: + return IntentResponseCode_idToken default: return "" } diff --git a/intents/intent_typed.go b/intents/intent_typed.go index 51cea85..6fc89d5 100644 --- a/intents/intent_typed.go +++ b/intents/intent_typed.go @@ -9,6 +9,8 @@ import ( func IntentDataTypeToName[T any](t *T) IntentName { var data any = t switch data.(type) { + case *IntentDataInitiateAuth: + return IntentName_initiateAuth case *IntentDataOpenSession: return IntentName_openSession case *IntentDataCloseSession: @@ -37,6 +39,8 @@ func IntentDataTypeToName[T any](t *T) IntentName { return IntentName_federateAccount case *IntentDataRemoveAccount: return IntentName_removeAccount + case *IntentDataGetIdToken: + return IntentName_getIdToken default: return "" }