@prosopo/types 2.1.1 → 2.1.2

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 (194) hide show
  1. package/package.json +4 -4
  2. package/dist/api/api.d.ts +0 -15
  3. package/dist/api/api.d.ts.map +0 -1
  4. package/dist/api/api.js +0 -2
  5. package/dist/api/api.js.map +0 -1
  6. package/dist/api/index.d.ts +0 -3
  7. package/dist/api/index.d.ts.map +0 -1
  8. package/dist/api/index.js +0 -3
  9. package/dist/api/index.js.map +0 -1
  10. package/dist/api/params.d.ts +0 -30
  11. package/dist/api/params.d.ts.map +0 -1
  12. package/dist/api/params.js +0 -31
  13. package/dist/api/params.js.map +0 -1
  14. package/dist/cjs/api/api.cjs +0 -1
  15. package/dist/cjs/api/index.cjs +0 -5
  16. package/dist/cjs/api/params.cjs +0 -33
  17. package/dist/cjs/client/index.cjs +0 -5
  18. package/dist/cjs/client/user.cjs +0 -30
  19. package/dist/cjs/config/config.cjs +0 -201
  20. package/dist/cjs/config/index.cjs +0 -29
  21. package/dist/cjs/config/network.cjs +0 -10
  22. package/dist/cjs/config/timeouts.cjs +0 -19
  23. package/dist/cjs/contract/artifacts.cjs +0 -152
  24. package/dist/cjs/contract/batch.cjs +0 -1
  25. package/dist/cjs/contract/contract.cjs +0 -1
  26. package/dist/cjs/contract/index.cjs +0 -22
  27. package/dist/cjs/contract/interface.cjs +0 -1
  28. package/dist/cjs/contract/useWeight.cjs +0 -1
  29. package/dist/cjs/datasets/assets.cjs +0 -1
  30. package/dist/cjs/datasets/captcha.cjs +0 -128
  31. package/dist/cjs/datasets/dataset.cjs +0 -32
  32. package/dist/cjs/datasets/index.cjs +0 -35
  33. package/dist/cjs/datasets/merkle.cjs +0 -1
  34. package/dist/cjs/index.cjs +0 -123
  35. package/dist/cjs/procaptcha/api.cjs +0 -1
  36. package/dist/cjs/procaptcha/client.cjs +0 -1
  37. package/dist/cjs/procaptcha/collector.cjs +0 -1
  38. package/dist/cjs/procaptcha/index.cjs +0 -20
  39. package/dist/cjs/procaptcha/manager.cjs +0 -10
  40. package/dist/cjs/procaptcha/props.cjs +0 -1
  41. package/dist/cjs/procaptcha/storage.cjs +0 -9
  42. package/dist/cjs/procaptcha/token.cjs +0 -85
  43. package/dist/cjs/procaptcha/utils.cjs +0 -1
  44. package/dist/cjs/procaptcha-bundle/index.cjs +0 -9
  45. package/dist/cjs/procaptcha-frictionless/index.cjs +0 -2
  46. package/dist/cjs/procaptcha-frictionless/props.cjs +0 -1
  47. package/dist/cjs/provider/accounts.cjs +0 -8
  48. package/dist/cjs/provider/api.cjs +0 -163
  49. package/dist/cjs/provider/argv.cjs +0 -6
  50. package/dist/cjs/provider/index.cjs +0 -21
  51. package/dist/cjs/provider/scheduler.cjs +0 -18
  52. package/dist/client/index.d.ts +0 -2
  53. package/dist/client/index.d.ts.map +0 -1
  54. package/dist/client/index.js +0 -2
  55. package/dist/client/index.js.map +0 -1
  56. package/dist/client/user.d.ts +0 -36
  57. package/dist/client/user.d.ts.map +0 -1
  58. package/dist/client/user.js +0 -18
  59. package/dist/client/user.js.map +0 -1
  60. package/dist/config/config.d.ts +0 -1324
  61. package/dist/config/config.d.ts.map +0 -1
  62. package/dist/config/config.js +0 -199
  63. package/dist/config/config.js.map +0 -1
  64. package/dist/config/enumMap.d.ts +0 -3
  65. package/dist/config/enumMap.d.ts.map +0 -1
  66. package/dist/config/enumMap.js +0 -6
  67. package/dist/config/enumMap.js.map +0 -1
  68. package/dist/config/index.d.ts +0 -4
  69. package/dist/config/index.d.ts.map +0 -1
  70. package/dist/config/index.js +0 -4
  71. package/dist/config/index.js.map +0 -1
  72. package/dist/config/network.d.ts +0 -2
  73. package/dist/config/network.d.ts.map +0 -1
  74. package/dist/config/network.js +0 -8
  75. package/dist/config/network.js.map +0 -1
  76. package/dist/config/timeouts.d.ts +0 -9
  77. package/dist/config/timeouts.d.ts.map +0 -1
  78. package/dist/config/timeouts.js +0 -10
  79. package/dist/config/timeouts.js.map +0 -1
  80. package/dist/contract/artifacts.d.ts +0 -3640
  81. package/dist/contract/artifacts.d.ts.map +0 -1
  82. package/dist/contract/artifacts.js +0 -127
  83. package/dist/contract/artifacts.js.map +0 -1
  84. package/dist/contract/batch.d.ts +0 -11
  85. package/dist/contract/batch.d.ts.map +0 -1
  86. package/dist/contract/batch.js +0 -2
  87. package/dist/contract/batch.js.map +0 -1
  88. package/dist/contract/contract.d.ts +0 -14
  89. package/dist/contract/contract.d.ts.map +0 -1
  90. package/dist/contract/contract.js +0 -2
  91. package/dist/contract/contract.js.map +0 -1
  92. package/dist/contract/index.d.ts +0 -6
  93. package/dist/contract/index.d.ts.map +0 -1
  94. package/dist/contract/index.js +0 -6
  95. package/dist/contract/index.js.map +0 -1
  96. package/dist/contract/interface.d.ts +0 -29
  97. package/dist/contract/interface.d.ts.map +0 -1
  98. package/dist/contract/interface.js +0 -2
  99. package/dist/contract/interface.js.map +0 -1
  100. package/dist/contract/useWeight.d.ts +0 -15
  101. package/dist/contract/useWeight.d.ts.map +0 -1
  102. package/dist/contract/useWeight.js +0 -2
  103. package/dist/contract/useWeight.js.map +0 -1
  104. package/dist/datasets/assets.d.ts +0 -8
  105. package/dist/datasets/assets.d.ts.map +0 -1
  106. package/dist/datasets/assets.js +0 -2
  107. package/dist/datasets/assets.js.map +0 -1
  108. package/dist/datasets/captcha.d.ts +0 -662
  109. package/dist/datasets/captcha.d.ts.map +0 -1
  110. package/dist/datasets/captcha.js +0 -101
  111. package/dist/datasets/captcha.js.map +0 -1
  112. package/dist/datasets/dataset.d.ts +0 -482
  113. package/dist/datasets/dataset.d.ts.map +0 -1
  114. package/dist/datasets/dataset.js +0 -27
  115. package/dist/datasets/dataset.js.map +0 -1
  116. package/dist/datasets/index.d.ts +0 -5
  117. package/dist/datasets/index.d.ts.map +0 -1
  118. package/dist/datasets/index.js +0 -5
  119. package/dist/datasets/index.js.map +0 -1
  120. package/dist/datasets/merkle.d.ts +0 -10
  121. package/dist/datasets/merkle.d.ts.map +0 -1
  122. package/dist/datasets/merkle.js +0 -2
  123. package/dist/datasets/merkle.js.map +0 -1
  124. package/dist/index.d.ts +0 -10
  125. package/dist/index.d.ts.map +0 -1
  126. package/dist/index.js.map +0 -1
  127. package/dist/procaptcha/api.d.ts +0 -14
  128. package/dist/procaptcha/api.d.ts.map +0 -1
  129. package/dist/procaptcha/api.js +0 -2
  130. package/dist/procaptcha/api.js.map +0 -1
  131. package/dist/procaptcha/client.d.ts +0 -9
  132. package/dist/procaptcha/client.d.ts.map +0 -1
  133. package/dist/procaptcha/client.js +0 -2
  134. package/dist/procaptcha/client.js.map +0 -1
  135. package/dist/procaptcha/collector.d.ts +0 -25
  136. package/dist/procaptcha/collector.d.ts.map +0 -1
  137. package/dist/procaptcha/collector.js +0 -2
  138. package/dist/procaptcha/collector.js.map +0 -1
  139. package/dist/procaptcha/index.d.ts +0 -9
  140. package/dist/procaptcha/index.d.ts.map +0 -1
  141. package/dist/procaptcha/index.js +0 -9
  142. package/dist/procaptcha/index.js.map +0 -1
  143. package/dist/procaptcha/manager.d.ts +0 -46
  144. package/dist/procaptcha/manager.d.ts.map +0 -1
  145. package/dist/procaptcha/manager.js +0 -7
  146. package/dist/procaptcha/manager.js.map +0 -1
  147. package/dist/procaptcha/props.d.ts +0 -7
  148. package/dist/procaptcha/props.d.ts.map +0 -1
  149. package/dist/procaptcha/props.js +0 -2
  150. package/dist/procaptcha/props.js.map +0 -1
  151. package/dist/procaptcha/storage.d.ts +0 -16
  152. package/dist/procaptcha/storage.d.ts.map +0 -1
  153. package/dist/procaptcha/storage.js +0 -7
  154. package/dist/procaptcha/storage.js.map +0 -1
  155. package/dist/procaptcha/token.d.ts +0 -154
  156. package/dist/procaptcha/token.d.ts.map +0 -1
  157. package/dist/procaptcha/token.js +0 -71
  158. package/dist/procaptcha/token.js.map +0 -1
  159. package/dist/procaptcha/utils.d.ts +0 -2
  160. package/dist/procaptcha/utils.d.ts.map +0 -1
  161. package/dist/procaptcha/utils.js +0 -2
  162. package/dist/procaptcha/utils.js.map +0 -1
  163. package/dist/procaptcha-bundle/index.d.ts +0 -22
  164. package/dist/procaptcha-bundle/index.d.ts.map +0 -1
  165. package/dist/procaptcha-bundle/index.js +0 -7
  166. package/dist/procaptcha-bundle/index.js.map +0 -1
  167. package/dist/procaptcha-frictionless/index.d.ts +0 -2
  168. package/dist/procaptcha-frictionless/index.d.ts.map +0 -1
  169. package/dist/procaptcha-frictionless/index.js +0 -2
  170. package/dist/procaptcha-frictionless/index.js.map +0 -1
  171. package/dist/procaptcha-frictionless/props.d.ts +0 -8
  172. package/dist/procaptcha-frictionless/props.d.ts.map +0 -1
  173. package/dist/procaptcha-frictionless/props.js +0 -2
  174. package/dist/procaptcha-frictionless/props.js.map +0 -1
  175. package/dist/provider/accounts.d.ts +0 -25
  176. package/dist/provider/accounts.d.ts.map +0 -1
  177. package/dist/provider/accounts.js +0 -6
  178. package/dist/provider/accounts.js.map +0 -1
  179. package/dist/provider/api.d.ts +0 -497
  180. package/dist/provider/api.d.ts.map +0 -1
  181. package/dist/provider/api.js +0 -106
  182. package/dist/provider/api.js.map +0 -1
  183. package/dist/provider/argv.d.ts +0 -3
  184. package/dist/provider/argv.d.ts.map +0 -1
  185. package/dist/provider/argv.js +0 -4
  186. package/dist/provider/argv.js.map +0 -1
  187. package/dist/provider/index.d.ts +0 -5
  188. package/dist/provider/index.d.ts.map +0 -1
  189. package/dist/provider/index.js +0 -5
  190. package/dist/provider/index.js.map +0 -1
  191. package/dist/provider/scheduler.d.ts +0 -17
  192. package/dist/provider/scheduler.d.ts.map +0 -1
  193. package/dist/provider/scheduler.js +0 -15
  194. package/dist/provider/scheduler.js.map +0 -1
