CreateLivenessSessionContent interface
建立即時會話的要求模型。
屬性
| auth |
會話應該持續到的秒數。 範圍是 60 到 86400 秒。 預設值為 600。 |
| device |
每個終端用戶裝置的唯一 Guid。 這是提供速率限制和反錘擊。 如果此要求中的 'deviceCorrelationIdSetInClient' 為 true,此 'deviceCorrelationId' 必須為 Null。 |
| device |
是否允許用戶端透過視覺 SDK 設定自己的 『deviceCorrelationId』。 默認值為 false,且 'deviceCorrelationId' 必須在此要求本文中設定。 |
| enable |
是否儲存會話映像。 |
| liveness |
用於活躍度分類的模型版本。 這是選擇性參數,如果未指定,則會選擇最新的支援模型版本 可能的值:“2024-11-15” |
| liveness |
用戶端應遵循的活躍度模式類型。 可能的值:“Passive”、“PassiveActive” |
屬性詳細資料
authTokenTimeToLiveInSeconds
會話應該持續到的秒數。 範圍是 60 到 86400 秒。 預設值為 600。
authTokenTimeToLiveInSeconds?: number
屬性值
number
deviceCorrelationId
每個終端用戶裝置的唯一 Guid。 這是提供速率限制和反錘擊。 如果此要求中的 'deviceCorrelationIdSetInClient' 為 true,此 'deviceCorrelationId' 必須為 Null。
deviceCorrelationId?: string
屬性值
string
deviceCorrelationIdSetInClient
是否允許用戶端透過視覺 SDK 設定自己的 『deviceCorrelationId』。 默認值為 false,且 'deviceCorrelationId' 必須在此要求本文中設定。
deviceCorrelationIdSetInClient?: boolean
屬性值
boolean
enableSessionImage
是否儲存會話映像。
enableSessionImage?: boolean
屬性值
boolean
livenessModelVersion
用於活躍度分類的模型版本。 這是選擇性參數,如果未指定,則會選擇最新的支援模型版本
可能的值:“2024-11-15”
livenessModelVersion?: string
屬性值
string
livenessOperationMode
用戶端應遵循的活躍度模式類型。
可能的值:“Passive”、“PassiveActive”
livenessOperationMode: string
屬性值
string