2020-03-25 13:21:23 +01:00
|
|
|
/**
|
2020-04-01 07:21:32 +02:00
|
|
|
* @typedef {Object} Session User session model
|
|
|
|
* @property {string} sessionId User session ID
|
|
|
|
* @property {string} websiteKey Website ID
|
2020-03-31 19:01:16 +02:00
|
|
|
* @property {string} [imageTag] Human readable text image tag
|
2020-04-02 11:08:09 +02:00
|
|
|
* @property {string} [token] Token used for verification of session
|
2020-03-25 13:21:23 +01:00
|
|
|
*/
|
2020-03-31 19:01:16 +02:00
|
|
|
|
|
|
|
/**
|
2020-04-06 09:23:32 +02:00
|
|
|
* @typedef {Object} DbSession User session model in DB
|
2020-03-31 19:01:16 +02:00
|
|
|
* @property {string} sessionId User session ID
|
|
|
|
* @property {string} websiteKey Website ID
|
|
|
|
* @property {string} image Image URL for challenge
|
|
|
|
* @property {number} obj Image object ID
|
|
|
|
* @property {number} score How likely is the user to be a human?
|
2020-04-06 09:23:32 +02:00
|
|
|
* @property {number} expiry Expiry time of session
|
2020-03-31 19:01:16 +02:00
|
|
|
*/
|
2020-04-01 07:21:32 +02:00
|
|
|
|
|
|
|
// Needed otherwise typedef import doesn't work
|
|
|
|
export {};
|