Skip to content

Commit

Permalink
update example configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilPank committed Oct 18, 2023
1 parent 374fda8 commit 59a2e78
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _examples/idv/models.sessionspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) {
var faceMatchCheck *check.RequestedFaceMatchCheck
faceMatchCheck, err = check.NewRequestedFaceMatchCheckBuilder().
WithManualCheckAlways().
WithManualCheckFallback().
Build()
if err != nil {
return nil, err
Expand All @@ -28,8 +28,8 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) {

var livenessCheck *check.RequestedLivenessCheck
livenessCheck, err = check.NewRequestedLivenessCheckBuilder().
ForZoomLiveness().
WithMaxRetries(5).
ForStaticLiveness().
WithMaxRetries(3).
Build()
if err != nil {
return nil, err
Expand Down Expand Up @@ -71,7 +71,7 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) {

var textExtractionTask *task.RequestedTextExtractionTask
textExtractionTask, err = task.NewRequestedTextExtractionTaskBuilder().
WithManualCheckAlways().
WithManualCheckFallback().
WithExpandedDocumentFields(true).
Build()
if err != nil {
Expand All @@ -80,7 +80,7 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) {

var supplementaryDocTextExtractionTask *task.RequestedSupplementaryDocTextExtractionTask
supplementaryDocTextExtractionTask, err = task.NewRequestedSupplementaryDocTextExtractionTaskBuilder().
WithManualCheckAlways().
WithManualCheckFallback().
Build()
if err != nil {
return nil, err
Expand Down Expand Up @@ -158,7 +158,7 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) {

sessionSpec, err = create.NewSessionSpecificationBuilder().
WithClientSessionTokenTTL(600).
WithResourcesTTL(90000).
WithResourcesTTL(86400).
WithUserTrackingID("some-tracking-id").
WithRequestedCheck(faceMatchCheck).
WithRequestedCheck(documentAuthenticityCheck).
Expand Down Expand Up @@ -220,8 +220,8 @@ func buildDBSSessionSpec() (sessionSpec *create.SessionSpecification, err error)
}`)

sessionSpec, err = create.NewSessionSpecificationBuilder().
WithClientSessionTokenTTL(6000).
WithResourcesTTL(900000).
WithClientSessionTokenTTL(600).
WithResourcesTTL(86400).
WithUserTrackingID("some-tracking-id").
WithSDKConfig(sdkConfig).
WithIdentityProfileRequirements(identityProfile).
Expand Down

0 comments on commit 59a2e78

Please sign in to comment.