@prosopo/types 3.0.3 → 3.0.5

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/api/api.js +1 -2
  3. package/dist/api/index.js +5 -3
  4. package/dist/api/params.js +43 -41
  5. package/dist/cjs/config/config.cjs +2 -2
  6. package/dist/cjs/index.cjs +2 -0
  7. package/dist/cjs/provider/api.cjs +6 -2
  8. package/dist/cjs/provider/index.cjs +2 -0
  9. package/dist/client/captchaType/captchaType.js +11 -9
  10. package/dist/client/captchaType/captchaTypeSpec.js +3 -2
  11. package/dist/client/index.js +18 -5
  12. package/dist/client/settings.js +20 -17
  13. package/dist/client/user.js +31 -18
  14. package/dist/config/config.d.ts.map +1 -1
  15. package/dist/config/config.js +167 -153
  16. package/dist/config/frictionless.js +7 -5
  17. package/dist/config/index.js +32 -5
  18. package/dist/config/network.js +9 -7
  19. package/dist/config/timeouts.js +19 -10
  20. package/dist/datasets/assets.js +1 -2
  21. package/dist/datasets/captcha.js +122 -94
  22. package/dist/datasets/dataset.js +28 -23
  23. package/dist/datasets/index.js +36 -5
  24. package/dist/datasets/merkle.js +1 -2
  25. package/dist/index.js +129 -10
  26. package/dist/keyring/index.js +2 -3
  27. package/dist/keyring/keyring/types.js +1 -2
  28. package/dist/keyring/pair/types.js +1 -2
  29. package/dist/procaptcha/api.js +1 -2
  30. package/dist/procaptcha/client.js +1 -2
  31. package/dist/procaptcha/collector.js +1 -2
  32. package/dist/procaptcha/index.js +19 -8
  33. package/dist/procaptcha/manager.js +7 -4
  34. package/dist/procaptcha/props.js +1 -2
  35. package/dist/procaptcha/token.js +77 -62
  36. package/dist/procaptcha/utils.js +1 -2
  37. package/dist/procaptcha-bundle/index.js +1 -2
  38. package/dist/procaptcha-frictionless/index.js +1 -2
  39. package/dist/procaptcha-frictionless/props.js +1 -2
  40. package/dist/provider/accounts.js +1 -2
  41. package/dist/provider/api.d.ts +3 -0
  42. package/dist/provider/api.d.ts.map +1 -1
  43. package/dist/provider/api.js +208 -143
  44. package/dist/provider/index.js +29 -4
  45. package/dist/provider/scheduler.js +18 -15
  46. package/package.json +18 -15
  47. package/vite.cjs.config.ts +4 -1
  48. package/vite.esm.config.ts +20 -0
  49. package/dist/api/api.js.map +0 -1
  50. package/dist/api/index.js.map +0 -1
  51. package/dist/api/params.js.map +0 -1
  52. package/dist/client/captchaType/captchaType.js.map +0 -1
  53. package/dist/client/captchaType/captchaTypeSpec.js.map +0 -1
  54. package/dist/client/index.js.map +0 -1
  55. package/dist/client/settings.js.map +0 -1
  56. package/dist/client/user.js.map +0 -1
  57. package/dist/config/config.js.map +0 -1
  58. package/dist/config/enumMap.js +0 -6
  59. package/dist/config/enumMap.js.map +0 -1
  60. package/dist/config/frictionless.js.map +0 -1
  61. package/dist/config/index.js.map +0 -1
  62. package/dist/config/network.js.map +0 -1
  63. package/dist/config/timeouts.js.map +0 -1
  64. package/dist/datasets/assets.js.map +0 -1
  65. package/dist/datasets/captcha.js.map +0 -1
  66. package/dist/datasets/dataset.js.map +0 -1
  67. package/dist/datasets/index.js.map +0 -1
  68. package/dist/datasets/merkle.js.map +0 -1
  69. package/dist/index.js.map +0 -1
  70. package/dist/keyring/index.js.map +0 -1
  71. package/dist/keyring/keyring/types.js.map +0 -1
  72. package/dist/keyring/pair/types.js.map +0 -1
  73. package/dist/procaptcha/api.js.map +0 -1
  74. package/dist/procaptcha/client.js.map +0 -1
  75. package/dist/procaptcha/collector.js.map +0 -1
  76. package/dist/procaptcha/index.js.map +0 -1
  77. package/dist/procaptcha/manager.js.map +0 -1
  78. package/dist/procaptcha/props.js.map +0 -1
  79. package/dist/procaptcha/token.js.map +0 -1
  80. package/dist/procaptcha/utils.js.map +0 -1
  81. package/dist/procaptcha-bundle/index.js.map +0 -1
  82. package/dist/procaptcha-frictionless/index.js.map +0 -1
  83. package/dist/procaptcha-frictionless/props.js.map +0 -1
  84. package/dist/provider/accounts.js.map +0 -1
  85. package/dist/provider/api.js.map +0 -1
  86. package/dist/provider/index.js.map +0 -1
  87. package/dist/provider/scheduler.js.map +0 -1
