@prosopo/types-database 5.8.0 → 5.10.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 +6 -6
- package/.turbo/turbo-build$colon$tsc.log +14 -14
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +53 -0
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/types/captcha.cjs +6 -0
- package/dist/cjs/types/client.cjs +93 -3
- package/dist/cjs/types/index.cjs +5 -0
- package/dist/cjs/types/provider.cjs +172 -71
- package/dist/index.js +4 -4
- package/dist/types/captcha.d.ts +6 -2
- package/dist/types/captcha.d.ts.map +1 -1
- package/dist/types/captcha.js +6 -2
- package/dist/types/captcha.js.map +1 -1
- package/dist/types/client.d.ts +610 -137
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/client.js +93 -4
- package/dist/types/client.js.map +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/provider.d.ts +1166 -207
- package/dist/types/provider.d.ts.map +1 -1
- package/dist/types/provider.js +171 -72
- package/dist/types/provider.js.map +1 -1
- package/dist/types/schemas.test.js +16 -2
- package/dist/types/schemas.test.js.map +1 -1
- package/package.json +5 -5
|
@@ -39,10 +39,10 @@ dist/cjs/types/mongo.cjs 0.00 kB │ gzip: 0.02 kB
|
|
|
39
39
|
dist/cjs/types/userAgent.cjs 0.00 kB │ gzip: 0.02 kB
|
|
40
40
|
dist/cjs/types/bannedDomain.cjs 0.23 kB │ gzip: 0.16 kB
|
|
41
41
|
dist/cjs/types/spamEmailDomain.cjs 0.25 kB │ gzip: 0.17 kB
|
|
42
|
-
dist/cjs/types/captcha.cjs
|
|
43
|
-
dist/cjs/types/index.cjs 2.
|
|
44
|
-
dist/cjs/index.cjs
|
|
45
|
-
dist/cjs/types/client.cjs
|
|
46
|
-
dist/cjs/types/provider.cjs
|
|
42
|
+
dist/cjs/types/captcha.cjs 1.49 kB │ gzip: 0.31 kB
|
|
43
|
+
dist/cjs/types/index.cjs 2.92 kB │ gzip: 0.53 kB
|
|
44
|
+
dist/cjs/index.cjs 3.03 kB │ gzip: 0.59 kB
|
|
45
|
+
dist/cjs/types/client.cjs 10.08 kB │ gzip: 1.99 kB
|
|
46
|
+
dist/cjs/types/provider.cjs 32.62 kB │ gzip: 5.18 kB
|
|
47
47
|
|
|
48
|
-
[32m✓ built in
|
|
48
|
+
[32m✓ built in 48ms[39m
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsc --build --verbose
|
|
2
|
-
|
|
2
|
+
11:33:39 AM - 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
|
+
11:33:39 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/tsconfig.tsbuildinfo'
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
11:33:39 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
11:33:39 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
11:33:39 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
11:33:39 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
11:33:39 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
11:33:39 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
11:33:39 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/tests/apiRoute.unit.test.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
11:33:39 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
11:33:39 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
11:33:40 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/tsconfig.tsbuildinfo'
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
11:33:40 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
11:33:40 AM - Building project '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json'...
|
|
41
41
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -41,10 +41,10 @@ dist/types/userAgent.js 0.01 kB │ gzip: 0.03 kB
|
|
|
41
41
|
dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
|
|
42
42
|
dist/types/bannedDomain.js 0.22 kB │ gzip: 0.17 kB
|
|
43
43
|
dist/types/spamEmailDomain.js 0.23 kB │ gzip: 0.17 kB
|
|
44
|
-
dist/types/captcha.js
|
|
45
|
-
dist/types/index.js 1.
|
|
46
|
-
dist/index.js
|
|
47
|
-
dist/types/client.js
|
|
48
|
-
dist/types/provider.js
|
|
44
|
+
dist/types/captcha.js 1.24 kB │ gzip: 0.30 kB
|
|
45
|
+
dist/types/index.js 1.95 kB │ gzip: 0.42 kB
|
|
46
|
+
dist/index.js 2.03 kB │ gzip: 0.45 kB
|
|
47
|
+
dist/types/client.js 9.82 kB │ gzip: 2.04 kB
|
|
48
|
+
dist/types/provider.js 31.27 kB │ gzip: 5.17 kB
|
|
49
49
|
|
|
50
|
-
[32m✓ built in
|
|
50
|
+
[32m✓ built in 51ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @prosopo/types-database
|
|
2
2
|
|
|
3
|
+
## 5.10.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
- 4570692: Let a user swap the puzzle captcha for an image challenge, on sites where Prosopo has switched it on.
|
|
7
|
+
|
|
8
|
+
Sites get a new staff-only setting, `widgetFeatureFlags.puzzleImageSwitch`. It is off by default and has no stored default. When it is on and the site allows image challenges, the puzzle response says `imageSwitchAvailable: true`. The puzzle then shows a small grid icon next to its title, with a "Switch to an image challenge" tooltip on hover or keyboard focus. After two wrong answers or refreshes in a row, the icon fills with the primary colour and its tooltip shows without a hover, because a touch screen has no hover. The tooltip goes away once the user starts moving the piece.
|
|
9
|
+
|
|
10
|
+
Pressing it re-mints the session the same way refresh does, with `switchToImage: true`. The provider only honours that when the request is a refresh of a puzzle session on the same site and the switch is on. The new session is then an image challenge with reason `PUZZLE_USER_SWITCH`. Like the refresh limit, it only ever moves from puzzle to image, so a client that fakes the request can only make its own challenge harder.
|
|
11
|
+
|
|
12
|
+
Also fixes a wrong puzzle answer restarting the whole widget. The user was sent back to the checkbox instead of getting a new puzzle with "Not quite — try again", and a wasted `/frictionless` request went out. The puzzle now retries in place.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [4570692]
|
|
17
|
+
- @prosopo/types@5.15.0
|
|
18
|
+
- @prosopo/locale@3.9.0
|
|
19
|
+
- @prosopo/user-access-policy@3.14.17
|
|
20
|
+
- @prosopo/common@3.1.64
|
|
21
|
+
|
|
22
|
+
## 5.9.0
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- b299a91: An audio challenge, offered only as an accessibility alternative, like reCAPTCHA's audio option. The user hears a short sequence of spoken digits and types them in.
|
|
26
|
+
|
|
27
|
+
It is off by default and needs two switches. Prosopo has to turn on the `captchaTypeFeatureFlags.audio` feature flag for the site, which the site owner cannot do, and the site owner has to set `audioAccessibilityEnabled`. When both are on, image, puzzle and icon-order challenges show a "Use audio instead" button. Pressing it swaps the visual challenge for the audio one. After a wrong answer the user stays on audio and gets a fresh clip.
|
|
28
|
+
|
|
29
|
+
Audio is never a captcha type that can be selected or routed to. A site's `captchaType`, traffic-filter categories, Restrict rules and the site-key CLI all reject it, and routing, PoW escalation and the severity tiers leave it out. The provider only serves audio against the visual session the user was already given, and only on a site with both switches on; any other audio request is refused before the session is used up, and a request without a session is always refused.
|
|
30
|
+
|
|
31
|
+
The spoken digits are synthesised by `@prosopo/audio-assets`, so there is no recorded set of clips to collect. The answer never leaves the provider, and a challenge can be submitted and verified only once, even under concurrent requests. `@prosopo/procaptcha-audio` is the widget. It and the "Use audio instead" button are built on the shared widget code in `@prosopo/procaptcha-common`, and the provider side is built on the shared interactive-captcha code that puzzle and icon-order use.
|
|
32
|
+
|
|
33
|
+
The demo playground has audio pages, and there is an end-to-end test for it.
|
|
34
|
+
- e13d7a8: New captcha type: `iconOrder`. The user is shown a frame of icons and a legend, and clicks the legend's icons in the order given.
|
|
35
|
+
|
|
36
|
+
Icon-order is off by default. Only Prosopo can switch it on for a site, with the `captchaTypeFeatureFlags.iconOrder` feature flag; the site owner cannot. A site without the flag is never served icon-order by any route, and the challenge endpoint refuses it. Once the flag is on, the owner can still keep icon-order out of the frictionless flow with `frictionlessTypes.iconOrder`, the same way as image and puzzle.
|
|
37
|
+
|
|
38
|
+
The answer never leaves the provider. Icon positions are stored on the challenge record, and the widget receives only the rendered frame and legend. Grading checks order as well as position, and each icon's hit radius scales with its size. Verifying a token is single-use under concurrent requests.
|
|
39
|
+
|
|
40
|
+
`@prosopo/icon-order-assets` draws the imagery, and `@prosopo/procaptcha-icon-order` is the widget. Its text is translated into every supported language.
|
|
41
|
+
|
|
42
|
+
Puzzle and icon-order now share their server code: challenge and solution handlers, the verify route, the submit and verify pipeline, and the database record methods. The widget code they have in common moves into `@prosopo/procaptcha-common`: the lazy mount wrapper, manager expiry and dispose, spent-session handling, behavioural data encryption and trusted click coordinates. Puzzle's behaviour is unchanged.
|
|
43
|
+
|
|
44
|
+
The demo playground has icon-order pages, and there is an end-to-end test for it.
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [b299a91]
|
|
49
|
+
- Updated dependencies [e13d7a8]
|
|
50
|
+
- Updated dependencies [270395d]
|
|
51
|
+
- @prosopo/types@5.14.0
|
|
52
|
+
- @prosopo/locale@3.8.0
|
|
53
|
+
- @prosopo/user-access-policy@3.14.16
|
|
54
|
+
- @prosopo/common@3.1.63
|
|
55
|
+
|
|
3
56
|
## 5.8.0
|
|
4
57
|
### Minor Changes
|
|
5
58
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -5,6 +5,8 @@ const require_captcha = require("./types/captcha.cjs");
|
|
|
5
5
|
const require_spamEmailDomain = require("./types/spamEmailDomain.cjs");
|
|
6
6
|
const require_bannedDomain = require("./types/bannedDomain.cjs");
|
|
7
7
|
exports.AccountSchema = require_client.AccountSchema;
|
|
8
|
+
exports.AudioCaptchaRecordSchema = require_provider.AudioCaptchaRecordSchema;
|
|
9
|
+
exports.AudioRenderSettingsSchema = require_client.AudioRenderSettingsSchema;
|
|
8
10
|
exports.BannedDomainRecordSchema = require_bannedDomain.BannedDomainRecordSchema;
|
|
9
11
|
exports.CaptchaRecordSchema = require_provider.CaptchaRecordSchema;
|
|
10
12
|
exports.ClientContextEntropyRecordSchema = require_provider.ClientContextEntropyRecordSchema;
|
|
@@ -14,6 +16,7 @@ exports.CompositeIpAddressRecordSchemaObj = require_provider.CompositeIpAddressR
|
|
|
14
16
|
exports.DatasetRecordSchema = require_provider.DatasetRecordSchema;
|
|
15
17
|
exports.DecisionMachineArtifactRecordSchema = require_provider.DecisionMachineArtifactRecordSchema;
|
|
16
18
|
exports.IPValidationRulesSchema = require_client.IPValidationRulesSchema;
|
|
19
|
+
exports.IconOrderCaptchaRecordSchema = require_provider.IconOrderCaptchaRecordSchema;
|
|
17
20
|
exports.PoWCaptchaRecordSchema = require_provider.PoWCaptchaRecordSchema;
|
|
18
21
|
exports.PuzzleCaptchaRecordSchema = require_provider.PuzzleCaptchaRecordSchema;
|
|
19
22
|
exports.PuzzleRenderSettingsSchema = require_client.PuzzleRenderSettingsSchema;
|
|
@@ -23,6 +26,8 @@ exports.ScheduledTaskSchema = require_provider.ScheduledTaskSchema;
|
|
|
23
26
|
exports.SessionRecordSchema = require_provider.SessionRecordSchema;
|
|
24
27
|
exports.SolutionRecordSchema = require_provider.SolutionRecordSchema;
|
|
25
28
|
exports.SpamEmailDomainRecordSchema = require_spamEmailDomain.SpamEmailDomainRecordSchema;
|
|
29
|
+
exports.StoredAudioCaptchaRecordSchema = require_captcha.StoredAudioCaptchaRecordSchema;
|
|
30
|
+
exports.StoredIconOrderCaptchaRecordSchema = require_captcha.StoredIconOrderCaptchaRecordSchema;
|
|
26
31
|
exports.StoredPoWCaptchaRecordSchema = require_captcha.StoredPoWCaptchaRecordSchema;
|
|
27
32
|
exports.StoredPuzzleCaptchaRecordSchema = require_captcha.StoredPuzzleCaptchaRecordSchema;
|
|
28
33
|
exports.StoredSessionRecordSchema = require_captcha.StoredSessionRecordSchema;
|
|
@@ -8,7 +8,13 @@ var StoredPoWCaptchaRecordSchema = new mongoose.Schema({ ...require_provider.PoW
|
|
|
8
8
|
StoredPoWCaptchaRecordSchema.index({ sessionId: 1 });
|
|
9
9
|
var StoredPuzzleCaptchaRecordSchema = new mongoose.Schema({ ...require_provider.PuzzleCaptchaRecordSchema.obj });
|
|
10
10
|
StoredPuzzleCaptchaRecordSchema.index({ sessionId: 1 });
|
|
11
|
+
var StoredAudioCaptchaRecordSchema = new mongoose.Schema({ ...require_provider.AudioCaptchaRecordSchema.obj });
|
|
12
|
+
StoredAudioCaptchaRecordSchema.index({ sessionId: 1 });
|
|
13
|
+
var StoredIconOrderCaptchaRecordSchema = new mongoose.Schema({ ...require_provider.IconOrderCaptchaRecordSchema.obj });
|
|
14
|
+
StoredIconOrderCaptchaRecordSchema.index({ sessionId: 1 });
|
|
11
15
|
//#endregion
|
|
16
|
+
exports.StoredAudioCaptchaRecordSchema = StoredAudioCaptchaRecordSchema;
|
|
17
|
+
exports.StoredIconOrderCaptchaRecordSchema = StoredIconOrderCaptchaRecordSchema;
|
|
12
18
|
exports.StoredPoWCaptchaRecordSchema = StoredPoWCaptchaRecordSchema;
|
|
13
19
|
exports.StoredPuzzleCaptchaRecordSchema = StoredPuzzleCaptchaRecordSchema;
|
|
14
20
|
exports.StoredSessionRecordSchema = StoredSessionRecordSchema;
|
|
@@ -119,6 +119,45 @@ var PuzzleRenderSettingsSchema = new mongoose.Schema({
|
|
|
119
119
|
required: false
|
|
120
120
|
}
|
|
121
121
|
}, { _id: false });
|
|
122
|
+
var AudioRenderSettingsSchema = new mongoose.Schema({
|
|
123
|
+
digitCount: {
|
|
124
|
+
type: Number,
|
|
125
|
+
min: 3,
|
|
126
|
+
max: 8,
|
|
127
|
+
required: false
|
|
128
|
+
},
|
|
129
|
+
noiseSnrDb: {
|
|
130
|
+
type: Number,
|
|
131
|
+
min: 3,
|
|
132
|
+
max: 60,
|
|
133
|
+
required: false
|
|
134
|
+
},
|
|
135
|
+
babbleGain: {
|
|
136
|
+
type: Number,
|
|
137
|
+
min: 0,
|
|
138
|
+
max: .6,
|
|
139
|
+
required: false
|
|
140
|
+
},
|
|
141
|
+
babbleVoices: {
|
|
142
|
+
type: Number,
|
|
143
|
+
min: 0,
|
|
144
|
+
max: 4,
|
|
145
|
+
required: false
|
|
146
|
+
},
|
|
147
|
+
reverbMix: {
|
|
148
|
+
type: Number,
|
|
149
|
+
min: 0,
|
|
150
|
+
max: .6,
|
|
151
|
+
required: false
|
|
152
|
+
},
|
|
153
|
+
gapMs: {
|
|
154
|
+
type: Number,
|
|
155
|
+
min: 0,
|
|
156
|
+
max: 1500,
|
|
157
|
+
required: false
|
|
158
|
+
}
|
|
159
|
+
}, { _id: false });
|
|
160
|
+
var SELECTABLE_CAPTCHA_TYPES = Object.values(_prosopo_types.CaptchaType).filter((captchaType) => captchaType !== _prosopo_types.CaptchaType.audio);
|
|
122
161
|
var TrafficCategoryPolicySchema = new mongoose.Schema({
|
|
123
162
|
action: {
|
|
124
163
|
type: String,
|
|
@@ -127,7 +166,7 @@ var TrafficCategoryPolicySchema = new mongoose.Schema({
|
|
|
127
166
|
},
|
|
128
167
|
captchaType: {
|
|
129
168
|
type: String,
|
|
130
|
-
enum:
|
|
169
|
+
enum: SELECTABLE_CAPTCHA_TYPES,
|
|
131
170
|
required: false
|
|
132
171
|
},
|
|
133
172
|
powDifficulty: {
|
|
@@ -148,15 +187,27 @@ var TrafficCategoryPolicySchema = new mongoose.Schema({
|
|
|
148
187
|
max: _prosopo_types.MAX_PAD_BYTES,
|
|
149
188
|
required: false
|
|
150
189
|
},
|
|
190
|
+
iconOrderTolerance: {
|
|
191
|
+
type: Number,
|
|
192
|
+
required: false
|
|
193
|
+
},
|
|
194
|
+
iconOrder: {
|
|
195
|
+
type: mongoose.Schema.Types.Mixed,
|
|
196
|
+
required: false
|
|
197
|
+
},
|
|
151
198
|
puzzle: {
|
|
152
199
|
type: PuzzleRenderSettingsSchema,
|
|
153
200
|
required: false
|
|
201
|
+
},
|
|
202
|
+
audio: {
|
|
203
|
+
type: AudioRenderSettingsSchema,
|
|
204
|
+
required: false
|
|
154
205
|
}
|
|
155
206
|
}, { _id: false });
|
|
156
207
|
var UserSettingsSchema = new mongoose.Schema({
|
|
157
208
|
captchaType: {
|
|
158
209
|
type: String,
|
|
159
|
-
enum:
|
|
210
|
+
enum: SELECTABLE_CAPTCHA_TYPES,
|
|
160
211
|
default: _prosopo_types.captchaTypeDefault
|
|
161
212
|
},
|
|
162
213
|
verifiedTimeout: {
|
|
@@ -180,12 +231,33 @@ var UserSettingsSchema = new mongoose.Schema({
|
|
|
180
231
|
puzzle: {
|
|
181
232
|
type: Boolean,
|
|
182
233
|
default: true
|
|
234
|
+
},
|
|
235
|
+
iconOrder: {
|
|
236
|
+
type: Boolean,
|
|
237
|
+
default: true
|
|
183
238
|
}
|
|
184
239
|
}, { _id: false }),
|
|
185
240
|
default: () => ({ ..._prosopo_types.frictionlessTypesDefault })
|
|
186
241
|
},
|
|
187
242
|
captchaTypeFeatureFlags: {
|
|
188
|
-
type: new mongoose.Schema({
|
|
243
|
+
type: new mongoose.Schema({
|
|
244
|
+
puzzle: {
|
|
245
|
+
type: Boolean,
|
|
246
|
+
required: false
|
|
247
|
+
},
|
|
248
|
+
iconOrder: {
|
|
249
|
+
type: Boolean,
|
|
250
|
+
required: false
|
|
251
|
+
},
|
|
252
|
+
audio: {
|
|
253
|
+
type: Boolean,
|
|
254
|
+
required: false
|
|
255
|
+
}
|
|
256
|
+
}, { _id: false }),
|
|
257
|
+
required: false
|
|
258
|
+
},
|
|
259
|
+
widgetFeatureFlags: {
|
|
260
|
+
type: new mongoose.Schema({ puzzleImageSwitch: {
|
|
189
261
|
type: Boolean,
|
|
190
262
|
required: false
|
|
191
263
|
} }, { _id: false }),
|
|
@@ -213,6 +285,14 @@ var UserSettingsSchema = new mongoose.Schema({
|
|
|
213
285
|
type: Number,
|
|
214
286
|
required: false
|
|
215
287
|
},
|
|
288
|
+
iconOrderTolerance: {
|
|
289
|
+
type: Number,
|
|
290
|
+
required: false
|
|
291
|
+
},
|
|
292
|
+
iconOrder: {
|
|
293
|
+
type: mongoose.Schema.Types.Mixed,
|
|
294
|
+
required: false
|
|
295
|
+
},
|
|
216
296
|
puzzleMaxDifficulty: {
|
|
217
297
|
type: Number,
|
|
218
298
|
min: 0,
|
|
@@ -223,6 +303,14 @@ var UserSettingsSchema = new mongoose.Schema({
|
|
|
223
303
|
type: PuzzleRenderSettingsSchema,
|
|
224
304
|
required: false
|
|
225
305
|
},
|
|
306
|
+
audio: {
|
|
307
|
+
type: AudioRenderSettingsSchema,
|
|
308
|
+
required: false
|
|
309
|
+
},
|
|
310
|
+
audioAccessibilityEnabled: {
|
|
311
|
+
type: Boolean,
|
|
312
|
+
required: false
|
|
313
|
+
},
|
|
226
314
|
ipValidationRules: IPValidationRulesSchema,
|
|
227
315
|
domains: {
|
|
228
316
|
type: [String],
|
|
@@ -401,6 +489,7 @@ var AccountSchema = new mongoose.Schema({
|
|
|
401
489
|
frictionlessThreshold: mongoose.Schema.Types.Mixed,
|
|
402
490
|
frictionlessTypes: mongoose.Schema.Types.Mixed,
|
|
403
491
|
captchaTypeFeatureFlags: mongoose.Schema.Types.Mixed,
|
|
492
|
+
widgetFeatureFlags: mongoose.Schema.Types.Mixed,
|
|
404
493
|
ipValidationRules: IPValidationRulesSchema
|
|
405
494
|
},
|
|
406
495
|
createdAt: Number,
|
|
@@ -415,6 +504,7 @@ var TableNames = /* @__PURE__ */ function(TableNames) {
|
|
|
415
504
|
}({});
|
|
416
505
|
//#endregion
|
|
417
506
|
exports.AccountSchema = AccountSchema;
|
|
507
|
+
exports.AudioRenderSettingsSchema = AudioRenderSettingsSchema;
|
|
418
508
|
exports.IPValidationRulesSchema = IPValidationRulesSchema;
|
|
419
509
|
exports.PuzzleRenderSettingsSchema = PuzzleRenderSettingsSchema;
|
|
420
510
|
exports.TableNames = TableNames;
|
package/dist/cjs/types/index.cjs
CHANGED
|
@@ -4,6 +4,8 @@ const require_captcha = require("./captcha.cjs");
|
|
|
4
4
|
const require_spamEmailDomain = require("./spamEmailDomain.cjs");
|
|
5
5
|
const require_bannedDomain = require("./bannedDomain.cjs");
|
|
6
6
|
exports.AccountSchema = require_client.AccountSchema;
|
|
7
|
+
exports.AudioCaptchaRecordSchema = require_provider.AudioCaptchaRecordSchema;
|
|
8
|
+
exports.AudioRenderSettingsSchema = require_client.AudioRenderSettingsSchema;
|
|
7
9
|
exports.BannedDomainRecordSchema = require_bannedDomain.BannedDomainRecordSchema;
|
|
8
10
|
exports.CaptchaRecordSchema = require_provider.CaptchaRecordSchema;
|
|
9
11
|
exports.ClientContextEntropyRecordSchema = require_provider.ClientContextEntropyRecordSchema;
|
|
@@ -13,6 +15,7 @@ exports.CompositeIpAddressRecordSchemaObj = require_provider.CompositeIpAddressR
|
|
|
13
15
|
exports.DatasetRecordSchema = require_provider.DatasetRecordSchema;
|
|
14
16
|
exports.DecisionMachineArtifactRecordSchema = require_provider.DecisionMachineArtifactRecordSchema;
|
|
15
17
|
exports.IPValidationRulesSchema = require_client.IPValidationRulesSchema;
|
|
18
|
+
exports.IconOrderCaptchaRecordSchema = require_provider.IconOrderCaptchaRecordSchema;
|
|
16
19
|
exports.PoWCaptchaRecordSchema = require_provider.PoWCaptchaRecordSchema;
|
|
17
20
|
exports.PuzzleCaptchaRecordSchema = require_provider.PuzzleCaptchaRecordSchema;
|
|
18
21
|
exports.PuzzleRenderSettingsSchema = require_client.PuzzleRenderSettingsSchema;
|
|
@@ -22,6 +25,8 @@ exports.ScheduledTaskSchema = require_provider.ScheduledTaskSchema;
|
|
|
22
25
|
exports.SessionRecordSchema = require_provider.SessionRecordSchema;
|
|
23
26
|
exports.SolutionRecordSchema = require_provider.SolutionRecordSchema;
|
|
24
27
|
exports.SpamEmailDomainRecordSchema = require_spamEmailDomain.SpamEmailDomainRecordSchema;
|
|
28
|
+
exports.StoredAudioCaptchaRecordSchema = require_captcha.StoredAudioCaptchaRecordSchema;
|
|
29
|
+
exports.StoredIconOrderCaptchaRecordSchema = require_captcha.StoredIconOrderCaptchaRecordSchema;
|
|
25
30
|
exports.StoredPoWCaptchaRecordSchema = require_captcha.StoredPoWCaptchaRecordSchema;
|
|
26
31
|
exports.StoredPuzzleCaptchaRecordSchema = require_captcha.StoredPuzzleCaptchaRecordSchema;
|
|
27
32
|
exports.StoredSessionRecordSchema = require_captcha.StoredSessionRecordSchema;
|