@prosopo/types-database 5.12.0 → 5.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,6 @@ dist/cjs/types/captcha.cjs 1.49 kB │ gzip: 0.31 kB
43
43
  dist/cjs/types/index.cjs 2.92 kB │ gzip: 0.53 kB
44
44
  dist/cjs/index.cjs 3.03 kB │ gzip: 0.59 kB
45
45
  dist/cjs/types/client.cjs 10.68 kB │ gzip: 2.09 kB
46
- dist/cjs/types/provider.cjs 33.54 kB │ gzip: 5.32 kB
46
+ dist/cjs/types/provider.cjs 33.74 kB │ gzip: 5.38 kB
47
47
 
48
- ✓ built in 36ms
48
+ ✓ built in 29ms
@@ -44,6 +44,6 @@ dist/esm/types/captcha.js 1.24 kB │ gzip: 0.30 kB
44
44
  dist/esm/types/index.js 1.95 kB │ gzip: 0.42 kB
45
45
  dist/esm/index.js 2.03 kB │ gzip: 0.45 kB
46
46
  dist/esm/types/client.js 10.42 kB │ gzip: 2.13 kB
47
- dist/esm/types/provider.js 32.17 kB │ gzip: 5.31 kB
47
+ dist/esm/types/provider.js 32.37 kB │ gzip: 5.35 kB
48
48
 
49
- ✓ built in 46ms
49
+ ✓ built in 31ms
@@ -1,5 +1,5 @@
1
1
  $ tsc --build --verbose
2
- 11:54:32 AM - Projects in this build:
2
+ 11:33:33 PM - Projects in this build:
3
3
  * ../../dev/config/tsconfig.json
4
4
  * ../util/tsconfig.json
5
5
  * ../locale/tsconfig.json
@@ -13,29 +13,29 @@ $ tsc --build --verbose
13
13
  * ../user-access-policy/tsconfig.json
14
14
  * tsconfig.json
15
15
 
16
- 11:54:32 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
16
+ 11:33:33 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
17
17
 
18
- 11:54:32 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
18
+ 11:33:33 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
19
19
 
20
- 11:54:32 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/process.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
20
+ 11:33:33 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/process.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
21
21
 
22
- 11:54:32 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
22
+ 11:33:33 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
23
23
 
24
- 11:54:32 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
24
+ 11:33:34 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
25
25
 
26
- 11:54:32 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
26
+ 11:33:34 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/errorCodes.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
27
27
 
28
- 11:54:32 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
28
+ 11:33:34 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
29
29
 
30
- 11:54:32 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/dist/tsc/tsconfig.tsbuildinfo'
30
+ 11:33:34 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/dist/tsc/tsconfig.tsbuildinfo'
31
31
 
32
- 11:54:32 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/tests/redisIndex.integration.test.ts' is older than output '../redis-client/dist/tsc/tsconfig.tsbuildinfo'
32
+ 11:33:34 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/dist/tsc/tsconfig.tsbuildinfo'
33
33
 
34
- 11:54:32 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
34
+ 11:33:34 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
35
35
 
36
- 11:54:32 AM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/dist/tsc/tsconfig.tsbuildinfo'
36
+ 11:33:34 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/ruleRecord.ts' is older than output '../user-access-policy/dist/tsc/tsconfig.tsbuildinfo'
37
37
 
38
- 11:54:32 AM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
38
+ 11:33:34 PM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
39
39
 
40
- 11:54:32 AM - Building project '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json'...
40
+ 11:33:34 PM - Building project '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json'...
41
41
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @prosopo/types-database
2
2
 
