2026-04-09 10:01:23 +08:00
|
|
|
package openidentity
|
|
|
|
|
|
2026-08-28 22:23:13 +08:00
|
|
|
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
|
|
|
|
2026-08-21 00:41:07 +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.
|
2026-04-28 11:10:47 +08:00
|
|
|
type ExternalUser struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
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
|
|
|
}
|