@@ -1,101 +0,0 @@
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 === 3;
40
- }
41
- catch (e) {
42
- return false;
43
- }
44
- });
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(),
52
- });
53
- export const CaptchaItemSchema = object({
54
- hash: string(),
55
- data: string(),
56
- type: nativeEnum(CaptchaItemTypes),
57
- });
58
- export const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
59
- hash: string(),
60
- });
61
- export const LabelledItemSchema = HashedCaptchaItemSchema.extend({
62
- label: string(),
63
- });
64
- export const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
65
- label: string().optional(),
66
- });
67
- export const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
68
- items: array(CaptchaItemSchema),
69
- target: string(),
70
- });
71
- export const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
72
- solution: string().array().optional(),
73
- unlabelled: string().array().optional(),
74
- });
75
- export const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
76
- solution: number().array().optional(),
77
- unlabelled: number().array().optional(),
78
- });
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),
86
- });
87
- export const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
88
- export const DataSchema = object({
89
- items: array(MaybeLabelledHashedItemSchema),
90
- });
91
- export const LabelledDataSchema = object({
92
- items: array(LabelledItemSchema),
93
- });
94
- export const CaptchasContainerSchema = object({
95
- captchas: CaptchasSchema,
96
- format: nativeEnum(CaptchaTypes),
97
- });
98
- export const LabelsContainerSchema = object({
99
- labels: array(string()),
100
- });
101
- //# sourceMappingURL=captcha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"captcha.js","sourceRoot":"","sources":["../../src/datasets/captcha.ts"],"names":[],"mappings":"AAeA,OAAO,EACN,KAAK,EACL,MAAM,EACN,UAAU,EACV,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EAEL,MAAM,IAAI,OAAO,EACjB,SAAS,IAAI,UAAU,GACvB,MAAM,KAAK,CAAC;AAEb,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACvB,uCAAuB,CAAA;AACxB,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB;AACD,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,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AC"}
@@ -1,482 +0,0 @@
1
- import type { Hash } from "@prosopo/types";
2
- import { type Captcha, CaptchaTypes, type CaptchaWithoutId } from "./captcha.js";
3
- export type DatasetBase = {
4
- datasetId?: Hash;
5
- datasetContentId?: Hash;
6
- format: CaptchaTypes;
7
- contentTree?: string[][];
8
- solutionTree?: string[][];
9
- };
10
- export interface Dataset extends DatasetBase {
11
- captchas: CaptchaWithoutId[] | Captcha[];
12
- }
13
- export interface DatasetRaw extends DatasetBase {
14
- captchas: CaptchaWithoutId[];
15
- }
16
- export type DatasetWithIds = {
17
- datasetId: Hash;
18
- datasetContentId: Hash;
19
- captchas: Captcha[];
20
- format: CaptchaTypes;
21
- contentTree?: string[][];
22
- solutionTree?: string[][];
23
- };
24
- export interface DatasetWithIdsAndTree extends DatasetWithIds {
25
- contentTree: string[][];
26
- }
27
- export declare const DatasetSchema: import("zod").ZodObject<{
28
- datasetId: import("zod").ZodOptional<import("zod").ZodString>;
29
- datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
30
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
31
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
32
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
33
- salt: import("zod").ZodString;
34
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
35
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
36
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
37
- }, {
38
- items: import("zod").ZodArray<import("zod").ZodObject<{
39
- hash: import("zod").ZodString;
40
- data: import("zod").ZodString;
41
- type: import("zod").ZodNativeEnum<typeof import("@prosopo/types").CaptchaItemTypes>;
42
- }, "strip", import("zod").ZodTypeAny, {
43
- hash: string;
44
- data: string;
45
- type: import("@prosopo/types").CaptchaItemTypes;
46
- }, {
47
- hash: string;
48
- data: string;
49
- type: import("@prosopo/types").CaptchaItemTypes;
50
- }>, "many">;
51
- target: import("zod").ZodString;
52
- }>, "strip", import("zod").ZodTypeAny, {
53
- items: {
54
- hash: string;
55
- data: string;
56
- type: import("@prosopo/types").CaptchaItemTypes;
57
- }[];
58
- salt: string;
59
- target: string;
60
- captchaId?: string | undefined;
61
- captchaContentId?: string | undefined;
62
- solution?: number[] | undefined;
63
- unlabelled?: number[] | undefined;
64
- timeLimit?: number | undefined;
65
- }, {
66
- items: {
67
- hash: string;
68
- data: string;
69
- type: import("@prosopo/types").CaptchaItemTypes;
70
- }[];
71
- salt: string;
72
- target: string;
73
- captchaId?: string | undefined;
74
- captchaContentId?: string | undefined;
75
- solution?: number[] | undefined;
76
- unlabelled?: number[] | undefined;
77
- timeLimit?: number | undefined;
78
- }>, "many">;
79
- format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
80
- solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
81
- contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
82
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
83
- }, "strip", import("zod").ZodTypeAny, {
84
- captchas: {
85
- items: {
86
- hash: string;
87
- data: string;
88
- type: import("@prosopo/types").CaptchaItemTypes;
89
- }[];
90
- salt: string;
91
- target: string;
92
- captchaId?: string | undefined;
93
- captchaContentId?: string | undefined;
94
- solution?: number[] | undefined;
95
- unlabelled?: number[] | undefined;
96
- timeLimit?: number | undefined;
97
- }[];
98
- format: CaptchaTypes;
99
- timeLimit?: number | undefined;
100
- datasetId?: string | undefined;
101
- datasetContentId?: string | undefined;
102
- solutionTree?: string[][] | undefined;
103
- contentTree?: string[][] | undefined;
104
- }, {
105
- captchas: {
106
- items: {
107
- hash: string;
108
- data: string;
109
- type: import("@prosopo/types").CaptchaItemTypes;
110
- }[];
111
- salt: string;
112
- target: string;
113
- captchaId?: string | undefined;
114
- captchaContentId?: string | undefined;
115
- solution?: number[] | undefined;
116
- unlabelled?: number[] | undefined;
117
- timeLimit?: number | undefined;
118
- }[];
119
- format: CaptchaTypes;
120
- timeLimit?: number | undefined;
121
- datasetId?: string | undefined;
122
- datasetContentId?: string | undefined;
123
- solutionTree?: string[][] | undefined;
124
- contentTree?: string[][] | undefined;
125
- }>;
126
- export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
127
- datasetId: import("zod").ZodOptional<import("zod").ZodString>;
128
- datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
129
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
130
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
131
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
132
- salt: import("zod").ZodString;
133
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
134
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
135
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
136
- }, {
137
- items: import("zod").ZodArray<import("zod").ZodObject<{
138
- hash: import("zod").ZodString;
139
- data: import("zod").ZodString;
140
- type: import("zod").ZodNativeEnum<typeof import("@prosopo/types").CaptchaItemTypes>;
141
- }, "strip", import("zod").ZodTypeAny, {
142
- hash: string;
143
- data: string;
144
- type: import("@prosopo/types").CaptchaItemTypes;
145
- }, {
146
- hash: string;
147
- data: string;
148
- type: import("@prosopo/types").CaptchaItemTypes;
149
- }>, "many">;
150
- target: import("zod").ZodString;
151
- }>, "strip", import("zod").ZodTypeAny, {
152
- items: {
153
- hash: string;
154
- data: string;
155
- type: import("@prosopo/types").CaptchaItemTypes;
156
- }[];
157
- salt: string;
158
- target: string;
159
- captchaId?: string | undefined;
160
- captchaContentId?: string | undefined;
161
- solution?: number[] | undefined;
162
- unlabelled?: number[] | undefined;
163
- timeLimit?: number | undefined;
164
- }, {
165
- items: {
166
- hash: string;
167
- data: string;
168
- type: import("@prosopo/types").CaptchaItemTypes;
169
- }[];
170
- salt: string;
171
- target: string;
172
- captchaId?: string | undefined;
173
- captchaContentId?: string | undefined;
174
- solution?: number[] | undefined;
175
- unlabelled?: number[] | undefined;
176
- timeLimit?: number | undefined;
177
- }>, "many">;
178
- format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
179
- solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
180
- contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
181
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
182
- }, {
183
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
184
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
185
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
186
- salt: import("zod").ZodString;
187
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
188
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
189
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
190
- }, {
191
- items: import("zod").ZodArray<import("zod").ZodObject<{
192
- hash: import("zod").ZodString;
193
- data: import("zod").ZodString;
194
- type: import("zod").ZodNativeEnum<typeof import("@prosopo/types").CaptchaItemTypes>;
195
- }, "strip", import("zod").ZodTypeAny, {
196
- hash: string;
197
- data: string;
198
- type: import("@prosopo/types").CaptchaItemTypes;
199
- }, {
200
- hash: string;
201
- data: string;
202
- type: import("@prosopo/types").CaptchaItemTypes;
203
- }>, "many">;
204
- target: import("zod").ZodString;
205
- }>, {
206
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
207
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
208
- }>, {
209
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
210
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
211
- }>, "strip", import("zod").ZodTypeAny, {
212
- items: {
213
- hash: string;
214
- data: string;
215
- type: import("@prosopo/types").CaptchaItemTypes;
216
- }[];
217
- salt: string;
218
- target: string;
219
- captchaId?: string | undefined;
220
- captchaContentId?: string | undefined;
221
- solution?: number[] | undefined;
222
- unlabelled?: number[] | undefined;
223
- timeLimit?: number | undefined;
224
- }, {
225
- items: {
226
- hash: string;
227
- data: string;
228
- type: import("@prosopo/types").CaptchaItemTypes;
229
- }[];
230
- salt: string;
231
- target: string;
232
- captchaId?: string | undefined;
233
- captchaContentId?: string | undefined;
234
- solution?: number[] | undefined;
235
- unlabelled?: number[] | undefined;
236
- timeLimit?: number | undefined;
237
- }>, "many">;
238
- }>, "strip", import("zod").ZodTypeAny, {
239
- captchas: {
240
- items: {
241
- hash: string;
242
- data: string;
243
- type: import("@prosopo/types").CaptchaItemTypes;
244
- }[];
245
- salt: string;
246
- target: string;
247
- captchaId?: string | undefined;
248
- captchaContentId?: string | undefined;
249
- solution?: number[] | undefined;
250
- unlabelled?: number[] | undefined;
251
- timeLimit?: number | undefined;
252
- }[];
253
- format: CaptchaTypes;
254
- timeLimit?: number | undefined;
255
- datasetId?: string | undefined;
256
- datasetContentId?: string | undefined;
257
- solutionTree?: string[][] | undefined;
258
- contentTree?: string[][] | undefined;
259
- }, {
260
- captchas: {
261
- items: {
262
- hash: string;
263
- data: string;
264
- type: import("@prosopo/types").CaptchaItemTypes;
265
- }[];
266
- salt: string;
267
- target: string;
268
- captchaId?: string | undefined;
269
- captchaContentId?: string | undefined;
270
- solution?: number[] | undefined;
271
- unlabelled?: number[] | undefined;
272
- timeLimit?: number | undefined;
273
- }[];
274
- format: CaptchaTypes;
275
- timeLimit?: number | undefined;
276
- datasetId?: string | undefined;
277
- datasetContentId?: string | undefined;
278
- solutionTree?: string[][] | undefined;
279
- contentTree?: string[][] | undefined;
280
- }>;
281
- export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
282
- datasetId: import("zod").ZodString;
283
- datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
284
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
285
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
286
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
287
- salt: import("zod").ZodString;
288
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
289
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
290
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
291
- }, {
292
- items: import("zod").ZodArray<import("zod").ZodObject<{
293
- hash: import("zod").ZodString;
294
- data: import("zod").ZodString;
295
- type: import("zod").ZodNativeEnum<typeof import("@prosopo/types").CaptchaItemTypes>;
296
- }, "strip", import("zod").ZodTypeAny, {
297
- hash: string;
298
- data: string;
299
- type: import("@prosopo/types").CaptchaItemTypes;
300
- }, {
301
- hash: string;
302
- data: string;
303
- type: import("@prosopo/types").CaptchaItemTypes;
304
- }>, "many">;
305
- target: import("zod").ZodString;
306
- }>, {
307
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
308
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
309
- }>, "strip", import("zod").ZodTypeAny, {
310
- items: {
311
- hash: string;
312
- data: string;
313
- type: import("@prosopo/types").CaptchaItemTypes;
314
- }[];
315
- salt: string;
316
- target: string;
317
- captchaId?: string | undefined;
318
- captchaContentId?: string | undefined;
319
- solution?: string[] | undefined;
320
- unlabelled?: string[] | undefined;
321
- timeLimit?: number | undefined;
322
- }, {
323
- items: {
324
- hash: string;
325
- data: string;
326
- type: import("@prosopo/types").CaptchaItemTypes;
327
- }[];
328
- salt: string;
329
- target: string;
330
- captchaId?: string | undefined;
331
- captchaContentId?: string | undefined;
332
- solution?: string[] | undefined;
333
- unlabelled?: string[] | undefined;
334
- timeLimit?: number | undefined;
335
- }>, "many">;
336
- format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
337
- solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
338
- contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
339
- }, "strip", import("zod").ZodTypeAny, {
340
- captchas: {
341
- items: {
342
- hash: string;
343
- data: string;
344
- type: import("@prosopo/types").CaptchaItemTypes;
345
- }[];
346
- salt: string;
347
- target: string;
348
- captchaId?: string | undefined;
349
- captchaContentId?: string | undefined;
350
- solution?: string[] | undefined;
351
- unlabelled?: string[] | undefined;
352
- timeLimit?: number | undefined;
353
- }[];
354
- format: CaptchaTypes;
355
- datasetId: string;
356
- datasetContentId?: string | undefined;
357
- solutionTree?: string[][] | undefined;
358
- contentTree?: string[][] | undefined;
359
- }, {
360
- captchas: {
361
- items: {
362
- hash: string;
363
- data: string;
364
- type: import("@prosopo/types").CaptchaItemTypes;
365
- }[];
366
- salt: string;
367
- target: string;
368
- captchaId?: string | undefined;
369
- captchaContentId?: string | undefined;
370
- solution?: string[] | undefined;
371
- unlabelled?: string[] | undefined;
372
- timeLimit?: number | undefined;
373
- }[];
374
- format: CaptchaTypes;
375
- datasetId: string;
376
- datasetContentId?: string | undefined;
377
- solutionTree?: string[][] | undefined;
378
- contentTree?: string[][] | undefined;
379
- }>;
380
- export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
381
- datasetId: import("zod").ZodString;
382
- datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
383
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
384
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
385
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
386
- salt: import("zod").ZodString;
387
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
388
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
389
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
390
- }, {
391
- items: import("zod").ZodArray<import("zod").ZodObject<{
392
- hash: import("zod").ZodString;
393
- data: import("zod").ZodString;
394
- type: import("zod").ZodNativeEnum<typeof import("@prosopo/types").CaptchaItemTypes>;
395
- }, "strip", import("zod").ZodTypeAny, {
396
- hash: string;
397
- data: string;
398
- type: import("@prosopo/types").CaptchaItemTypes;
399
- }, {
400
- hash: string;
401
- data: string;
402
- type: import("@prosopo/types").CaptchaItemTypes;
403
- }>, "many">;
404
- target: import("zod").ZodString;
405
- }>, {
406
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
407
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
408
- }>, "strip", import("zod").ZodTypeAny, {
409
- items: {
410
- hash: string;
411
- data: string;
412
- type: import("@prosopo/types").CaptchaItemTypes;
413
- }[];
414
- salt: string;
415
- target: string;
416
- captchaId?: string | undefined;
417
- captchaContentId?: string | undefined;
418
- solution?: string[] | undefined;
419
- unlabelled?: string[] | undefined;
420
- timeLimit?: number | undefined;
421
- }, {
422
- items: {
423
- hash: string;
424
- data: string;
425
- type: import("@prosopo/types").CaptchaItemTypes;
426
- }[];
427
- salt: string;
428
- target: string;
429
- captchaId?: string | undefined;
430
- captchaContentId?: string | undefined;
431
- solution?: string[] | undefined;
432
- unlabelled?: string[] | undefined;
433
- timeLimit?: number | undefined;
434
- }>, "many">;
435
- format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
436
- solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
437
- contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
438
- }, {
439
- solutionTree: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">;
440
- contentTree: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">;
441
- }>, "strip", import("zod").ZodTypeAny, {
442
- captchas: {
443
- items: {
444
- hash: string;
445
- data: string;
446
- type: import("@prosopo/types").CaptchaItemTypes;
447
- }[];
448
- salt: string;
449
- target: string;
450
- captchaId?: string | undefined;
451
- captchaContentId?: string | undefined;
452
- solution?: string[] | undefined;
453
- unlabelled?: string[] | undefined;
454
- timeLimit?: number | undefined;
455
- }[];
456
- format: CaptchaTypes;
457
- datasetId: string;
458
- solutionTree: string[][];
459
- contentTree: string[][];
460
- datasetContentId?: string | undefined;
461
- }, {
462
- captchas: {
463
- items: {
464
- hash: string;
465
- data: string;
466
- type: import("@prosopo/types").CaptchaItemTypes;
467
- }[];
468
- salt: string;
469
- target: string;
470
- captchaId?: string | undefined;
471
- captchaContentId?: string | undefined;
472
- solution?: string[] | undefined;
473
- unlabelled?: string[] | undefined;
474
- timeLimit?: number | undefined;
475
- }[];
476
- format: CaptchaTypes;
477
- datasetId: string;
478
- solutionTree: string[][];
479
- contentTree: string[][];
480
- datasetContentId?: string | undefined;
481
- }>;
482
- //# sourceMappingURL=dataset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAe3C,OAAO,EACN,KAAK,OAAO,EACZ,YAAY,E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BAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC"}
@@ -1,27 +0,0 @@
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(),
11
- });
12
- export const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
13
- captchas: CaptchasWithNumericSolutionSchema,
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(),
22
- });
23
- export const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
24
- solutionTree: array(array(string())),
25
- contentTree: array(array(string())),
26
- });
27
- //# sourceMappingURL=dataset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAchE,OAAO,EAEN,YAAY,EAEZ,cAAc,EACd,iCAAiC,EACjC,sBAAsB,GACtB,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,0 @@
1
- export * from "./captcha.js";
2
- export * from "./dataset.js";
3
- export * from "./merkle.js";
4
- export * from "./assets.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/datasets/index.ts"],"names":[],"mappings":"AAaA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasets/index.ts"],"names":[],"mappings":"AAaA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,10 +0,0 @@
1
- export interface MerkleNodeInterface {
2
- hash: string;
3
- parent: string | null;
4
- }
5
- export type MerkleLeaf = string;
6
- export type MerkleLayer = MerkleLeaf[];
7
- export type MerkleProofLayer = [MerkleLeaf, MerkleLeaf];
8
- export type MerkleRootLayer = [MerkleLeaf];
9
- export type MerkleProof = [...MerkleProofLayer[], MerkleRootLayer];
10
- //# sourceMappingURL=merkle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merkle.d.ts","sourceRoot":"","sources":["../../src/datasets/merkle.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,WAAW,GAAG,UAAU,EAAE,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,gBAAgB,EAAE,EAAE,eAAe,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=merkle.js.map