@prosopo/cli 3.5.7 → 3.5.8

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.
@@ -72,7 +72,12 @@ const commandSiteKeyRegister = (pair, config, cmdArgs) => {
72
72
  disallowWebView: false,
73
73
  contextAware: {
74
74
  enabled: false,
75
- threshold: types.contextAwareThresholdDefault
75
+ contexts: {
76
+ [types.ContextType.Default]: {
77
+ type: types.ContextType.Default,
78
+ threshold: types.contextAwareThresholdDefault
79
+ }
80
+ }
76
81
  }
77
82
  });
78
83
  logger.info(() => ({
@@ -75,11 +75,7 @@ const commandSiteKeyRegisterApi = (pair, authAccount, config, cmdArgs) => {
75
75
  domains: domains || [],
76
76
  powDifficulty: pow_difficulty,
77
77
  imageThreshold: image_threshold,
78
- disallowWebView: false,
79
- contextAware: {
80
- enabled: false,
81
- threshold: types.contextAwareThresholdDefault
82
- }
78
+ disallowWebView: false
83
79
  },
84
80
  timestamp,
85
81
  signature
@@ -1,7 +1,7 @@
1
1
  import { getLogger, LogLevel } from "@prosopo/common";
2
2
  import { ProviderEnvironment } from "@prosopo/env";
3
3
  import { Tasks } from "@prosopo/provider";
4
- import { CaptchaTypeSpec, Tier, contextAwareThresholdDefault } from "@prosopo/types";
4
+ import { CaptchaTypeSpec, Tier, ContextType, contextAwareThresholdDefault } from "@prosopo/types";
5
5
  import { z } from "zod";
6
6
  import { validateSiteKey } from "./validators.js";
7
7
  const SiteKeyRegisterCommandArgsSpec = z.object({
@@ -70,7 +70,12 @@ const commandSiteKeyRegister = (pair, config, cmdArgs) => {
70
70
  disallowWebView: false,
71
71
  contextAware: {
72
72
  enabled: false,
73
- threshold: contextAwareThresholdDefault
73
+ contexts: {
74
+ [ContextType.Default]: {
75
+ type: ContextType.Default,
76
+ threshold: contextAwareThresholdDefault
77
+ }
78
+ }
74
79
  }
75
80
  });
76
81
  logger.info(() => ({
@@ -1,7 +1,7 @@
1
1
  import { ProviderApi } from "@prosopo/api";
2
2
  import { getLogger, LogLevel } from "@prosopo/common";
3
3
  import { ProviderEnvironment } from "@prosopo/env";
4
- import { contextAwareThresholdDefault, CaptchaTypeSpec, Tier } from "@prosopo/types";
4
+ import { CaptchaTypeSpec, Tier } from "@prosopo/types";
5
5
  import { u8aToHex } from "@prosopo/util";
6
6
  import { z } from "zod";
7
7
  import { SiteKeyRegisterCommandArgsSpec } from "./siteKeyRegister.js";
@@ -74,11 +74,7 @@ const commandSiteKeyRegisterApi = (pair, authAccount, config, cmdArgs) => {
74
74
  domains: domains || [],
75
75
  powDifficulty: pow_difficulty,
76
76
  imageThreshold: image_threshold,
77
- disallowWebView: false,
78
- contextAware: {
79
- enabled: false,
80
- threshold: contextAwareThresholdDefault
81
- }
77
+ disallowWebView: false
82
78
  },
83
79
  timestamp,
84
80
  signature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/cli",
3
- "version": "3.5.7",
3
+ "version": "3.5.8",
4
4
  "description": "CLI for Prosopo Provider",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,19 +31,19 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@polkadot/types-codec": "16.4.9",
34
- "@prosopo/api": "3.1.36",
35
- "@prosopo/api-express-router": "3.0.39",
36
- "@prosopo/common": "3.1.25",
37
- "@prosopo/dotenv": "3.0.30",
38
- "@prosopo/env": "3.2.27",
39
- "@prosopo/keyring": "2.8.39",
40
- "@prosopo/locale": "3.1.25",
41
- "@prosopo/provider": "3.13.6",
42
- "@prosopo/types": "3.6.3",
43
- "@prosopo/user-access-policy": "3.5.31",
44
- "@prosopo/util": "3.2.3",
45
- "@prosopo/util-crypto": "13.5.27",
46
- "@prosopo/workspace": "3.1.18",
34
+ "@prosopo/api": "3.1.37",
35
+ "@prosopo/api-express-router": "3.0.40",
36
+ "@prosopo/common": "3.1.26",
37
+ "@prosopo/dotenv": "3.0.31",
38
+ "@prosopo/env": "3.2.28",
39
+ "@prosopo/keyring": "2.8.40",
40
+ "@prosopo/locale": "3.1.26",
41
+ "@prosopo/provider": "3.13.7",
42
+ "@prosopo/types": "3.6.4",
43
+ "@prosopo/user-access-policy": "3.5.32",
44
+ "@prosopo/util": "3.2.4",
45
+ "@prosopo/util-crypto": "13.5.28",
46
+ "@prosopo/workspace": "3.1.19",
47
47
  "cors": "2.8.5",
48
48
  "cron-parser": "4.9.0",
49
49
  "dotenv": "16.4.5",
@@ -52,7 +52,7 @@
52
52
  "zod": "3.23.8"
53
53
  },
54
54
  "devDependencies": {
55
- "@prosopo/config": "3.1.25",
55
+ "@prosopo/config": "3.1.26",
56
56
  "@polkadot-api/substrate-client": "0.1.4",
57
57
  "@types/cors": "2.8.17",
58
58
  "@types/node": "22.10.2",