3
+ ## 5.13.1
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [f019ec4]
7
+ - @prosopo/types@5.20.1
8
+ - @prosopo/common@3.3.2
9
+ - @prosopo/user-access-policy@3.15.10
10
+
11
+ ## 5.13.0
12
+ ### Minor Changes
13
+
14
+ - 78107d9: Record the fingerprint summary, and with it the device bucket, for every captcha type rather than only PoW.
15
+
16
+ The proof of fingerprint was only built by the PoW widget and only read when a PoW solution was submitted, so sessions served a puzzle or an image never had a bucket. About half of puzzle drags could only be given one by finding a PoW the same account had solved.
17
+
18
+ The widget now sends the proof with the frictionless request, best-effort and capped at a second so it never delays the captcha. The provider verifies and summarises it once, stores the summary on the session, and the PoW, puzzle and image records copy it from there. Escalation sessions inherit it. A proof sent with a PoW solution still replaces the one from the frictionless request.
19
+
20
+ The summary is only recorded at the frictionless step, not passed to the routing machine there, so existing `deviceBucket` counter rules keep firing where they did before.
21
+
22
+ ### Patch Changes
23
+
24
+ - 1966fc1: Bump the npm-minor-and-patch group across 1 directory with 15 updates
25
+ - 77bd891: The provider accepts an `x-prosopo-integration` request header, which names the platform that embedded the widget (e.g. `mc4wp`). It is saved on the session with the other request headers and added to the provider's request logs as `integration`. The widget does not send it yet; this has to be deployed to providers first, because browsers block a header the provider does not allow.
26
+ - Updated dependencies [1966fc1]
27
+ - Updated dependencies [c69b636]
28
+ - Updated dependencies [78107d9]
29
+ - Updated dependencies [d6cc6fe]
30
+ - Updated dependencies [77bd891]
31
+ - Updated dependencies [76b6edd]
32
+ - @prosopo/common@3.3.2
33
+ - @prosopo/locale@3.13.2
34
+ - @prosopo/logger@2.1.7
35
+ - @prosopo/types@5.20.0
36
+ - @prosopo/user-access-policy@3.15.9
37
+
3
38
  ## 5.12.0
4
39
  ### Minor Changes
5
40
 
@@ -126,6 +126,60 @@ CaptchaRecordSchema.index({
126
126
  solved: 1,
127
127
  randomKey: 1
128
128
  });
