@prosopo/types-database 5.12.0 → 5.13.0
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.
- package/.turbo/turbo-build$colon$cjs.log +2 -2
- package/.turbo/turbo-build$colon$esm.log +2 -2
- package/.turbo/turbo-build$colon$tsc.log +14 -14
- package/CHANGELOG.md +27 -0
- package/dist/cjs/types/provider.cjs +60 -54
- package/dist/esm/types/provider.js +60 -54
- package/dist/tsc/types/provider.d.ts +283 -12
- package/dist/tsc/types/provider.d.ts.map +1 -1
- package/dist/tsc/types/provider.js +28 -21
- package/dist/tsc/types/provider.js.map +1 -1
- package/dist/tsc/types/schemas.test.js +25 -1
- package/dist/tsc/types/schemas.test.js.map +1 -1
- package/dist/types/types/provider.d.ts +283 -12
- package/dist/types/types/provider.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -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.
|
|
46
|
+
dist/cjs/types/provider.cjs 33.74 kB │ gzip: 5.38 kB
|
|
47
47
|
|
|
48
|
-
[32m✓ built in
|
|
48
|
+
[32m✓ built in 55ms[39m
|
|
@@ -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.
|
|
47
|
+
dist/esm/types/provider.js 32.37 kB │ gzip: 5.35 kB
|
|
48
48
|
|
|
49
|
-
[32m✓ built in
|
|
49
|
+
[32m✓ built in 69ms[39m
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsc --build --verbose
|
|
2
|
-
|
|
2
|
+
12:57:06 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
|
-
|
|
16
|
+
12:57:06 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite.esm.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
12:57:06 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
|
-
|
|
20
|
+
12:57:06 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translator.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
12:57:06 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
|
-
|
|
24
|
+
12:57:06 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
|
-
|
|
26
|
+
12:57:06 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
12:57:06 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
|
-
|
|
30
|
+
12:57:06 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
|
-
|
|
32
|
+
12:57:06 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
|
-
|
|
34
|
+
12:57:06 PM - 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'
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
12:57:06 PM - 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'
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
12:57:06 PM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
12:57:06 PM - Building project '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json'...
|
|
41
41
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @prosopo/types-database
|
|
2
2
|
|
|
3
|
+
## 5.13.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
- 78107d9: Record the fingerprint summary, and with it the device bucket, for every captcha type rather than only PoW.
|
|
7
|
+
|
|
8
|
+
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.
|
|
9
|
+
|
|
10
|
+
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.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 1966fc1: Bump the npm-minor-and-patch group across 1 directory with 15 updates
|
|
17
|
+
- 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.
|
|
18
|
+
- Updated dependencies [1966fc1]
|
|
19
|
+
- Updated dependencies [c69b636]
|
|
20
|
+
- Updated dependencies [78107d9]
|
|
21
|
+
- Updated dependencies [d6cc6fe]
|
|
22
|
+
- Updated dependencies [77bd891]
|
|
23
|
+
- Updated dependencies [76b6edd]
|
|
24
|
+
- @prosopo/common@3.3.2
|
|
25
|
+
- @prosopo/locale@3.13.2
|
|
26
|
+
- @prosopo/logger@2.1.7
|
|
27
|
+
- @prosopo/types@5.20.0
|
|
28
|
+
- @prosopo/user-access-policy@3.15.9
|
|
29
|
+
|
|
3
30
|
## 5.12.0
|
|
4
31
|
### Minor Changes
|
|
5
32
|
|
|
@@ -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
|