resolvers

package
v0.0.0-...-10e9d8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEmailTemplateResolver

func AddEmailTemplateResolver(ctx context.Context, params model.AddEmailTemplateRequest) (*model.Response, error)

AddEmailTemplateResolver resolver for add email template mutation

func AddWebhookResolver

func AddWebhookResolver(ctx context.Context, params model.AddWebhookRequest) (*model.Response, error)

AddWebhookResolver resolver for add webhook mutation

func AdminLoginResolver

func AdminLoginResolver(ctx context.Context, params model.AdminLoginInput) (*model.Response, error)

AdminLoginResolver is a resolver for admin login mutation

func AdminLogoutResolver

func AdminLogoutResolver(ctx context.Context) (*model.Response, error)

AdminLogoutResolver is a resolver for admin logout mutation

func AdminSessionResolver

func AdminSessionResolver(ctx context.Context) (*model.Response, error)

AdminSessionResolver is a resolver for admin session query

func AdminSignupResolver

func AdminSignupResolver(ctx context.Context, params model.AdminSignupInput) (*model.Response, error)

AdminSignupResolver is a resolver for admin signup mutation

func DeactivateAccountResolver

func DeactivateAccountResolver(ctx context.Context) (*model.Response, error)

DeactivateAccountResolver is the resolver for the deactivate_account field.

func DeleteEmailTemplateResolver

func DeleteEmailTemplateResolver(ctx context.Context, params model.DeleteEmailTemplateRequest) (*model.Response, error)

DeleteEmailTemplateResolver resolver to delete email template and its relevant logs

func DeleteUserResolver

func DeleteUserResolver(ctx context.Context, params model.DeleteUserInput) (*model.Response, error)

DeleteUserResolver is a resolver for delete user mutation

func DeleteWebhookResolver

func DeleteWebhookResolver(ctx context.Context, params model.WebhookRequest) (*model.Response, error)

DeleteWebhookResolver resolver to delete webhook and its relevant logs

func EmailTemplatesResolver

func EmailTemplatesResolver(ctx context.Context, params *model.PaginatedInput) (*model.EmailTemplates, error)

EmailTemplatesResolver resolver for getting the list of email templates based on pagination

func EnableAccessResolver

func EnableAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)

EnableAccessResolver is a resolver for enabling user access

func EnvResolver

func EnvResolver(ctx context.Context) (*model.Env, error)

EnvResolver is a resolver for config query This is admin only query

func ForgotPasswordResolver

func ForgotPasswordResolver(ctx context.Context, params model.ForgotPasswordInput) (*model.ForgotPasswordResponse, error)

ForgotPasswordResolver is a resolver for forgot password mutation

func GenerateJWTKeysResolver

func GenerateJWTKeysResolver(ctx context.Context, params model.GenerateJWTKeysInput) (*model.GenerateJWTKeysResponse, error)

GenerateJWTKeysResolver mutation to generate new jwt keys

func InviteMembersResolver

func InviteMembersResolver(ctx context.Context, params model.InviteMemberInput) (*model.InviteMembersResponse, error)

InviteMembersResolver resolver to invite members

func LoginResolver

func LoginResolver(ctx context.Context, params model.LoginInput) (*model.AuthResponse, error)

LoginResolver is a resolver for login mutation User can login with email or phone number, but not both

func LogoutResolver

func LogoutResolver(ctx context.Context) (*model.Response, error)

LogoutResolver is a resolver for logout mutation

func MagicLinkLoginResolver

func MagicLinkLoginResolver(ctx context.Context, params model.MagicLinkLoginInput) (*model.Response, error)

MagicLinkLoginResolver is a resolver for magic link login mutation

func MetaResolver

func MetaResolver(ctx context.Context) (*model.Meta, error)

MetaResolver is a resolver for meta query

func MobileLoginResolver

func MobileLoginResolver(ctx context.Context, params model.MobileLoginInput) (*model.AuthResponse, error)

MobileLoginResolver is a resolver for mobile login mutation

func MobileSignupResolver

func MobileSignupResolver(ctx context.Context, params *model.MobileSignUpInput) (*model.AuthResponse, error)

MobileSignupResolver is a resolver for mobile_basic_auth_signup mutation

func ProfileResolver

func ProfileResolver(ctx context.Context) (*model.User, error)

ProfileResolver is a resolver for profile query

func ResendOTPResolver

func ResendOTPResolver(ctx context.Context, params model.ResendOTPRequest) (*model.Response, error)

ResendOTPResolver is a resolver for resend otp mutation

