@prosopo/types 2.7.1 → 3.0.4

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 (122) hide show
  1. package/CHANGELOG.md +85 -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/client/captchaType/captchaType.cjs +4 -0
  6. package/dist/cjs/client/index.cjs +1 -0
  7. package/dist/cjs/client/settings.cjs +1 -1
  8. package/dist/cjs/config/config.cjs +6 -2
  9. package/dist/cjs/datasets/captcha.cjs +8 -0
  10. package/dist/cjs/datasets/index.cjs +1 -0
  11. package/dist/cjs/index.cjs +5 -4
  12. package/dist/cjs/keyring/index.cjs +3 -0
  13. package/dist/cjs/keyring/keyring/types.cjs +1 -0
  14. package/dist/cjs/keyring/pair/types.cjs +1 -0
  15. package/dist/cjs/procaptcha/token.cjs +3 -2
  16. package/dist/cjs/provider/accounts.cjs +0 -7
  17. package/dist/cjs/provider/api.cjs +7 -2
  18. package/dist/cjs/provider/index.cjs +3 -4
  19. package/dist/client/captchaType/captchaType.d.ts +5 -2
  20. package/dist/client/captchaType/captchaType.d.ts.map +1 -1
  21. package/dist/client/captchaType/captchaType.js +13 -8
  22. package/dist/client/captchaType/captchaTypeSpec.js +3 -2
  23. package/dist/client/index.js +18 -5
  24. package/dist/client/settings.d.ts +1 -1
  25. package/dist/client/settings.js +20 -17
  26. package/dist/client/user.js +31 -18
  27. package/dist/config/config.d.ts +18 -0
  28. package/dist/config/config.d.ts.map +1 -1
  29. package/dist/config/config.js +169 -151
  30. package/dist/config/frictionless.js +7 -5
  31. package/dist/config/index.js +32 -5
  32. package/dist/config/network.js +9 -7
  33. package/dist/config/timeouts.js +19 -10
  34. package/dist/datasets/assets.js +1 -2
  35. package/dist/datasets/captcha.d.ts +7 -0
  36. package/dist/datasets/captcha.d.ts.map +1 -1
  37. package/dist/datasets/captcha.js +122 -87
  38. package/dist/datasets/dataset.js +28 -23
  39. package/dist/datasets/index.js +36 -5
  40. package/dist/datasets/merkle.js +1 -2
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +129 -9
  44. package/dist/keyring/index.d.ts +3 -0
  45. package/dist/keyring/index.d.ts.map +1 -0
  46. package/dist/keyring/index.js +2 -0
  47. package/dist/keyring/keyring/types.d.ts +107 -0
  48. package/dist/keyring/keyring/types.d.ts.map +1 -0
  49. package/dist/keyring/keyring/types.js +1 -0
  50. package/dist/keyring/pair/types.d.ts +6 -0
  51. package/dist/keyring/pair/types.d.ts.map +1 -0
  52. package/dist/keyring/pair/types.js +1 -0
  53. package/dist/procaptcha/api.js +1 -2
  54. package/dist/procaptcha/client.d.ts +1 -6
  55. package/dist/procaptcha/client.d.ts.map +1 -1
  56. package/dist/procaptcha/client.js +1 -2
  57. package/dist/procaptcha/collector.js +1 -2
  58. package/dist/procaptcha/index.js +19 -8
  59. package/dist/procaptcha/manager.js +7 -4
  60. package/dist/procaptcha/props.js +1 -2
  61. package/dist/procaptcha/token.d.ts.map +1 -1
  62. package/dist/procaptcha/token.js +79 -63
  63. package/dist/procaptcha/utils.js +1 -2
  64. package/dist/procaptcha-bundle/index.d.ts +2 -0
  65. package/dist/procaptcha-bundle/index.d.ts.map +1 -1
  66. package/dist/procaptcha-bundle/index.js +1 -2
  67. package/dist/procaptcha-frictionless/index.js +1 -2
  68. package/dist/procaptcha-frictionless/props.js +1 -2
  69. package/dist/provider/accounts.d.ts +7 -13
  70. package/dist/provider/accounts.d.ts.map +1 -1
  71. package/dist/provider/accounts.js +1 -6
  72. package/dist/provider/api.d.ts +10 -1
  73. package/dist/provider/api.d.ts.map +1 -1
  74. package/dist/provider/api.js +208 -142
  75. package/dist/provider/index.d.ts +0 -1
  76. package/dist/provider/index.d.ts.map +1 -1
  77. package/dist/provider/index.js +29 -5
  78. package/dist/provider/scheduler.js +18 -15
  79. package/package.json +25 -17
  80. package/vite.cjs.config.ts +4 -1
  81. package/vite.esm.config.ts +20 -0
  82. package/dist/api/api.js.map +0 -1
  83. package/dist/api/index.js.map +0 -1
  84. package/dist/api/params.js.map +0 -1
  85. package/dist/cjs/provider/argv.cjs +0 -6
  86. package/dist/client/captchaType/captchaType.js.map +0 -1
  87. package/dist/client/captchaType/captchaTypeSpec.js.map +0 -1
  88. package/dist/client/index.js.map +0 -1
  89. package/dist/client/settings.js.map +0 -1
  90. package/dist/client/user.js.map +0 -1
  91. package/dist/config/config.js.map +0 -1
  92. package/dist/config/enumMap.js +0 -6
  93. package/dist/config/enumMap.js.map +0 -1
  94. package/dist/config/frictionless.js.map +0 -1
  95. package/dist/config/index.js.map +0 -1
  96. package/dist/config/network.js.map +0 -1
  97. package/dist/config/timeouts.js.map +0 -1
  98. package/dist/datasets/assets.js.map +0 -1
  99. package/dist/datasets/captcha.js.map +0 -1
  100. package/dist/datasets/dataset.js.map +0 -1
  101. package/dist/datasets/index.js.map +0 -1
  102. package/dist/datasets/merkle.js.map +0 -1
  103. package/dist/index.js.map +0 -1
  104. package/dist/procaptcha/api.js.map +0 -1
  105. package/dist/procaptcha/client.js.map +0 -1
  106. package/dist/procaptcha/collector.js.map +0 -1
  107. package/dist/procaptcha/index.js.map +0 -1
  108. package/dist/procaptcha/manager.js.map +0 -1
  109. package/dist/procaptcha/props.js.map +0 -1
  110. package/dist/procaptcha/token.js.map +0 -1
  111. package/dist/procaptcha/utils.js.map +0 -1
  112. package/dist/procaptcha-bundle/index.js.map +0 -1
  113. package/dist/procaptcha-frictionless/index.js.map +0 -1
  114. package/dist/procaptcha-frictionless/props.js.map +0 -1
  115. package/dist/provider/accounts.js.map +0 -1
  116. package/dist/provider/api.js.map +0 -1
  117. package/dist/provider/argv.d.ts +0 -3
  118. package/dist/provider/argv.d.ts.map +0 -1
  119. package/dist/provider/argv.js +0 -4
  120. package/dist/provider/argv.js.map +0 -1
  121. package/dist/provider/index.js.map +0 -1
  122. package/dist/provider/scheduler.js.map +0 -1
@@ -1,101 +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 GovernanceStatus;
23
- (function (GovernanceStatus) {
24
- GovernanceStatus["active"] = "Active";
25
- GovernanceStatus["inactive"] = "Inactive";
26
- })(GovernanceStatus || (GovernanceStatus = {}));
27
- export var DappPayee;
28
- (function (DappPayee) {
29
- DappPayee["provider"] = "Provider";
30
- DappPayee["dapp"] = "Dapp";
31
- DappPayee["any"] = "Any";
32
- })(DappPayee || (DappPayee = {}));
33
- export const TimestampSchema = zNumber();
34
- export const POW_SEPARATOR = "___";
35
- export const PowChallengeIdSchema = custom((val) => {
36
- const valSplit = val.split(POW_SEPARATOR);
37
- try {
38
- Number.parseInt(valSplit[0]);
39
- return valSplit.length === 4;
40
- }
41
- catch (e) {
42
- return false;
43
- }
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
+ }
44
50
  });
45
- export const CaptchaSchema = object({
46
- captchaId: union([string(), zUndefined()]),
47
- captchaContentId: union([string(), zUndefined()]),
48
- salt: string().min(34),
49
- solution: number().array().optional(),
50
- unlabelled: number().array().optional(),
51
- 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()
52
58
  });
53
- export const CaptchaItemSchema = object({
54
- hash: string(),
55
- data: string(),
56
- type: nativeEnum(CaptchaItemTypes),
59
+ const CaptchaItemSchema = object({
60
+ hash: string(),
61
+ data: string(),
62
+ type: nativeEnum(CaptchaItemTypes)
57
63
  });
58
- export const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
59
- hash: string(),
64
+ const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
65
+ hash: string()
60
66
  });
61
- export const LabelledItemSchema = HashedCaptchaItemSchema.extend({
62
- label: string(),
67
+ const LabelledItemSchema = HashedCaptchaItemSchema.extend({
68
+ label: string()
63
69
  });
64
- export const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
65
- label: string().optional(),
70
+ const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
71
+ label: string().optional()
66
72
  });
