2023-10-10 13:20:53 +00:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2024-09-26 07:14:33 +00:00
|
|
|
"github.com/zitadel/zitadel/internal/notification/senders"
|
2023-10-10 13:20:53 +00:00
|
|
|
"github.com/zitadel/zitadel/internal/repository/milestone"
|
|
|
|
"github.com/zitadel/zitadel/internal/repository/quota"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Commands interface {
|
|
|
|
HumanInitCodeSent(ctx context.Context, orgID, userID string) error
|
|
|
|
HumanEmailVerificationCodeSent(ctx context.Context, orgID, userID string) error
|
2024-09-26 07:14:33 +00:00
|
|
|
PasswordCodeSent(ctx context.Context, orgID, userID string, generatorInfo *senders.CodeGeneratorInfo) error
|
|
|
|
HumanOTPSMSCodeSent(ctx context.Context, userID, resourceOwner string, generatorInfo *senders.CodeGeneratorInfo) error
|
2023-10-10 13:20:53 +00:00
|
|
|
HumanOTPEmailCodeSent(ctx context.Context, userID, resourceOwner string) error
|
2024-09-26 07:14:33 +00:00
|
|
|
OTPSMSSent(ctx context.Context, sessionID, resourceOwner string, generatorInfo *senders.CodeGeneratorInfo) error
|
2023-10-10 13:20:53 +00:00
|
|
|
OTPEmailSent(ctx context.Context, sessionID, resourceOwner string) error
|
|
|
|
UserDomainClaimedSent(ctx context.Context, orgID, userID string) error
|
|
|
|
HumanPasswordlessInitCodeSent(ctx context.Context, userID, resourceOwner, codeID string) error
|
|
|
|
PasswordChangeSent(ctx context.Context, orgID, userID string) error
|
2024-09-26 07:14:33 +00:00
|
|
|
HumanPhoneVerificationCodeSent(ctx context.Context, orgID, userID string, generatorInfo *senders.CodeGeneratorInfo) error
|
2024-09-11 10:53:55 +00:00
|
|
|
InviteCodeSent(ctx context.Context, orgID, userID string) error
|
2023-10-10 13:20:53 +00:00
|
|
|
UsageNotificationSent(ctx context.Context, dueEvent *quota.NotificationDueEvent) error
|
2024-10-28 08:29:34 +00:00
|
|
|
MilestonePushed(ctx context.Context, instanceID string, msType milestone.Type, endpoints []string) error
|
2023-10-10 13:20:53 +00:00
|
|
|
}
|