func ResendVerifyEmailResolver

func ResendVerifyEmailResolver(ctx context.Context, params model.ResendVerifyEmailInput) (*model.Response, error)

ResendVerifyEmailResolver is a resolver for resend verify email mutation

func ResetPasswordResolver

func ResetPasswordResolver(ctx context.Context, params model.ResetPasswordInput) (*model.Response, error)

ResetPasswordResolver is a resolver for reset password mutation

func RevokeAccessResolver

func RevokeAccessResolver(ctx context.Context, params model.UpdateAccessInput) (*model.Response, error)

RevokeAccessResolver is a resolver for revoking user access

func RevokeResolver

func RevokeResolver(ctx context.Context, params model.OAuthRevokeInput) (*model.Response, error)

RevokeResolver resolver to revoke refresh token

func SessionResolver

func SessionResolver(ctx context.Context, params *model.SessionQueryInput) (*model.AuthResponse, error)

SessionResolver is a resolver for session query TODO allow validating with code and code verifier instead of cookie (PKCE flow)

func SignupResolver

func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthResponse, error)

SignupResolver is a resolver for signup mutation

func TestEndpointResolver

func TestEndpointResolver(ctx context.Context, params model.TestEndpointRequest) (*model.TestEndpointResponse, error)

TestEndpointResolver resolver to test webhook endpoints

func UpdateEmailTemplateResolver

func UpdateEmailTemplateResolver(ctx context.Context, params model.UpdateEmailTemplateRequest) (*model.Response, error)

UpdateEmailTemplateResolver resolver for update email template mutation

func UpdateEnvResolver

func UpdateEnvResolver(ctx context.Context, params model.UpdateEnvInput) (*model.Response, error)

UpdateEnvResolver is a resolver for update config mutation This is admin only mutation

func UpdateProfileResolver

func UpdateProfileResolver(ctx context.Context, params model.UpdateProfileInput) (*model.Response, error)

UpdateProfileResolver is resolver for update profile mutation

func UpdateUserResolver

func UpdateUserResolver(ctx context.Context, params model.UpdateUserInput) (*model.User, error)

UpdateUserResolver is a resolver for update user mutation This is admin only mutation

func UpdateWebhookResolver

func UpdateWebhookResolver(ctx context.Context, params model.UpdateWebhookRequest) (*model.Response, error)

UpdateWebhookResolver resolver for update webhook mutation

func UserResolver

func UserResolver(ctx context.Context, params model.GetUserRequest) (*model.User, error)

UserResolver is a resolver for user query This is admin only query

func UsersResolver

func UsersResolver(ctx context.Context, params *model.PaginatedInput) (*model.Users, error)

UsersResolver is a resolver for users query This is admin only query

func ValidateJwtTokenResolver

func ValidateJwtTokenResolver(ctx context.Context, params model.ValidateJWTTokenInput) (*model.ValidateJWTTokenResponse, error)

ValidateJwtTokenResolver is used to validate a jwt token without its rotation this can be used at API level (backend) it can validate: access_token id_token refresh_token

func ValidateSessionResolver

func ValidateSessionResolver(ctx context.Context, params *model.ValidateSessionInput) (*model.ValidateSessionResponse, error)

ValidateSessionResolver is used to validate a cookie session without its rotation

func VerificationRequestsResolver

func VerificationRequestsResolver(ctx context.Context, params *model.PaginatedInput) (*model.VerificationRequests, error)

VerificationRequestsResolver is a resolver for verification requests query This is admin only query

func VerifyEmailResolver

func VerifyEmailResolver(ctx context.Context, params model.VerifyEmailInput) (*model.AuthResponse, error)

VerifyEmailResolver is a resolver for verify email mutation

func VerifyOtpResolver

func VerifyOtpResolver(ctx context.Context, params model.VerifyOTPRequest) (*model.AuthResponse, error)

VerifyOtpResolver resolver for verify otp mutation

func WebhookLogsResolver

func WebhookLogsResolver(ctx context.Context, params *model.ListWebhookLogRequest) (*model.WebhookLogs, error)

WebhookLogsResolver resolver for getting the list of webhook_logs based on pagination & webhook identifier

func WebhookResolver

func WebhookResolver(ctx context.Context, params model.WebhookRequest) (*model.Webhook, error)

WebhookResolver resolver for getting webhook by identifier

func WebhooksResolver

func WebhooksResolver(ctx context.Context, params *model.PaginatedInput) (*model.Webhooks, error)

WebhooksResolver resolver for getting the list of webhooks based on pagination

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL