Documentation ¶
Overview ¶
Copyright (c) 2023 Take 2 Identity, Inc
Copyright (c) 2023 Take 2 Identity, Inc ¶
Copyright (c) 2023 Take 2 Identity, Inc
Index ¶
- Constants
- Variables
- type DefaultOutComes
- type EvaluationErrors
- type EvaluationResult
- type EventIngestionRequest
- type EventIngestionResponse
- type Identifiers
- type Operation
- type Patch
- type PatchResponse
- type RiskScoreClient
- func (r *RiskScoreClient) EvaluateRules(ctx context.Context, request RulesEvaluationRequest) *EvaluationResult
- func (r *RiskScoreClient) GetScore(ctx context.Context, request Identifiers) *ScoreResult
- func (r *RiskScoreClient) IngestEvents(ctx context.Context, request EventIngestionRequest) *EventIngestionResponse
- func (r *RiskScoreClient) PatchTags(ctx context.Context, request Patch, accountId string) *PatchResponse
- type Rule
- type RulesEvaluationRequest
- type ScoreCategory
- type ScoreResponse
- type ScoreResult
- type ScoreSignal
- type VersionInfo
Constants ¶
View Source
const (
RELEASES_URL = "https://gitlab.com/443id/public/verosint/-/releases/permalink/latest"
)
Variables ¶
View Source
var ( BuildVersion = build.Version() VersionClient = resty.New().SetHeader("User-Agent", USER_AGENT+build.Version()). SetRetryCount(1). SetRetryWaitTime(1 * time.Second). SetRetryMaxWaitTime(5 * time.Second). SetTimeout(10 * time.Second). SetRedirectPolicy(resty.RedirectPolicyFunc(func(r1 *http.Request, r2 []*http.Request) error { return errors.New(redirectErr) })) )
View Source
var ( BASE_URL = "https://api.verosint.com" RISK_SCORE_PATH = "/v1/score/risk" RULE_EVALUTION_PATH = "/v1/rules/evaluate" EVENT_INGESTION_PATH = "/v1/signalprint/events" ACCOUNT_TAG_PATH = "/v1/accounts" USER_AGENT = "verosint-cli/" )
Functions ¶
This section is empty.
Types ¶
type DefaultOutComes ¶
type DefaultOutComes struct {
Outcomes []string `json:"outcomes"`
}
type EvaluationErrors ¶
type EvaluationResult ¶
type EvaluationResult struct { RequestId string `json:"requestId,omitempty"` Outcomes []string `json:"outcomes,omitempty"` Reasons []string `json:"reasons,omitempty"` Errors []EvaluationErrors `json:"errors,omitempty"` Error string `json:"error,omitempty"` Signals map[string]map[string]interface{} `json:"signals,omitempty"` }
type EventIngestionRequest ¶
type EventIngestionRequest []Identifiers
type EventIngestionResponse ¶
type Identifiers ¶
type PatchResponse ¶ added in v0.2.27
type RiskScoreClient ¶
type RiskScoreClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(apiKey string) *RiskScoreClient
func (*RiskScoreClient) EvaluateRules ¶
func (r *RiskScoreClient) EvaluateRules(ctx context.Context, request RulesEvaluationRequest) *EvaluationResult
func (*RiskScoreClient) GetScore ¶
func (r *RiskScoreClient) GetScore(ctx context.Context, request Identifiers) *ScoreResult
func (*RiskScoreClient) IngestEvents ¶
func (r *RiskScoreClient) IngestEvents(ctx context.Context, request EventIngestionRequest) *EventIngestionResponse
func (*RiskScoreClient) PatchTags ¶ added in v0.2.27
func (r *RiskScoreClient) PatchTags(ctx context.Context, request Patch, accountId string) *PatchResponse
type RulesEvaluationRequest ¶
type RulesEvaluationRequest struct { RuleSetUUID string `json:"ruleSetUuid"` Rules []Rule `json:"rules"` Default DefaultOutComes `json:"default"` Identifiers Identifiers `json:"identifiers"` Parameters map[string]interface{} `json:"parameters"` Verbose bool `json:"verbose"` }
type ScoreCategory ¶ added in v0.2.15
type ScoreCategory struct { Name string `json:"name"` Signals []ScoreSignal `json:"signals"` }
type ScoreResponse ¶
type ScoreResult ¶
type ScoreResult struct { Version string `json:"version,omitempty"` Score float64 `json:"score,omitempty"` LevelTxt string `json:"levelTxt,omitempty"` LevelNum int `json:"levelNum,omitempty"` Signals map[string]map[string]interface{} `json:"signals,omitempty"` RequestId string `json:"requestId,omitempty"` Error string `json:"error,omitempty"` }
type ScoreSignal ¶ added in v0.2.15
type ScoreSignal struct {
Name string `json:"name"`
}
type VersionInfo ¶
func (*VersionInfo) GetVersion ¶
func (v *VersionInfo) GetVersion() bool
Click to show internal directories.
Click to hide internal directories.