@prosopo/cli 3.6.77 → 3.7.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/cli@3.6.77 build:cjs
2
+ > @prosopo/cli@3.7.0 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -80,7 +80,7 @@ dist/cjs/start.cjs 2.75 kB │ gzip: 0.85 kB
80
80
  dist/cjs/commands/siteKeyRegisterApi.cjs 3.08 kB │ gzip: 1.08 kB
81
81
  dist/cjs/commands/siteKeyRegister.cjs 3.48 kB │ gzip: 1.15 kB
82
82
  dist/cjs/prosopo.config.cjs 4.58 kB │ gzip: 1.46 kB
83
- dist/cjs/RateLimiter.cjs 5.41 kB │ gzip: 0.84 kB
83
+ dist/cjs/RateLimiter.cjs 5.42 kB │ gzip: 0.88 kB
84
84
 
85
85
  [EMPTY_IMPORT_META] `import.meta` may not be a valid syntax with the `cjs` output format.
86
86
  ╭─[ src/prosopo.config.ts:56:21 ]
@@ -90,4 +90,4 @@ dist/cjs/RateLimiter.cjs 5.41 kB │ gzip: 0.84 kB
90
90
   │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
91
91
  ────╯
92
92
  
93
- ✓ built in 51ms
93
+ ✓ built in 70ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.6.77 build:tsc
2
+ > @prosopo/cli@3.7.0 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 11:41:35 PM - Projects in this build:
5
+ 11:11:06 AM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -28,53 +28,53 @@
28
28
  * ../../dev/workspace/tsconfig.json
29
29
  * tsconfig.json
30
30
 
31
- 11:41:35 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/tsconfig.tsbuildinfo'
31
+ 11:11:06 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'
32
32
 
33
- 11:41:35 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
33
+ 11:11:06 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
34
34
 
35
- 11:41:35 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
35
+ 11:11:06 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
36
36
 
37
- 11:41:35 PM - 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'
37
+ 11:11:06 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'
38
38
 
39
- 11:41:35 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
39
+ 11:11:06 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'
40
40
 
41
- 11:41:35 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
41
+ 11:11:06 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
42
42
 
43
- 11:41:35 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
43
+ 11:11:06 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
44
44
 
45
- 11:41:35 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
45
+ 11:11:06 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
46
46
 
47
- 11:41:35 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
47
+ 11:11:06 AM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/index.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
48
48
 
49
- 11:41:35 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
49
+ 11:11:06 AM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/types.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
50
50
 
51
- 11:41:35 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
51
+ 11:11:06 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
52
52
 
53
- 11:41:35 PM - 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'
53
+ 11:11:06 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'
54
54
 
55
- 11:41:35 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/tsconfig.tsbuildinfo'
55
+ 11:11:06 AM - 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/tsconfig.tsbuildinfo'
56
56
 
57
- 11:41:35 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/captcha.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
57
+ 11:11:06 AM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/captcha.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
58
58
 
59
- 11:41:35 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
59
+ 11:11:06 AM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
60
60
 
61
- 11:41:35 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
61
+ 11:11:06 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
62
62
 
63
- 11:41:35 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
63
+ 11:11:06 AM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
64
64
 
65
- 11:41:36 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
65
+ 11:11:06 AM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
66
66
 
67
- 11:41:36 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
67
+ 11:11:06 AM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
68
68
 
69
- 11:41:36 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/dataset.unit.test.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
69
+ 11:11:06 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
70
70
 
71
- 11:41:36 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
71
+ 11:11:06 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/providers.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
72
72
 
73
- 11:41:36 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
73
+ 11:11:06 AM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/normalizeRequestIp.ts' is older than output '../provider/tsconfig.tsbuildinfo'
74
74
 
75
- 11:41:36 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
75
+ 11:11:06 AM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/projectInfo.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
76
76
 
77
- 11:41:36 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
77
+ 11:11:06 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
78
78
 
79
- 11:41:36 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
79
+ 11:11:06 AM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
80
80
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.6.77 build
2
+ > @prosopo/cli@3.7.0 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/cli@3.6.77 build:cross-env
6
+ > @prosopo/cli@3.7.0 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -84,6 +84,6 @@ dist/start.js 2.49 kB │ gzip: 0.82 kB
84
84
  dist/commands/siteKeyRegisterApi.js 2.97 kB │ gzip: 1.06 kB
85
85
  dist/commands/siteKeyRegister.js 3.30 kB │ gzip: 1.14 kB
86
86
  dist/prosopo.config.js 4.43 kB │ gzip: 1.47 kB
87
- dist/RateLimiter.js 5.00 kB │ gzip: 0.84 kB
87
+ dist/RateLimiter.js 5.02 kB │ gzip: 0.87 kB
88
88
 
