共用方式為


CreateLivenessSessionContent interface

建立即時會話的要求模型。

屬性

authTokenTimeToLiveInSeconds

會話應該持續到的秒數。 範圍是 60 到 86400 秒。 預設值為 600。

deviceCorrelationId

每個終端用戶裝置的唯一 Guid。 這是提供速率限制和反錘擊。 如果此要求中的 'deviceCorrelationIdSetInClient' 為 true,此 'deviceCorrelationId' 必須為 Null。

deviceCorrelationIdSetInClient

是否允許用戶端透過視覺 SDK 設定自己的 『deviceCorrelationId』。 默認值為 false,且 'deviceCorrelationId' 必須在此要求本文中設定。

enableSessionImage

是否儲存會話映像。

livenessModelVersion

用於活躍度分類的模型版本。 這是選擇性參數,如果未指定,則會選擇最新的支援模型版本

可能的值:“2024-11-15”

livenessOperationMode

用戶端應遵循的活躍度模式類型。

可能的值:“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