api

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: ISC Imports: 33 Imported by: 9

Documentation

Overview

Package api is a generated Protocol Buffers and gRPC package.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AppIdentityService_CreateApp_FullMethodName         = "/ownmfa.api.AppIdentityService/CreateApp"
	AppIdentityService_CreateIdentity_FullMethodName    = "/ownmfa.api.AppIdentityService/CreateIdentity"
	AppIdentityService_ActivateIdentity_FullMethodName  = "/ownmfa.api.AppIdentityService/ActivateIdentity"
	AppIdentityService_ChallengeIdentity_FullMethodName = "/ownmfa.api.AppIdentityService/ChallengeIdentity"
	AppIdentityService_VerifyIdentity_FullMethodName    = "/ownmfa.api.AppIdentityService/VerifyIdentity"
	AppIdentityService_GetApp_FullMethodName            = "/ownmfa.api.AppIdentityService/GetApp"
	AppIdentityService_GetIdentity_FullMethodName       = "/ownmfa.api.AppIdentityService/GetIdentity"
	AppIdentityService_UpdateApp_FullMethodName         = "/ownmfa.api.AppIdentityService/UpdateApp"
	AppIdentityService_DeleteApp_FullMethodName         = "/ownmfa.api.AppIdentityService/DeleteApp"
	AppIdentityService_DeleteIdentity_FullMethodName    = "/ownmfa.api.AppIdentityService/DeleteIdentity"
	AppIdentityService_ListApps_FullMethodName          = "/ownmfa.api.AppIdentityService/ListApps"
	AppIdentityService_ListIdentities_FullMethodName    = "/ownmfa.api.AppIdentityService/ListIdentities"
)
View Source
const (
	EventService_ListEvents_FullMethodName   = "/ownmfa.api.EventService/ListEvents"
	EventService_LatestEvents_FullMethodName = "/ownmfa.api.EventService/LatestEvents"
)
View Source
const (
	OrgService_CreateOrg_FullMethodName = "/ownmfa.api.OrgService/CreateOrg"
	OrgService_GetOrg_FullMethodName    = "/ownmfa.api.OrgService/GetOrg"
	OrgService_UpdateOrg_FullMethodName = "/ownmfa.api.OrgService/UpdateOrg"
	OrgService_DeleteOrg_FullMethodName = "/ownmfa.api.OrgService/DeleteOrg"
	OrgService_ListOrgs_FullMethodName  = "/ownmfa.api.OrgService/ListOrgs"
)
View Source
const (
	SessionService_Login_FullMethodName     = "/ownmfa.api.SessionService/Login"
	SessionService_CreateKey_FullMethodName = "/ownmfa.api.SessionService/CreateKey"
	SessionService_DeleteKey_FullMethodName = "/ownmfa.api.SessionService/DeleteKey"
	SessionService_ListKeys_FullMethodName  = "/ownmfa.api.SessionService/ListKeys"
)
View Source
const (
	UserService_CreateUser_FullMethodName         = "/ownmfa.api.UserService/CreateUser"
	UserService_GetUser_FullMethodName            = "/ownmfa.api.UserService/GetUser"
	UserService_UpdateUser_FullMethodName         = "/ownmfa.api.UserService/UpdateUser"
	UserService_UpdateUserPassword_FullMethodName = "/ownmfa.api.UserService/UpdateUserPassword"
	UserService_DeleteUser_FullMethodName         = "/ownmfa.api.UserService/DeleteUser"
	UserService_ListUsers_FullMethodName          = "/ownmfa.api.UserService/ListUsers"
)

Variables

View Source
var (
	IdentityStatus_name = map[int32]string{
		0: "UNVERIFIED",
		3: "ACTIVATED",
	}
	IdentityStatus_value = map[string]int32{
		"UNVERIFIED": 0,
		"ACTIVATED":  3,
	}
)

Enum value maps for IdentityStatus.

View Source
var (
	Hash_name = map[int32]string{
		0: "SHA512",
		1: "SHA256",
		2: "SHA1",
	}
	Hash_value = map[string]int32{
		"SHA512": 0,
		"SHA256": 1,
		"SHA1":   2,
	}
)

Enum value maps for Hash.

View Source
var (
	EventStatus_name = map[int32]string{
		0: "EVENT_STATUS_UNSPECIFIED",
		1: "IDENTITY_CREATED",
		2: "CHALLENGE_SENT",
		3: "CHALLENGE_NOOP",
		4: "CHALLENGE_FAIL",
		5: "ACTIVATE_SUCCESS",
		6: "ACTIVATE_FAIL",
		7: "VERIFY_SUCCESS",
		8: "VERIFY_FAIL",
		9: "IDENTITY_DELETED",
	}
	EventStatus_value = map[string]int32{
		"EVENT_STATUS_UNSPECIFIED": 0,
		"IDENTITY_CREATED":         1,
		"CHALLENGE_SENT":           2,
		"CHALLENGE_NOOP":           3,
		"CHALLENGE_FAIL":           4,
		"ACTIVATE_SUCCESS":         5,
		"ACTIVATE_FAIL":            6,
		"VERIFY_SUCCESS":           7,
		"VERIFY_FAIL":              8,
		"IDENTITY_DELETED":         9,
	}
)

Enum value maps for EventStatus.

View Source
var (
	Plan_name = map[int32]string{
		0:  "PLAN_UNSPECIFIED",
		3:  "PAYMENT_FAIL",
		6:  "STARTER",
		9:  "PRO",
		12: "ENTERPRISE",
	}
	Plan_value = map[string]int32{
		"PLAN_UNSPECIFIED": 0,
		"PAYMENT_FAIL":     3,
		"STARTER":          6,
		"PRO":              9,
		"ENTERPRISE":       12,
	}
)

Enum value maps for Plan.

View Source
var (
	Role_name = map[int32]string{
		0:  "ROLE_UNSPECIFIED",
		4:  "VIEWER",
		8:  "AUTHENTICATOR",
		12: "ADMIN",
		15: "SYS_ADMIN",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"VIEWER":           4,
		"AUTHENTICATOR":    8,
		"ADMIN":            12,
		"SYS_ADMIN":        15,
	}
)

Enum value maps for Role.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		3: "ACTIVE",
		6: "DISABLED",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"ACTIVE":             3,
		"DISABLED":           6,
	}
)

Enum value maps for Status.

View Source
var AppIdentityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ownmfa.api.AppIdentityService",
	HandlerType: (*AppIdentityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateApp",
			Handler:    _AppIdentityService_CreateApp_Handler,
		},
		{
			MethodName: "CreateIdentity",
			Handler:    _AppIdentityService_CreateIdentity_Handler,
		},
		{
			MethodName: "ActivateIdentity",
			Handler:    _AppIdentityService_ActivateIdentity_Handler,
		},
		{
			MethodName: "ChallengeIdentity",
			Handler:    _AppIdentityService_ChallengeIdentity_Handler,
		},
		{
			MethodName: "VerifyIdentity",
			Handler:    _AppIdentityService_VerifyIdentity_Handler,
		},
		{
			MethodName: "GetApp",
			Handler:    _AppIdentityService_GetApp_Handler,
		},
		{
			MethodName: "GetIdentity",
			Handler:    _AppIdentityService_GetIdentity_Handler,
		},
		{
			MethodName: "UpdateApp",
			Handler:    _AppIdentityService_UpdateApp_Handler,
		},
		{
			MethodName: "DeleteApp",
			Handler:    _AppIdentityService_DeleteApp_Handler,
		},
		{
			MethodName: "DeleteIdentity",
			Handler:    _AppIdentityService_DeleteIdentity_Handler,
		},
		{
			MethodName: "ListApps",
			Handler:    _AppIdentityService_ListApps_Handler,
		},
		{
			MethodName: "ListIdentities",
			Handler:    _AppIdentityService_ListIdentities_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ownmfa_app_identity.proto",
}

AppIdentityService_ServiceDesc is the grpc.ServiceDesc for AppIdentityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ownmfa.api.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListEvents",
			Handler:    _EventService_ListEvents_Handler,
		},
		{
			MethodName: "LatestEvents",
			Handler:    _EventService_LatestEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ownmfa_event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_ownmfa_app_identity_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_event_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_org_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_role_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_session_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_status_proto protoreflect.FileDescriptor
View Source
var File_api_ownmfa_user_proto protoreflect.FileDescriptor
View Source
var OrgService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ownmfa.api.OrgService",
	HandlerType: (*OrgServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrg",
			Handler:    _OrgService_CreateOrg_Handler,
		},
		{
			MethodName: "GetOrg",
			Handler:    _OrgService_GetOrg_Handler,
		},
		{
			MethodName: "UpdateOrg",
			Handler:    _OrgService_UpdateOrg_Handler,
		},
		{
			MethodName: "DeleteOrg",
			Handler:    _OrgService_DeleteOrg_Handler,
		},
		{
			MethodName: "ListOrgs",
			Handler:    _OrgService_ListOrgs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ownmfa_org.proto",
}

OrgService_ServiceDesc is the grpc.ServiceDesc for OrgService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SessionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ownmfa.api.SessionService",
	HandlerType: (*SessionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _SessionService_Login_Handler,
		},
		{
			MethodName: "CreateKey",
			Handler:    _SessionService_CreateKey_Handler,
		},
		{
			MethodName: "DeleteKey",
			Handler:    _SessionService_DeleteKey_Handler,
		},
		{
			MethodName: "ListKeys",
			Handler:    _SessionService_ListKeys_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ownmfa_session.proto",
}

SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ownmfa.api.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateUserPassword",
			Handler:    _UserService_UpdateUserPassword_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ownmfa_user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAppIdentityServiceHandler

func RegisterAppIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAppIdentityServiceHandler registers the http handlers for service AppIdentityService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAppIdentityServiceHandlerClient

func RegisterAppIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AppIdentityServiceClient) error

RegisterAppIdentityServiceHandlerClient registers the http handlers for service AppIdentityService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AppIdentityServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AppIdentityServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AppIdentityServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterAppIdentityServiceHandlerFromEndpoint

func RegisterAppIdentityServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAppIdentityServiceHandlerFromEndpoint is same as RegisterAppIdentityServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAppIdentityServiceHandlerServer

func RegisterAppIdentityServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AppIdentityServiceServer) error

RegisterAppIdentityServiceHandlerServer registers the http handlers for service AppIdentityService to "mux". UnaryRPC :call AppIdentityServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAppIdentityServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAppIdentityServiceServer

func RegisterAppIdentityServiceServer(s grpc.ServiceRegistrar, srv AppIdentityServiceServer)

func RegisterEventServiceHandler

func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventServiceHandler registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventServiceHandlerClient

func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error

RegisterEventServiceHandlerClient registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterEventServiceHandlerFromEndpoint

func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventServiceHandlerFromEndpoint is same as RegisterEventServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventServiceHandlerServer

func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error

RegisterEventServiceHandlerServer registers the http handlers for service EventService to "mux". UnaryRPC :call EventServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterOrgServiceHandler

func RegisterOrgServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOrgServiceHandler registers the http handlers for service OrgService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOrgServiceHandlerClient

func RegisterOrgServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrgServiceClient) error

RegisterOrgServiceHandlerClient registers the http handlers for service OrgService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrgServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrgServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrgServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterOrgServiceHandlerFromEndpoint

func RegisterOrgServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOrgServiceHandlerFromEndpoint is same as RegisterOrgServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOrgServiceHandlerServer

func RegisterOrgServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrgServiceServer) error

RegisterOrgServiceHandlerServer registers the http handlers for service OrgService to "mux". UnaryRPC :call OrgServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOrgServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterOrgServiceServer

func RegisterOrgServiceServer(s grpc.ServiceRegistrar, srv OrgServiceServer)

func RegisterSessionServiceHandler

func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSessionServiceHandler registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSessionServiceHandlerClient

func RegisterSessionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionServiceClient) error

RegisterSessionServiceHandlerClient registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SessionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SessionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SessionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterSessionServiceHandlerFromEndpoint

func RegisterSessionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSessionServiceHandlerFromEndpoint is same as RegisterSessionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSessionServiceHandlerServer

func RegisterSessionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionServiceServer) error

RegisterSessionServiceHandlerServer registers the http handlers for service SessionService to "mux". UnaryRPC :call SessionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSessionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type ActivateIdentityRequest

type ActivateIdentityRequest struct {

	// Identity ID (UUID) to activate.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// Passcode for verification. For security questions identity methods, this is the answer to the security question.
	Passcode string `protobuf:"bytes,3,opt,name=passcode,proto3" json:"passcode,omitempty"`
	// contains filtered or unexported fields
}

ActivateIdentityRequest is sent to activate an identity.

func (*ActivateIdentityRequest) Descriptor deprecated

func (*ActivateIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use ActivateIdentityRequest.ProtoReflect.Descriptor instead.

func (*ActivateIdentityRequest) GetAppId

func (x *ActivateIdentityRequest) GetAppId() string

func (*ActivateIdentityRequest) GetId

func (x *ActivateIdentityRequest) GetId() string

func (*ActivateIdentityRequest) GetPasscode

func (x *ActivateIdentityRequest) GetPasscode() string

func (*ActivateIdentityRequest) ProtoMessage

func (*ActivateIdentityRequest) ProtoMessage()

func (*ActivateIdentityRequest) ProtoReflect

func (x *ActivateIdentityRequest) ProtoReflect() protoreflect.Message

func (*ActivateIdentityRequest) Reset

func (x *ActivateIdentityRequest) Reset()

func (*ActivateIdentityRequest) String

func (x *ActivateIdentityRequest) String() string

func (*ActivateIdentityRequest) Validate

func (m *ActivateIdentityRequest) Validate() error

Validate checks the field values on ActivateIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActivateIdentityRequest) ValidateAll

func (m *ActivateIdentityRequest) ValidateAll() error

ValidateAll checks the field values on ActivateIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActivateIdentityRequestMultiError, or nil if none found.

type ActivateIdentityRequestMultiError

type ActivateIdentityRequestMultiError []error

ActivateIdentityRequestMultiError is an error wrapping multiple validation errors returned by ActivateIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (ActivateIdentityRequestMultiError) AllErrors