89
- ✓ built in 56ms
89
+ ✓ built in 66ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.7.0
4
+ ### Minor Changes
5
+
6
+ - 787017b: chore(detector): remove the legacy detector-key rotation machinery
7
+
8
+ Nothing has read these keys since the detector moved to per-session provider
9
+ bundles — the decrypt paths resolve a bundle's own keypair instead. Rotating
10
+ them was already a no-op, so the whole surface is removed rather than left
11
+ looking live.
12
+
13
+ **Breaking — the admin API loses two endpoints:**
14
+
15
+ - `POST /v1/prosopo/provider/admin/detector/update` (`AdminApiPaths.UpdateDetectorKey`)
16
+ - `POST /v1/prosopo/provider/admin/detector/remove` (`AdminApiPaths.RemoveDetectorKey`)
17
+
18
+ Also removed: `ProviderApi.updateDetectorKey` / `.removeDetectorKey`;
19
+ `ClientTaskManager.updateDetectorKey` / `.removeDetectorKey`;
20
+ `IProviderDatabase.storeDetectorKey` / `.getDetectorKeys` / `.removeDetectorKey`;
21
+ the `detector` Mongo collection and its `DetectorRecordSchema` / `DetectorSchema`
22
+ / `DetectorKey` types; the `UpdateDetectorKeyBody` / `RemoveDetectorKeyBodySpec`
23
+ / `UpdateDetectorKeyResponse` API types; and the rate-limit config for both
24
+ paths.
25
+
26
+ The `detector` collection itself is left in place on existing deployments — no
27
+ migration drops it. It can be dropped manually once the pool rollout is
28
+ confirmed.
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [787017b]
33
+ - Updated dependencies [787017b]
34
+ - Updated dependencies [787017b]
35
+ - Updated dependencies [787017b]
36
+ - Updated dependencies [787017b]
37
+ - Updated dependencies [6f19cde]
38
+ - @prosopo/provider@5.0.0
39
+ - @prosopo/types@5.0.0
40
+ - @prosopo/api@4.0.0
41
+ - @prosopo/env@3.6.23
42
+ - @prosopo/keyring@2.9.63
43
+
3
44
  ## 3.6.77
4
45
  ### Patch Changes
5
46
 
@@ -55,14 +55,6 @@ export declare const getRateLimitConfig: () => {
55
55
  windowMs: string | undefined;
56
56
  limit: string | undefined;
57
57
  };
58
- "/v1/prosopo/provider/admin/detector/update": {
59
- windowMs: string | undefined;
60
- limit: string | undefined;
61
- };
62
- "/v1/prosopo/provider/admin/detector/remove": {
63
- windowMs: string | undefined;
64
- limit: string | undefined;
65
- };
66
58
  "/v1/prosopo/provider/admin/maintenance/toggle": {
67
59
  windowMs: string | undefined;
68
60
  limit: string | undefined;
@@ -111,5 +103,13 @@ export declare const getRateLimitConfig: () => {
111
103
  windowMs: string | undefined;
112
104
  limit: string | undefined;
113
105
  };
106
+ "/v1/prosopo/provider/client/detector/assign": {
107
+ windowMs: string | undefined;
108
+ limit: string | undefined;
109
+ };
110
+ "/v1/prosopo/provider/admin/detector/pool/replace": {
111
+ windowMs: string | undefined;
112
+ limit: string | undefined;
113
+ };
114
114
  };
115
115
  //# sourceMappingURL=RateLimiter.d.ts.map
@@ -58,14 +58,6 @@ var getRateLimitConfig = () => {
58
58
  windowMs: process.env.PROSOPO_SITE_KEYS_REMOVE_WINDOW,
59
59
  limit: process.env.PROSOPO_SITE_KEYS_REMOVE_LIMIT
60
60
  },
61
- [AdminApiPaths.UpdateDetectorKey]: {
62
- windowMs: process.env.PROSOPO_UPDATE_DETECTOR_KEY_WINDOW,
63
- limit: process.env.PROSOPO_UPDATE_DETECTOR_KEY_LIMIT
64
- },
65
- [AdminApiPaths.RemoveDetectorKey]: {
66
- windowMs: process.env.PROSOPO_REMOVE_DETECTOR_KEY_WINDOW,
67
- limit: process.env.PROSOPO_REMOVE_DETECTOR_KEY_LIMIT
68
- },
69
61
  [AdminApiPaths.ToggleMaintenanceMode]: {
70
62
  windowMs: process.env.PROSOPO_TOGGLE_MAINTENANCE_MODE_WINDOW,
71
63
  limit: process.env.PROSOPO_TOGGLE_MAINTENANCE_MODE_LIMIT
@@ -113,6 +105,14 @@ var getRateLimitConfig = () => {
113
105
  [AdminApiPaths.DnsEvent]: {
114
106
  windowMs: process.env.PROSOPO_DNS_EVENT_WINDOW,
115
107
  limit: process.env.PROSOPO_DNS_EVENT_LIMIT
108
+ },
109
+ [ClientApiPaths.AssignDetectorBundle]: {
110
+ windowMs: process.env.PROSOPO_ASSIGN_DETECTOR_BUNDLE_WINDOW,
111
+ limit: process.env.PROSOPO_ASSIGN_DETECTOR_BUNDLE_LIMIT
112
+ },
113
+ [AdminApiPaths.ReplaceDetectorPool]: {
114
+ windowMs: process.env.PROSOPO_REPLACE_DETECTOR_POOL_WINDOW,
115
+ limit: process.env.PROSOPO_REPLACE_DETECTOR_POOL_LIMIT
116
116
  }
117
117
  };
118
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RateLimiter.js","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACtC,OAAO;QACN,CAAC,cAAc,CAAC,wBAAwB,CAAC,EAAE;YAC1C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,0CA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