67
- export const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
68
- items: array(CaptchaItemSchema),
69
- target: string(),
73
+ const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
74
+ items: array(CaptchaItemSchema),
75
+ target: string()
70
76
  });
71
- export const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
72
- solution: string().array().optional(),
73
- unlabelled: string().array().optional(),
77
+ const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
78
+ solution: string().array().optional(),
79
+ unlabelled: string().array().optional()
74
80
  });
75
- export const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
76
- solution: number().array().optional(),
77
- unlabelled: number().array().optional(),
81
+ const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
82
+ solution: number().array().optional(),
83
+ unlabelled: number().array().optional()
78
84
  });
79
- export const CaptchasSchema = array(SelectAllCaptchaSchemaRaw);
80
- export const CaptchasWithNumericSolutionSchema = array(SelectAllCaptchaSchemaWithNumericSolution);
81
- export const CaptchaSolutionSchema = object({
82
- captchaId: string(),
83
- captchaContentId: string(),
84
- solution: string().array(),
85
- 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)
86
94
  });
87
- export const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
88
- export const DataSchema = object({
89
- items: array(MaybeLabelledHashedItemSchema),
95
+ const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
96
+ const DataSchema = object({
97
+ items: array(MaybeLabelledHashedItemSchema)
90
98
  });
91
- export const LabelledDataSchema = object({
92
- items: array(LabelledItemSchema),
99
+ const LabelledDataSchema = object({
100
+ items: array(LabelledItemSchema)
93
101
  });
94
- export const CaptchasContainerSchema = object({
95
- captchas: CaptchasSchema,
96
- format: nativeEnum(CaptchaTypes),
102
+ const CaptchasContainerSchema = object({
103
+ captchas: CaptchasSchema,
104
+ format: nativeEnum(CaptchaTypes)
97
105
  });
98
- export const LabelsContainerSchema = object({
99
- labels: array(string()),
106
+ const LabelsContainerSchema = object({
107
+ labels: array(string())
100
108
  });
101
- //# 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.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from "./provider/index.js";
6
6
  export * from "./procaptcha/index.js";
7
7
  export * from "./procaptcha-bundle/index.js";
8
8
  export * from "./procaptcha-frictionless/index.js";
9
+ export * from "./keyring/index.js";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +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
- //# 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
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./keyring/types.js";
2
+ export * from "./pair/types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keyring/index.ts"],"names":[],"mappings":"AAcA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import "./keyring/types.js";
2
+ import "./pair/types.js";
@@ -0,0 +1,107 @@
1
+ import type { HexString } from "@polkadot/util/types";
2
+ import type { EncryptedJson, Keypair, KeypairType, Prefix } from "@prosopo/util-crypto";
3
+ export interface KeyringOptions {
4
+ ss58Format?: Prefix;
5
+ type?: KeypairType;
6
+ }
7
+ export interface KeyringPair$MetaHardware {
8
+ accountIndex?: number;
9
+ accountOffset?: number;
10
+ addressOffset?: number;
11
+ hardwareType?: "ledger";
12
+ }
13
+ export interface KeyringPair$MetaFlags {
14
+ isDefaultAuthSelected?: boolean;
15
+ isExternal?: boolean;
16
+ isHardware?: boolean;
17
+ isHidden?: boolean;
18
+ isInjected?: boolean;
19
+ isMultisig?: boolean;
20
+ isProxied?: boolean;
21
+ isRecent?: boolean;
22
+ isTesting?: boolean;
23
+ }
24
+ export interface KeyringPair$MetaContract {
25
+ abi: string;
26
+ genesisHash?: HexString | null;
27
+ }
28
+ export interface KeyringPair$MetaExtension {
29
+ source?: string;
30
+ }
31
+ export interface KeyringPair$MetaMultisig {
32
+ threshold?: number;
33
+ who?: string[];
34
+ }
35
+ export interface KeyringPair$MetaParent {
36
+ parentAddress?: string;
37
+ parentName?: string;
38
+ }
39
+ export interface KeyringPair$Meta extends KeyringPair$MetaExtension, KeyringPair$MetaFlags, KeyringPair$MetaHardware, KeyringPair$MetaMultisig, KeyringPair$MetaParent {
40
+ address?: string;
41
+ contract?: KeyringPair$MetaContract;
42
+ genesisHash?: HexString | null;
43
+ name?: string;
44
+ suri?: string;
45
+ tags?: string[];
46
+ type?: KeypairType;
47
+ whenCreated?: number;
48
+ whenEdited?: number;
49
+ whenUsed?: number;
50
+ [key: string]: unknown;
51
+ }
52
+ export interface KeyringPair$Json extends EncryptedJson {
53
+ address: string;
54
+ meta: KeyringPair$Meta;
55
+ }
56
+ export interface SignOptions {
57
+ withType?: boolean;
58
+ }
59
+ export interface KeyringPair {
60
+ readonly address: string;
61
+ readonly addressRaw: Uint8Array;
62
+ readonly meta: KeyringPair$Meta;
63
+ readonly isLocked: boolean;
64
+ readonly publicKey: Uint8Array;
65
+ readonly type: KeypairType;
66
+ decodePkcs8(passphrase?: string, encoded?: Uint8Array): void;
67
+ derive(suri: string, meta?: KeyringPair$Meta): KeyringPair;
68
+ encodePkcs8(passphrase?: string): Uint8Array;
69
+ lock(): void;
70
+ setMeta(meta: KeyringPair$Meta): void;
71
+ sign(message: string | Uint8Array, options?: SignOptions): Uint8Array;
72
+ toJson(passphrase?: string): KeyringPair$Json;
73
+ unlock(passphrase?: string): void;
74
+ verify(message: string | Uint8Array, signature: Uint8Array, signerPublic: string | Uint8Array): boolean;
75
+ vrfSign(message: string | Uint8Array, context?: string | Uint8Array, extra?: string | Uint8Array): Uint8Array;
76
+ vrfVerify(message: string | Uint8Array, vrfResult: Uint8Array, signerPublic: string | Uint8Array, context?: string | Uint8Array, extra?: string | Uint8Array): boolean;
77
+ }
78
+ export interface KeyringPairs {
79
+ add: (pair: KeyringPair) => KeyringPair;
80
+ all: () => KeyringPair[];
81
+ get: (address: string | Uint8Array) => KeyringPair;
82
+ remove: (address: string | Uint8Array) => void;
83
+ }
84
+ export interface KeyringInstance {
85
+ readonly pairs: KeyringPair[];
86
+ readonly publicKeys: Uint8Array[];
87
+ readonly type: KeypairType;
88
+ decodeAddress(encoded: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array;
89
+ encodeAddress(key: Uint8Array | string, ss58Format?: Prefix): string;
90
+ setSS58Format(ss58Format: Prefix): void;
91
+ addPair(pair: KeyringPair): KeyringPair;
92
+ addFromAddress(address: string | Uint8Array, meta?: KeyringPair$Meta, encoded?: Uint8Array | null, type?: KeypairType, ignoreChecksum?: boolean): KeyringPair;
93
+ addFromJson(pair: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
94
+ addFromMnemonic(mnemonic: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
95
+ addFromPair(pair: Keypair, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
96
+ addFromSeed(seed: Uint8Array, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
97
+ addFromUri(suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
98
+ createFromJson(json: KeyringPair$Json, ignoreChecksum?: boolean): KeyringPair;
99
+ createFromPair(pair: Keypair, meta: KeyringPair$Meta, type: KeypairType): KeyringPair;
100
+ createFromUri(suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
101
+ getPair(address: string | Uint8Array): KeyringPair;
102
+ getPairs(): KeyringPair[];
103
+ getPublicKeys(): Uint8Array[];
104
+ removePair(address: string | Uint8Array): void;
105
+ toJson(address: string | Uint8Array, passphrase?: string): KeyringPair$Json;
106
+ }
107
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/keyring/keyring/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EACX,aAAa,EACb,OAAO,EACP,WAAW,EACX,MAAM,EACN,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,cAAc;IAE9B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACxC,YAAY,CAAC,EAAE,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G,UAAU,GAAG,IAAI,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAC5E"}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,6 @@
1
+ export interface PairInfo {
2
+ publicKey: Uint8Array;
3
+ secretKey?: Uint8Array | undefined;
4
+ seed?: Uint8Array | null;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/keyring/pair/types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CACzB"}
@@ -0,0 +1 @@
1
+
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=api.js.map
1
+
@@ -1,9 +1,4 @@
1
- import type { ContractSubmittableResult } from "@polkadot/api-contract/base/Contract";
2
1
  import type { Hash } from "../index.js";
3
2
  import type { CaptchaSolutionResponse } from "../provider/api.js";
4
- export type TCaptchaSubmitResult = [
5
- CaptchaSolutionResponse,
6
- Hash,
7
- ContractSubmittableResult?
8
- ];
3
+ export type TCaptchaSubmitResult = [CaptchaSolutionResponse, Hash];
9
4
  //# sourceMappingURL=client.d.ts.map