@@ -1,108 +1,136 @@
1
- import { array, custom, nativeEnum, number, object, string, union, number as zNumber, undefined as zUndefined, } from "zod";
2
- export var CaptchaTypes;
3
- (function (CaptchaTypes) {
4
- CaptchaTypes["SelectAll"] = "SelectAll";
5
- })(CaptchaTypes || (CaptchaTypes = {}));
6
- export var CaptchaItemTypes;
7
- (function (CaptchaItemTypes) {
8
- CaptchaItemTypes["Text"] = "text";
9
- CaptchaItemTypes["Image"] = "image";
10
- })(CaptchaItemTypes || (CaptchaItemTypes = {}));
11
- export var CaptchaStates;
12
- (function (CaptchaStates) {
13
- CaptchaStates["Solved"] = "solved";
14
- CaptchaStates["Unsolved"] = "unsolved";
15
- })(CaptchaStates || (CaptchaStates = {}));
16
- export var CaptchaStatus;
17
- (function (CaptchaStatus) {
18
- CaptchaStatus["pending"] = "Pending";
19
- CaptchaStatus["approved"] = "Approved";
20
- CaptchaStatus["disapproved"] = "Disapproved";
21
- })(CaptchaStatus || (CaptchaStatus = {}));
22
- export var StoredStatusNames;
23
- (function (StoredStatusNames) {
24
- StoredStatusNames["notStored"] = "notStored";
25
- StoredStatusNames["userSubmitted"] = "userSubmitted";
26
- StoredStatusNames["serverChecked"] = "serverChecked";
27
- StoredStatusNames["stored"] = "stored";
28
- })(StoredStatusNames || (StoredStatusNames = {}));
29
- export var GovernanceStatus;
30
- (function (GovernanceStatus) {
31
- GovernanceStatus["active"] = "Active";
32
- GovernanceStatus["inactive"] = "Inactive";
33
- })(GovernanceStatus || (GovernanceStatus = {}));
34
- export var DappPayee;
35
- (function (DappPayee) {
36
- DappPayee["provider"] = "Provider";
37
- DappPayee["dapp"] = "Dapp";
38
- DappPayee["any"] = "Any";
39
- })(DappPayee || (DappPayee = {}));
40
- export const TimestampSchema = zNumber();
41
- export const POW_SEPARATOR = "___";
42
- export const PowChallengeIdSchema = custom((val) => {
43
- const valSplit = val.split(POW_SEPARATOR);
44
- try {
45
- Number.parseInt(valSplit[0]);
46
- return valSplit.length === 4;
47
- }
48
- catch (e) {
49
- return false;
50
- }
1
+ import { number, custom, object, string, union, undefined as _undefined, nativeEnum, array } from "zod";
2
+ var CaptchaTypes = /* @__PURE__ */ ((CaptchaTypes2) => {
3
+ CaptchaTypes2["SelectAll"] = "SelectAll";
4
+ return CaptchaTypes2;
5
+ })(CaptchaTypes || {});
6
+ var CaptchaItemTypes = /* @__PURE__ */ ((CaptchaItemTypes2) => {
7
+ CaptchaItemTypes2["Text"] = "text";
8
+ CaptchaItemTypes2["Image"] = "image";
9
+ return CaptchaItemTypes2;
10
+ })(CaptchaItemTypes || {});
11
+ var CaptchaStates = /* @__PURE__ */ ((CaptchaStates2) => {
12
+ CaptchaStates2["Solved"] = "solved";
13
+ CaptchaStates2["Unsolved"] = "unsolved";
14
+ return CaptchaStates2;
15
+ })(CaptchaStates || {});
16
+ var CaptchaStatus = /* @__PURE__ */ ((CaptchaStatus2) => {
17
+ CaptchaStatus2["pending"] = "Pending";
18
+ CaptchaStatus2["approved"] = "Approved";
19
+ CaptchaStatus2["disapproved"] = "Disapproved";
20
+ return CaptchaStatus2;
21
+ })(CaptchaStatus || {});
22
+ var StoredStatusNames = /* @__PURE__ */ ((StoredStatusNames2) => {
23
+ StoredStatusNames2["notStored"] = "notStored";
24
+ StoredStatusNames2["userSubmitted"] = "userSubmitted";
25
+ StoredStatusNames2["serverChecked"] = "serverChecked";
26
+ StoredStatusNames2["stored"] = "stored";
27
+ return StoredStatusNames2;
28
+ })(StoredStatusNames || {});
29
+ var GovernanceStatus = /* @__PURE__ */ ((GovernanceStatus2) => {
30
+ GovernanceStatus2["active"] = "Active";
31
+ GovernanceStatus2["inactive"] = "Inactive";
32
+ return GovernanceStatus2;
33
+ })(GovernanceStatus || {});
34
+ var DappPayee = /* @__PURE__ */ ((DappPayee2) => {
35
+ DappPayee2["provider"] = "Provider";
36
+ DappPayee2["dapp"] = "Dapp";
37
+ DappPayee2["any"] = "Any";
38
+ return DappPayee2;
39
+ })(DappPayee || {});
40
+ const TimestampSchema = number();
41
+ const POW_SEPARATOR = "___";
42
+ const PowChallengeIdSchema = custom((val) => {
43
+ const valSplit = val.split(POW_SEPARATOR);
44
+ try {
45
+ Number.parseInt(valSplit[0]);
46
+ return valSplit.length === 4;
47
+ } catch (e) {
48
+ return false;
49
+ }
51
50
  });
52
- export const CaptchaSchema = object({
53
- captchaId: union([string(), zUndefined()]),
54
- captchaContentId: union([string(), zUndefined()]),
55
- salt: string().min(34),
56
- solution: number().array().optional(),
57
- unlabelled: number().array().optional(),
58
- timeLimit: number().optional(),
51
+ const CaptchaSchema = object({
52
+ captchaId: union([string(), _undefined()]),
53
+ captchaContentId: union([string(), _undefined()]),
54
+ salt: string().min(34),
55
+ solution: number().array().optional(),
56
+ unlabelled: number().array().optional(),
57
+ timeLimit: number().optional()
59
58
  });
60
- export const CaptchaItemSchema = object({
61
- hash: string(),
62
- data: string(),
63
- type: nativeEnum(CaptchaItemTypes),
59
+ const CaptchaItemSchema = object({
60
+ hash: string(),
61
+ data: string(),
62
+ type: nativeEnum(CaptchaItemTypes)
64
63
  });
65
- export const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
66
- hash: string(),
64
+ const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
65
+ hash: string()
67
66
  });
68
- export const LabelledItemSchema = HashedCaptchaItemSchema.extend({
69
- label: string(),
67
+ const LabelledItemSchema = HashedCaptchaItemSchema.extend({
68
+ label: string()
70
69
  });
71
- export const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
72
- label: string().optional(),
70
+ const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
71
+ label: string().optional()
73
72
  });
74
- export const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
75
- items: array(CaptchaItemSchema),
76
- target: string(),
73
+ const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
74
+ items: array(CaptchaItemSchema),
75
+ target: string()
77
76
  });
78
- export const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
79
- solution: string().array().optional(),
80
- unlabelled: string().array().optional(),
77
+ const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
78
+ solution: string().array().optional(),
79
+ unlabelled: string().array().optional()
81
80
  });