func (m ActivateIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActivateIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ActivateIdentityRequestValidationError

type ActivateIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

ActivateIdentityRequestValidationError is the validation error returned by ActivateIdentityRequest.Validate if the designated constraints aren't met.

func (ActivateIdentityRequestValidationError) Cause

Cause function returns cause value.

func (ActivateIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (ActivateIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (ActivateIdentityRequestValidationError) Field

Field function returns field value.

func (ActivateIdentityRequestValidationError) Key

Key function returns key value.

func (ActivateIdentityRequestValidationError) Reason

Reason function returns reason value.

type App

type App struct {

	// Application ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Application name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Application display name. Used anywhere the application is shown to an external user, including templates and notification sender fields.
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Application email. Optional, used as the 'From' address in email notifications.
	Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	// Pushover application key. If not specified, the default OwnMFA Pushover application and templates will be used.
	PushoverKey string `protobuf:"bytes,6,opt,name=pushover_key,json=pushoverKey,proto3" json:"pushover_key,omitempty"`
	// Application subject template. Templates generate HTML-safe output using the [Go template engine](https://golang.org/pkg/html/template/). The variables available for substitution is '{{.displayName}}'. Optional field, for notification methods that support subjects.
	SubjectTemplate string `protobuf:"bytes,7,opt,name=subject_template,json=subjectTemplate,proto3" json:"subject_template,omitempty"`
	// Application text body template. Templates generate HTML-safe output using the [Go template engine](https://golang.org/pkg/html/template/). The variables available for substitution are '{{.displayName}}' and '{{.passcode}}'. Optional field, for notification methods that support text bodies. To prevent fraud, SMS notifications used a fixed body that includes the application display_name and verification code.
	TextBodyTemplate string `protobuf:"bytes,8,opt,name=text_body_template,json=textBodyTemplate,proto3" json:"text_body_template,omitempty"`
	// Application HTML body template. Templates generate HTML-safe output using the [Go template engine](https://golang.org/pkg/html/template/). The variables available for substitution are '{{.displayName}}' and '{{.passcode}}'. Optional field, for notification methods that support HTML bodies. When used in JSON, the value will be represented as a base64 string.
	HtmlBodyTemplate []byte `protobuf:"bytes,9,opt,name=html_body_template,json=htmlBodyTemplate,proto3" json:"html_body_template,omitempty"`
	// Application creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Application modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

App represents an application as stored in the database.

func (*App) Descriptor deprecated

func (*App) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetCreatedAt

func (x *App) GetCreatedAt() *timestamppb.Timestamp

func (*App) GetDisplayName

func (x *App) GetDisplayName() string

func (*App) GetEmail

func (x *App) GetEmail() string

func (*App) GetHtmlBodyTemplate

func (x *App) GetHtmlBodyTemplate() []byte

func (*App) GetId

func (x *App) GetId() string

func (*App) GetName

func (x *App) GetName() string

func (*App) GetOrgId

func (x *App) GetOrgId() string

func (*App) GetPushoverKey

func (x *App) GetPushoverKey() string

func (*App) GetSubjectTemplate

func (x *App) GetSubjectTemplate() string

func (*App) GetTextBodyTemplate

func (x *App) GetTextBodyTemplate() string

func (*App) GetUpdatedAt

func (x *App) GetUpdatedAt() *timestamppb.Timestamp

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

func (x *App) ProtoReflect() protoreflect.Message

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

func (*App) Validate

func (m *App) Validate() error

Validate checks the field values on App with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*App) ValidateAll

func (m *App) ValidateAll() error

ValidateAll checks the field values on App with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppMultiError, or nil if none found.

type AppIdentityServiceClient

type AppIdentityServiceClient interface {
	// Create an application. Applications contain external user identities and common settings for authentication methods.
	CreateApp(ctx context.Context, in *CreateAppRequest, opts ...grpc.CallOption) (*App, error)
	// Create an identity. Identities are used to challenge, activate, and verify external users.
	CreateIdentity(ctx context.Context, in *CreateIdentityRequest, opts ...grpc.CallOption) (*CreateIdentityResponse, error)
	// Activate an identity following a challenge.
	ActivateIdentity(ctx context.Context, in *ActivateIdentityRequest, opts ...grpc.CallOption) (*Identity, error)
	// Issue a challenge to an identity.
	ChallengeIdentity(ctx context.Context, in *ChallengeIdentityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Verify an identity following a challenge.
	VerifyIdentity(ctx context.Context, in *VerifyIdentityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get an application by ID. Applications contain external user identities and common settings for authentication methods.
	GetApp(ctx context.Context, in *GetAppRequest, opts ...grpc.CallOption) (*App, error)
	// Get an identity by ID. Identities are used to challenge, activate, and verify external users.
	GetIdentity(ctx context.Context, in *GetIdentityRequest, opts ...grpc.CallOption) (*Identity, error)
	// Update an application. Applications contain external user identities and common settings for authentication methods.
	UpdateApp(ctx context.Context, in *UpdateAppRequest, opts ...grpc.CallOption) (*App, error)
	// Delete an application by ID. Applications contain external user identities and common settings for authentication methods.
	DeleteApp(ctx context.Context, in *DeleteAppRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete an identity by ID. Identities are used to challenge, activate, and verify external users.
	DeleteIdentity(ctx context.Context, in *DeleteIdentityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all applications. Applications contain external user identities and common settings for authentication methods.
	ListApps(ctx context.Context, in *ListAppsRequest, opts ...grpc.CallOption) (*ListAppsResponse, error)
	// List identities. Identities are used to challenge, activate, and verify external users.
	ListIdentities(ctx context.Context, in *ListIdentitiesRequest, opts ...grpc.CallOption) (*ListIdentitiesResponse, error)
}

AppIdentityServiceClient is the client API for AppIdentityService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

AppIdentityService contains functions to query and modify applications and identities.

type AppIdentityServiceServer

type AppIdentityServiceServer interface {
	// Create an application. Applications contain external user identities and common settings for authentication methods.
	CreateApp(context.Context, *CreateAppRequest) (*App, error)
	// Create an identity. Identities are used to challenge, activate, and verify external users.
	CreateIdentity(context.Context, *CreateIdentityRequest) (*CreateIdentityResponse, error)
	// Activate an identity following a challenge.
	ActivateIdentity(context.Context, *ActivateIdentityRequest) (*Identity, error)
	// Issue a challenge to an identity.
	ChallengeIdentity(context.Context, *ChallengeIdentityRequest) (*emptypb.Empty, error)
	// Verify an identity following a challenge.
	VerifyIdentity(context.Context, *VerifyIdentityRequest) (*emptypb.Empty, error)
	// Get an application by ID. Applications contain external user identities and common settings for authentication methods.
	GetApp(context.Context, *GetAppRequest) (*App, error)
	// Get an identity by ID. Identities are used to challenge, activate, and verify external users.
	GetIdentity(context.Context, *GetIdentityRequest) (*Identity, error)
	// Update an application. Applications contain external user identities and common settings for authentication methods.
	UpdateApp(context.Context, *UpdateAppRequest) (*App, error)
	// Delete an application by ID. Applications contain external user identities and common settings for authentication methods.
	DeleteApp(context.Context, *DeleteAppRequest) (*emptypb.Empty, error)
	// Delete an identity by ID. Identities are used to challenge, activate, and verify external users.
	DeleteIdentity(context.Context, *DeleteIdentityRequest) (*emptypb.Empty, error)
	// List all applications. Applications contain external user identities and common settings for authentication methods.
	ListApps(context.Context, *ListAppsRequest) (*ListAppsResponse, error)
	// List identities. Identities are used to challenge, activate, and verify external users.
	ListIdentities(context.Context, *ListIdentitiesRequest) (*ListIdentitiesResponse, error)
	// contains filtered or unexported methods
}

AppIdentityServiceServer is the server API for AppIdentityService service. All implementations must embed UnimplementedAppIdentityServiceServer for forward compatibility.

AppIdentityService contains functions to query and modify applications and identities.

type AppMultiError

type AppMultiError []error

AppMultiError is an error wrapping multiple validation errors returned by App.ValidateAll() if the designated constraints aren't met.

func (AppMultiError) AllErrors

func (m AppMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppMultiError) Error

func (m AppMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppValidationError

type AppValidationError struct {
	// contains filtered or unexported fields
}

AppValidationError is the validation error returned by App.Validate if the designated constraints aren't met.

func (AppValidationError) Cause

func (e AppValidationError) Cause() error

Cause function returns cause value.

func (AppValidationError) Error

func (e AppValidationError) Error() string

Error satisfies the builtin error interface

func (AppValidationError) ErrorName

func (e AppValidationError) ErrorName() string

ErrorName returns error name.

func (AppValidationError) Field

func (e AppValidationError) Field() string

Field function returns field value.

func (AppValidationError) Key

func (e AppValidationError) Key() bool

Key function returns key value.

func (AppValidationError) Reason

func (e AppValidationError) Reason() string

Reason function returns reason value.

type AppleiOSTOTPMethod

type AppleiOSTOTPMethod struct {
	// contains filtered or unexported fields
}

AppleiOSTOTPMethod configures an Apple iOS TOTP one-time password method.

func (*AppleiOSTOTPMethod) Descriptor deprecated

func (*AppleiOSTOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use AppleiOSTOTPMethod.ProtoReflect.Descriptor instead.

func (*AppleiOSTOTPMethod) ProtoMessage

func (*AppleiOSTOTPMethod) ProtoMessage()

func (*AppleiOSTOTPMethod) ProtoReflect

func (x *AppleiOSTOTPMethod) ProtoReflect() protoreflect.Message

func (*AppleiOSTOTPMethod) Reset

func (x *AppleiOSTOTPMethod) Reset()

func (*AppleiOSTOTPMethod) String

func (x *AppleiOSTOTPMethod) String() string

func (*AppleiOSTOTPMethod) Validate

func (m *AppleiOSTOTPMethod) Validate() error

Validate checks the field values on AppleiOSTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AppleiOSTOTPMethod) ValidateAll

func (m *AppleiOSTOTPMethod) ValidateAll() error

ValidateAll checks the field values on AppleiOSTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppleiOSTOTPMethodMultiError, or nil if none found.

type AppleiOSTOTPMethodMultiError

type AppleiOSTOTPMethodMultiError []error

AppleiOSTOTPMethodMultiError is an error wrapping multiple validation errors returned by AppleiOSTOTPMethod.ValidateAll() if the designated constraints aren't met.

func (AppleiOSTOTPMethodMultiError) AllErrors

func (m AppleiOSTOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppleiOSTOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AppleiOSTOTPMethodValidationError

type AppleiOSTOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

AppleiOSTOTPMethodValidationError is the validation error returned by AppleiOSTOTPMethod.Validate if the designated constraints aren't met.

func (AppleiOSTOTPMethodValidationError) Cause

Cause function returns cause value.

func (AppleiOSTOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (AppleiOSTOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (AppleiOSTOTPMethodValidationError) Field

Field function returns field value.

func (AppleiOSTOTPMethodValidationError) Key

Key function returns key value.

func (AppleiOSTOTPMethodValidationError) Reason

Reason function returns reason value.

type BackupsCodesMethod

type BackupsCodesMethod struct {

	// Number of passcodes provided.
	Passcodes int32 `protobuf:"varint,1,opt,name=passcodes,proto3" json:"passcodes,omitempty"`
	// contains filtered or unexported fields
}

BackupsCodesMethod configures a backup codes method. Identities using this method are immediately activated and do not require activation.

func (*BackupsCodesMethod) Descriptor deprecated

func (*BackupsCodesMethod) Descriptor() ([]byte, []int)

Deprecated: Use BackupsCodesMethod.ProtoReflect.Descriptor instead.

func (*BackupsCodesMethod) GetPasscodes

func (x *BackupsCodesMethod) GetPasscodes() int32

func (*BackupsCodesMethod) ProtoMessage

func (*BackupsCodesMethod) ProtoMessage()

func (*BackupsCodesMethod) ProtoReflect

func (x *BackupsCodesMethod) ProtoReflect() protoreflect.Message

func (*BackupsCodesMethod) Reset

func (x *BackupsCodesMethod) Reset()

func (*BackupsCodesMethod) String

func (x *BackupsCodesMethod) String() string

func (*BackupsCodesMethod) Validate

func (m *BackupsCodesMethod) Validate() error

Validate checks the field values on BackupsCodesMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BackupsCodesMethod) ValidateAll

func (m *BackupsCodesMethod) ValidateAll() error

ValidateAll checks the field values on BackupsCodesMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BackupsCodesMethodMultiError, or nil if none found.

type BackupsCodesMethodMultiError

type BackupsCodesMethodMultiError []error

BackupsCodesMethodMultiError is an error wrapping multiple validation errors returned by BackupsCodesMethod.ValidateAll() if the designated constraints aren't met.

func (BackupsCodesMethodMultiError) AllErrors

func (m BackupsCodesMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BackupsCodesMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BackupsCodesMethodValidationError

type BackupsCodesMethodValidationError struct {
	// contains filtered or unexported fields
}

BackupsCodesMethodValidationError is the validation error returned by BackupsCodesMethod.Validate if the designated constraints aren't met.

func (BackupsCodesMethodValidationError) Cause

Cause function returns cause value.

func (BackupsCodesMethodValidationError) Error

Error satisfies the builtin error interface

func (BackupsCodesMethodValidationError) ErrorName

ErrorName returns error name.

func (BackupsCodesMethodValidationError) Field

Field function returns field value.

func (BackupsCodesMethodValidationError) Key

Key function returns key value.

func (BackupsCodesMethodValidationError) Reason

Reason function returns reason value.

type ChallengeIdentityRequest

type ChallengeIdentityRequest struct {

	// Identity ID (UUID) to issue challenge. The rate limit for methods that send notifications is one challenge per identity every 30 seconds.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

ChallengeIdentityRequest is sent to issue a challenge to an identity.

func (*ChallengeIdentityRequest) Descriptor deprecated

func (*ChallengeIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChallengeIdentityRequest.ProtoReflect.Descriptor instead.

func (*ChallengeIdentityRequest) GetAppId

func (x *ChallengeIdentityRequest) GetAppId() string

func (*ChallengeIdentityRequest) GetId

func (x *ChallengeIdentityRequest) GetId() string

func (*ChallengeIdentityRequest) ProtoMessage

func (*ChallengeIdentityRequest) ProtoMessage()

func (*ChallengeIdentityRequest) ProtoReflect

func (x *ChallengeIdentityRequest) ProtoReflect() protoreflect.Message

func (*ChallengeIdentityRequest) Reset

func (x *ChallengeIdentityRequest) Reset()

func (*ChallengeIdentityRequest) String

func (x *ChallengeIdentityRequest) String() string

func (*ChallengeIdentityRequest) Validate

func (m *ChallengeIdentityRequest) Validate() error

Validate checks the field values on ChallengeIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChallengeIdentityRequest) ValidateAll

func (m *ChallengeIdentityRequest) ValidateAll() error

ValidateAll checks the field values on ChallengeIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChallengeIdentityRequestMultiError, or nil if none found.

type ChallengeIdentityRequestMultiError

type ChallengeIdentityRequestMultiError []error

ChallengeIdentityRequestMultiError is an error wrapping multiple validation errors returned by ChallengeIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (ChallengeIdentityRequestMultiError) AllErrors

func (m ChallengeIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChallengeIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChallengeIdentityRequestValidationError

type ChallengeIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

ChallengeIdentityRequestValidationError is the validation error returned by ChallengeIdentityRequest.Validate if the designated constraints aren't met.

func (ChallengeIdentityRequestValidationError) Cause

Cause function returns cause value.

func (ChallengeIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (ChallengeIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (ChallengeIdentityRequestValidationError) Field

Field function returns field value.

func (ChallengeIdentityRequestValidationError) Key

Key function returns key value.

func (ChallengeIdentityRequestValidationError) Reason

Reason function returns reason value.

type CreateAppRequest

type CreateAppRequest struct {

	// App message to create.
	App *App `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	// contains filtered or unexported fields
}

CreateAppRequest is sent to create an application.

func (*CreateAppRequest) Descriptor deprecated

func (*CreateAppRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAppRequest.ProtoReflect.Descriptor instead.

func (*CreateAppRequest) GetApp

func (x *CreateAppRequest) GetApp() *App

func (*CreateAppRequest) ProtoMessage

func (*CreateAppRequest) ProtoMessage()

func (*CreateAppRequest) ProtoReflect

func (x *CreateAppRequest) ProtoReflect() protoreflect.Message

func (*CreateAppRequest) Reset

func (x *CreateAppRequest) Reset()

func (*CreateAppRequest) String

func (x *CreateAppRequest) String() string

func (*CreateAppRequest) Validate

func (m *CreateAppRequest) Validate() error

Validate checks the field values on CreateAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateAppRequest) ValidateAll

func (m *CreateAppRequest) ValidateAll() error

ValidateAll checks the field values on CreateAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAppRequestMultiError, or nil if none found.

type CreateAppRequestMultiError

type CreateAppRequestMultiError []error

CreateAppRequestMultiError is an error wrapping multiple validation errors returned by CreateAppRequest.ValidateAll() if the designated constraints aren't met.

func (CreateAppRequestMultiError) AllErrors

func (m CreateAppRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAppRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAppRequestValidationError

type CreateAppRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateAppRequestValidationError is the validation error returned by CreateAppRequest.Validate if the designated constraints aren't met.

func (CreateAppRequestValidationError) Cause

Cause function returns cause value.

func (CreateAppRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAppRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAppRequestValidationError) Field

Field function returns field value.

func (CreateAppRequestValidationError) Key

Key function returns key value.

func (CreateAppRequestValidationError) Reason

Reason function returns reason value.

type CreateIdentityRequest

type CreateIdentityRequest struct {

	// Identity message to create.
	Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

CreateIdentityRequest is sent to create an identity.

func (*CreateIdentityRequest) Descriptor deprecated

func (*CreateIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateIdentityRequest.ProtoReflect.Descriptor instead.

func (*CreateIdentityRequest) GetIdentity

func (x *CreateIdentityRequest) GetIdentity() *Identity

func (*CreateIdentityRequest) ProtoMessage

func (*CreateIdentityRequest) ProtoMessage()

func (*CreateIdentityRequest) ProtoReflect

func (x *CreateIdentityRequest) ProtoReflect() protoreflect.Message

func (*CreateIdentityRequest) Reset

func (x *CreateIdentityRequest) Reset()

func (*CreateIdentityRequest) String

func (x *CreateIdentityRequest) String() string

func (*CreateIdentityRequest) Validate

func (m *CreateIdentityRequest) Validate() error

Validate checks the field values on CreateIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateIdentityRequest) ValidateAll

func (m *CreateIdentityRequest) ValidateAll() error

ValidateAll checks the field values on CreateIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateIdentityRequestMultiError, or nil if none found.

type CreateIdentityRequestMultiError

type CreateIdentityRequestMultiError []error

CreateIdentityRequestMultiError is an error wrapping multiple validation errors returned by CreateIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (CreateIdentityRequestMultiError) AllErrors

func (m CreateIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateIdentityRequestValidationError

type CreateIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateIdentityRequestValidationError is the validation error returned by CreateIdentityRequest.Validate if the designated constraints aren't met.

func (CreateIdentityRequestValidationError) Cause

Cause function returns cause value.

func (CreateIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateIdentityRequestValidationError) Field

Field function returns field value.

func (CreateIdentityRequestValidationError) Key

Key function returns key value.

func (CreateIdentityRequestValidationError) Reason

Reason function returns reason value.

type CreateIdentityResponse

type CreateIdentityResponse struct {

	// Identity message created.
	Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// Secret in base32 format, for identity methods that provide secrets. Only returned once, upon identity creation.
	Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// Identity QR code, in Google Authenticator-compatible format, as a PNG image. For identity methods that provide secrets. Only returned once, upon identity creation. When used in JSON, the value will be represented as a base64 string.
	Qr []byte `protobuf:"bytes,3,opt,name=qr,proto3" json:"qr,omitempty"`
	// Passcode array, for identity methods that provide pregenerated passcodes. Only returned once, upon identity creation.
	Passcodes []string `protobuf:"bytes,4,rep,name=passcodes,proto3" json:"passcodes,omitempty"`
	// contains filtered or unexported fields
}

CreateIdentityResponse is sent in response to an identity creation.

func (*CreateIdentityResponse) Descriptor deprecated

func (*CreateIdentityResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateIdentityResponse.ProtoReflect.Descriptor instead.

func (*CreateIdentityResponse) GetIdentity

func (x *CreateIdentityResponse) GetIdentity() *Identity

func (*CreateIdentityResponse) GetPasscodes

func (x *CreateIdentityResponse) GetPasscodes() []string

func (*CreateIdentityResponse) GetQr

func (x *CreateIdentityResponse) GetQr() []byte

func (*CreateIdentityResponse) GetSecret

func (x *CreateIdentityResponse) GetSecret() string

func (*CreateIdentityResponse) ProtoMessage

func (*CreateIdentityResponse) ProtoMessage()

func (*CreateIdentityResponse) ProtoReflect

func (x *CreateIdentityResponse) ProtoReflect() protoreflect.Message

func (*CreateIdentityResponse) Reset

func (x *CreateIdentityResponse) Reset()

func (*CreateIdentityResponse) String

func (x *CreateIdentityResponse) String() string

func (*CreateIdentityResponse) Validate

func (m *CreateIdentityResponse) Validate() error

Validate checks the field values on CreateIdentityResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateIdentityResponse) ValidateAll

func (m *CreateIdentityResponse) ValidateAll() error

ValidateAll checks the field values on CreateIdentityResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateIdentityResponseMultiError, or nil if none found.

type CreateIdentityResponseMultiError

type CreateIdentityResponseMultiError []error

CreateIdentityResponseMultiError is an error wrapping multiple validation errors returned by CreateIdentityResponse.ValidateAll() if the designated constraints aren't met.

func (CreateIdentityResponseMultiError) AllErrors

func (m CreateIdentityResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateIdentityResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateIdentityResponseValidationError

type CreateIdentityResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateIdentityResponseValidationError is the validation error returned by CreateIdentityResponse.Validate if the designated constraints aren't met.

func (CreateIdentityResponseValidationError) Cause

Cause function returns cause value.

func (CreateIdentityResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateIdentityResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateIdentityResponseValidationError) Field

Field function returns field value.

func (CreateIdentityResponseValidationError) Key

Key function returns key value.

func (CreateIdentityResponseValidationError) Reason

Reason function returns reason value.

type CreateKeyRequest

type CreateKeyRequest struct {

	// Key message to create.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

CreateKeyRequest is sent to create an API key.

func (*CreateKeyRequest) Descriptor deprecated

func (*CreateKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateKeyRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyRequest) GetKey

func (x *CreateKeyRequest) GetKey() *Key

func (*CreateKeyRequest) ProtoMessage

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) ProtoReflect

func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message

func (*CreateKeyRequest) Reset

func (x *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String

func (x *CreateKeyRequest) String() string

func (*CreateKeyRequest) Validate

func (m *CreateKeyRequest) Validate() error

Validate checks the field values on CreateKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateKeyRequest) ValidateAll

func (m *CreateKeyRequest) ValidateAll() error

ValidateAll checks the field values on CreateKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateKeyRequestMultiError, or nil if none found.

type CreateKeyRequestMultiError

type CreateKeyRequestMultiError []error

CreateKeyRequestMultiError is an error wrapping multiple validation errors returned by CreateKeyRequest.ValidateAll() if the designated constraints aren't met.

func (CreateKeyRequestMultiError) AllErrors

func (m CreateKeyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateKeyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateKeyRequestValidationError

type CreateKeyRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateKeyRequestValidationError is the validation error returned by CreateKeyRequest.Validate if the designated constraints aren't met.

func (CreateKeyRequestValidationError) Cause

Cause function returns cause value.

func (CreateKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateKeyRequestValidationError) Field

Field function returns field value.

func (CreateKeyRequestValidationError) Key

Key function returns key value.

func (CreateKeyRequestValidationError) Reason

Reason function returns reason value.

type CreateKeyResponse

type CreateKeyResponse struct {

	// Key message created.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Token to be used for subsequent calls. Only returned once, upon key creation.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

CreateKeyResponse is sent in response to an API key creation.

func (*CreateKeyResponse) Descriptor deprecated

func (*CreateKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateKeyResponse.ProtoReflect.Descriptor instead.

func (*CreateKeyResponse) GetKey

func (x *CreateKeyResponse) GetKey() *Key

func (*CreateKeyResponse) GetToken

func (x *CreateKeyResponse) GetToken() string

func (*CreateKeyResponse) ProtoMessage

func (*CreateKeyResponse) ProtoMessage()

func (*CreateKeyResponse) ProtoReflect

func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message

func (*CreateKeyResponse) Reset

func (x *CreateKeyResponse) Reset()

func (*CreateKeyResponse) String

func (x *CreateKeyResponse) String() string

func (*CreateKeyResponse) Validate

func (m *CreateKeyResponse) Validate() error

Validate checks the field values on CreateKeyResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateKeyResponse) ValidateAll

func (m *CreateKeyResponse) ValidateAll() error

ValidateAll checks the field values on CreateKeyResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateKeyResponseMultiError, or nil if none found.

type CreateKeyResponseMultiError

type CreateKeyResponseMultiError []error

CreateKeyResponseMultiError is an error wrapping multiple validation errors returned by CreateKeyResponse.ValidateAll() if the designated constraints aren't met.

func (CreateKeyResponseMultiError) AllErrors

func (m CreateKeyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateKeyResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateKeyResponseValidationError

type CreateKeyResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateKeyResponseValidationError is the validation error returned by CreateKeyResponse.Validate if the designated constraints aren't met.

func (CreateKeyResponseValidationError) Cause

Cause function returns cause value.

func (CreateKeyResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateKeyResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateKeyResponseValidationError) Field

Field function returns field value.

func (CreateKeyResponseValidationError) Key

Key function returns key value.

func (CreateKeyResponseValidationError) Reason

Reason function returns reason value.

type CreateOrgRequest

type CreateOrgRequest struct {

	// Org message to create.
	Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
	// contains filtered or unexported fields
}

CreateOrgRequest is sent to create an organization.

func (*CreateOrgRequest) Descriptor deprecated

func (*CreateOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrgRequest.ProtoReflect.Descriptor instead.

func (*CreateOrgRequest) GetOrg

func (x *CreateOrgRequest) GetOrg() *Org

func (*CreateOrgRequest) ProtoMessage

func (*CreateOrgRequest) ProtoMessage()

func (*CreateOrgRequest) ProtoReflect

func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message

func (*CreateOrgRequest) Reset

func (x *CreateOrgRequest) Reset()

func (*CreateOrgRequest) String

func (x *CreateOrgRequest) String() string

func (*CreateOrgRequest) Validate

func (m *CreateOrgRequest) Validate() error

Validate checks the field values on CreateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrgRequest) ValidateAll

func (m *CreateOrgRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrgRequestMultiError, or nil if none found.

type CreateOrgRequestMultiError

type CreateOrgRequestMultiError []error

CreateOrgRequestMultiError is an error wrapping multiple validation errors returned by CreateOrgRequest.ValidateAll() if the designated constraints aren't met.

func (CreateOrgRequestMultiError) AllErrors

func (m CreateOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrgRequestValidationError

type CreateOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateOrgRequestValidationError is the validation error returned by CreateOrgRequest.Validate if the designated constraints aren't met.

func (CreateOrgRequestValidationError) Cause

Cause function returns cause value.

func (CreateOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrgRequestValidationError) Field

Field function returns field value.

func (CreateOrgRequestValidationError) Key

Key function returns key value.

func (CreateOrgRequestValidationError) Reason

Reason function returns reason value.

type CreateUserRequest

type CreateUserRequest struct {

	// User message to create.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

CreateUserRequest is sent to create a user.

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

func (*CreateUserRequest) Validate

func (m *CreateUserRequest) Validate() error

Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateUserRequest) ValidateAll

func (m *CreateUserRequest) ValidateAll() error

ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.

type CreateUserRequestMultiError

type CreateUserRequestMultiError []error

CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.

func (CreateUserRequestMultiError) AllErrors

func (m CreateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateUserRequestValidationError

type CreateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.

func (CreateUserRequestValidationError) Cause

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

Reason function returns reason value.

type DeleteAppRequest

type DeleteAppRequest struct {

	// Application ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteAppRequest is sent to delete an application.

func (*DeleteAppRequest) Descriptor deprecated

func (*DeleteAppRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAppRequest.ProtoReflect.Descriptor instead.

func (*DeleteAppRequest) GetId

func (x *DeleteAppRequest) GetId() string

func (*DeleteAppRequest) ProtoMessage

func (*DeleteAppRequest) ProtoMessage()

func (*DeleteAppRequest) ProtoReflect

func (x *DeleteAppRequest) ProtoReflect() protoreflect.Message

func (*DeleteAppRequest) Reset

func (x *DeleteAppRequest) Reset()

func (*DeleteAppRequest) String

func (x *DeleteAppRequest) String() string

func (*DeleteAppRequest) Validate

func (m *DeleteAppRequest) Validate() error

Validate checks the field values on DeleteAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteAppRequest) ValidateAll

func (m *DeleteAppRequest) ValidateAll() error

ValidateAll checks the field values on DeleteAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteAppRequestMultiError, or nil if none found.

type DeleteAppRequestMultiError

type DeleteAppRequestMultiError []error

DeleteAppRequestMultiError is an error wrapping multiple validation errors returned by DeleteAppRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteAppRequestMultiError) AllErrors

func (m DeleteAppRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteAppRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteAppRequestValidationError

type DeleteAppRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteAppRequestValidationError is the validation error returned by DeleteAppRequest.Validate if the designated constraints aren't met.

func (DeleteAppRequestValidationError) Cause

Cause function returns cause value.

func (DeleteAppRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAppRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAppRequestValidationError) Field

Field function returns field value.

func (DeleteAppRequestValidationError) Key

Key function returns key value.

func (DeleteAppRequestValidationError) Reason

Reason function returns reason value.

type DeleteIdentityRequest

type DeleteIdentityRequest struct {

	// Identity ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

DeleteIdentityRequest is sent to delete an identity.

func (*DeleteIdentityRequest) Descriptor deprecated

func (*DeleteIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteIdentityRequest.ProtoReflect.Descriptor instead.

func (*DeleteIdentityRequest) GetAppId

func (x *DeleteIdentityRequest) GetAppId() string

func (*DeleteIdentityRequest) GetId

func (x *DeleteIdentityRequest) GetId() string

func (*DeleteIdentityRequest) ProtoMessage

func (*DeleteIdentityRequest) ProtoMessage()

func (*DeleteIdentityRequest) ProtoReflect

func (x *DeleteIdentityRequest) ProtoReflect() protoreflect.Message

func (*DeleteIdentityRequest) Reset

func (x *DeleteIdentityRequest) Reset()

func (*DeleteIdentityRequest) String

func (x *DeleteIdentityRequest) String() string

func (*DeleteIdentityRequest) Validate

func (m *DeleteIdentityRequest) Validate() error

Validate checks the field values on DeleteIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteIdentityRequest) ValidateAll

func (m *DeleteIdentityRequest) ValidateAll() error

ValidateAll checks the field values on DeleteIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteIdentityRequestMultiError, or nil if none found.

type DeleteIdentityRequestMultiError

type DeleteIdentityRequestMultiError []error

DeleteIdentityRequestMultiError is an error wrapping multiple validation errors returned by DeleteIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteIdentityRequestMultiError) AllErrors

func (m DeleteIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteIdentityRequestValidationError

type DeleteIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteIdentityRequestValidationError is the validation error returned by DeleteIdentityRequest.Validate if the designated constraints aren't met.

func (DeleteIdentityRequestValidationError) Cause

Cause function returns cause value.

func (DeleteIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteIdentityRequestValidationError) Field

Field function returns field value.

func (DeleteIdentityRequestValidationError) Key

Key function returns key value.

func (DeleteIdentityRequestValidationError) Reason

Reason function returns reason value.

type DeleteKeyRequest

type DeleteKeyRequest struct {

	// Key ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteKeyRequest is sent to delete an API key.

func (*DeleteKeyRequest) Descriptor deprecated

func (*DeleteKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteKeyRequest.ProtoReflect.Descriptor instead.

func (*DeleteKeyRequest) GetId

func (x *DeleteKeyRequest) GetId() string

func (*DeleteKeyRequest) ProtoMessage

func (*DeleteKeyRequest) ProtoMessage()

func (*DeleteKeyRequest) ProtoReflect

func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message

func (*DeleteKeyRequest) Reset

func (x *DeleteKeyRequest) Reset()

func (*DeleteKeyRequest) String

func (x *DeleteKeyRequest) String() string

func (*DeleteKeyRequest) Validate

func (m *DeleteKeyRequest) Validate() error

Validate checks the field values on DeleteKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteKeyRequest) ValidateAll

func (m *DeleteKeyRequest) ValidateAll() error

ValidateAll checks the field values on DeleteKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteKeyRequestMultiError, or nil if none found.

type DeleteKeyRequestMultiError

type DeleteKeyRequestMultiError []error

DeleteKeyRequestMultiError is an error wrapping multiple validation errors returned by DeleteKeyRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteKeyRequestMultiError) AllErrors

func (m DeleteKeyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteKeyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteKeyRequestValidationError

type DeleteKeyRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteKeyRequestValidationError is the validation error returned by DeleteKeyRequest.Validate if the designated constraints aren't met.

func (DeleteKeyRequestValidationError) Cause

Cause function returns cause value.

func (DeleteKeyRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteKeyRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteKeyRequestValidationError) Field

Field function returns field value.

func (DeleteKeyRequestValidationError) Key

Key function returns key value.

func (DeleteKeyRequestValidationError) Reason

Reason function returns reason value.

type DeleteOrgRequest

type DeleteOrgRequest struct {

	// Organization ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteOrgRequest is sent to delete an organization.

func (*DeleteOrgRequest) Descriptor deprecated

func (*DeleteOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOrgRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrgRequest) GetId

func (x *DeleteOrgRequest) GetId() string

func (*DeleteOrgRequest) ProtoMessage

func (*DeleteOrgRequest) ProtoMessage()

func (*DeleteOrgRequest) ProtoReflect

func (x *DeleteOrgRequest) ProtoReflect() protoreflect.Message

func (*DeleteOrgRequest) Reset

func (x *DeleteOrgRequest) Reset()

func (*DeleteOrgRequest) String

func (x *DeleteOrgRequest) String() string

func (*DeleteOrgRequest) Validate

func (m *DeleteOrgRequest) Validate() error

Validate checks the field values on DeleteOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteOrgRequest) ValidateAll

func (m *DeleteOrgRequest) ValidateAll() error

ValidateAll checks the field values on DeleteOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteOrgRequestMultiError, or nil if none found.

type DeleteOrgRequestMultiError

type DeleteOrgRequestMultiError []error

DeleteOrgRequestMultiError is an error wrapping multiple validation errors returned by DeleteOrgRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteOrgRequestMultiError) AllErrors

func (m DeleteOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteOrgRequestValidationError

type DeleteOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteOrgRequestValidationError is the validation error returned by DeleteOrgRequest.Validate if the designated constraints aren't met.

func (DeleteOrgRequestValidationError) Cause

Cause function returns cause value.

func (DeleteOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteOrgRequestValidationError) Field

Field function returns field value.

func (DeleteOrgRequestValidationError) Key

Key function returns key value.

func (DeleteOrgRequestValidationError) Reason

Reason function returns reason value.

type DeleteUserRequest

type DeleteUserRequest struct {

	// User ID (UUID) to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRequest is sent to delete a user.

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

func (*DeleteUserRequest) Validate

func (m *DeleteUserRequest) Validate() error

Validate checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteUserRequest) ValidateAll

func (m *DeleteUserRequest) ValidateAll() error

ValidateAll checks the field values on DeleteUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserRequestMultiError, or nil if none found.

type DeleteUserRequestMultiError

type DeleteUserRequestMultiError []error

DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteUserRequestMultiError) AllErrors

func (m DeleteUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteUserRequestValidationError

type DeleteUserRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.

func (DeleteUserRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

Reason function returns reason value.

type EmailMethod

type EmailMethod struct {

	// Email address.
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

EmailMethod configures an email passcode method.

func (*EmailMethod) Descriptor deprecated

func (*EmailMethod) Descriptor() ([]byte, []int)

Deprecated: Use EmailMethod.ProtoReflect.Descriptor instead.

func (*EmailMethod) GetEmail

func (x *EmailMethod) GetEmail() string

func (*EmailMethod) ProtoMessage

func (*EmailMethod) ProtoMessage()

func (*EmailMethod) ProtoReflect

func (x *EmailMethod) ProtoReflect() protoreflect.Message

func (*EmailMethod) Reset

func (x *EmailMethod) Reset()

func (*EmailMethod) String

func (x *EmailMethod) String() string

func (*EmailMethod) Validate

func (m *EmailMethod) Validate() error

Validate checks the field values on EmailMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EmailMethod) ValidateAll

func (m *EmailMethod) ValidateAll() error

ValidateAll checks the field values on EmailMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmailMethodMultiError, or nil if none found.

type EmailMethodMultiError

type EmailMethodMultiError []error

EmailMethodMultiError is an error wrapping multiple validation errors returned by EmailMethod.ValidateAll() if the designated constraints aren't met.

func (EmailMethodMultiError) AllErrors

func (m EmailMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmailMethodMultiError) Error

func (m EmailMethodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmailMethodValidationError

type EmailMethodValidationError struct {
	// contains filtered or unexported fields
}

EmailMethodValidationError is the validation error returned by EmailMethod.Validate if the designated constraints aren't met.

func (EmailMethodValidationError) Cause

Cause function returns cause value.

func (EmailMethodValidationError) Error

Error satisfies the builtin error interface

func (EmailMethodValidationError) ErrorName

func (e EmailMethodValidationError) ErrorName() string

ErrorName returns error name.

func (EmailMethodValidationError) Field

Field function returns field value.

func (EmailMethodValidationError) Key

Key function returns key value.

func (EmailMethodValidationError) Reason

Reason function returns reason value.

type Event

type Event struct {

	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// Identity ID (UUID).
	IdentityId string `protobuf:"bytes,3,opt,name=identity_id,json=identityID,proto3" json:"identity_id,omitempty"`
	// Event status.
	Status EventStatus `protobuf:"varint,4,opt,name=status,proto3,enum=ownmfa.api.EventStatus" json:"status,omitempty"`
	// Error message. This field will be empty if no error was encountered.
	Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// Event creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Trace ID (UUID).
	TraceId string `protobuf:"bytes,7,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// contains filtered or unexported fields
}

Event represents an event as stored in the database.

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAppId

func (x *Event) GetAppId() string

func (*Event) GetCreatedAt

func (x *Event) GetCreatedAt() *timestamppb.Timestamp

func (*Event) GetError

func (x *Event) GetError() string

func (*Event) GetIdentityId

func (x *Event) GetIdentityId() string

func (*Event) GetOrgId

func (x *Event) GetOrgId() string

func (*Event) GetStatus

func (x *Event) GetStatus() EventStatus

func (*Event) GetTraceId

func (x *Event) GetTraceId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Event) ValidateAll

func (m *Event) ValidateAll() error

ValidateAll checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventMultiError, or nil if none found.

type EventMultiError

type EventMultiError []error

EventMultiError is an error wrapping multiple validation errors returned by Event.ValidateAll() if the designated constraints aren't met.

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventServiceClient

type EventServiceClient interface {
	// List all events for an identity in an [end, start) time range, in descending timestamp order. Events are generated by identity actions.
	ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
	// List the latest event for each of an organization's identities. Events are generated by identity actions.
	LatestEvents(ctx context.Context, in *LatestEventsRequest, opts ...grpc.CallOption) (*LatestEventsResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

EventService contains functions to query identity events.

type EventServiceServer

type EventServiceServer interface {
	// List all events for an identity in an [end, start) time range, in descending timestamp order. Events are generated by identity actions.
	ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
	// List the latest event for each of an organization's identities. Events are generated by identity actions.
	LatestEvents(context.Context, *LatestEventsRequest) (*LatestEventsResponse, error)
	// contains filtered or unexported methods
}

EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility.

EventService contains functions to query identity events.

type EventStatus

type EventStatus int32

EventStatus represents the status of an event.

const (
	// Event status is not specified.
	EventStatus_EVENT_STATUS_UNSPECIFIED EventStatus = 0
	// Identity was successfully created.
	EventStatus_IDENTITY_CREATED EventStatus = 1
	// Challenge was successfully sent.
	EventStatus_CHALLENGE_SENT EventStatus = 2
	// Challenge was requested, but was not required by the identity's authentication method.
	EventStatus_CHALLENGE_NOOP EventStatus = 3
	// Challenge failed to send. The Event error field will be populated.
	EventStatus_CHALLENGE_FAIL EventStatus = 4
	// Identity was successfully activated.
	EventStatus_ACTIVATE_SUCCESS EventStatus = 5
	// Identity failed to activate. The Event error field will be populated.
	EventStatus_ACTIVATE_FAIL EventStatus = 6
	// Identity was successfully verified.
	EventStatus_VERIFY_SUCCESS EventStatus = 7
	// Identity failed to verify. The Event error field will be populated.
	EventStatus_VERIFY_FAIL EventStatus = 8
	// Identity was successfully deleted.
	EventStatus_IDENTITY_DELETED EventStatus = 9
)

func (EventStatus) Descriptor

func (EventStatus) Enum

func (x EventStatus) Enum() *EventStatus

func (EventStatus) EnumDescriptor deprecated

func (EventStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventStatus.Descriptor instead.

func (EventStatus) Number

func (x EventStatus) Number() protoreflect.EnumNumber

func (EventStatus) String

func (x EventStatus) String() string

func (EventStatus) Type

type EventValidationError

type EventValidationError struct {
	// contains filtered or unexported fields
}

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type GetAppRequest

type GetAppRequest struct {

	// Application ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetAppRequest is sent to get an application.

func (*GetAppRequest) Descriptor deprecated

func (*GetAppRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAppRequest.ProtoReflect.Descriptor instead.

func (*GetAppRequest) GetId

func (x *GetAppRequest) GetId() string

func (*GetAppRequest) ProtoMessage

func (*GetAppRequest) ProtoMessage()

func (*GetAppRequest) ProtoReflect

func (x *GetAppRequest) ProtoReflect() protoreflect.Message

func (*GetAppRequest) Reset

func (x *GetAppRequest) Reset()

func (*GetAppRequest) String

func (x *GetAppRequest) String() string

func (*GetAppRequest) Validate

func (m *GetAppRequest) Validate() error

Validate checks the field values on GetAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAppRequest) ValidateAll

func (m *GetAppRequest) ValidateAll() error

ValidateAll checks the field values on GetAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAppRequestMultiError, or nil if none found.

type GetAppRequestMultiError

type GetAppRequestMultiError []error

GetAppRequestMultiError is an error wrapping multiple validation errors returned by GetAppRequest.ValidateAll() if the designated constraints aren't met.

func (GetAppRequestMultiError) AllErrors

func (m GetAppRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAppRequestMultiError) Error

func (m GetAppRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetAppRequestValidationError

type GetAppRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAppRequestValidationError is the validation error returned by GetAppRequest.Validate if the designated constraints aren't met.

func (GetAppRequestValidationError) Cause

Cause function returns cause value.

func (GetAppRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAppRequestValidationError) ErrorName

func (e GetAppRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetAppRequestValidationError) Field

Field function returns field value.

func (GetAppRequestValidationError) Key

Key function returns key value.

func (GetAppRequestValidationError) Reason

Reason function returns reason value.

type GetIdentityRequest

type GetIdentityRequest struct {

	// Identity ID (UUID) to get. Identity method_oneof may be returned in simplified form.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

GetIdentityRequest is sent to get an identity.

func (*GetIdentityRequest) Descriptor deprecated

func (*GetIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIdentityRequest.ProtoReflect.Descriptor instead.

func (*GetIdentityRequest) GetAppId

func (x *GetIdentityRequest) GetAppId() string

func (*GetIdentityRequest) GetId

func (x *GetIdentityRequest) GetId() string

func (*GetIdentityRequest) ProtoMessage

func (*GetIdentityRequest) ProtoMessage()

func (*GetIdentityRequest) ProtoReflect

func (x *GetIdentityRequest) ProtoReflect() protoreflect.Message

func (*GetIdentityRequest) Reset

func (x *GetIdentityRequest) Reset()

func (*GetIdentityRequest) String

func (x *GetIdentityRequest) String() string

func (*GetIdentityRequest) Validate

func (m *GetIdentityRequest) Validate() error

Validate checks the field values on GetIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetIdentityRequest) ValidateAll

func (m *GetIdentityRequest) ValidateAll() error

ValidateAll checks the field values on GetIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetIdentityRequestMultiError, or nil if none found.

type GetIdentityRequestMultiError

type GetIdentityRequestMultiError []error

GetIdentityRequestMultiError is an error wrapping multiple validation errors returned by GetIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (GetIdentityRequestMultiError) AllErrors

func (m GetIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetIdentityRequestValidationError

type GetIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

GetIdentityRequestValidationError is the validation error returned by GetIdentityRequest.Validate if the designated constraints aren't met.

func (GetIdentityRequestValidationError) Cause

Cause function returns cause value.

func (GetIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (GetIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (GetIdentityRequestValidationError) Field

Field function returns field value.

func (GetIdentityRequestValidationError) Key

Key function returns key value.

func (GetIdentityRequestValidationError) Reason

Reason function returns reason value.

type GetOrgRequest

type GetOrgRequest struct {

	// Organization ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetOrgRequest is sent to get an organization.

func (*GetOrgRequest) Descriptor deprecated

func (*GetOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetOrgRequest.ProtoReflect.Descriptor instead.

func (*GetOrgRequest) GetId

func (x *GetOrgRequest) GetId() string

func (*GetOrgRequest) ProtoMessage

func (*GetOrgRequest) ProtoMessage()

func (*GetOrgRequest) ProtoReflect

func (x *GetOrgRequest) ProtoReflect() protoreflect.Message

func (*GetOrgRequest) Reset

func (x *GetOrgRequest) Reset()

func (*GetOrgRequest) String

func (x *GetOrgRequest) String() string

func (*GetOrgRequest) Validate

func (m *GetOrgRequest) Validate() error

Validate checks the field values on GetOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetOrgRequest) ValidateAll

func (m *GetOrgRequest) ValidateAll() error

ValidateAll checks the field values on GetOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetOrgRequestMultiError, or nil if none found.

type GetOrgRequestMultiError

type GetOrgRequestMultiError []error

GetOrgRequestMultiError is an error wrapping multiple validation errors returned by GetOrgRequest.ValidateAll() if the designated constraints aren't met.

func (GetOrgRequestMultiError) AllErrors

func (m GetOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrgRequestMultiError) Error

func (m GetOrgRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetOrgRequestValidationError

type GetOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

GetOrgRequestValidationError is the validation error returned by GetOrgRequest.Validate if the designated constraints aren't met.

func (GetOrgRequestValidationError) Cause

Cause function returns cause value.

func (GetOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrgRequestValidationError) ErrorName

func (e GetOrgRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetOrgRequestValidationError) Field

Field function returns field value.

func (GetOrgRequestValidationError) Key

Key function returns key value.

func (GetOrgRequestValidationError) Reason

Reason function returns reason value.

type GetUserRequest

type GetUserRequest struct {

	// User ID (UUID) to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetUserRequest is sent to get a user.

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

func (*GetUserRequest) Validate

func (m *GetUserRequest) Validate() error

Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetUserRequest) ValidateAll

func (m *GetUserRequest) ValidateAll() error

ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.

type GetUserRequestMultiError

type GetUserRequestMultiError []error

GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserRequestMultiError) AllErrors

func (m GetUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserRequestMultiError) Error

func (m GetUserRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetUserRequestValidationError

type GetUserRequestValidationError struct {
	// contains filtered or unexported fields
}

GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.

func (GetUserRequestValidationError) Cause

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

Reason function returns reason value.

type GoogleAuthHOTPMethod

type GoogleAuthHOTPMethod struct {

	// Account name, such as username or email, for inclusion in QR codes. This field is never saved. If not specified, only the application display name is included in the returned QR code.
	AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// contains filtered or unexported fields
}

GoogleAuthHOTPMethod configures a Google Authenticator HOTP one-time password method. This method is limited to 6-digit passcodes using the SHA1 hash function.

func (*GoogleAuthHOTPMethod) Descriptor deprecated

func (*GoogleAuthHOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use GoogleAuthHOTPMethod.ProtoReflect.Descriptor instead.

func (*GoogleAuthHOTPMethod) GetAccountName

func (x *GoogleAuthHOTPMethod) GetAccountName() string

func (*GoogleAuthHOTPMethod) ProtoMessage

func (*GoogleAuthHOTPMethod) ProtoMessage()

func (*GoogleAuthHOTPMethod) ProtoReflect

func (x *GoogleAuthHOTPMethod) ProtoReflect() protoreflect.Message

func (*GoogleAuthHOTPMethod) Reset

func (x *GoogleAuthHOTPMethod) Reset()

func (*GoogleAuthHOTPMethod) String

func (x *GoogleAuthHOTPMethod) String() string

func (*GoogleAuthHOTPMethod) Validate

func (m *GoogleAuthHOTPMethod) Validate() error

Validate checks the field values on GoogleAuthHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GoogleAuthHOTPMethod) ValidateAll

func (m *GoogleAuthHOTPMethod) ValidateAll() error

ValidateAll checks the field values on GoogleAuthHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GoogleAuthHOTPMethodMultiError, or nil if none found.

type GoogleAuthHOTPMethodMultiError

type GoogleAuthHOTPMethodMultiError []error

GoogleAuthHOTPMethodMultiError is an error wrapping multiple validation errors returned by GoogleAuthHOTPMethod.ValidateAll() if the designated constraints aren't met.

func (GoogleAuthHOTPMethodMultiError) AllErrors

func (m GoogleAuthHOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GoogleAuthHOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GoogleAuthHOTPMethodValidationError

type GoogleAuthHOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

GoogleAuthHOTPMethodValidationError is the validation error returned by GoogleAuthHOTPMethod.Validate if the designated constraints aren't met.

func (GoogleAuthHOTPMethodValidationError) Cause

Cause function returns cause value.

func (GoogleAuthHOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (GoogleAuthHOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (GoogleAuthHOTPMethodValidationError) Field

Field function returns field value.

func (GoogleAuthHOTPMethodValidationError) Key

Key function returns key value.

func (GoogleAuthHOTPMethodValidationError) Reason

Reason function returns reason value.

type GoogleAuthTOTPMethod

type GoogleAuthTOTPMethod struct {

	// Account name, such as username or email, for inclusion in QR codes. This field is never saved. If not specified, only the application display name is included in the returned QR code.
	AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// contains filtered or unexported fields
}

GoogleAuthTOTPMethod configures a Google Authenticator or Microsoft Authenticator TOTP one-time password method. This method is limited to 6-digit passcodes using the SHA1 hash function.

func (*GoogleAuthTOTPMethod) Descriptor deprecated

func (*GoogleAuthTOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use GoogleAuthTOTPMethod.ProtoReflect.Descriptor instead.

func (*GoogleAuthTOTPMethod) GetAccountName

func (x *GoogleAuthTOTPMethod) GetAccountName() string

func (*GoogleAuthTOTPMethod) ProtoMessage

func (*GoogleAuthTOTPMethod) ProtoMessage()

func (*GoogleAuthTOTPMethod) ProtoReflect

func (x *GoogleAuthTOTPMethod) ProtoReflect() protoreflect.Message

func (*GoogleAuthTOTPMethod) Reset

func (x *GoogleAuthTOTPMethod) Reset()

func (*GoogleAuthTOTPMethod) String

func (x *GoogleAuthTOTPMethod) String() string

func (*GoogleAuthTOTPMethod) Validate

func (m *GoogleAuthTOTPMethod) Validate() error

Validate checks the field values on GoogleAuthTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GoogleAuthTOTPMethod) ValidateAll

func (m *GoogleAuthTOTPMethod) ValidateAll() error

ValidateAll checks the field values on GoogleAuthTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GoogleAuthTOTPMethodMultiError, or nil if none found.

type GoogleAuthTOTPMethodMultiError

type GoogleAuthTOTPMethodMultiError []error

GoogleAuthTOTPMethodMultiError is an error wrapping multiple validation errors returned by GoogleAuthTOTPMethod.ValidateAll() if the designated constraints aren't met.

func (GoogleAuthTOTPMethodMultiError) AllErrors

func (m GoogleAuthTOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GoogleAuthTOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GoogleAuthTOTPMethodValidationError

type GoogleAuthTOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

GoogleAuthTOTPMethodValidationError is the validation error returned by GoogleAuthTOTPMethod.Validate if the designated constraints aren't met.

func (GoogleAuthTOTPMethodValidationError) Cause

Cause function returns cause value.

func (GoogleAuthTOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (GoogleAuthTOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (GoogleAuthTOTPMethodValidationError) Field

Field function returns field value.

func (GoogleAuthTOTPMethodValidationError) Key

Key function returns key value.

func (GoogleAuthTOTPMethodValidationError) Reason

Reason function returns reason value.

type HardwareHOTPMethod

type HardwareHOTPMethod struct {

	// Hardware HOTP hash function. Defaults to SHA512 if not specified.
	Hash Hash `protobuf:"varint,1,opt,name=hash,proto3,enum=ownmfa.api.Hash" json:"hash,omitempty"`
	// Passcode digits length.
	Digits int32 `protobuf:"varint,2,opt,name=digits,proto3" json:"digits,omitempty"`
	// Hardware HOTP starting counter. Only included during identity creation. Defaults to 0 if not specified.
	Counter int32 `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
	// Hardware HOTP secret. Only included during identity creation. When used in JSON, the value will be represented as a base64 string.
	Secret []byte `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

HardwareHOTPMethod configures a hardware OATH HOTP one-time password method.

func (*HardwareHOTPMethod) Descriptor deprecated

func (*HardwareHOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use HardwareHOTPMethod.ProtoReflect.Descriptor instead.

func (*HardwareHOTPMethod) GetCounter

func (x *HardwareHOTPMethod) GetCounter() int32

func (*HardwareHOTPMethod) GetDigits

func (x *HardwareHOTPMethod) GetDigits() int32

func (*HardwareHOTPMethod) GetHash

func (x *HardwareHOTPMethod) GetHash() Hash

func (*HardwareHOTPMethod) GetSecret

func (x *HardwareHOTPMethod) GetSecret() []byte

func (*HardwareHOTPMethod) ProtoMessage

func (*HardwareHOTPMethod) ProtoMessage()

func (*HardwareHOTPMethod) ProtoReflect

func (x *HardwareHOTPMethod) ProtoReflect() protoreflect.Message

func (*HardwareHOTPMethod) Reset

func (x *HardwareHOTPMethod) Reset()

func (*HardwareHOTPMethod) String

func (x *HardwareHOTPMethod) String() string

func (*HardwareHOTPMethod) Validate

func (m *HardwareHOTPMethod) Validate() error

Validate checks the field values on HardwareHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HardwareHOTPMethod) ValidateAll

func (m *HardwareHOTPMethod) ValidateAll() error

ValidateAll checks the field values on HardwareHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HardwareHOTPMethodMultiError, or nil if none found.

type HardwareHOTPMethodMultiError

type HardwareHOTPMethodMultiError []error

HardwareHOTPMethodMultiError is an error wrapping multiple validation errors returned by HardwareHOTPMethod.ValidateAll() if the designated constraints aren't met.

func (HardwareHOTPMethodMultiError) AllErrors

func (m HardwareHOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HardwareHOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HardwareHOTPMethodValidationError

type HardwareHOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

HardwareHOTPMethodValidationError is the validation error returned by HardwareHOTPMethod.Validate if the designated constraints aren't met.

func (HardwareHOTPMethodValidationError) Cause

Cause function returns cause value.

func (HardwareHOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (HardwareHOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (HardwareHOTPMethodValidationError) Field

Field function returns field value.

func (HardwareHOTPMethodValidationError) Key

Key function returns key value.

func (HardwareHOTPMethodValidationError) Reason

Reason function returns reason value.

type HardwareTOTPMethod

type HardwareTOTPMethod struct {

	// Hardware TOTP hash function. Defaults to SHA512 if not specified.
	Hash Hash `protobuf:"varint,1,opt,name=hash,proto3,enum=ownmfa.api.Hash" json:"hash,omitempty"`
	// Passcode digits length.
	Digits int32 `protobuf:"varint,2,opt,name=digits,proto3" json:"digits,omitempty"`
	// Hardware TOTP secret. Only included during identity creation. When used in JSON, the value will be represented as a base64 string.
	Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

HardwareTOTPMethod configures a hardware OATH TOTP one-time password method.

func (*HardwareTOTPMethod) Descriptor deprecated

func (*HardwareTOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use HardwareTOTPMethod.ProtoReflect.Descriptor instead.

func (*HardwareTOTPMethod) GetDigits

func (x *HardwareTOTPMethod) GetDigits() int32

func (*HardwareTOTPMethod) GetHash

func (x *HardwareTOTPMethod) GetHash() Hash

func (*HardwareTOTPMethod) GetSecret

func (x *HardwareTOTPMethod) GetSecret() []byte

func (*HardwareTOTPMethod) ProtoMessage

func (*HardwareTOTPMethod) ProtoMessage()

func (*HardwareTOTPMethod) ProtoReflect

func (x *HardwareTOTPMethod) ProtoReflect() protoreflect.Message

func (*HardwareTOTPMethod) Reset

func (x *HardwareTOTPMethod) Reset()

func (*HardwareTOTPMethod) String

func (x *HardwareTOTPMethod) String() string

func (*HardwareTOTPMethod) Validate

func (m *HardwareTOTPMethod) Validate() error

Validate checks the field values on HardwareTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HardwareTOTPMethod) ValidateAll

func (m *HardwareTOTPMethod) ValidateAll() error

ValidateAll checks the field values on HardwareTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HardwareTOTPMethodMultiError, or nil if none found.

type HardwareTOTPMethodMultiError

type HardwareTOTPMethodMultiError []error

HardwareTOTPMethodMultiError is an error wrapping multiple validation errors returned by HardwareTOTPMethod.ValidateAll() if the designated constraints aren't met.

func (HardwareTOTPMethodMultiError) AllErrors

func (m HardwareTOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HardwareTOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HardwareTOTPMethodValidationError

type HardwareTOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

HardwareTOTPMethodValidationError is the validation error returned by HardwareTOTPMethod.Validate if the designated constraints aren't met.

func (HardwareTOTPMethodValidationError) Cause

Cause function returns cause value.

func (HardwareTOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (HardwareTOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (HardwareTOTPMethodValidationError) Field

Field function returns field value.

func (HardwareTOTPMethodValidationError) Key

Key function returns key value.

func (HardwareTOTPMethodValidationError) Reason

Reason function returns reason value.

type Hash

type Hash int32

Hash represents a hash function.

const (
	// SHA-2 512 bits.
	Hash_SHA512 Hash = 0
	// SHA-2 256 bits.
	Hash_SHA256 Hash = 1
	// SHA-1.
	Hash_SHA1 Hash = 2
)

func (Hash) Descriptor

func (Hash) Descriptor() protoreflect.EnumDescriptor

func (Hash) Enum

func (x Hash) Enum() *Hash

func (Hash) EnumDescriptor deprecated

func (Hash) EnumDescriptor() ([]byte, []int)

Deprecated: Use Hash.Descriptor instead.

func (Hash) Number

func (x Hash) Number() protoreflect.EnumNumber

func (Hash) String

func (x Hash) String() string

func (Hash) Type

func (Hash) Type() protoreflect.EnumType

type Identity

type Identity struct {

	// Identity ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,3,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// Identity comment. This should be an opaque identifier known to the consuming application.
	Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
	// Identity status.
	Status IdentityStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ownmfa.api.IdentityStatus" json:"status,omitempty"`
	// Identity method.
	//
	// Types that are assignable to MethodOneof:
	//
	//	*Identity_SoftwareHotpMethod
	//	*Identity_SoftwareTotpMethod
	//	*Identity_GoogleAuthHotpMethod
	//	*Identity_GoogleAuthTotpMethod
	//	*Identity_AppleIosTotpMethod
	//	*Identity_HardwareHotpMethod
	//	*Identity_HardwareTotpMethod
	//	*Identity_SmsMethod
	//	*Identity_PushoverMethod
	//	*Identity_EmailMethod
	//	*Identity_BackupCodesMethod
	//	*Identity_SecurityQuestionsMethod
	MethodOneof isIdentity_MethodOneof `protobuf_oneof:"method_oneof"`
	// Identity creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Identity modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Identity represents an identity as stored in the database.

func (*Identity) Descriptor deprecated

func (*Identity) Descriptor() ([]byte, []int)

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetAppId

func (x *Identity) GetAppId() string

func (*Identity) GetAppleIosTotpMethod

func (x *Identity) GetAppleIosTotpMethod() *AppleiOSTOTPMethod

func (*Identity) GetBackupCodesMethod

func (x *Identity) GetBackupCodesMethod() *BackupsCodesMethod

func (*Identity) GetComment

func (x *Identity) GetComment() string

func (*Identity) GetCreatedAt

func (x *Identity) GetCreatedAt() *timestamppb.Timestamp

func (*Identity) GetEmailMethod

func (x *Identity) GetEmailMethod() *EmailMethod

func (*Identity) GetGoogleAuthHotpMethod

func (x *Identity) GetGoogleAuthHotpMethod() *GoogleAuthHOTPMethod

func (*Identity) GetGoogleAuthTotpMethod

func (x *Identity) GetGoogleAuthTotpMethod() *GoogleAuthTOTPMethod

func (*Identity) GetHardwareHotpMethod

func (x *Identity) GetHardwareHotpMethod() *HardwareHOTPMethod

func (*Identity) GetHardwareTotpMethod

func (x *Identity) GetHardwareTotpMethod() *HardwareTOTPMethod

func (*Identity) GetId

func (x *Identity) GetId() string

func (*Identity) GetMethodOneof

func (m *Identity) GetMethodOneof() isIdentity_MethodOneof

func (*Identity) GetOrgId

func (x *Identity) GetOrgId() string

func (*Identity) GetPushoverMethod

func (x *Identity) GetPushoverMethod() *PushoverMethod

func (*Identity) GetSecurityQuestionsMethod

func (x *Identity) GetSecurityQuestionsMethod() *SecurityQuestionsMethod

func (*Identity) GetSmsMethod

func (x *Identity) GetSmsMethod() *SMSMethod

func (*Identity) GetSoftwareHotpMethod

func (x *Identity) GetSoftwareHotpMethod() *SoftwareHOTPMethod

func (*Identity) GetSoftwareTotpMethod

func (x *Identity) GetSoftwareTotpMethod() *SoftwareTOTPMethod

func (*Identity) GetStatus

func (x *Identity) GetStatus() IdentityStatus

func (*Identity) GetUpdatedAt

func (x *Identity) GetUpdatedAt() *timestamppb.Timestamp

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

func (x *Identity) ProtoReflect() protoreflect.Message

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

func (*Identity) Validate

func (m *Identity) Validate() error

Validate checks the field values on Identity with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Identity) ValidateAll

func (m *Identity) ValidateAll() error

ValidateAll checks the field values on Identity with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdentityMultiError, or nil if none found.

type IdentityMultiError

type IdentityMultiError []error

IdentityMultiError is an error wrapping multiple validation errors returned by Identity.ValidateAll() if the designated constraints aren't met.

func (IdentityMultiError) AllErrors

func (m IdentityMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentityMultiError) Error

func (m IdentityMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type IdentityStatus

type IdentityStatus int32

IdentityStatus represents the status of an identity.

const (
	// Identity is not yet verified.
	IdentityStatus_UNVERIFIED IdentityStatus = 0
	// Identity has been activated.
	IdentityStatus_ACTIVATED IdentityStatus = 3
)

func (IdentityStatus) Descriptor

func (IdentityStatus) Enum

func (x IdentityStatus) Enum() *IdentityStatus

func (IdentityStatus) EnumDescriptor deprecated

func (IdentityStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use IdentityStatus.Descriptor instead.

func (IdentityStatus) Number

func (IdentityStatus) String

func (x IdentityStatus) String() string

func (IdentityStatus) Type

type IdentityValidationError

type IdentityValidationError struct {
	// contains filtered or unexported fields
}

IdentityValidationError is the validation error returned by Identity.Validate if the designated constraints aren't met.

func (IdentityValidationError) Cause

func (e IdentityValidationError) Cause() error

Cause function returns cause value.

func (IdentityValidationError) Error

func (e IdentityValidationError) Error() string

Error satisfies the builtin error interface

func (IdentityValidationError) ErrorName

func (e IdentityValidationError) ErrorName() string

ErrorName returns error name.

func (IdentityValidationError) Field

func (e IdentityValidationError) Field() string

Field function returns field value.

func (IdentityValidationError) Key

func (e IdentityValidationError) Key() bool

Key function returns key value.

func (IdentityValidationError) Reason

func (e IdentityValidationError) Reason() string

Reason function returns reason value.

type Identity_AppleIosTotpMethod

type Identity_AppleIosTotpMethod struct {
	// Apple iOS TOTP method configuration.
	AppleIosTotpMethod *AppleiOSTOTPMethod `protobuf:"bytes,22,opt,name=apple_ios_totp_method,json=appleiOSTOTPMethod,proto3,oneof"`
}

type Identity_BackupCodesMethod

type Identity_BackupCodesMethod struct {
	// Backups codes method configuration.
	BackupCodesMethod *BackupsCodesMethod `protobuf:"bytes,10,opt,name=backup_codes_method,json=backupCodesMethod,proto3,oneof"`
}

type Identity_EmailMethod

type Identity_EmailMethod struct {
	// Email method configuration.
	EmailMethod *EmailMethod `protobuf:"bytes,9,opt,name=email_method,json=emailMethod,proto3,oneof"`
}

type Identity_GoogleAuthHotpMethod

type Identity_GoogleAuthHotpMethod struct {
	// Google Authenticator HOTP method configuration.
	GoogleAuthHotpMethod *GoogleAuthHOTPMethod `protobuf:"bytes,17,opt,name=google_auth_hotp_method,json=googleAuthHOTPMethod,proto3,oneof"`
}

type Identity_GoogleAuthTotpMethod

type Identity_GoogleAuthTotpMethod struct {
	// Google Authenticator TOTP method configuration.
	GoogleAuthTotpMethod *GoogleAuthTOTPMethod `protobuf:"bytes,7,opt,name=google_auth_totp_method,json=googleAuthTOTPMethod,proto3,oneof"`
}

type Identity_HardwareHotpMethod

type Identity_HardwareHotpMethod struct {
	// Hardware HOTP method configuration.
	HardwareHotpMethod *HardwareHOTPMethod `protobuf:"bytes,18,opt,name=hardware_hotp_method,json=hardwareHOTPMethod,proto3,oneof"`
}

type Identity_HardwareTotpMethod

type Identity_HardwareTotpMethod struct {
	// Hardware TOTP method configuration.
	HardwareTotpMethod *HardwareTOTPMethod `protobuf:"bytes,19,opt,name=hardware_totp_method,json=hardwareTOTPMethod,proto3,oneof"`
}

type Identity_PushoverMethod

type Identity_PushoverMethod struct {
	// Pushover method configuration.
	PushoverMethod *PushoverMethod `protobuf:"bytes,20,opt,name=pushover_method,json=pushoverMethod,proto3,oneof"`
}

type Identity_SecurityQuestionsMethod

type Identity_SecurityQuestionsMethod struct {
	// Security questions method configuration.
	SecurityQuestionsMethod *SecurityQuestionsMethod `protobuf:"bytes,21,opt,name=security_questions_method,json=securityQuestionsMethod,proto3,oneof"`
}

type Identity_SmsMethod

type Identity_SmsMethod struct {
	// SMS method configuration.
	SmsMethod *SMSMethod `protobuf:"bytes,8,opt,name=sms_method,json=smsMethod,proto3,oneof"`
}

type Identity_SoftwareHotpMethod

type Identity_SoftwareHotpMethod struct {
	// Software HOTP method configuration.
	SoftwareHotpMethod *SoftwareHOTPMethod `protobuf:"bytes,16,opt,name=software_hotp_method,json=softwareHOTPMethod,proto3,oneof"`
}

type Identity_SoftwareTotpMethod

type Identity_SoftwareTotpMethod struct {
	// Software TOTP method configuration.
	SoftwareTotpMethod *SoftwareTOTPMethod `protobuf:"bytes,6,opt,name=software_totp_method,json=softwareTOTPMethod,proto3,oneof"`
}

type Key

type Key struct {

	// Key ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// Key name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Key role.
	Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=ownmfa.api.Role" json:"role,omitempty"`
	// Key creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Key represents an API key as stored in the database. API keys are not tied to a specific user.

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetCreatedAt

func (x *Key) GetCreatedAt() *timestamppb.Timestamp

func (*Key) GetId

func (x *Key) GetId() string

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetOrgId

func (x *Key) GetOrgId() string

func (*Key) GetRole

func (x *Key) GetRole() Role

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

func (*Key) Validate

func (m *Key) Validate() error

Validate checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Key) ValidateAll

func (m *Key) ValidateAll() error

ValidateAll checks the field values on Key with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KeyMultiError, or nil if none found.

type KeyMultiError

type KeyMultiError []error

KeyMultiError is an error wrapping multiple validation errors returned by Key.ValidateAll() if the designated constraints aren't met.

func (KeyMultiError) AllErrors

func (m KeyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeyMultiError) Error

func (m KeyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type KeyValidationError

type KeyValidationError struct {
	// contains filtered or unexported fields
}

KeyValidationError is the validation error returned by Key.Validate if the designated constraints aren't met.

func (KeyValidationError) Cause

func (e KeyValidationError) Cause() error

Cause function returns cause value.

func (KeyValidationError) Error

func (e KeyValidationError) Error() string

Error satisfies the builtin error interface

func (KeyValidationError) ErrorName

func (e KeyValidationError) ErrorName() string

ErrorName returns error name.

func (KeyValidationError) Field

func (e KeyValidationError) Field() string

Field function returns field value.

func (KeyValidationError) Key

func (e KeyValidationError) Key() bool

Key function returns key value.

func (KeyValidationError) Reason

func (e KeyValidationError) Reason() string

Reason function returns reason value.

type LatestEventsRequest

type LatestEventsRequest struct {

	// Application ID (UUID). If not specified, all applications are included.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// Identity ID (UUID). If not specified, all identities are included.
	IdentityId string `protobuf:"bytes,2,opt,name=identity_id,json=identityID,proto3" json:"identity_id,omitempty"`
	// contains filtered or unexported fields
}

LatestEventsRequest is sent to list latest organization events.

func (*LatestEventsRequest) Descriptor deprecated

func (*LatestEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LatestEventsRequest.ProtoReflect.Descriptor instead.

func (*LatestEventsRequest) GetAppId

func (x *LatestEventsRequest) GetAppId() string

func (*LatestEventsRequest) GetIdentityId

func (x *LatestEventsRequest) GetIdentityId() string

func (*LatestEventsRequest) ProtoMessage

func (*LatestEventsRequest) ProtoMessage()

func (*LatestEventsRequest) ProtoReflect

func (x *LatestEventsRequest) ProtoReflect() protoreflect.Message

func (*LatestEventsRequest) Reset

func (x *LatestEventsRequest) Reset()

func (*LatestEventsRequest) String

func (x *LatestEventsRequest) String() string

func (*LatestEventsRequest) Validate

func (m *LatestEventsRequest) Validate() error

Validate checks the field values on LatestEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestEventsRequest) ValidateAll

func (m *LatestEventsRequest) ValidateAll() error

ValidateAll checks the field values on LatestEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestEventsRequestMultiError, or nil if none found.

type LatestEventsRequestMultiError

type LatestEventsRequestMultiError []error

LatestEventsRequestMultiError is an error wrapping multiple validation errors returned by LatestEventsRequest.ValidateAll() if the designated constraints aren't met.

func (LatestEventsRequestMultiError) AllErrors

func (m LatestEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestEventsRequestValidationError

type LatestEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

LatestEventsRequestValidationError is the validation error returned by LatestEventsRequest.Validate if the designated constraints aren't met.

func (LatestEventsRequestValidationError) Cause

Cause function returns cause value.

func (LatestEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (LatestEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (LatestEventsRequestValidationError) Field

Field function returns field value.

func (LatestEventsRequestValidationError) Key

Key function returns key value.

func (LatestEventsRequestValidationError) Reason

Reason function returns reason value.

type LatestEventsResponse

type LatestEventsResponse struct {

	// Event array, ordered by descending created_at timestamp.
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

LatestEventsResponse is sent in response to an organization latest list.

func (*LatestEventsResponse) Descriptor deprecated

func (*LatestEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LatestEventsResponse.ProtoReflect.Descriptor instead.

func (*LatestEventsResponse) GetEvents

func (x *LatestEventsResponse) GetEvents() []*Event

func (*LatestEventsResponse) ProtoMessage

func (*LatestEventsResponse) ProtoMessage()

func (*LatestEventsResponse) ProtoReflect

func (x *LatestEventsResponse) ProtoReflect() protoreflect.Message

func (*LatestEventsResponse) Reset

func (x *LatestEventsResponse) Reset()

func (*LatestEventsResponse) String

func (x *LatestEventsResponse) String() string

func (*LatestEventsResponse) Validate

func (m *LatestEventsResponse) Validate() error

Validate checks the field values on LatestEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LatestEventsResponse) ValidateAll

func (m *LatestEventsResponse) ValidateAll() error

ValidateAll checks the field values on LatestEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LatestEventsResponseMultiError, or nil if none found.

type LatestEventsResponseMultiError

type LatestEventsResponseMultiError []error

LatestEventsResponseMultiError is an error wrapping multiple validation errors returned by LatestEventsResponse.ValidateAll() if the designated constraints aren't met.

func (LatestEventsResponseMultiError) AllErrors

func (m LatestEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LatestEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LatestEventsResponseValidationError

type LatestEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

LatestEventsResponseValidationError is the validation error returned by LatestEventsResponse.Validate if the designated constraints aren't met.

func (LatestEventsResponseValidationError) Cause

Cause function returns cause value.

func (LatestEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (LatestEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (LatestEventsResponseValidationError) Field

Field function returns field value.

func (LatestEventsResponseValidationError) Key

Key function returns key value.

func (LatestEventsResponseValidationError) Reason

Reason function returns reason value.

type ListAppsRequest

type ListAppsRequest struct {

	// Number of applications to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListAppsRequest is sent to list applications.

func (*ListAppsRequest) Descriptor deprecated

func (*ListAppsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAppsRequest.ProtoReflect.Descriptor instead.

func (*ListAppsRequest) GetPageSize

func (x *ListAppsRequest) GetPageSize() int32

func (*ListAppsRequest) GetPageToken

func (x *ListAppsRequest) GetPageToken() string

func (*ListAppsRequest) ProtoMessage

func (*ListAppsRequest) ProtoMessage()

func (*ListAppsRequest) ProtoReflect

func (x *ListAppsRequest) ProtoReflect() protoreflect.Message

func (*ListAppsRequest) Reset

func (x *ListAppsRequest) Reset()

func (*ListAppsRequest) String

func (x *ListAppsRequest) String() string

func (*ListAppsRequest) Validate

func (m *ListAppsRequest) Validate() error

Validate checks the field values on ListAppsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAppsRequest) ValidateAll

func (m *ListAppsRequest) ValidateAll() error

ValidateAll checks the field values on ListAppsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAppsRequestMultiError, or nil if none found.

type ListAppsRequestMultiError

type ListAppsRequestMultiError []error

ListAppsRequestMultiError is an error wrapping multiple validation errors returned by ListAppsRequest.ValidateAll() if the designated constraints aren't met.

func (ListAppsRequestMultiError) AllErrors

func (m ListAppsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAppsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAppsRequestValidationError

type ListAppsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAppsRequestValidationError is the validation error returned by ListAppsRequest.Validate if the designated constraints aren't met.

func (ListAppsRequestValidationError) Cause

Cause function returns cause value.

func (ListAppsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAppsRequestValidationError) ErrorName

func (e ListAppsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListAppsRequestValidationError) Field

Field function returns field value.

func (ListAppsRequestValidationError) Key

Key function returns key value.

func (ListAppsRequestValidationError) Reason

Reason function returns reason value.

type ListAppsResponse

type ListAppsResponse struct {

	// App array, ordered by ascending created_at timestamp.
	Apps []*App `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of applications available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListAppsResponse is sent in response to an application list.

func (*ListAppsResponse) Descriptor deprecated

func (*ListAppsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAppsResponse.ProtoReflect.Descriptor instead.

func (*ListAppsResponse) GetApps

func (x *ListAppsResponse) GetApps() []*App

func (*ListAppsResponse) GetNextPageToken

func (x *ListAppsResponse) GetNextPageToken() string

func (*ListAppsResponse) GetTotalSize

func (x *ListAppsResponse) GetTotalSize() int32

func (*ListAppsResponse) ProtoMessage

func (*ListAppsResponse) ProtoMessage()

func (*ListAppsResponse) ProtoReflect

func (x *ListAppsResponse) ProtoReflect() protoreflect.Message

func (*ListAppsResponse) Reset

func (x *ListAppsResponse) Reset()

func (*ListAppsResponse) String

func (x *ListAppsResponse) String() string

func (*ListAppsResponse) Validate

func (m *ListAppsResponse) Validate() error

Validate checks the field values on ListAppsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListAppsResponse) ValidateAll

func (m *ListAppsResponse) ValidateAll() error

ValidateAll checks the field values on ListAppsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListAppsResponseMultiError, or nil if none found.

type ListAppsResponseMultiError

type ListAppsResponseMultiError []error

ListAppsResponseMultiError is an error wrapping multiple validation errors returned by ListAppsResponse.ValidateAll() if the designated constraints aren't met.

func (ListAppsResponseMultiError) AllErrors

func (m ListAppsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAppsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAppsResponseValidationError

type ListAppsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListAppsResponseValidationError is the validation error returned by ListAppsResponse.Validate if the designated constraints aren't met.

func (ListAppsResponseValidationError) Cause

Cause function returns cause value.

func (ListAppsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAppsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAppsResponseValidationError) Field

Field function returns field value.

func (ListAppsResponseValidationError) Key

Key function returns key value.

func (ListAppsResponseValidationError) Reason

Reason function returns reason value.

type ListEventsRequest

type ListEventsRequest struct {

	// Identity ID (UUID).
	IdentityId string `protobuf:"bytes,1,opt,name=identity_id,json=identityID,proto3" json:"identity_id,omitempty"`
	// Events range end time. Defaults to current time if not specified. Maximum supported time range is 90 days.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Events range start time. Defaults to end_time - 24 hours if not specified or after end_time. Maximum supported time range is 90 days.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

ListEventsRequest is sent to list identity events in an [end, start) time range, in descending timestamp order.

func (*ListEventsRequest) Descriptor deprecated

func (*ListEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.

func (*ListEventsRequest) GetEndTime

func (x *ListEventsRequest) GetEndTime() *timestamppb.Timestamp

func (*ListEventsRequest) GetIdentityId

func (x *ListEventsRequest) GetIdentityId() string

func (*ListEventsRequest) GetStartTime

func (x *ListEventsRequest) GetStartTime() *timestamppb.Timestamp

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) ProtoReflect

func (x *ListEventsRequest) ProtoReflect() protoreflect.Message

func (*ListEventsRequest) Reset

func (x *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (x *ListEventsRequest) String() string

func (*ListEventsRequest) Validate

func (m *ListEventsRequest) Validate() error

Validate checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListEventsRequest) ValidateAll

func (m *ListEventsRequest) ValidateAll() error

ValidateAll checks the field values on ListEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsRequestMultiError, or nil if none found.

type ListEventsRequestMultiError

type ListEventsRequestMultiError []error

ListEventsRequestMultiError is an error wrapping multiple validation errors returned by ListEventsRequest.ValidateAll() if the designated constraints aren't met.

func (ListEventsRequestMultiError) AllErrors

func (m ListEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsRequestValidationError

type ListEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListEventsRequestValidationError is the validation error returned by ListEventsRequest.Validate if the designated constraints aren't met.

func (ListEventsRequestValidationError) Cause

Cause function returns cause value.

func (ListEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListEventsRequestValidationError) Field

Field function returns field value.

func (ListEventsRequestValidationError) Key

Key function returns key value.

func (ListEventsRequestValidationError) Reason

Reason function returns reason value.

type ListEventsResponse

type ListEventsResponse struct {

	// Event array, ordered by descending created_at timestamp.
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

ListEventsResponse is sent in response to an identity events list.

func (*ListEventsResponse) Descriptor deprecated

func (*ListEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.

func (*ListEventsResponse) GetEvents

func (x *ListEventsResponse) GetEvents() []*Event

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) ProtoReflect

func (x *ListEventsResponse) ProtoReflect() protoreflect.Message

func (*ListEventsResponse) Reset

func (x *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (x *ListEventsResponse) String() string

func (*ListEventsResponse) Validate

func (m *ListEventsResponse) Validate() error

Validate checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListEventsResponse) ValidateAll

func (m *ListEventsResponse) ValidateAll() error

ValidateAll checks the field values on ListEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEventsResponseMultiError, or nil if none found.

type ListEventsResponseMultiError

type ListEventsResponseMultiError []error

ListEventsResponseMultiError is an error wrapping multiple validation errors returned by ListEventsResponse.ValidateAll() if the designated constraints aren't met.

func (ListEventsResponseMultiError) AllErrors

func (m ListEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsResponseValidationError

type ListEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListEventsResponseValidationError is the validation error returned by ListEventsResponse.Validate if the designated constraints aren't met.

func (ListEventsResponseValidationError) Cause

Cause function returns cause value.

func (ListEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListEventsResponseValidationError) Field

Field function returns field value.

func (ListEventsResponseValidationError) Key

Key function returns key value.

func (ListEventsResponseValidationError) Reason

Reason function returns reason value.

type ListIdentitiesRequest

type ListIdentitiesRequest struct {

	// Number of identities to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Application ID (UUID). If not specified, all rules are included.
	AppId string `protobuf:"bytes,3,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

ListIdentitiesRequest is sent to list identities.

func (*ListIdentitiesRequest) Descriptor deprecated

func (*ListIdentitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListIdentitiesRequest.ProtoReflect.Descriptor instead.

func (*ListIdentitiesRequest) GetAppId

func (x *ListIdentitiesRequest) GetAppId() string

func (*ListIdentitiesRequest) GetPageSize

func (x *ListIdentitiesRequest) GetPageSize() int32

func (*ListIdentitiesRequest) GetPageToken

func (x *ListIdentitiesRequest) GetPageToken() string

func (*ListIdentitiesRequest) ProtoMessage

func (*ListIdentitiesRequest) ProtoMessage()

func (*ListIdentitiesRequest) ProtoReflect

func (x *ListIdentitiesRequest) ProtoReflect() protoreflect.Message

func (*ListIdentitiesRequest) Reset

func (x *ListIdentitiesRequest) Reset()

func (*ListIdentitiesRequest) String

func (x *ListIdentitiesRequest) String() string

func (*ListIdentitiesRequest) Validate

func (m *ListIdentitiesRequest) Validate() error

Validate checks the field values on ListIdentitiesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListIdentitiesRequest) ValidateAll

func (m *ListIdentitiesRequest) ValidateAll() error

ValidateAll checks the field values on ListIdentitiesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListIdentitiesRequestMultiError, or nil if none found.

type ListIdentitiesRequestMultiError

type ListIdentitiesRequestMultiError []error

ListIdentitiesRequestMultiError is an error wrapping multiple validation errors returned by ListIdentitiesRequest.ValidateAll() if the designated constraints aren't met.

func (ListIdentitiesRequestMultiError) AllErrors

func (m ListIdentitiesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListIdentitiesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListIdentitiesRequestValidationError

type ListIdentitiesRequestValidationError struct {
	// contains filtered or unexported fields
}

ListIdentitiesRequestValidationError is the validation error returned by ListIdentitiesRequest.Validate if the designated constraints aren't met.

func (ListIdentitiesRequestValidationError) Cause

Cause function returns cause value.

func (ListIdentitiesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListIdentitiesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListIdentitiesRequestValidationError) Field

Field function returns field value.

func (ListIdentitiesRequestValidationError) Key

Key function returns key value.

func (ListIdentitiesRequestValidationError) Reason

Reason function returns reason value.

type ListIdentitiesResponse

type ListIdentitiesResponse struct {

	// Identity array, ordered by ascending created_at timestamp.
	Identities []*Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of identities available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListIdentitiesResponse is sent in response to an identity list.

func (*ListIdentitiesResponse) Descriptor deprecated

func (*ListIdentitiesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListIdentitiesResponse.ProtoReflect.Descriptor instead.

func (*ListIdentitiesResponse) GetIdentities

func (x *ListIdentitiesResponse) GetIdentities() []*Identity

func (*ListIdentitiesResponse) GetNextPageToken

func (x *ListIdentitiesResponse) GetNextPageToken() string

func (*ListIdentitiesResponse) GetTotalSize

func (x *ListIdentitiesResponse) GetTotalSize() int32

func (*ListIdentitiesResponse) ProtoMessage

func (*ListIdentitiesResponse) ProtoMessage()

func (*ListIdentitiesResponse) ProtoReflect

func (x *ListIdentitiesResponse) ProtoReflect() protoreflect.Message

func (*ListIdentitiesResponse) Reset

func (x *ListIdentitiesResponse) Reset()

func (*ListIdentitiesResponse) String

func (x *ListIdentitiesResponse) String() string

func (*ListIdentitiesResponse) Validate

func (m *ListIdentitiesResponse) Validate() error

Validate checks the field values on ListIdentitiesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListIdentitiesResponse) ValidateAll

func (m *ListIdentitiesResponse) ValidateAll() error

ValidateAll checks the field values on ListIdentitiesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListIdentitiesResponseMultiError, or nil if none found.

type ListIdentitiesResponseMultiError

type ListIdentitiesResponseMultiError []error

ListIdentitiesResponseMultiError is an error wrapping multiple validation errors returned by ListIdentitiesResponse.ValidateAll() if the designated constraints aren't met.

func (ListIdentitiesResponseMultiError) AllErrors

func (m ListIdentitiesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListIdentitiesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListIdentitiesResponseValidationError

type ListIdentitiesResponseValidationError struct {
	// contains filtered or unexported fields
}

ListIdentitiesResponseValidationError is the validation error returned by ListIdentitiesResponse.Validate if the designated constraints aren't met.

func (ListIdentitiesResponseValidationError) Cause

Cause function returns cause value.

func (ListIdentitiesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListIdentitiesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListIdentitiesResponseValidationError) Field

Field function returns field value.

func (ListIdentitiesResponseValidationError) Key

Key function returns key value.

func (ListIdentitiesResponseValidationError) Reason

Reason function returns reason value.

type ListKeysRequest

type ListKeysRequest struct {

	// Number of API keys to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListKeysRequest is sent to list API keys.

func (*ListKeysRequest) Descriptor deprecated

func (*ListKeysRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.

func (*ListKeysRequest) GetPageSize

func (x *ListKeysRequest) GetPageSize() int32

func (*ListKeysRequest) GetPageToken

func (x *ListKeysRequest) GetPageToken() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) ProtoReflect

func (x *ListKeysRequest) ProtoReflect() protoreflect.Message

func (*ListKeysRequest) Reset

func (x *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (x *ListKeysRequest) String() string

func (*ListKeysRequest) Validate

func (m *ListKeysRequest) Validate() error

Validate checks the field values on ListKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListKeysRequest) ValidateAll

func (m *ListKeysRequest) ValidateAll() error

ValidateAll checks the field values on ListKeysRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListKeysRequestMultiError, or nil if none found.

type ListKeysRequestMultiError

type ListKeysRequestMultiError []error

ListKeysRequestMultiError is an error wrapping multiple validation errors returned by ListKeysRequest.ValidateAll() if the designated constraints aren't met.

func (ListKeysRequestMultiError) AllErrors

func (m ListKeysRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListKeysRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListKeysRequestValidationError

type ListKeysRequestValidationError struct {
	// contains filtered or unexported fields
}

ListKeysRequestValidationError is the validation error returned by ListKeysRequest.Validate if the designated constraints aren't met.

func (ListKeysRequestValidationError) Cause

Cause function returns cause value.

func (ListKeysRequestValidationError) Error

Error satisfies the builtin error interface

func (ListKeysRequestValidationError) ErrorName

func (e ListKeysRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListKeysRequestValidationError) Field

Field function returns field value.

func (ListKeysRequestValidationError) Key

Key function returns key value.

func (ListKeysRequestValidationError) Reason

Reason function returns reason value.

type ListKeysResponse

type ListKeysResponse struct {

	// Key array, ordered by ascending created_at timestamp.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of API keys available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListKeysResponse is sent in response to an API key list.

func (*ListKeysResponse) Descriptor deprecated

func (*ListKeysResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.

func (*ListKeysResponse) GetKeys

func (x *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) GetNextPageToken

func (x *ListKeysResponse) GetNextPageToken() string

func (*ListKeysResponse) GetTotalSize

func (x *ListKeysResponse) GetTotalSize() int32

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) ProtoReflect

func (x *ListKeysResponse) ProtoReflect() protoreflect.Message

func (*ListKeysResponse) Reset

func (x *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (x *ListKeysResponse) String() string

func (*ListKeysResponse) Validate

func (m *ListKeysResponse) Validate() error

Validate checks the field values on ListKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListKeysResponse) ValidateAll

func (m *ListKeysResponse) ValidateAll() error

ValidateAll checks the field values on ListKeysResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListKeysResponseMultiError, or nil if none found.

type ListKeysResponseMultiError

type ListKeysResponseMultiError []error

ListKeysResponseMultiError is an error wrapping multiple validation errors returned by ListKeysResponse.ValidateAll() if the designated constraints aren't met.

func (ListKeysResponseMultiError) AllErrors

func (m ListKeysResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListKeysResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListKeysResponseValidationError

type ListKeysResponseValidationError struct {
	// contains filtered or unexported fields
}

ListKeysResponseValidationError is the validation error returned by ListKeysResponse.Validate if the designated constraints aren't met.

func (ListKeysResponseValidationError) Cause

Cause function returns cause value.

func (ListKeysResponseValidationError) Error

Error satisfies the builtin error interface

func (ListKeysResponseValidationError) ErrorName

ErrorName returns error name.

func (ListKeysResponseValidationError) Field

Field function returns field value.

func (ListKeysResponseValidationError) Key

Key function returns key value.

func (ListKeysResponseValidationError) Reason

Reason function returns reason value.

type ListOrgsRequest

type ListOrgsRequest struct {

	// Number of organizations to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListOrgsRequest is sent to list organizations.

func (*ListOrgsRequest) Descriptor deprecated

func (*ListOrgsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOrgsRequest.ProtoReflect.Descriptor instead.

func (*ListOrgsRequest) GetPageSize

func (x *ListOrgsRequest) GetPageSize() int32

func (*ListOrgsRequest) GetPageToken

func (x *ListOrgsRequest) GetPageToken() string

func (*ListOrgsRequest) ProtoMessage

func (*ListOrgsRequest) ProtoMessage()

func (*ListOrgsRequest) ProtoReflect

func (x *ListOrgsRequest) ProtoReflect() protoreflect.Message

func (*ListOrgsRequest) Reset

func (x *ListOrgsRequest) Reset()

func (*ListOrgsRequest) String

func (x *ListOrgsRequest) String() string

func (*ListOrgsRequest) Validate

func (m *ListOrgsRequest) Validate() error

Validate checks the field values on ListOrgsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrgsRequest) ValidateAll

func (m *ListOrgsRequest) ValidateAll() error

ValidateAll checks the field values on ListOrgsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrgsRequestMultiError, or nil if none found.

type ListOrgsRequestMultiError

type ListOrgsRequestMultiError []error

ListOrgsRequestMultiError is an error wrapping multiple validation errors returned by ListOrgsRequest.ValidateAll() if the designated constraints aren't met.

func (ListOrgsRequestMultiError) AllErrors

func (m ListOrgsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgsRequestValidationError

type ListOrgsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListOrgsRequestValidationError is the validation error returned by ListOrgsRequest.Validate if the designated constraints aren't met.

func (ListOrgsRequestValidationError) Cause

Cause function returns cause value.

func (ListOrgsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListOrgsRequestValidationError) ErrorName

func (e ListOrgsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListOrgsRequestValidationError) Field

Field function returns field value.

func (ListOrgsRequestValidationError) Key

Key function returns key value.

func (ListOrgsRequestValidationError) Reason

Reason function returns reason value.

type ListOrgsResponse

type ListOrgsResponse struct {

	// Org array, ordered by ascending created_at timestamp.
	Orgs []*Org `protobuf:"bytes,1,rep,name=orgs,proto3" json:"orgs,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of organizations available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListOrgsResponse is sent in response to an organization list.

func (*ListOrgsResponse) Descriptor deprecated

func (*ListOrgsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListOrgsResponse.ProtoReflect.Descriptor instead.

func (*ListOrgsResponse) GetNextPageToken

func (x *ListOrgsResponse) GetNextPageToken() string

func (*ListOrgsResponse) GetOrgs

func (x *ListOrgsResponse) GetOrgs() []*Org

func (*ListOrgsResponse) GetTotalSize

func (x *ListOrgsResponse) GetTotalSize() int32

func (*ListOrgsResponse) ProtoMessage

func (*ListOrgsResponse) ProtoMessage()

func (*ListOrgsResponse) ProtoReflect

func (x *ListOrgsResponse) ProtoReflect() protoreflect.Message

func (*ListOrgsResponse) Reset

func (x *ListOrgsResponse) Reset()

func (*ListOrgsResponse) String

func (x *ListOrgsResponse) String() string

func (*ListOrgsResponse) Validate

func (m *ListOrgsResponse) Validate() error

Validate checks the field values on ListOrgsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListOrgsResponse) ValidateAll

func (m *ListOrgsResponse) ValidateAll() error

ValidateAll checks the field values on ListOrgsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListOrgsResponseMultiError, or nil if none found.

type ListOrgsResponseMultiError

type ListOrgsResponseMultiError []error

ListOrgsResponseMultiError is an error wrapping multiple validation errors returned by ListOrgsResponse.ValidateAll() if the designated constraints aren't met.

func (ListOrgsResponseMultiError) AllErrors

func (m ListOrgsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgsResponseValidationError

type ListOrgsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListOrgsResponseValidationError is the validation error returned by ListOrgsResponse.Validate if the designated constraints aren't met.

func (ListOrgsResponseValidationError) Cause

Cause function returns cause value.

func (ListOrgsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListOrgsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListOrgsResponseValidationError) Field

Field function returns field value.

func (ListOrgsResponseValidationError) Key

Key function returns key value.

func (ListOrgsResponseValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {

	// Number of users to retrieve in a single page. Defaults to 50 if not specified, with a maximum of 250.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token of the page to retrieve. If not specified, the first page of results will be returned. To request the next page of results, use next_page_token from the previous response.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListUsersRequest is sent to list users.

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

func (*ListUsersRequest) Validate

func (m *ListUsersRequest) Validate() error

Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersRequest) ValidateAll

func (m *ListUsersRequest) ValidateAll() error

ValidateAll checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersRequestMultiError, or nil if none found.

type ListUsersRequestMultiError

type ListUsersRequestMultiError []error

ListUsersRequestMultiError is an error wrapping multiple validation errors returned by ListUsersRequest.ValidateAll() if the designated constraints aren't met.

func (ListUsersRequestMultiError) AllErrors

func (m ListUsersRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersRequestValidationError

type ListUsersRequestValidationError struct {
	// contains filtered or unexported fields
}

ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.

func (ListUsersRequestValidationError) Cause

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

Reason function returns reason value.

type ListUsersResponse

type ListUsersResponse struct {

	// User array, ordered by ascending created_at timestamp. The completeness of the array will depend on whether the request was made by an admin user, non-admin user, or API key.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// Pagination token used to retrieve the next page of results. Not returned for the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total number of users available.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListUsersResponse is sent in response to a user list.

func (*ListUsersResponse) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetTotalSize

func (x *ListUsersResponse) GetTotalSize() int32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

func (*ListUsersResponse) Validate

func (m *ListUsersResponse) Validate() error

Validate checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListUsersResponse) ValidateAll

func (m *ListUsersResponse) ValidateAll() error

ValidateAll checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUsersResponseMultiError, or nil if none found.

type ListUsersResponseMultiError

type ListUsersResponseMultiError []error

ListUsersResponseMultiError is an error wrapping multiple validation errors returned by ListUsersResponse.ValidateAll() if the designated constraints aren't met.

func (ListUsersResponseMultiError) AllErrors

func (m ListUsersResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListUsersResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListUsersResponseValidationError

type ListUsersResponseValidationError struct {
	// contains filtered or unexported fields
}

ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.

func (ListUsersResponseValidationError) Cause

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {

	// Email of the user to log in.
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// Organization name of the user to log in.
	OrgName string `protobuf:"bytes,2,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`
	// Password of the user to log in.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

LoginRequest is sent to log in a user.

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetOrgName

func (x *LoginRequest) GetOrgName() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {

	// Token to be used for subsequent non-login calls.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// Token expiration timestamp.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

LoginResponse is sent in response to a user login.

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetExpiresAt

func (x *LoginResponse) GetExpiresAt() *timestamppb.Timestamp

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

ValidateAll checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginResponseMultiError, or nil if none found.

type LoginResponseMultiError

type LoginResponseMultiError []error

LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginResponseValidationError

type LoginResponseValidationError struct {
	// contains filtered or unexported fields
}

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type Org

type Org struct {

	// Organization ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Organization status.
	Status Status `protobuf:"varint,5,opt,name=status,proto3,enum=ownmfa.api.Status" json:"status,omitempty"`
	// Organization plan.
	Plan Plan `protobuf:"varint,6,opt,name=plan,proto3,enum=ownmfa.api.Plan" json:"plan,omitempty"`
	// Organization creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Organization modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Org represents an organization as stored in the database.

func (*Org) Descriptor deprecated

func (*Org) Descriptor() ([]byte, []int)

Deprecated: Use Org.ProtoReflect.Descriptor instead.

func (*Org) GetCreatedAt

func (x *Org) GetCreatedAt() *timestamppb.Timestamp

func (*Org) GetId

func (x *Org) GetId() string

func (*Org) GetName

func (x *Org) GetName() string

func (*Org) GetPlan

func (x *Org) GetPlan() Plan

func (*Org) GetStatus

func (x *Org) GetStatus() Status

func (*Org) GetUpdatedAt

func (x *Org) GetUpdatedAt() *timestamppb.Timestamp

func (*Org) ProtoMessage

func (*Org) ProtoMessage()

func (*Org) ProtoReflect

func (x *Org) ProtoReflect() protoreflect.Message

func (*Org) Reset

func (x *Org) Reset()

func (*Org) String

func (x *Org) String() string

func (*Org) Validate

func (m *Org) Validate() error

Validate checks the field values on Org with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Org) ValidateAll

func (m *Org) ValidateAll() error

ValidateAll checks the field values on Org with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrgMultiError, or nil if none found.

type OrgMultiError

type OrgMultiError []error

OrgMultiError is an error wrapping multiple validation errors returned by Org.ValidateAll() if the designated constraints aren't met.

func (OrgMultiError) AllErrors

func (m OrgMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrgMultiError) Error

func (m OrgMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OrgServiceClient

type OrgServiceClient interface {
	// Create an organization. An organization is the top level resource and contains users, applications, and derived resources.
	CreateOrg(ctx context.Context, in *CreateOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Get an organization by ID. An organization is the top level resource and contains users, applications, and derived resources.
	GetOrg(ctx context.Context, in *GetOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Update an organization. An organization is the top level resource and contains users, applications, and derived resources.
	UpdateOrg(ctx context.Context, in *UpdateOrgRequest, opts ...grpc.CallOption) (*Org, error)
	// Delete an organization by ID. An organization is the top level resource and contains users, applications, and derived resources.
	DeleteOrg(ctx context.Context, in *DeleteOrgRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all organizations. An organization is the top level resource and contains users, applications, and derived resources.
	ListOrgs(ctx context.Context, in *ListOrgsRequest, opts ...grpc.CallOption) (*ListOrgsResponse, error)
}

OrgServiceClient is the client API for OrgService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

OrgService contains functions to query and modify organizations.

func NewOrgServiceClient

func NewOrgServiceClient(cc grpc.ClientConnInterface) OrgServiceClient

type OrgServiceServer

type OrgServiceServer interface {
	// Create an organization. An organization is the top level resource and contains users, applications, and derived resources.
	CreateOrg(context.Context, *CreateOrgRequest) (*Org, error)
	// Get an organization by ID. An organization is the top level resource and contains users, applications, and derived resources.
	GetOrg(context.Context, *GetOrgRequest) (*Org, error)
	// Update an organization. An organization is the top level resource and contains users, applications, and derived resources.
	UpdateOrg(context.Context, *UpdateOrgRequest) (*Org, error)
	// Delete an organization by ID. An organization is the top level resource and contains users, applications, and derived resources.
	DeleteOrg(context.Context, *DeleteOrgRequest) (*emptypb.Empty, error)
	// List all organizations. An organization is the top level resource and contains users, applications, and derived resources.
	ListOrgs(context.Context, *ListOrgsRequest) (*ListOrgsResponse, error)
	// contains filtered or unexported methods
}

OrgServiceServer is the server API for OrgService service. All implementations must embed UnimplementedOrgServiceServer for forward compatibility.

OrgService contains functions to query and modify organizations.

type OrgValidationError

type OrgValidationError struct {
	// contains filtered or unexported fields
}

OrgValidationError is the validation error returned by Org.Validate if the designated constraints aren't met.

func (OrgValidationError) Cause

func (e OrgValidationError) Cause() error

Cause function returns cause value.

func (OrgValidationError) Error

func (e OrgValidationError) Error() string

Error satisfies the builtin error interface

func (OrgValidationError) ErrorName

func (e OrgValidationError) ErrorName() string

ErrorName returns error name.

func (OrgValidationError) Field

func (e OrgValidationError) Field() string

Field function returns field value.

func (OrgValidationError) Key

func (e OrgValidationError) Key() bool

Key function returns key value.

func (OrgValidationError) Reason

func (e OrgValidationError) Reason() string

Reason function returns reason value.

type Plan

type Plan int32

Plan represents the plan and associated capabilities of an organization.

const (
	// Plan is not specified.
	Plan_PLAN_UNSPECIFIED Plan = 0
	// Payment has failed and the organization is restricted to Starter plan capabilities.
	Plan_PAYMENT_FAIL Plan = 3
	// Starter plan supports software and hardware OATH one-time password authentication methods, up to a limited number of identities.
	Plan_STARTER Plan = 6
	// Pro plan supports all authentication methods and includes email support.
	Plan_PRO Plan = 9
	// Enterprise plan supports all authentication methods and includes email and phone support.
	Plan_ENTERPRISE Plan = 12
)

func (Plan) Descriptor

func (Plan) Descriptor() protoreflect.EnumDescriptor

func (Plan) Enum

func (x Plan) Enum() *Plan

func (Plan) EnumDescriptor deprecated

func (Plan) EnumDescriptor() ([]byte, []int)

Deprecated: Use Plan.Descriptor instead.

func (Plan) Number

func (x Plan) Number() protoreflect.EnumNumber

func (Plan) String

func (x Plan) String() string

func (Plan) Type

func (Plan) Type() protoreflect.EnumType

type PushoverMethod

type PushoverMethod struct {

	// Pushover user key.
	PushoverKey string `protobuf:"bytes,1,opt,name=pushover_key,json=pushoverKey,proto3" json:"pushover_key,omitempty"`
	// contains filtered or unexported fields
}

PushoverMethod configures a Pushover passcode method.

func (*PushoverMethod) Descriptor deprecated

func (*PushoverMethod) Descriptor() ([]byte, []int)

Deprecated: Use PushoverMethod.ProtoReflect.Descriptor instead.

func (*PushoverMethod) GetPushoverKey

func (x *PushoverMethod) GetPushoverKey() string

func (*PushoverMethod) ProtoMessage

func (*PushoverMethod) ProtoMessage()

func (*PushoverMethod) ProtoReflect

func (x *PushoverMethod) ProtoReflect() protoreflect.Message

func (*PushoverMethod) Reset

func (x *PushoverMethod) Reset()

func (*PushoverMethod) String

func (x *PushoverMethod) String() string

func (*PushoverMethod) Validate

func (m *PushoverMethod) Validate() error

Validate checks the field values on PushoverMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PushoverMethod) ValidateAll

func (m *PushoverMethod) ValidateAll() error

ValidateAll checks the field values on PushoverMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushoverMethodMultiError, or nil if none found.

type PushoverMethodMultiError

type PushoverMethodMultiError []error

PushoverMethodMultiError is an error wrapping multiple validation errors returned by PushoverMethod.ValidateAll() if the designated constraints aren't met.

func (PushoverMethodMultiError) AllErrors

func (m PushoverMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PushoverMethodMultiError) Error

func (m PushoverMethodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PushoverMethodValidationError

type PushoverMethodValidationError struct {
	// contains filtered or unexported fields
}

PushoverMethodValidationError is the validation error returned by PushoverMethod.Validate if the designated constraints aren't met.

func (PushoverMethodValidationError) Cause

Cause function returns cause value.

func (PushoverMethodValidationError) Error

Error satisfies the builtin error interface

func (PushoverMethodValidationError) ErrorName

func (e PushoverMethodValidationError) ErrorName() string

ErrorName returns error name.

func (PushoverMethodValidationError) Field

Field function returns field value.

func (PushoverMethodValidationError) Key

Key function returns key value.

func (PushoverMethodValidationError) Reason

Reason function returns reason value.

type Role

type Role int32

Role represents the role of a user.

const (
	// Role is not specified.
	Role_ROLE_UNSPECIFIED Role = 0
	// Viewers can only read resources in their organization, but can update their own user.
	Role_VIEWER Role = 4
	// Authenticators can read and modify resources in their organization, but can only update their own user.
	Role_AUTHENTICATOR Role = 8
	// Admins can read and modify anything in their organization, including creating users of an equal or lesser role.
	Role_ADMIN Role = 12
	// System admins can create organizations and modify anything in their organization.
	Role_SYS_ADMIN Role = 15
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type SMSMethod

type SMSMethod struct {

	// Phone number. Must be in valid [E.164](https://www.twilio.com/docs/glossary/what-e164) format.
	Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
	// contains filtered or unexported fields
}

SMSMethod configures an SMS passcode method.

func (*SMSMethod) Descriptor deprecated

func (*SMSMethod) Descriptor() ([]byte, []int)

Deprecated: Use SMSMethod.ProtoReflect.Descriptor instead.

func (*SMSMethod) GetPhone

func (x *SMSMethod) GetPhone() string

func (*SMSMethod) ProtoMessage

func (*SMSMethod) ProtoMessage()

func (*SMSMethod) ProtoReflect

func (x *SMSMethod) ProtoReflect() protoreflect.Message

func (*SMSMethod) Reset

func (x *SMSMethod) Reset()

func (*SMSMethod) String

func (x *SMSMethod) String() string

func (*SMSMethod) Validate

func (m *SMSMethod) Validate() error

Validate checks the field values on SMSMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SMSMethod) ValidateAll

func (m *SMSMethod) ValidateAll() error

ValidateAll checks the field values on SMSMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SMSMethodMultiError, or nil if none found.

type SMSMethodMultiError

type SMSMethodMultiError []error

SMSMethodMultiError is an error wrapping multiple validation errors returned by SMSMethod.ValidateAll() if the designated constraints aren't met.

func (SMSMethodMultiError) AllErrors

func (m SMSMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SMSMethodMultiError) Error

func (m SMSMethodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SMSMethodValidationError

type SMSMethodValidationError struct {
	// contains filtered or unexported fields
}

SMSMethodValidationError is the validation error returned by SMSMethod.Validate if the designated constraints aren't met.

func (SMSMethodValidationError) Cause

func (e SMSMethodValidationError) Cause() error

Cause function returns cause value.

func (SMSMethodValidationError) Error

func (e SMSMethodValidationError) Error() string

Error satisfies the builtin error interface

func (SMSMethodValidationError) ErrorName

func (e SMSMethodValidationError) ErrorName() string

ErrorName returns error name.

func (SMSMethodValidationError) Field

func (e SMSMethodValidationError) Field() string

Field function returns field value.

func (SMSMethodValidationError) Key

Key function returns key value.

func (SMSMethodValidationError) Reason

func (e SMSMethodValidationError) Reason() string

Reason function returns reason value.

type SecurityQuestionsMethod

type SecurityQuestionsMethod struct {

	// Answer to the security question. Only included during identity creation. The security question should be stored out-of-band and queried of an external user by the consuming application.
	Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

SecurityQuestionsMethod configures a security questions method. Identities using this method are immediately activated and do not require activation.

func (*SecurityQuestionsMethod) Descriptor deprecated

func (*SecurityQuestionsMethod) Descriptor() ([]byte, []int)

Deprecated: Use SecurityQuestionsMethod.ProtoReflect.Descriptor instead.

func (*SecurityQuestionsMethod) GetAnswer

func (x *SecurityQuestionsMethod) GetAnswer() string

func (*SecurityQuestionsMethod) ProtoMessage

func (*SecurityQuestionsMethod) ProtoMessage()

func (*SecurityQuestionsMethod) ProtoReflect

func (x *SecurityQuestionsMethod) ProtoReflect() protoreflect.Message

func (*SecurityQuestionsMethod) Reset

func (x *SecurityQuestionsMethod) Reset()

func (*SecurityQuestionsMethod) String

func (x *SecurityQuestionsMethod) String() string

func (*SecurityQuestionsMethod) Validate

func (m *SecurityQuestionsMethod) Validate() error

Validate checks the field values on SecurityQuestionsMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SecurityQuestionsMethod) ValidateAll

func (m *SecurityQuestionsMethod) ValidateAll() error

ValidateAll checks the field values on SecurityQuestionsMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SecurityQuestionsMethodMultiError, or nil if none found.

type SecurityQuestionsMethodMultiError

type SecurityQuestionsMethodMultiError []error

SecurityQuestionsMethodMultiError is an error wrapping multiple validation errors returned by SecurityQuestionsMethod.ValidateAll() if the designated constraints aren't met.

func (SecurityQuestionsMethodMultiError) AllErrors

func (m SecurityQuestionsMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SecurityQuestionsMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SecurityQuestionsMethodValidationError

type SecurityQuestionsMethodValidationError struct {
	// contains filtered or unexported fields
}

SecurityQuestionsMethodValidationError is the validation error returned by SecurityQuestionsMethod.Validate if the designated constraints aren't met.

func (SecurityQuestionsMethodValidationError) Cause

Cause function returns cause value.

func (SecurityQuestionsMethodValidationError) Error

Error satisfies the builtin error interface

func (SecurityQuestionsMethodValidationError) ErrorName

ErrorName returns error name.

func (SecurityQuestionsMethodValidationError) Field

Field function returns field value.

func (SecurityQuestionsMethodValidationError) Key

Key function returns key value.

func (SecurityQuestionsMethodValidationError) Reason

Reason function returns reason value.

type SessionServiceClient

type SessionServiceClient interface {
	// Log in a user. Login tokens are time-limited and accompanied by an expiration.
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Create an API key. API keys are persistent and do not expire until revoked.
	CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error)
	// Delete an API key by ID. API keys are persistent and do not expire until revoked.
	DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List all API keys. API keys are persistent and do not expire until revoked.
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
}

SessionServiceClient is the client API for SessionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

SessionService contains functions to create sessions and keys.

type SessionServiceServer

type SessionServiceServer interface {
	// Log in a user. Login tokens are time-limited and accompanied by an expiration.
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Create an API key. API keys are persistent and do not expire until revoked.
	CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
	// Delete an API key by ID. API keys are persistent and do not expire until revoked.
	DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error)
	// List all API keys. API keys are persistent and do not expire until revoked.
	ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
	// contains filtered or unexported methods
}

SessionServiceServer is the server API for SessionService service. All implementations must embed UnimplementedSessionServiceServer for forward compatibility.

SessionService contains functions to create sessions and keys.

type SoftwareHOTPMethod

type SoftwareHOTPMethod struct {

	// Software HOTP hash function. Defaults to SHA512 if not specified.
	Hash Hash `protobuf:"varint,1,opt,name=hash,proto3,enum=ownmfa.api.Hash" json:"hash,omitempty"`
	// Passcode digits length. Defaults to 7 if not specified.
	Digits int32 `protobuf:"varint,2,opt,name=digits,proto3" json:"digits,omitempty"`
	// Software HOTP starting counter. Only included during identity creation. Defaults to 0 if not specified.
	Counter int32 `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
	// Account name, such as username or email, for inclusion in QR codes. This field is never saved. If not specified, only the application display name is included in the returned QR code.
	AccountName string `protobuf:"bytes,4,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// contains filtered or unexported fields
}

SoftwareHOTPMethod configures a software OATH HOTP one-time password method.

func (*SoftwareHOTPMethod) Descriptor deprecated

func (*SoftwareHOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use SoftwareHOTPMethod.ProtoReflect.Descriptor instead.

func (*SoftwareHOTPMethod) GetAccountName

func (x *SoftwareHOTPMethod) GetAccountName() string

func (*SoftwareHOTPMethod) GetCounter

func (x *SoftwareHOTPMethod) GetCounter() int32

func (*SoftwareHOTPMethod) GetDigits

func (x *SoftwareHOTPMethod) GetDigits() int32

func (*SoftwareHOTPMethod) GetHash

func (x *SoftwareHOTPMethod) GetHash() Hash

func (*SoftwareHOTPMethod) ProtoMessage

func (*SoftwareHOTPMethod) ProtoMessage()

func (*SoftwareHOTPMethod) ProtoReflect

func (x *SoftwareHOTPMethod) ProtoReflect() protoreflect.Message

func (*SoftwareHOTPMethod) Reset

func (x *SoftwareHOTPMethod) Reset()

func (*SoftwareHOTPMethod) String

func (x *SoftwareHOTPMethod) String() string

func (*SoftwareHOTPMethod) Validate

func (m *SoftwareHOTPMethod) Validate() error

Validate checks the field values on SoftwareHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SoftwareHOTPMethod) ValidateAll

func (m *SoftwareHOTPMethod) ValidateAll() error

ValidateAll checks the field values on SoftwareHOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SoftwareHOTPMethodMultiError, or nil if none found.

type SoftwareHOTPMethodMultiError

type SoftwareHOTPMethodMultiError []error

SoftwareHOTPMethodMultiError is an error wrapping multiple validation errors returned by SoftwareHOTPMethod.ValidateAll() if the designated constraints aren't met.

func (SoftwareHOTPMethodMultiError) AllErrors

func (m SoftwareHOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SoftwareHOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SoftwareHOTPMethodValidationError

type SoftwareHOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

SoftwareHOTPMethodValidationError is the validation error returned by SoftwareHOTPMethod.Validate if the designated constraints aren't met.

func (SoftwareHOTPMethodValidationError) Cause

Cause function returns cause value.

func (SoftwareHOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (SoftwareHOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (SoftwareHOTPMethodValidationError) Field

Field function returns field value.

func (SoftwareHOTPMethodValidationError) Key

Key function returns key value.

func (SoftwareHOTPMethodValidationError) Reason

Reason function returns reason value.

type SoftwareTOTPMethod

type SoftwareTOTPMethod struct {

	// Software TOTP hash function. Defaults to SHA512 if not specified.
	Hash Hash `protobuf:"varint,1,opt,name=hash,proto3,enum=ownmfa.api.Hash" json:"hash,omitempty"`
	// Passcode digits length. Defaults to 7 if not specified.
	Digits int32 `protobuf:"varint,2,opt,name=digits,proto3" json:"digits,omitempty"`
	// Account name, such as username or email, for inclusion in QR codes. This field is never saved. If not specified, only the application display name is included in the returned QR code.
	AccountName string `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// contains filtered or unexported fields
}

SoftwareTOTPMethod configures a software OATH TOTP one-time password method.

func (*SoftwareTOTPMethod) Descriptor deprecated

func (*SoftwareTOTPMethod) Descriptor() ([]byte, []int)

Deprecated: Use SoftwareTOTPMethod.ProtoReflect.Descriptor instead.

func (*SoftwareTOTPMethod) GetAccountName

func (x *SoftwareTOTPMethod) GetAccountName() string

func (*SoftwareTOTPMethod) GetDigits

func (x *SoftwareTOTPMethod) GetDigits() int32

func (*SoftwareTOTPMethod) GetHash

func (x *SoftwareTOTPMethod) GetHash() Hash

func (*SoftwareTOTPMethod) ProtoMessage

func (*SoftwareTOTPMethod) ProtoMessage()

func (*SoftwareTOTPMethod) ProtoReflect

func (x *SoftwareTOTPMethod) ProtoReflect() protoreflect.Message

func (*SoftwareTOTPMethod) Reset

func (x *SoftwareTOTPMethod) Reset()

func (*SoftwareTOTPMethod) String

func (x *SoftwareTOTPMethod) String() string

func (*SoftwareTOTPMethod) Validate

func (m *SoftwareTOTPMethod) Validate() error

Validate checks the field values on SoftwareTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SoftwareTOTPMethod) ValidateAll

func (m *SoftwareTOTPMethod) ValidateAll() error

ValidateAll checks the field values on SoftwareTOTPMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SoftwareTOTPMethodMultiError, or nil if none found.

type SoftwareTOTPMethodMultiError

type SoftwareTOTPMethodMultiError []error

SoftwareTOTPMethodMultiError is an error wrapping multiple validation errors returned by SoftwareTOTPMethod.ValidateAll() if the designated constraints aren't met.

func (SoftwareTOTPMethodMultiError) AllErrors

func (m SoftwareTOTPMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SoftwareTOTPMethodMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SoftwareTOTPMethodValidationError

type SoftwareTOTPMethodValidationError struct {
	// contains filtered or unexported fields
}

SoftwareTOTPMethodValidationError is the validation error returned by SoftwareTOTPMethod.Validate if the designated constraints aren't met.

func (SoftwareTOTPMethodValidationError) Cause

Cause function returns cause value.

func (SoftwareTOTPMethodValidationError) Error

Error satisfies the builtin error interface

func (SoftwareTOTPMethodValidationError) ErrorName

ErrorName returns error name.

func (SoftwareTOTPMethodValidationError) Field

Field function returns field value.

func (SoftwareTOTPMethodValidationError) Key

Key function returns key value.

func (SoftwareTOTPMethodValidationError) Reason

Reason function returns reason value.

type Status

type Status int32

Status represents the status of a message.

const (
	// Status is not specified.
	Status_STATUS_UNSPECIFIED Status = 0
	// Message subject is active.
	Status_ACTIVE Status = 3
	// Message subject is disabled.
	Status_DISABLED Status = 6
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UnimplementedAppIdentityServiceServer

type UnimplementedAppIdentityServiceServer struct{}

UnimplementedAppIdentityServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAppIdentityServiceServer) ActivateIdentity

func (UnimplementedAppIdentityServiceServer) ChallengeIdentity

func (UnimplementedAppIdentityServiceServer) CreateApp

func (UnimplementedAppIdentityServiceServer) CreateIdentity

func (UnimplementedAppIdentityServiceServer) DeleteApp

func (UnimplementedAppIdentityServiceServer) DeleteIdentity

func (UnimplementedAppIdentityServiceServer) GetApp

func (UnimplementedAppIdentityServiceServer) GetIdentity

func (UnimplementedAppIdentityServiceServer) ListApps

func (UnimplementedAppIdentityServiceServer) ListIdentities

func (UnimplementedAppIdentityServiceServer) UpdateApp

func (UnimplementedAppIdentityServiceServer) VerifyIdentity

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct{}

UnimplementedEventServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventServiceServer) LatestEvents

func (UnimplementedEventServiceServer) ListEvents

type UnimplementedOrgServiceServer

type UnimplementedOrgServiceServer struct{}

UnimplementedOrgServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedOrgServiceServer) CreateOrg

func (UnimplementedOrgServiceServer) DeleteOrg

func (UnimplementedOrgServiceServer) GetOrg

func (UnimplementedOrgServiceServer) ListOrgs

func (UnimplementedOrgServiceServer) UpdateOrg

type UnimplementedSessionServiceServer

type UnimplementedSessionServiceServer struct{}

UnimplementedSessionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSessionServiceServer) CreateKey

func (UnimplementedSessionServiceServer) DeleteKey

func (UnimplementedSessionServiceServer) ListKeys

func (UnimplementedSessionServiceServer) Login

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) UpdateUserPassword

type UnsafeAppIdentityServiceServer

type UnsafeAppIdentityServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAppIdentityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppIdentityServiceServer will result in compilation errors.

type UnsafeEventServiceServer

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

type UnsafeOrgServiceServer

type UnsafeOrgServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrgServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrgServiceServer will result in compilation errors.

type UnsafeSessionServiceServer

type UnsafeSessionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSessionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateAppRequest

type UpdateAppRequest struct {

	// App message to update.
	App *App `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateAppRequest is sent to update an application.

func (*UpdateAppRequest) Descriptor deprecated

func (*UpdateAppRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAppRequest.ProtoReflect.Descriptor instead.

func (*UpdateAppRequest) GetApp

func (x *UpdateAppRequest) GetApp() *App

func (*UpdateAppRequest) GetUpdateMask

func (x *UpdateAppRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateAppRequest) ProtoMessage

func (*UpdateAppRequest) ProtoMessage()

func (*UpdateAppRequest) ProtoReflect

func (x *UpdateAppRequest) ProtoReflect() protoreflect.Message

func (*UpdateAppRequest) Reset

func (x *UpdateAppRequest) Reset()

func (*UpdateAppRequest) String

func (x *UpdateAppRequest) String() string

func (*UpdateAppRequest) Validate

func (m *UpdateAppRequest) Validate() error

Validate checks the field values on UpdateAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateAppRequest) ValidateAll

func (m *UpdateAppRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAppRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateAppRequestMultiError, or nil if none found.

type UpdateAppRequestMultiError

type UpdateAppRequestMultiError []error

UpdateAppRequestMultiError is an error wrapping multiple validation errors returned by UpdateAppRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateAppRequestMultiError) AllErrors

func (m UpdateAppRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAppRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAppRequestValidationError

type UpdateAppRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateAppRequestValidationError is the validation error returned by UpdateAppRequest.Validate if the designated constraints aren't met.

func (UpdateAppRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAppRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAppRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAppRequestValidationError) Field

Field function returns field value.

func (UpdateAppRequestValidationError) Key

Key function returns key value.

func (UpdateAppRequestValidationError) Reason

Reason function returns reason value.

type UpdateOrgRequest

type UpdateOrgRequest struct {

	// Org message to update.
	Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateOrgRequest is sent to update an organization.

func (*UpdateOrgRequest) Descriptor deprecated

func (*UpdateOrgRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOrgRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrgRequest) GetOrg

func (x *UpdateOrgRequest) GetOrg() *Org

func (*UpdateOrgRequest) GetUpdateMask

func (x *UpdateOrgRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateOrgRequest) ProtoMessage

func (*UpdateOrgRequest) ProtoMessage()

func (*UpdateOrgRequest) ProtoReflect

func (x *UpdateOrgRequest) ProtoReflect() protoreflect.Message

func (*UpdateOrgRequest) Reset

func (x *UpdateOrgRequest) Reset()

func (*UpdateOrgRequest) String

func (x *UpdateOrgRequest) String() string

func (*UpdateOrgRequest) Validate

func (m *UpdateOrgRequest) Validate() error

Validate checks the field values on UpdateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateOrgRequest) ValidateAll

func (m *UpdateOrgRequest) ValidateAll() error

ValidateAll checks the field values on UpdateOrgRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateOrgRequestMultiError, or nil if none found.

type UpdateOrgRequestMultiError

type UpdateOrgRequestMultiError []error

UpdateOrgRequestMultiError is an error wrapping multiple validation errors returned by UpdateOrgRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateOrgRequestMultiError) AllErrors

func (m UpdateOrgRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateOrgRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateOrgRequestValidationError

type UpdateOrgRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateOrgRequestValidationError is the validation error returned by UpdateOrgRequest.Validate if the designated constraints aren't met.

func (UpdateOrgRequestValidationError) Cause

Cause function returns cause value.

func (UpdateOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrgRequestValidationError) Field

Field function returns field value.

func (UpdateOrgRequestValidationError) Key

Key function returns key value.

func (UpdateOrgRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserPasswordRequest

type UpdateUserPasswordRequest struct {

	// User ID (UUID) to update password.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// User password to update.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserPasswordRequest is sent to update a user's password.

func (*UpdateUserPasswordRequest) Descriptor deprecated

func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserPasswordRequest) GetId

func (x *UpdateUserPasswordRequest) GetId() string

func (*UpdateUserPasswordRequest) GetPassword

func (x *UpdateUserPasswordRequest) GetPassword() string

func (*UpdateUserPasswordRequest) ProtoMessage

func (*UpdateUserPasswordRequest) ProtoMessage()

func (*UpdateUserPasswordRequest) ProtoReflect

func (*UpdateUserPasswordRequest) Reset

func (x *UpdateUserPasswordRequest) Reset()

func (*UpdateUserPasswordRequest) String

func (x *UpdateUserPasswordRequest) String() string

func (*UpdateUserPasswordRequest) Validate

func (m *UpdateUserPasswordRequest) Validate() error

Validate checks the field values on UpdateUserPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserPasswordRequest) ValidateAll

func (m *UpdateUserPasswordRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserPasswordRequestMultiError, or nil if none found.

type UpdateUserPasswordRequestMultiError

type UpdateUserPasswordRequestMultiError []error

UpdateUserPasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserPasswordRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateUserPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserPasswordRequestValidationError

type UpdateUserPasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserPasswordRequestValidationError is the validation error returned by UpdateUserPasswordRequest.Validate if the designated constraints aren't met.

func (UpdateUserPasswordRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserPasswordRequestValidationError) Field

Field function returns field value.

func (UpdateUserPasswordRequestValidationError) Key

Key function returns key value.

func (UpdateUserPasswordRequestValidationError) Reason

Reason function returns reason value.

type UpdateUserRequest

type UpdateUserRequest struct {

	// User message to update.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Fields to update. Automatically populated by a PATCH request. If not present, a full resource update is performed.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserRequest is sent to update a user.

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUpdateMask

func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

func (*UpdateUserRequest) Validate

func (m *UpdateUserRequest) Validate() error

Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserRequest) ValidateAll

func (m *UpdateUserRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.

type UpdateUserRequestMultiError

type UpdateUserRequestMultiError []error

UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserRequestMultiError) AllErrors

func (m UpdateUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserRequestValidationError

type UpdateUserRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.

func (UpdateUserRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {

	// User ID (UUID).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Organization ID (UUID).
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgID,proto3" json:"org_id,omitempty"`
	// User name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// User email.
	Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// User role.
	Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=ownmfa.api.Role" json:"role,omitempty"`
	// User status.
	Status Status `protobuf:"varint,6,opt,name=status,proto3,enum=ownmfa.api.Status" json:"status,omitempty"`
	// User creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// User modification timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

User represents a user as stored in the database.

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetOrgId

func (x *User) GetOrgId() string

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetStatus

func (x *User) GetStatus() Status

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserServiceClient

type UserServiceClient interface {
	// Create a user. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Get a user by ID. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update a user. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update a user's password. Passwords are checked against NIST password guidelines.
	UpdateUserPassword(ctx context.Context, in *UpdateUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Delete a user by ID. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// List users. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

UserService contains functions to query and modify users.

type UserServiceServer

type UserServiceServer interface {
	// Create a user. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	// Get a user by ID. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// Update a user. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Update a user's password. Passwords are checked against NIST password guidelines.
	UpdateUserPassword(context.Context, *UpdateUserPasswordRequest) (*emptypb.Empty, error)
	// Delete a user by ID. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
	// List users. Users can log in and use the Hermes API and OwnMFA website based on the limits of their role.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.

UserService contains functions to query and modify users.

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type VerifyIdentityRequest

type VerifyIdentityRequest struct {

	// Identity ID (UUID) to verify.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Application ID (UUID).
	AppId string `protobuf:"bytes,2,opt,name=app_id,json=appID,proto3" json:"app_id,omitempty"`
	// Passcode for verification. For security questions identity methods, this is the answer to the security question.
	Passcode string `protobuf:"bytes,3,opt,name=passcode,proto3" json:"passcode,omitempty"`
	// contains filtered or unexported fields
}

VerifyIdentityRequest is sent to verify an identity. If verification fails, the request does not automatically fall through to a backup codes method. Consuming applications should design a workflow that either explicitly verifies by backup codes or falls through on failure.

func (*VerifyIdentityRequest) Descriptor deprecated

func (*VerifyIdentityRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyIdentityRequest.ProtoReflect.Descriptor instead.

func (*VerifyIdentityRequest) GetAppId

func (x *VerifyIdentityRequest) GetAppId() string

func (*VerifyIdentityRequest) GetId

func (x *VerifyIdentityRequest) GetId() string

func (*VerifyIdentityRequest) GetPasscode

func (x *VerifyIdentityRequest) GetPasscode() string

func (*VerifyIdentityRequest) ProtoMessage

func (*VerifyIdentityRequest) ProtoMessage()

func (*VerifyIdentityRequest) ProtoReflect

func (x *VerifyIdentityRequest) ProtoReflect() protoreflect.Message

func (*VerifyIdentityRequest) Reset

func (x *VerifyIdentityRequest) Reset()

func (*VerifyIdentityRequest) String

func (x *VerifyIdentityRequest) String() string

func (*VerifyIdentityRequest) Validate

func (m *VerifyIdentityRequest) Validate() error

Validate checks the field values on VerifyIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VerifyIdentityRequest) ValidateAll

func (m *VerifyIdentityRequest) ValidateAll() error

ValidateAll checks the field values on VerifyIdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyIdentityRequestMultiError, or nil if none found.

type VerifyIdentityRequestMultiError

type VerifyIdentityRequestMultiError []error

VerifyIdentityRequestMultiError is an error wrapping multiple validation errors returned by VerifyIdentityRequest.ValidateAll() if the designated constraints aren't met.

func (VerifyIdentityRequestMultiError) AllErrors

func (m VerifyIdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerifyIdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VerifyIdentityRequestValidationError

type VerifyIdentityRequestValidationError struct {
	// contains filtered or unexported fields
}

VerifyIdentityRequestValidationError is the validation error returned by VerifyIdentityRequest.Validate if the designated constraints aren't met.

func (VerifyIdentityRequestValidationError) Cause

Cause function returns cause value.

func (VerifyIdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (VerifyIdentityRequestValidationError) ErrorName

ErrorName returns error name.

func (VerifyIdentityRequestValidationError) Field

Field function returns field value.

func (VerifyIdentityRequestValidationError) Key

Key function returns key value.

func (VerifyIdentityRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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