@prosopo/types 2.1.0 → 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 -3
  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 -28
  11. package/dist/api/params.d.ts.map +0 -1
  12. package/dist/api/params.js +0 -29
  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 -31
  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 -202
  20. package/dist/cjs/config/index.cjs +0 -30
  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 -159
  49. package/dist/cjs/provider/argv.cjs +0 -6
  50. package/dist/cjs/provider/index.cjs +0 -20
  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 -1325
  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 -661
  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 -45
  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 -21
  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 -487
  180. package/dist/provider/api.d.ts.map +0 -1
  181. package/dist/provider/api.js +0 -103
  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,661 +0,0 @@
1
- import type { AccountId } from "@polkadot/types/interfaces/runtime";
2
- import type { TranslationKey } from "@prosopo/common";
3
- import { type infer as zInfer } from "zod";
4
- export declare enum CaptchaTypes {
5
- SelectAll = "SelectAll"
6
- }
7
- export declare enum CaptchaItemTypes {
8
- Text = "text",
9
- Image = "image"
10
- }
11
- export declare enum CaptchaStates {
12
- Solved = "solved",
13
- Unsolved = "unsolved"
14
- }
15
- export type RawSolution = number;
16
- export type HashedSolution = string;
17
- export type Item = zInfer<typeof CaptchaItemSchema>;
18
- export type HashedItem = zInfer<typeof HashedCaptchaItemSchema>;
19
- export type LabelledItem = zInfer<typeof LabelledItemSchema>;
20
- export type Data = zInfer<typeof DataSchema>;
21
- export type CaptchasContainer = zInfer<typeof CaptchasContainerSchema>;
22
- export interface Captchas {
23
- captchas: CaptchaWithoutId[];
24
- format: CaptchaTypes;
25
- }
26
- type CaptchaWithoutIdBase = {
27
- salt: string;
28
- items: HashedItem[];
29
- target: string;
30
- solved?: boolean;
31
- timeLimitMs?: number;
32
- };
33
- export interface CaptchaWithoutId extends CaptchaWithoutIdBase {
34
- solution?: HashedSolution[] | RawSolution[];
35
- unlabelled?: HashedSolution[] | RawSolution[];
36
- }
37
- export interface Captcha extends CaptchaWithoutId {
38
- captchaId: string;
39
- captchaContentId: string;
40
- assetURI?: string;
41
- datasetId?: string;
42
- datasetContentId?: string;
43
- }
44
- export interface CaptchaResult {
45
- status: CaptchaStatus;
46
- reason?: TranslationKey;
47
- }
48
- export declare enum CaptchaStatus {
49
- pending = "Pending",
50
- approved = "Approved",
51
- disapproved = "Disapproved"
52
- }
53
- type Hash = string | number[];
54
- export type Commit = {
55
- id: Hash;
56
- userAccount: string;
57
- datasetId: Hash;
58
- dappAccount: string;
59
- providerAccount: string;
60
- userSignature: string;
61
- };
62
- export declare enum GovernanceStatus {
63
- active = "Active",
64
- inactive = "Inactive"
65
- }
66
- export type Dapp = {
67
- status: GovernanceStatus;
68
- balance: string | number;
69
- owner: AccountId;
70
- payee: DappPayee;
71
- };
72
- export declare enum DappPayee {
73
- provider = "Provider",
74
- dapp = "Dapp",
75
- any = "Any"
76
- }
77
- export declare const TimestampSchema: import("zod").ZodNumber;
78
- export type Timestamp = zInfer<typeof TimestampSchema>;
79
- export type UserAccount = string;
80
- export type DappAccount = string;
81
- export declare const POW_SEPARATOR = "___";
82
- export type PoWChallengeId = `${Timestamp}${typeof POW_SEPARATOR}${UserAccount}${typeof POW_SEPARATOR}${DappAccount}`;
83
- export declare const PowChallengeIdSchema: import("zod").ZodType<`${number}___${string}___${string}`, import("zod").ZodTypeDef, `${number}___${string}___${string}`>;
84
- export interface CaptchaSolution {
85
- captchaId: string;
86
- captchaContentId: string;
87
- salt: string;
88
- solution: HashedSolution[];
89
- }
90
- export type PoWChallengeComponents = {
91
- requestedAtTimestamp: Timestamp;
92
- userAccount: UserAccount;
93
- dappAccount: DappAccount;
94
- };
95
- export interface PoWCaptcha {
96
- challenge: PoWChallengeId;
97
- difficulty: number;
98
- providerSignature: string;
99
- requestedAtTimestamp: number;
100
- userSignature?: string;
101
- }
102
- export interface PoWCaptchaUser extends PoWCaptcha {
103
- userAccount: UserAccount;
104
- dappAccount: DappAccount;
105
- }
106
- export type CaptchaConfig = {
107
- solved: {
108
- count: number;
109
- };
110
- unsolved: {
111
- count: number;
112
- };
113
- };
114
- export type CaptchaSolutionConfig = {
115
- requiredNumberOfSolutions: number;
116
- solutionWinningPercentage: number;
117
- captchaBlockRecency: number;
118
- };
119
- export declare const CaptchaSchema: import("zod").ZodObject<{
120
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
121
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
122
- salt: import("zod").ZodString;
123
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
124
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
125
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
126
- }, "strip", import("zod").ZodTypeAny, {
127
- salt: string;
128
- captchaId?: string | undefined;
129
- captchaContentId?: string | undefined;
130
- solution?: number[] | undefined;
131
- unlabelled?: number[] | undefined;
132
- timeLimit?: number | undefined;
133
- }, {
134
- salt: string;
135
- captchaId?: string | undefined;
136
- captchaContentId?: string | undefined;
137
- solution?: number[] | undefined;
138
- unlabelled?: number[] | undefined;
139
- timeLimit?: number | undefined;
140
- }>;
141
- export declare const CaptchaItemSchema: import("zod").ZodObject<{
142
- hash: import("zod").ZodString;
143
- data: import("zod").ZodString;
144
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
145
- }, "strip", import("zod").ZodTypeAny, {
146
- hash: string;
147
- data: string;
148
- type: CaptchaItemTypes;
149
- }, {
150
- hash: string;
151
- data: string;
152
- type: CaptchaItemTypes;
153
- }>;
154
- export declare const HashedCaptchaItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
155
- hash: import("zod").ZodString;
156
- data: import("zod").ZodString;
157
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
158
- }, {
159
- hash: import("zod").ZodString;
160
- }>, "strip", import("zod").ZodTypeAny, {
161
- hash: string;
162
- data: string;
163
- type: CaptchaItemTypes;
164
- }, {
165
- hash: string;
166
- data: string;
167
- type: CaptchaItemTypes;
168
- }>;
169
- export declare const LabelledItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
170
- hash: import("zod").ZodString;
171
- data: import("zod").ZodString;
172
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
173
- }, {
174
- hash: import("zod").ZodString;
175
- }>, {
176
- label: import("zod").ZodString;
177
- }>, "strip", import("zod").ZodTypeAny, {
178
- hash: string;
179
- data: string;
180
- type: CaptchaItemTypes;
181
- label: string;
182
- }, {
183
- hash: string;
184
- data: string;
185
- type: CaptchaItemTypes;
186
- label: string;
187
- }>;
188
- export declare const MaybeLabelledHashedItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
189
- hash: import("zod").ZodString;
190
- data: import("zod").ZodString;
191
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
192
- }, {
193
- hash: import("zod").ZodString;
194
- }>, {
195
- label: import("zod").ZodOptional<import("zod").ZodString>;
196
- }>, "strip", import("zod").ZodTypeAny, {
197
- hash: string;
198
- data: string;
199
- type: CaptchaItemTypes;
200
- label?: string | undefined;
201
- }, {
202
- hash: string;
203
- data: string;
204
- type: CaptchaItemTypes;
205
- label?: string | undefined;
206
- }>;
207
- export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
208
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
209
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
210
- salt: import("zod").ZodString;
211
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
212
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
213
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
214
- }, {
215
- items: import("zod").ZodArray<import("zod").ZodObject<{
216
- hash: import("zod").ZodString;
217
- data: import("zod").ZodString;
218
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
219
- }, "strip", import("zod").ZodTypeAny, {
220
- hash: string;
221
- data: string;
222
- type: CaptchaItemTypes;
223
- }, {
224
- hash: string;
225
- data: string;
226
- type: CaptchaItemTypes;
227
- }>, "many">;
228
- target: import("zod").ZodString;
229
- }>, "strip", import("zod").ZodTypeAny, {
230
- items: {
231
- hash: string;
232
- data: string;
233
- type: CaptchaItemTypes;
234
- }[];
235
- salt: string;
236
- target: string;
237
- captchaId?: string | undefined;
238
- captchaContentId?: string | undefined;
239
- solution?: number[] | undefined;
240
- unlabelled?: number[] | undefined;
241
- timeLimit?: number | undefined;
242
- }, {
243
- items: {
244
- hash: string;
245
- data: string;
246
- type: CaptchaItemTypes;
247
- }[];
248
- salt: string;
249
- target: string;
250
- captchaId?: string | undefined;
251
- captchaContentId?: string | undefined;
252
- solution?: number[] | undefined;
253
- unlabelled?: number[] | undefined;
254
- timeLimit?: number | undefined;
255
- }>;
256
- export declare const SelectAllCaptchaSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
257
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
258
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
259
- salt: import("zod").ZodString;
260
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
261
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
262
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
263
- }, {
264
- items: import("zod").ZodArray<import("zod").ZodObject<{
265
- hash: import("zod").ZodString;
266
- data: import("zod").ZodString;
267
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
268
- }, "strip", import("zod").ZodTypeAny, {
269
- hash: string;
270
- data: string;
271
- type: CaptchaItemTypes;
272
- }, {
273
- hash: string;
274
- data: string;
275
- type: CaptchaItemTypes;
276
- }>, "many">;
277
- target: import("zod").ZodString;
278
- }>, {
279
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
281
- }>, "strip", import("zod").ZodTypeAny, {
282
- items: {
283
- hash: string;
284
- data: string;
285
- type: CaptchaItemTypes;
286
- }[];
287
- salt: string;
288
- target: string;
289
- captchaId?: string | undefined;
290
- captchaContentId?: string | undefined;
291
- solution?: string[] | undefined;
292
- unlabelled?: string[] | undefined;
293
- timeLimit?: number | undefined;
294
- }, {
295
- items: {
296
- hash: string;
297
- data: string;
298
- type: CaptchaItemTypes;
299
- }[];
300
- salt: string;
301
- target: string;
302
- captchaId?: string | undefined;
303
- captchaContentId?: string | undefined;
304
- solution?: string[] | undefined;
305
- unlabelled?: string[] | undefined;
306
- timeLimit?: number | undefined;
307
- }>;
308
- export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
309
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
310
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
311
- salt: import("zod").ZodString;
312
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
313
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
314
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
315
- }, {
316
- items: import("zod").ZodArray<import("zod").ZodObject<{
317
- hash: import("zod").ZodString;
318
- data: import("zod").ZodString;
319
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
320
- }, "strip", import("zod").ZodTypeAny, {
321
- hash: string;
322
- data: string;
323
- type: CaptchaItemTypes;
324
- }, {
325
- hash: string;
326
- data: string;
327
- type: CaptchaItemTypes;
328
- }>, "many">;
329
- target: import("zod").ZodString;
330
- }>, {
331
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
332
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
333
- }>, {
334
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
335
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
336
- }>, "strip", import("zod").ZodTypeAny, {
337
- items: {
338
- hash: string;
339
- data: string;
340
- type: CaptchaItemTypes;
341
- }[];
342
- salt: string;
343
- target: string;
344
- captchaId?: string | undefined;
345
- captchaContentId?: string | undefined;
346
- solution?: number[] | undefined;
347
- unlabelled?: number[] | undefined;
348
- timeLimit?: number | undefined;
349
- }, {
350
- items: {
351
- hash: string;
352
- data: string;
353
- type: CaptchaItemTypes;
354
- }[];
355
- salt: string;
356
- target: string;
357
- captchaId?: string | undefined;
358
- captchaContentId?: string | undefined;
359
- solution?: number[] | undefined;
360
- unlabelled?: number[] | undefined;
361
- timeLimit?: number | undefined;
362
- }>;
363
- export declare const CaptchasSchema: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
364
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
365
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
366
- salt: import("zod").ZodString;
367
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
368
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
369
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
370
- }, {
371
- items: import("zod").ZodArray<import("zod").ZodObject<{
372
- hash: import("zod").ZodString;
373
- data: import("zod").ZodString;
374
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
375
- }, "strip", import("zod").ZodTypeAny, {
376
- hash: string;
377
- data: string;
378
- type: CaptchaItemTypes;
379
- }, {
380
- hash: string;
381
- data: string;
382
- type: CaptchaItemTypes;
383
- }>, "many">;
384
- target: import("zod").ZodString;
385
- }>, "strip", import("zod").ZodTypeAny, {
386
- items: {
387
- hash: string;
388
- data: string;
389
- type: CaptchaItemTypes;
390
- }[];
391
- salt: string;
392
- target: string;
393
- captchaId?: string | undefined;
394
- captchaContentId?: string | undefined;
395
- solution?: number[] | undefined;
396
- unlabelled?: number[] | undefined;
397
- timeLimit?: number | undefined;
398
- }, {
399
- items: {
400
- hash: string;
401
- data: string;
402
- type: CaptchaItemTypes;
403
- }[];
404
- salt: string;
405
- target: string;
406
- captchaId?: string | undefined;
407
- captchaContentId?: string | undefined;
408
- solution?: number[] | undefined;
409
- unlabelled?: number[] | undefined;
410
- timeLimit?: number | undefined;
411
- }>, "many">;
412
- export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
413
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
414
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
415
- salt: import("zod").ZodString;
416
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
417
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
418
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
419
- }, {
420
- items: import("zod").ZodArray<import("zod").ZodObject<{
421
- hash: import("zod").ZodString;
422
- data: import("zod").ZodString;
423
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
424
- }, "strip", import("zod").ZodTypeAny, {
425
- hash: string;
426
- data: string;
427
- type: CaptchaItemTypes;
428
- }, {
429
- hash: string;
430
- data: string;
431
- type: CaptchaItemTypes;
432
- }>, "many">;
433
- target: import("zod").ZodString;
434
- }>, {
435
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
436
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
437
- }>, {
438
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
439
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
440
- }>, "strip", import("zod").ZodTypeAny, {
441
- items: {
442
- hash: string;
443
- data: string;
444
- type: CaptchaItemTypes;
445
- }[];
446
- salt: string;
447
- target: string;
448
- captchaId?: string | undefined;
449
- captchaContentId?: string | undefined;
450
- solution?: number[] | undefined;
451
- unlabelled?: number[] | undefined;
452
- timeLimit?: number | undefined;
453
- }, {
454
- items: {
455
- hash: string;
456
- data: string;
457
- type: CaptchaItemTypes;
458
- }[];
459
- salt: string;
460
- target: string;
461
- captchaId?: string | undefined;
462
- captchaContentId?: string | undefined;
463
- solution?: number[] | undefined;
464
- unlabelled?: number[] | undefined;
465
- timeLimit?: number | undefined;
466
- }>, "many">;
467
- export declare const CaptchaSolutionSchema: import("zod").ZodObject<{
468
- captchaId: import("zod").ZodString;
469
- captchaContentId: import("zod").ZodString;
470
- solution: import("zod").ZodArray<import("zod").ZodString, "many">;
471
- salt: import("zod").ZodString;
472
- }, "strip", import("zod").ZodTypeAny, {
473
- captchaId: string;
474
- captchaContentId: string;
475
- salt: string;
476
- solution: string[];
477
- }, {
478
- captchaId: string;
479
- captchaContentId: string;
480
- salt: string;
481
- solution: string[];
482
- }>;
483
- export declare const CaptchaSolutionArraySchema: import("zod").ZodArray<import("zod").ZodObject<{
484
- captchaId: import("zod").ZodString;
485
- captchaContentId: import("zod").ZodString;
486
- solution: import("zod").ZodArray<import("zod").ZodString, "many">;
487
- salt: import("zod").ZodString;
488
- }, "strip", import("zod").ZodTypeAny, {
489
- captchaId: string;
490
- captchaContentId: string;
491
- salt: string;
492
- solution: string[];
493
- }, {
494
- captchaId: string;
495
- captchaContentId: string;
496
- salt: string;
497
- solution: string[];
498
- }>, "many">;
499
- export declare const DataSchema: import("zod").ZodObject<{
500
- items: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
501
- hash: import("zod").ZodString;
502
- data: import("zod").ZodString;
503
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
504
- }, {
505
- hash: import("zod").ZodString;
506
- }>, {
507
- label: import("zod").ZodOptional<import("zod").ZodString>;
508
- }>, "strip", import("zod").ZodTypeAny, {
509
- hash: string;
510
- data: string;
511
- type: CaptchaItemTypes;
512
- label?: string | undefined;
513
- }, {
514
- hash: string;
515
- data: string;
516
- type: CaptchaItemTypes;
517
- label?: string | undefined;
518
- }>, "many">;
519
- }, "strip", import("zod").ZodTypeAny, {
520
- items: {
521
- hash: string;
522
- data: string;
523
- type: CaptchaItemTypes;
524
- label?: string | undefined;
525
- }[];
526
- }, {
527
- items: {
528
- hash: string;
529
- data: string;
530
- type: CaptchaItemTypes;
531
- label?: string | undefined;
532
- }[];
533
- }>;
534
- export declare const LabelledDataSchema: import("zod").ZodObject<{
535
- items: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
536
- hash: import("zod").ZodString;
537
- data: import("zod").ZodString;
538
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
539
- }, {
540
- hash: import("zod").ZodString;
541
- }>, {
542
- label: import("zod").ZodString;
543
- }>, "strip", import("zod").ZodTypeAny, {
544
- hash: string;
545
- data: string;
546
- type: CaptchaItemTypes;
547
- label: string;
548
- }, {
549
- hash: string;
550
- data: string;
551
- type: CaptchaItemTypes;
552
- label: string;
553
- }>, "many">;
554
- }, "strip", import("zod").ZodTypeAny, {
555
- items: {
556
- hash: string;
557
- data: string;
558
- type: CaptchaItemTypes;
559
- label: string;
560
- }[];
561
- }, {
562
- items: {
563
- hash: string;
564
- data: string;
565
- type: CaptchaItemTypes;
566
- label: string;
567
- }[];
568
- }>;
569
- export declare const CaptchasContainerSchema: import("zod").ZodObject<{
570
- captchas: import("zod").ZodArray<import("zod").ZodObject<import("zod").objectUtil.extendShape<{
571
- captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
572
- captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
573
- salt: import("zod").ZodString;
574
- solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
575
- unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
576
- timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
577
- }, {
578
- items: import("zod").ZodArray<import("zod").ZodObject<{
579
- hash: import("zod").ZodString;
580
- data: import("zod").ZodString;
581
- type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
582
- }, "strip", import("zod").ZodTypeAny, {
583
- hash: string;
584
- data: string;
585
- type: CaptchaItemTypes;
586
- }, {
587
- hash: string;
588
- data: string;
589
- type: CaptchaItemTypes;
590
- }>, "many">;
591
- target: import("zod").ZodString;
592
- }>, "strip", import("zod").ZodTypeAny, {
593
- items: {
594
- hash: string;
595
- data: string;
596
- type: CaptchaItemTypes;
597
- }[];
598
- salt: string;
599
- target: string;
600
- captchaId?: string | undefined;
601
- captchaContentId?: string | undefined;
602
- solution?: number[] | undefined;
603
- unlabelled?: number[] | undefined;
604
- timeLimit?: number | undefined;
605
- }, {
606
- items: {
607
- hash: string;
608
- data: string;
609
- type: CaptchaItemTypes;
610
- }[];
611
- salt: string;
612
- target: string;
613
- captchaId?: string | undefined;
614
- captchaContentId?: string | undefined;
615
- solution?: number[] | undefined;
616
- unlabelled?: number[] | undefined;
617
- timeLimit?: number | undefined;
618
- }>, "many">;
619
- format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
620
- }, "strip", import("zod").ZodTypeAny, {
621
- captchas: {
622
- items: {
623
- hash: string;
624
- data: string;
625
- type: CaptchaItemTypes;
626
- }[];
627
- salt: string;
628
- target: string;
629
- captchaId?: string | undefined;
630
- captchaContentId?: string | undefined;
631
- solution?: number[] | undefined;
632
- unlabelled?: number[] | undefined;
633
- timeLimit?: number | undefined;
634
- }[];
635
- format: CaptchaTypes;
636
- }, {
637
- captchas: {
638
- items: {
639
- hash: string;
640
- data: string;
641
- type: CaptchaItemTypes;
642
- }[];
643
- salt: string;
644
- target: string;
645
- captchaId?: string | undefined;
646
- captchaContentId?: string | undefined;
647
- solution?: number[] | undefined;
648
- unlabelled?: number[] | undefined;
649
- timeLimit?: number | undefined;
650
- }[];
651
- format: CaptchaTypes;
652
- }>;
653
- export declare const LabelsContainerSchema: import("zod").ZodObject<{
654
- labels: import("zod").ZodArray<import("zod").ZodString, "many">;
655
- }, "strip", import("zod").ZodTypeAny, {
656
- labels: string[];
657
- }, {
658
- labels: string[];
659
- }>;
660
- export {};
661
- //# sourceMappingURL=captcha.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"captcha.d.ts","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