82
- export const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
83
- solution: number().array().optional(),
84
- unlabelled: number().array().optional(),
81
+ const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
82
+ solution: number().array().optional(),
83
+ unlabelled: number().array().optional()
85
84
  });
86
- export const CaptchasSchema = array(SelectAllCaptchaSchemaRaw);
87
- export const CaptchasWithNumericSolutionSchema = array(SelectAllCaptchaSchemaWithNumericSolution);
88
- export const CaptchaSolutionSchema = object({
89
- captchaId: string(),
90
- captchaContentId: string(),
91
- solution: string().array(),
92
- salt: string().min(34),
85
+ const CaptchasSchema = array(SelectAllCaptchaSchemaRaw);
86
+ const CaptchasWithNumericSolutionSchema = array(
87
+ SelectAllCaptchaSchemaWithNumericSolution
88
+ );
89
+ const CaptchaSolutionSchema = object({
90
+ captchaId: string(),
91
+ captchaContentId: string(),
92
+ solution: string().array(),
93
+ salt: string().min(34)
93
94
  });
94
- export const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
95
- export const DataSchema = object({
96
- items: array(MaybeLabelledHashedItemSchema),
95
+ const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
96
+ const DataSchema = object({
97
+ items: array(MaybeLabelledHashedItemSchema)
97
98
  });
98
- export const LabelledDataSchema = object({
99
- items: array(LabelledItemSchema),
99
+ const LabelledDataSchema = object({
100
+ items: array(LabelledItemSchema)
100
101
  });
101
- export const CaptchasContainerSchema = object({
102
- captchas: CaptchasSchema,
103
- format: nativeEnum(CaptchaTypes),
102
+ const CaptchasContainerSchema = object({
103
+ captchas: CaptchasSchema,
104
+ format: nativeEnum(CaptchaTypes)
104
105
  });
105
- export const LabelsContainerSchema = object({
106
- labels: array(string()),
106
+ const LabelsContainerSchema = object({
107
+ labels: array(string())
107
108
  });
108
- //# sourceMappingURL=captcha.js.map
109
+ export {
110
+ CaptchaItemSchema,
111
+ CaptchaItemTypes,
112
+ CaptchaSchema,
113
+ CaptchaSolutionArraySchema,
114
+ CaptchaSolutionSchema,
115
+ CaptchaStates,
116
+ CaptchaStatus,
117
+ CaptchaTypes,
118
+ CaptchasContainerSchema,
119
+ CaptchasSchema,
120
+ CaptchasWithNumericSolutionSchema,
121
+ DappPayee,
122
+ DataSchema,
123
+ GovernanceStatus,
124
+ HashedCaptchaItemSchema,
125
+ LabelledDataSchema,
126
+ LabelledItemSchema,
127
+ LabelsContainerSchema,
128
+ MaybeLabelledHashedItemSchema,
129
+ POW_SEPARATOR,
130
+ PowChallengeIdSchema,
131
+ SelectAllCaptchaSchema,
132
+ SelectAllCaptchaSchemaRaw,
133
+ SelectAllCaptchaSchemaWithNumericSolution,
134
+ StoredStatusNames,
135
+ TimestampSchema
136
+ };
@@ -1,27 +1,32 @@
1
- import { array, nativeEnum, number, object, string } from "zod";
2
- import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema, } from "./captcha.js";
3
- export const DatasetSchema = object({
4
- datasetId: string().optional(),
5
- datasetContentId: string().optional(),
6
- captchas: CaptchasSchema,
7
- format: nativeEnum(CaptchaTypes),
8
- solutionTree: array(array(string())).optional(),
9
- contentTree: array(array(string())).optional(),
10
- timeLimit: number().optional(),
1
+ import { object, number, array, string, nativeEnum } from "zod";
2
+ import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema } from "./captcha.js";
3
+ const DatasetSchema = object({
4
+ datasetId: string().optional(),
5
+ datasetContentId: string().optional(),
6
+ captchas: CaptchasSchema,
7
+ format: nativeEnum(CaptchaTypes),
8
+ solutionTree: array(array(string())).optional(),
9
+ contentTree: array(array(string())).optional(),
10
+ timeLimit: number().optional()
11
11
  });
12
- export const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
13
- captchas: CaptchasWithNumericSolutionSchema,
12
+ const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
13
+ captchas: CaptchasWithNumericSolutionSchema
14
14
  });
15
- export const DatasetWithIdsSchema = object({
16
- datasetId: string(),
17
- datasetContentId: string().optional(),
18
- captchas: array(SelectAllCaptchaSchema),
19
- format: nativeEnum(CaptchaTypes),
20
- solutionTree: array(array(string())).optional(),
21
- contentTree: array(array(string())).optional(),
15
+ const DatasetWithIdsSchema = object({
16
+ datasetId: string(),
17
+ datasetContentId: string().optional(),
18
+ captchas: array(SelectAllCaptchaSchema),
19
+ format: nativeEnum(CaptchaTypes),
20
+ solutionTree: array(array(string())).optional(),
21
+ contentTree: array(array(string())).optional()
22
22
  });
23
- export const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
24
- solutionTree: array(array(string())),
25
- contentTree: array(array(string())),
23
+ const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
24
+ solutionTree: array(array(string())),
25
+ contentTree: array(array(string()))
26
26
  });
27
- //# sourceMappingURL=dataset.js.map
27
+ export {
28
+ DatasetSchema,
29
+ DatasetWithIdsAndTreeSchema,
30
+ DatasetWithIdsSchema,
31
+ DatasetWithNumericSolutionSchema
32
+ };
@@ -1,5 +1,36 @@
1
- export * from "./captcha.js";
2
- export * from "./dataset.js";
3
- export * from "./merkle.js";
4
- export * from "./assets.js";
5
- //# sourceMappingURL=index.js.map
1
+ import { CaptchaItemSchema, CaptchaItemTypes, CaptchaSchema, CaptchaSolutionArraySchema, CaptchaSolutionSchema, CaptchaStates, CaptchaStatus, CaptchaTypes, CaptchasContainerSchema, CaptchasSchema, CaptchasWithNumericSolutionSchema, DappPayee, DataSchema, GovernanceStatus, HashedCaptchaItemSchema, LabelledDataSchema, LabelledItemSchema, LabelsContainerSchema, MaybeLabelledHashedItemSchema, POW_SEPARATOR, PowChallengeIdSchema, SelectAllCaptchaSchema, SelectAllCaptchaSchemaRaw, SelectAllCaptchaSchemaWithNumericSolution, StoredStatusNames, TimestampSchema } from "./captcha.js";
2
+ import { DatasetSchema, DatasetWithIdsAndTreeSchema, DatasetWithIdsSchema, DatasetWithNumericSolutionSchema } from "./dataset.js";
3
+ import "./merkle.js";
4
+ import "./assets.js";
5
+ export {
6
+ CaptchaItemSchema,
7
+ CaptchaItemTypes,
8
+ CaptchaSchema,
9
+ CaptchaSolutionArraySchema,
10
+ CaptchaSolutionSchema,
11
+ CaptchaStates,
12
+ CaptchaStatus,
13
+ CaptchaTypes,
14
+ CaptchasContainerSchema,
15
+ CaptchasSchema,
16
+ CaptchasWithNumericSolutionSchema,
17
+ DappPayee,
18
+ DataSchema,
19
+ DatasetSchema,
20
+ DatasetWithIdsAndTreeSchema,
21
+ DatasetWithIdsSchema,
22
+ DatasetWithNumericSolutionSchema,
23
+ GovernanceStatus,
24
+ HashedCaptchaItemSchema,
25
+ LabelledDataSchema,
26
+ LabelledItemSchema,
27
+ LabelsContainerSchema,
28
+ MaybeLabelledHashedItemSchema,
29
+ POW_SEPARATOR,
30
+ PowChallengeIdSchema,
31
+ SelectAllCaptchaSchema,
32
+ SelectAllCaptchaSchemaRaw,
33
+ SelectAllCaptchaSchemaWithNumericSolution,
34
+ StoredStatusNames,
35
+ TimestampSchema
36
+ };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=merkle.js.map
1
+
package/dist/index.js CHANGED
@@ -1,10 +1,129 @@
1
- export * from "./api/index.js";
2
- export * from "./client/index.js";
3
- export * from "./config/index.js";
4
- export * from "./datasets/index.js";
5
- export * from "./provider/index.js";
6
- export * from "./procaptcha/index.js";
7
- export * from "./procaptcha-bundle/index.js";
8
- export * from "./procaptcha-frictionless/index.js";
9
- export * from "./keyring/index.js";
10
- //# sourceMappingURL=index.js.map
1
+ import "./api/index.js";
2
+ import "./client/index.js";
3
+ import "./config/index.js";
4
+ import "./datasets/index.js";
5
+ import "./provider/index.js";
6
+ import "./procaptcha/index.js";
7
+ import "./procaptcha-bundle/index.js";
8
+ import "./procaptcha-frictionless/index.js";
9
+ import "./keyring/index.js";
10
+ import { ApiParams } from "./api/params.js";
11
+ import { Tier, TierMonthlyLimits, TierSchema } from "./client/user.js";
12
+ import { ClientSettingsSchema, captchaTypeDefault, domainsDefault, frictionlessThresholdDefault, imageThresholdDefault, powDifficultyDefault } from "./client/settings.js";
13
+ import { CaptchaType, CaptchaTypeSchema } from "./client/captchaType/captchaType.js";
14
+ import { CaptchaTypeSpec } from "./client/captchaType/captchaTypeSpec.js";
15
+ import { AccountCreatorConfigSchema, CaptchaTimeoutSchema, DatabaseConfigSchema, DatabaseTypes, EnvironmentTypesSchema, Mode, ModeEnum, PolkadotSecretJSONSpec, ProcaptchaConfigSchema, ProsopoBaseConfigSchema, ProsopoBasicConfigSchema, ProsopoCaptchaSolutionConfigSchema, ProsopoClientConfigSchema, ProsopoConfigSchema, ProsopoImageServerConfigSchema, ProsopoServerConfigSchema } from "./config/config.js";
16
+ import { NetworkPairTypeSchema } from "./config/network.js";
17
+ import { DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT, DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED, DEFAULT_MAX_VERIFIED_TIME_CONTRACT, DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT, DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT } from "./config/timeouts.js";
18
+ import { FrictionlessPenalties } from "./config/frictionless.js";
19
+ import { CaptchaItemSchema, CaptchaItemTypes, CaptchaSchema, CaptchaSolutionArraySchema, CaptchaSolutionSchema, CaptchaStates, CaptchaStatus, CaptchaTypes, CaptchasContainerSchema, CaptchasSchema, CaptchasWithNumericSolutionSchema, DappPayee, DataSchema, GovernanceStatus, HashedCaptchaItemSchema, LabelledDataSchema, LabelledItemSchema, LabelsContainerSchema, MaybeLabelledHashedItemSchema, POW_SEPARATOR, PowChallengeIdSchema, SelectAllCaptchaSchema, SelectAllCaptchaSchemaRaw, SelectAllCaptchaSchemaWithNumericSolution, StoredStatusNames, TimestampSchema } from "./datasets/captcha.js";
20
+ import { DatasetSchema, DatasetWithIdsAndTreeSchema, DatasetWithIdsSchema, DatasetWithNumericSolutionSchema } from "./datasets/dataset.js";
21
+ import { AdminApiPaths, ApiPathRateLimits, ApiPrefix, BlockRuleSpec, BlockRuleType, CaptchaRequestBody, CaptchaSolutionBody, ClientApiPaths, DEFAULT_SOLVED_COUNT, DEFAULT_UNSOLVED_COUNT, DappDomainRequestBody, GetFrictionlessCaptchaChallengeRequestBody, GetPowCaptchaChallengeRequestBody, ProsopoCaptchaCountConfigSchema, ProviderDefaultRateLimits, PublicApiPaths, RegisterSitekeyBody, ServerPowCaptchaVerifyRequestBody, SubmitPowCaptchaSolutionBody, UpdateDetectorKeyBody, VerifyPowCaptchaSolutionBody, VerifySolutionBody } from "./provider/api.js";
22
+ import { ScheduledTaskNames, ScheduledTaskStatus } from "./provider/scheduler.js";
23
+ import { ProcaptchaResponse } from "./procaptcha/manager.js";
24
+ import { ChallengeSignatureSchema, ProcaptchaOutputSchema, ProcaptchaTokenCodec, ProcaptchaTokenSpec, RequestHashSignatureSchema, SignatureTypesSchema, TimestampSignatureSchema, decodeProcaptchaOutput, encodeProcaptchaOutput } from "./procaptcha/token.js";
25
+ export {
26
+ AccountCreatorConfigSchema,
27
+ AdminApiPaths,
28
+ ApiParams,
29
+ ApiPathRateLimits,
30
+ ApiPrefix,
31
+ BlockRuleSpec,
32
+ BlockRuleType,
33
+ CaptchaItemSchema,
34
+ CaptchaItemTypes,
35
+ CaptchaRequestBody,
36
+ CaptchaSchema,
37
+ CaptchaSolutionArraySchema,
38
+ CaptchaSolutionBody,
39
+ CaptchaSolutionSchema,
40
+ CaptchaStates,
41
+ CaptchaStatus,
42
+ CaptchaTimeoutSchema,
43
+ CaptchaType,
44
+ CaptchaTypeSchema,
45
+ CaptchaTypeSpec,
46
+ CaptchaTypes,
47
+ CaptchasContainerSchema,
48
+ CaptchasSchema,
49
+ CaptchasWithNumericSolutionSchema,
50
+ ChallengeSignatureSchema,
51
+ ClientApiPaths,
52
+ ClientSettingsSchema,
53
+ DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT,
54
+ DEFAULT_IMAGE_CAPTCHA_TIMEOUT,
55
+ DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT,
56
+ DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED,
57
+ DEFAULT_MAX_VERIFIED_TIME_CONTRACT,
58
+ DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT,
59
+ DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT,
60
+ DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT,
61
+ DEFAULT_SOLVED_COUNT,
62
+ DEFAULT_UNSOLVED_COUNT,
63
+ DappDomainRequestBody,
64
+ DappPayee,
65
+ DataSchema,
66
+ DatabaseConfigSchema,
67
+ DatabaseTypes,
68
+ DatasetSchema,
69
+ DatasetWithIdsAndTreeSchema,
70
+ DatasetWithIdsSchema,
71
+ DatasetWithNumericSolutionSchema,
72
+ EnvironmentTypesSchema,
73
+ FrictionlessPenalties,
74
+ GetFrictionlessCaptchaChallengeRequestBody,
75
+ GetPowCaptchaChallengeRequestBody,
76
+ GovernanceStatus,
77
+ HashedCaptchaItemSchema,
78
+ LabelledDataSchema,
79
+ LabelledItemSchema,
80
+ LabelsContainerSchema,
81
+ MaybeLabelledHashedItemSchema,
82
+ Mode,
83
+ ModeEnum,
84
+ NetworkPairTypeSchema,
85
+ POW_SEPARATOR,
86
+ PolkadotSecretJSONSpec,
87
+ PowChallengeIdSchema,
88
+ ProcaptchaConfigSchema,
89
+ ProcaptchaOutputSchema,
90
+ ProcaptchaResponse,
91
+ ProcaptchaTokenCodec,
92
+ ProcaptchaTokenSpec,
93
+ ProsopoBaseConfigSchema,
94
+ ProsopoBasicConfigSchema,
95
+ ProsopoCaptchaCountConfigSchema,
96
+ ProsopoCaptchaSolutionConfigSchema,
97
+ ProsopoClientConfigSchema,
98
+ ProsopoConfigSchema,
99
+ ProsopoImageServerConfigSchema,
100
+ ProsopoServerConfigSchema,
101
+ ProviderDefaultRateLimits,
102
+ PublicApiPaths,
103
+ RegisterSitekeyBody,
104
+ RequestHashSignatureSchema,
105
+ ScheduledTaskNames,
106
+ ScheduledTaskStatus,
107
+ SelectAllCaptchaSchema,
108
+ SelectAllCaptchaSchemaRaw,
109
+ SelectAllCaptchaSchemaWithNumericSolution,
110
+ ServerPowCaptchaVerifyRequestBody,
111
+ SignatureTypesSchema,
112
+ StoredStatusNames,
113
+ SubmitPowCaptchaSolutionBody,
114
+ Tier,
115
+ TierMonthlyLimits,
116
+ TierSchema,
117
+ TimestampSchema,
118
+ TimestampSignatureSchema,
119
+ UpdateDetectorKeyBody,
120
+ VerifyPowCaptchaSolutionBody,
121
+ VerifySolutionBody,
122
+ captchaTypeDefault,
123
+ decodeProcaptchaOutput,
124
+ domainsDefault,
125
+ encodeProcaptchaOutput,
126
+ frictionlessThresholdDefault,
127
+ imageThresholdDefault,
128
+ powDifficultyDefault
129
+ };
@@ -1,3 +1,2 @@
1
- export * from "./keyring/types.js";
2
- export * from "./pair/types.js";
3
- //# sourceMappingURL=index.js.map
1
+ import "./keyring/types.js";
2
+ import "./pair/types.js";
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
1
+
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
1
+
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=api.js.map
1
+
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=client.js.map
1
+
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=collector.js.map
1
+
@@ -1,8 +1,19 @@
1
- export * from "./api.js";
2
- export * from "./client.js";
3
- export * from "./collector.js";
4
- export * from "./manager.js";
5
- export * from "./props.js";
6
- export * from "./token.js";
7
- export * from "./utils.js";
8
- //# sourceMappingURL=index.js.map
1
+ import "./api.js";
2
+ import "./client.js";
3
+ import "./collector.js";
4
+ import { ProcaptchaResponse } from "./manager.js";
5
+ import "./props.js";
6
+ import { ChallengeSignatureSchema, ProcaptchaOutputSchema, ProcaptchaTokenCodec, ProcaptchaTokenSpec, RequestHashSignatureSchema, SignatureTypesSchema, TimestampSignatureSchema, decodeProcaptchaOutput, encodeProcaptchaOutput } from "./token.js";
7
+ import "./utils.js";
8
+ export {
9
+ ChallengeSignatureSchema,
10
+ ProcaptchaOutputSchema,
11
+ ProcaptchaResponse,
12
+ ProcaptchaTokenCodec,
13
+ ProcaptchaTokenSpec,
14
+ RequestHashSignatureSchema,
15
+ SignatureTypesSchema,
16
+ TimestampSignatureSchema,
17
+ decodeProcaptchaOutput,
18
+ encodeProcaptchaOutput
19
+ };
@@ -1,7 +1,10 @@
1
1
  import { object } from "zod";
2
- import { ApiParams } from "../api/index.js";
2
+ import "../api/index.js";
3
3
  import { ProcaptchaTokenSpec } from "./token.js";
4
- export const ProcaptchaResponse = object({
5
- [ApiParams.procaptchaResponse]: ProcaptchaTokenSpec,
4
+ import { ApiParams } from "../api/params.js";
5
+ const ProcaptchaResponse = object({
6
+ [ApiParams.procaptchaResponse]: ProcaptchaTokenSpec
6
7
  });
7
- //# sourceMappingURL=manager.js.map
8
+ export {
9
+ ProcaptchaResponse
10
+ };
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=props.js.map
1
+