129
+ var fingerprintSummaryField = {
130
+ type: new mongoose.Schema({
131
+ root: {
132
+ type: String,
133
+ required: true
134
+ },
135
+ groupHash: {
136
+ type: String,
137
+ required: true
138
+ },
139
+ bucketId: {
140
+ type: String,
141
+ required: false
142
+ },
143
+ colorDepth: {
144
+ type: Number,
145
+ required: false
146
+ },
147
+ hardwareConcurrency: {
148
+ type: Number,
149
+ required: false
150
+ },
151
+ disclosed: {
152
+ type: new mongoose.Schema({
153
+ timezone: {
154
+ type: String,
155
+ required: false
156
+ },
157
+ languages: {
158
+ type: String,
159
+ required: false
160
+ },
161
+ architecture: {
162
+ type: Number,
163
+ required: false
164
+ },
165
+ cookiesEnabled: {
166
+ type: Boolean,
167
+ required: false
168
+ },
169
+ sessionStorage: {
170
+ type: Boolean,
171
+ required: false
172
+ },
173
+ localStorage: {
174
+ type: Boolean,
175
+ required: false
176
+ }
177
+ }, { _id: false }),
178
+ required: false
179
+ }
180
+ }, { _id: false }),
181
+ required: false
182
+ };
129
183
  var PoWCaptchaRecordSchema = new mongoose.Schema({
130
184
  challenge: {
131
185
  type: String,
@@ -283,60 +337,7 @@ var PoWCaptchaRecordSchema = new mongoose.Schema({
283
337
  type: String,
284
338
  required: true
285
339
  },
286
- fingerprintSummary: {
287
- type: new mongoose.Schema({
288
- root: {
289
- type: String,
290
- required: true
291
- },
292
- groupHash: {
293
- type: String,
294
- required: true
295
- },
296
- bucketId: {
297
- type: String,
298
- required: false
299
- },
300
- colorDepth: {
301
- type: Number,
302
- required: false
303
- },
304
- hardwareConcurrency: {
305
- type: Number,
306
- required: false
307
- },
308
- disclosed: {
309
- type: new mongoose.Schema({
310
- timezone: {
311
- type: String,
312
- required: false
313
- },
314
- languages: {
315
- type: String,
316
- required: false
317
- },
318
- architecture: {
319
- type: Number,
320
- required: false
321
- },
322
- cookiesEnabled: {
323
- type: Boolean,
324
- required: false
325
- },
326
- sessionStorage: {
327
- type: Boolean,
328
- required: false
329
- },
330
- localStorage: {
331
- type: Boolean,
332
- required: false
333
- }
334
- }, { _id: false }),
335
- required: false
336
- }
337
- }, { _id: false }),
338
- required: false
339
- },
340
+ fingerprintSummary: fingerprintSummaryField,
340
341
  label: {
341
342
  type: String,
342
343
  enum: Object.values(_prosopo_types.CaptchaLabel),
@@ -400,6 +401,7 @@ PoWCaptchaRecordSchema.index({ blocked: 1 }, {
400
401
  * type shows up as an empty column rather than a compile error.
401
402
  */
402
403
  var interactiveCaptchaRecordFields = {
404
+ fingerprintSummary: fingerprintSummaryField,
403
405
  challenge: {
404
406
  type: String,
405
407
  required: true
@@ -765,6 +767,7 @@ indexInteractiveCaptchaRecord(PuzzleCaptchaRecordSchema);
765
767
  indexInteractiveCaptchaRecord(IconOrderCaptchaRecordSchema);
766
768
  indexInteractiveCaptchaRecord(AudioCaptchaRecordSchema);
767
769
  var UserCommitmentRecordSchema = new mongoose.Schema({
770
+ fingerprintSummary: fingerprintSummaryField,
768
771
  userAccount: {
769
772
  type: String,
770
773
  required: true
@@ -1153,6 +1156,7 @@ ScheduledTaskRecordSchema.index({
1153
1156
  status: 1
1154
1157
  });
1155
1158
  var SessionRecordSchema = new mongoose.Schema({
1159
+ fingerprintSummary: fingerprintSummaryField,
1156
1160
  sessionId: {
1157
1161
  type: String,
1158
1162
  required: true
@@ -1757,6 +1761,7 @@ var SESSION_PROJECTION = {
1757
1761
  currentUrl: 1,
1758
1762
  iframeUrl: 1,
1759
1763
  clientMetaData: 1,
1764
+ fingerprintSummary: 1,
1760
1765
  captchaType: 1,
1761
1766
  serverChecked: 1,
1762
1767
  synNs: 1,
@@ -1797,6 +1802,7 @@ var SESSION_PROJECTION = {
1797
1802
  "headers.prosopo-user": 1,
1798
1803
  "headers.prosopo-site-key": 1,
1799
1804
  "headers.prosopo-type": 1,
1805
+ "headers.x-prosopo-integration": 1,
1800
1806
  "headers.x-tls-version": 1
1801
1807
  };
1802
1808
  //#endregion
@@ -126,6 +126,60 @@ CaptchaRecordSchema.index({
126
126
  solved: 1,
127
127
  randomKey: 1
128
128
  });
129
+ var fingerprintSummaryField = {
130
+ type: new Schema({
131
+ root: {
132
+ type: String,
133
+ required: true
134
+ },
135
+ groupHash: {
136
+ type: String,
137
+ required: true
138
+ },
139
+ bucketId: {
140
+ type: String,
141
+ required: false
142
+ },
143
+ colorDepth: {
144
+ type: Number,
145
+ required: false
146
+ },
147
+ hardwareConcurrency: {
148
+ type: Number,
149
+ required: false
150
+ },
151
+ disclosed: {
152
+ type: new Schema({
153
+ timezone: {
154
+ type: String,
155
+ required: false
156
+ },
157
+ languages: {
158
+ type: String,
159
+ required: false
160
+ },
161
+ architecture: {
162
+ type: Number,
163
+ required: false
164
+ },
165
+ cookiesEnabled: {
166
+ type: Boolean,
167
+ required: false
168
+ },
169
+ sessionStorage: {
170
+ type: Boolean,
171
+ required: false
172
+ },
173
+ localStorage: {
174
+ type: Boolean,
175
+ required: false
176
+ }
177
+ }, { _id: false }),
178
+ required: false
179
+ }
180
+ }, { _id: false }),
181
+ required: false
182
+ };
129
183
  var PoWCaptchaRecordSchema = new Schema({
130
184
  challenge: {
131
185
  type: String,
@@ -283,60 +337,7 @@ var PoWCaptchaRecordSchema = new Schema({
283
337
  type: String,
284
338
  required: true
285
339
  },
286
- fingerprintSummary: {
287
- type: new Schema({
288
- root: {
289
- type: String,
290
- required: true
291
- },
292
- groupHash: {
293
- type: String,
294
- required: true
295
- },
296
- bucketId: {
297
- type: String,
298
- required: false
299
- },
300
- colorDepth: {
301
- type: Number,
302
- required: false
303
- },
304
- hardwareConcurrency: {
305
- type: Number,
306
- required: false
307
- },
308
- disclosed: {
309
- type: new Schema({
310
- timezone: {
311
- type: String,
312
- required: false
313
- },
314
- languages: {
315
- type: String,
316
- required: false
317
- },
318
- architecture: {
319
- type: Number,
320
- required: false
321
- },
322
- cookiesEnabled: {
323
- type: Boolean,
324
- required: false
325
- },
326
- sessionStorage: {
327
- type: Boolean,
328
- required: false
329
- },
330
- localStorage: {
331
- type: Boolean,
332
- required: false
333
- }
334
- }, { _id: false }),
335
- required: false
336
- }
337
- }, { _id: false }),
338
- required: false
339
- },
340
+ fingerprintSummary: fingerprintSummaryField,
340
341
  label: {
341
342
  type: String,
342
343
  enum: Object.values(CaptchaLabel),
@@ -400,6 +401,7 @@ PoWCaptchaRecordSchema.index({ blocked: 1 }, {
400
401
  * type shows up as an empty column rather than a compile error.
401
402
  */
402
403
  var interactiveCaptchaRecordFields = {
404
+ fingerprintSummary: fingerprintSummaryField,
403
405
  challenge: {
404
406
  type: String,
405
407
  required: true
@@ -765,6 +767,7 @@ indexInteractiveCaptchaRecord(PuzzleCaptchaRecordSchema);
765
767
  indexInteractiveCaptchaRecord(IconOrderCaptchaRecordSchema);
766
768
  indexInteractiveCaptchaRecord(AudioCaptchaRecordSchema);
767
769
  var UserCommitmentRecordSchema = new Schema({
770
+ fingerprintSummary: fingerprintSummaryField,
768
771
  userAccount: {
769
772
  type: String,
770
773
  required: true
@@ -1153,6 +1156,7 @@ ScheduledTaskRecordSchema.index({
1153
1156
  status: 1
1154
1157
  });
1155
1158
  var SessionRecordSchema = new Schema({
1159
+ fingerprintSummary: fingerprintSummaryField,
1156
1160
  sessionId: {
1157
1161
  type: String,
1158
1162
  required: true
@@ -1757,6 +1761,7 @@ var SESSION_PROJECTION = {
1757
1761
  currentUrl: 1,
1758
1762
  iframeUrl: 1,
1759
1763
  clientMetaData: 1,
1764
+ fingerprintSummary: 1,
1760
1765
  captchaType: 1,
1761
1766
  serverChecked: 1,
1762
1767
  synNs: 1,
@@ -1797,6 +1802,7 @@ var SESSION_PROJECTION = {
1797
1802
  "headers.prosopo-user": 1,
1798
1803
  "headers.prosopo-site-key": 1,
1799
1804
  "headers.prosopo-type": 1,
1805
+ "headers.x-prosopo-integration": 1,
1800
1806
  "headers.x-tls-version": 1
1801
1807
  };
1802
1808
  //#endregion