Files
ai-agent/internal/pkg/openidentity/openidentity.go
T

18 lines
694 B
Go
Raw Normal View History

2026-04-09 10:01:23 +08:00
package openidentity
import (
"code.tczkiot.com/wlw/ai-agent/identity"
"code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
)
2026-04-09 10:01:23 +08:00
// ExternalUser is a be-system user identity adapted for customer-service
// conversations. Authentication is completed by the host before this value is
// created; this package contains no token parsing or verification.
type ExternalUser struct {
ExternalSource enums.ExternalSource `json:"external_source"`
ExternalID string `json:"external_id"`
ExternalName string `json:"external_name"`
SubjectType identity.SubjectType `json:"subject_type,omitempty"`
SubjectID int64 `json:"subject_id,omitempty"`
2026-04-09 10:01:23 +08:00
}