@prosopo/types 0.3.1 → 0.3.3
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.
- package/dist/api/api.d.ts +16 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +2 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -0
- package/dist/cjs/api/api.cjs +1 -0
- package/dist/cjs/api/index.cjs +2 -0
- package/dist/cjs/config/config.cjs +4 -4
- package/dist/cjs/contract/index.cjs +1 -0
- package/dist/cjs/contract/interface.cjs +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/procaptcha/client.cjs +1 -0
- package/dist/cjs/procaptcha/index.cjs +3 -0
- package/dist/cjs/procaptcha/manager.cjs +2 -1
- package/dist/cjs/procaptcha/props.cjs +1 -0
- package/dist/cjs/procaptcha/utils.cjs +1 -0
- package/dist/cjs/procaptcha-bundle/index.cjs +1 -0
- package/dist/cjs/provider/api.cjs +14 -0
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/config/config.d.ts +101 -89
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +2 -2
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts.map +1 -1
- package/dist/config/enumMap.js.map +1 -1
- package/dist/config/network.d.ts +17 -17
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js.map +1 -1
- package/dist/contract/artifacts.d.ts +10 -10
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +1 -0
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/interface.d.ts +28 -0
- package/dist/contract/interface.d.ts.map +1 -0
- package/dist/contract/interface.js +2 -0
- package/dist/contract/interface.js.map +1 -0
- package/dist/datasets/captcha.d.ts +97 -95
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +48 -48
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/networks/index.d.ts.map +1 -1
- package/dist/networks/index.js.map +1 -1
- package/dist/procaptcha/api.d.ts +17 -33
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/client.d.ts +4 -0
- package/dist/procaptcha/client.d.ts.map +1 -0
- package/dist/procaptcha/client.js +2 -0
- package/dist/procaptcha/client.js.map +1 -0
- package/dist/procaptcha/collector.d.ts +1 -1
- package/dist/procaptcha/collector.d.ts.map +1 -1
- package/dist/procaptcha/index.d.ts +3 -0
- package/dist/procaptcha/index.d.ts.map +1 -1
- package/dist/procaptcha/index.js +3 -0
- package/dist/procaptcha/index.js.map +1 -1
- package/dist/procaptcha/manager.d.ts +41 -0
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +1 -0
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/procaptcha/props.d.ts +7 -0
- package/dist/procaptcha/props.d.ts.map +1 -0
- package/dist/procaptcha/props.js +2 -0
- package/dist/procaptcha/props.js.map +1 -0
- package/dist/procaptcha/utils.d.ts +2 -0
- package/dist/procaptcha/utils.d.ts.map +1 -0
- package/dist/procaptcha/utils.js +2 -0
- package/dist/procaptcha/utils.js.map +1 -0
- package/dist/procaptcha-bundle/index.d.ts +2 -1
- package/dist/procaptcha-bundle/index.d.ts.map +1 -1
- package/dist/procaptcha-bundle/index.js +1 -0
- package/dist/procaptcha-bundle/index.js.map +1 -1
- package/dist/provider/api.d.ts +36 -3
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +7 -0
- package/dist/provider/api.js.map +1 -1
- package/package.json +3 -3
- package/typedoc.config.js +13 -0
- package/vite.cjs.config.ts +13 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountId } from '@polkadot/types/interfaces/runtime';
|
|
2
|
+
import { MerkleProof } from './merkle.js';
|
|
2
3
|
import { infer as zInfer } from 'zod';
|
|
3
4
|
import { u32 } from '@polkadot/types-codec/primitive';
|
|
4
5
|
export declare enum CaptchaTypes {
|
|
@@ -61,10 +62,11 @@ export interface CaptchaSolution {
|
|
|
61
62
|
}
|
|
62
63
|
export interface CaptchaWithProof {
|
|
63
64
|
captcha: Captcha;
|
|
64
|
-
proof:
|
|
65
|
+
proof: MerkleProof;
|
|
65
66
|
}
|
|
67
|
+
export type PoWChallengeId = string;
|
|
66
68
|
export interface PoWCaptcha {
|
|
67
|
-
challenge:
|
|
69
|
+
challenge: PoWChallengeId;
|
|
68
70
|
difficulty: number;
|
|
69
71
|
signature: string;
|
|
70
72
|
}
|
|
@@ -112,57 +114,57 @@ export declare const CaptchaItemSchema: import("zod").ZodObject<{
|
|
|
112
114
|
data: import("zod").ZodString;
|
|
113
115
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
114
116
|
}, "strip", import("zod").ZodTypeAny, {
|
|
115
|
-
type: CaptchaItemTypes;
|
|
116
|
-
data: string;
|
|
117
117
|
hash: string;
|
|
118
|
-
}, {
|
|
119
|
-
type: CaptchaItemTypes;
|
|
120
118
|
data: string;
|
|
119
|
+
type: CaptchaItemTypes;
|
|
120
|
+
}, {
|
|
121
121
|
hash: string;
|
|
122
|
+
data: string;
|
|
123
|
+
type: CaptchaItemTypes;
|
|
122
124
|
}>;
|
|
123
125
|
export declare const HashedCaptchaItemSchema: import("zod").ZodObject<{
|
|
124
|
-
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
125
126
|
data: import("zod").ZodString;
|
|
127
|
+
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
126
128
|
hash: import("zod").ZodString;
|
|
127
129
|
}, "strip", import("zod").ZodTypeAny, {
|
|
128
|
-
type: CaptchaItemTypes;
|
|
129
|
-
data: string;
|
|
130
130
|
hash: string;
|
|
131
|
-
}, {
|
|
132
|
-
type: CaptchaItemTypes;
|
|
133
131
|
data: string;
|
|
132
|
+
type: CaptchaItemTypes;
|
|
133
|
+
}, {
|
|
134
134
|
hash: string;
|
|
135
|
+
data: string;
|
|
136
|
+
type: CaptchaItemTypes;
|
|
135
137
|
}>;
|
|
136
138
|
export declare const LabelledItemSchema: import("zod").ZodObject<{
|
|
137
|
-
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
138
|
-
data: import("zod").ZodString;
|
|
139
139
|
hash: import("zod").ZodString;
|
|
140
|
+
data: import("zod").ZodString;
|
|
141
|
+
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
140
142
|
label: import("zod").ZodString;
|
|
141
143
|
}, "strip", import("zod").ZodTypeAny, {
|
|
142
|
-
|
|
144
|
+
hash: string;
|
|
143
145
|
data: string;
|
|
146
|
+
type: CaptchaItemTypes;
|
|
144
147
|
label: string;
|
|
145
|
-
hash: string;
|
|
146
148
|
}, {
|
|
147
|
-
|
|
149
|
+
hash: string;
|
|
148
150
|
data: string;
|
|
151
|
+
type: CaptchaItemTypes;
|
|
149
152
|
label: string;
|
|
150
|
-
hash: string;
|
|
151
153
|
}>;
|
|
152
154
|
export declare const MaybeLabelledHashedItemSchema: import("zod").ZodObject<{
|
|
153
|
-
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
154
|
-
data: import("zod").ZodString;
|
|
155
155
|
hash: import("zod").ZodString;
|
|
156
|
+
data: import("zod").ZodString;
|
|
157
|
+
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
156
158
|
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
157
159
|
}, "strip", import("zod").ZodTypeAny, {
|
|
158
|
-
type: CaptchaItemTypes;
|
|
159
|
-
data: string;
|
|
160
160
|
hash: string;
|
|
161
|
+
data: string;
|
|
162
|
+
type: CaptchaItemTypes;
|
|
161
163
|
label?: string | undefined;
|
|
162
164
|
}, {
|
|
163
|
-
type: CaptchaItemTypes;
|
|
164
|
-
data: string;
|
|
165
165
|
hash: string;
|
|
166
|
+
data: string;
|
|
167
|
+
type: CaptchaItemTypes;
|
|
166
168
|
label?: string | undefined;
|
|
167
169
|
}>;
|
|
168
170
|
export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<{
|
|
@@ -177,20 +179,20 @@ export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<{
|
|
|
177
179
|
data: import("zod").ZodString;
|
|
178
180
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
179
181
|
}, "strip", import("zod").ZodTypeAny, {
|
|
180
|
-
type: CaptchaItemTypes;
|
|
181
|
-
data: string;
|
|
182
182
|
hash: string;
|
|
183
|
-
}, {
|
|
184
|
-
type: CaptchaItemTypes;
|
|
185
183
|
data: string;
|
|
184
|
+
type: CaptchaItemTypes;
|
|
185
|
+
}, {
|
|
186
186
|
hash: string;
|
|
187
|
+
data: string;
|
|
188
|
+
type: CaptchaItemTypes;
|
|
187
189
|
}>, "many">;
|
|
188
190
|
target: import("zod").ZodString;
|
|
189
191
|
}, "strip", import("zod").ZodTypeAny, {
|
|
190
192
|
items: {
|
|
191
|
-
type: CaptchaItemTypes;
|
|
192
|
-
data: string;
|
|
193
193
|
hash: string;
|
|
194
|
+
data: string;
|
|
195
|
+
type: CaptchaItemTypes;
|
|
194
196
|
}[];
|
|
195
197
|
salt: string;
|
|
196
198
|
target: string;
|
|
@@ -201,9 +203,9 @@ export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<{
|
|
|
201
203
|
timeLimit?: number | undefined;
|
|
202
204
|
}, {
|
|
203
205
|
items: {
|
|
204
|
-
type: CaptchaItemTypes;
|
|
205
|
-
data: string;
|
|
206
206
|
hash: string;
|
|
207
|
+
data: string;
|
|
208
|
+
type: CaptchaItemTypes;
|
|
207
209
|
}[];
|
|
208
210
|
salt: string;
|
|
209
211
|
target: string;
|
|
@@ -219,13 +221,13 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<{
|
|
|
219
221
|
data: import("zod").ZodString;
|
|
220
222
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
221
223
|
}, "strip", import("zod").ZodTypeAny, {
|
|
222
|
-
type: CaptchaItemTypes;
|
|
223
|
-
data: string;
|
|
224
224
|
hash: string;
|
|
225
|
-
}, {
|
|
226
|
-
type: CaptchaItemTypes;
|
|
227
225
|
data: string;
|
|
226
|
+
type: CaptchaItemTypes;
|
|
227
|
+
}, {
|
|
228
228
|
hash: string;
|
|
229
|
+
data: string;
|
|
230
|
+
type: CaptchaItemTypes;
|
|
229
231
|
}>, "many">;
|
|
230
232
|
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
231
233
|
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
@@ -236,9 +238,9 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<{
|
|
|
236
238
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
237
239
|
}, "strip", import("zod").ZodTypeAny, {
|
|
238
240
|
items: {
|
|
239
|
-
type: CaptchaItemTypes;
|
|
240
|
-
data: string;
|
|
241
241
|
hash: string;
|
|
242
|
+
data: string;
|
|
243
|
+
type: CaptchaItemTypes;
|
|
242
244
|
}[];
|
|
243
245
|
salt: string;
|
|
244
246
|
target: string;
|
|
@@ -249,9 +251,9 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<{
|
|
|
249
251
|
unlabelled?: string[] | undefined;
|
|
250
252
|
}, {
|
|
251
253
|
items: {
|
|
252
|
-
type: CaptchaItemTypes;
|
|
253
|
-
data: string;
|
|
254
254
|
hash: string;
|
|
255
|
+
data: string;
|
|
256
|
+
type: CaptchaItemTypes;
|
|
255
257
|
}[];
|
|
256
258
|
salt: string;
|
|
257
259
|
target: string;
|
|
@@ -267,13 +269,13 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
|
|
|
267
269
|
data: import("zod").ZodString;
|
|
268
270
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
269
271
|
}, "strip", import("zod").ZodTypeAny, {
|
|
270
|
-
type: CaptchaItemTypes;
|
|
271
|
-
data: string;
|
|
272
272
|
hash: string;
|
|
273
|
-
}, {
|
|
274
|
-
type: CaptchaItemTypes;
|
|
275
273
|
data: string;
|
|
274
|
+
type: CaptchaItemTypes;
|
|
275
|
+
}, {
|
|
276
276
|
hash: string;
|
|
277
|
+
data: string;
|
|
278
|
+
type: CaptchaItemTypes;
|
|
277
279
|
}>, "many">;
|
|
278
280
|
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
279
281
|
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
@@ -284,9 +286,9 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
|
|
|
284
286
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
285
287
|
}, "strip", import("zod").ZodTypeAny, {
|
|
286
288
|
items: {
|
|
287
|
-
type: CaptchaItemTypes;
|
|
288
|
-
data: string;
|
|
289
289
|
hash: string;
|
|
290
|
+
data: string;
|
|
291
|
+
type: CaptchaItemTypes;
|
|
290
292
|
}[];
|
|
291
293
|
salt: string;
|
|
292
294
|
target: string;
|
|
@@ -297,9 +299,9 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
|
|
|
297
299
|
unlabelled?: number[] | undefined;
|
|
298
300
|
}, {
|
|
299
301
|
items: {
|
|
300
|
-
type: CaptchaItemTypes;
|
|
301
|
-
data: string;
|
|
302
302
|
hash: string;
|
|
303
|
+
data: string;
|
|
304
|
+
type: CaptchaItemTypes;
|
|
303
305
|
}[];
|
|
304
306
|
salt: string;
|
|
305
307
|
target: string;
|
|
@@ -321,20 +323,20 @@ export declare const CaptchasSchema: import("zod").ZodArray<import("zod").ZodObj
|
|
|
321
323
|
data: import("zod").ZodString;
|
|
322
324
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
323
325
|
}, "strip", import("zod").ZodTypeAny, {
|
|
324
|
-
type: CaptchaItemTypes;
|
|
325
|
-
data: string;
|
|
326
326
|
hash: string;
|
|
327
|
-
}, {
|
|
328
|
-
type: CaptchaItemTypes;
|
|
329
327
|
data: string;
|
|
328
|
+
type: CaptchaItemTypes;
|
|
329
|
+
}, {
|
|
330
330
|
hash: string;
|
|
331
|
+
data: string;
|
|
332
|
+
type: CaptchaItemTypes;
|
|
331
333
|
}>, "many">;
|
|
332
334
|
target: import("zod").ZodString;
|
|
333
335
|
}, "strip", import("zod").ZodTypeAny, {
|
|
334
336
|
items: {
|
|
335
|
-
type: CaptchaItemTypes;
|
|
336
|
-
data: string;
|
|
337
337
|
hash: string;
|
|
338
|
+
data: string;
|
|
339
|
+
type: CaptchaItemTypes;
|
|
338
340
|
}[];
|
|
339
341
|
salt: string;
|
|
340
342
|
target: string;
|
|
@@ -345,9 +347,9 @@ export declare const CaptchasSchema: import("zod").ZodArray<import("zod").ZodObj
|
|
|
345
347
|
timeLimit?: number | undefined;
|
|
346
348
|
}, {
|
|
347
349
|
items: {
|
|
348
|
-
type: CaptchaItemTypes;
|
|
349
|
-
data: string;
|
|
350
350
|
hash: string;
|
|
351
|
+
data: string;
|
|
352
|
+
type: CaptchaItemTypes;
|
|
351
353
|
}[];
|
|
352
354
|
salt: string;
|
|
353
355
|
target: string;
|
|
@@ -363,13 +365,13 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
|
|
|
363
365
|
data: import("zod").ZodString;
|
|
364
366
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
365
367
|
}, "strip", import("zod").ZodTypeAny, {
|
|
366
|
-
type: CaptchaItemTypes;
|
|
367
|
-
data: string;
|
|
368
368
|
hash: string;
|
|
369
|
-
}, {
|
|
370
|
-
type: CaptchaItemTypes;
|
|
371
369
|
data: string;
|
|
370
|
+
type: CaptchaItemTypes;
|
|
371
|
+
}, {
|
|
372
372
|
hash: string;
|
|
373
|
+
data: string;
|
|
374
|
+
type: CaptchaItemTypes;
|
|
373
375
|
}>, "many">;
|
|
374
376
|
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
375
377
|
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
@@ -380,9 +382,9 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
|
|
|
380
382
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
381
383
|
}, "strip", import("zod").ZodTypeAny, {
|
|
382
384
|
items: {
|
|
383
|
-
type: CaptchaItemTypes;
|
|
384
|
-
data: string;
|
|
385
385
|
hash: string;
|
|
386
|
+
data: string;
|
|
387
|
+
type: CaptchaItemTypes;
|
|
386
388
|
}[];
|
|
387
389
|
salt: string;
|
|
388
390
|
target: string;
|
|
@@ -393,9 +395,9 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
|
|
|
393
395
|
unlabelled?: number[] | undefined;
|
|
394
396
|
}, {
|
|
395
397
|
items: {
|
|
396
|
-
type: CaptchaItemTypes;
|
|
397
|
-
data: string;
|
|
398
398
|
hash: string;
|
|
399
|
+
data: string;
|
|
400
|
+
type: CaptchaItemTypes;
|
|
399
401
|
}[];
|
|
400
402
|
salt: string;
|
|
401
403
|
target: string;
|
|
@@ -439,66 +441,66 @@ export declare const CaptchaSolutionArraySchema: import("zod").ZodArray<import("
|
|
|
439
441
|
}>, "many">;
|
|
440
442
|
export declare const DataSchema: import("zod").ZodObject<{
|
|
441
443
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
442
|
-
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
443
|
-
data: import("zod").ZodString;
|
|
444
444
|
hash: import("zod").ZodString;
|
|
445
|
+
data: import("zod").ZodString;
|
|
446
|
+
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
445
447
|
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
446
448
|
}, "strip", import("zod").ZodTypeAny, {
|
|
447
|
-
type: CaptchaItemTypes;
|
|
448
|
-
data: string;
|
|
449
449
|
hash: string;
|
|
450
|
+
data: string;
|
|
451
|
+
type: CaptchaItemTypes;
|
|
450
452
|
label?: string | undefined;
|
|
451
453
|
}, {
|
|
452
|
-
type: CaptchaItemTypes;
|
|
453
|
-
data: string;
|
|
454
454
|
hash: string;
|
|
455
|
+
data: string;
|
|
456
|
+
type: CaptchaItemTypes;
|
|
455
457
|
label?: string | undefined;
|
|
456
458
|
}>, "many">;
|
|
457
459
|
}, "strip", import("zod").ZodTypeAny, {
|
|
458
460
|
items: {
|
|
459
|
-
type: CaptchaItemTypes;
|
|
460
|
-
data: string;
|
|
461
461
|
hash: string;
|
|
462
|
+
data: string;
|
|
463
|
+
type: CaptchaItemTypes;
|
|
462
464
|
label?: string | undefined;
|
|
463
465
|
}[];
|
|
464
466
|
}, {
|
|
465
467
|
items: {
|
|
466
|
-
type: CaptchaItemTypes;
|
|
467
|
-
data: string;
|
|
468
468
|
hash: string;
|
|
469
|
+
data: string;
|
|
470
|
+
type: CaptchaItemTypes;
|
|
469
471
|
label?: string | undefined;
|
|
470
472
|
}[];
|
|
471
473
|
}>;
|
|
472
474
|
export declare const LabelledDataSchema: import("zod").ZodObject<{
|
|
473
475
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
474
|
-
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
475
|
-
data: import("zod").ZodString;
|
|
476
476
|
hash: import("zod").ZodString;
|
|
477
|
+
data: import("zod").ZodString;
|
|
478
|
+
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
477
479
|
label: import("zod").ZodString;
|
|
478
480
|
}, "strip", import("zod").ZodTypeAny, {
|
|
479
|
-
|
|
481
|
+
hash: string;
|
|
480
482
|
data: string;
|
|
483
|
+
type: CaptchaItemTypes;
|
|
481
484
|
label: string;
|
|
482
|
-
hash: string;
|
|
483
485
|
}, {
|
|
484
|
-
|
|
486
|
+
hash: string;
|
|
485
487
|
data: string;
|
|
488
|
+
type: CaptchaItemTypes;
|
|
486
489
|
label: string;
|
|
487
|
-
hash: string;
|
|
488
490
|
}>, "many">;
|
|
489
491
|
}, "strip", import("zod").ZodTypeAny, {
|
|
490
492
|
items: {
|
|
491
|
-
|
|
493
|
+
hash: string;
|
|
492
494
|
data: string;
|
|
495
|
+
type: CaptchaItemTypes;
|
|
493
496
|
label: string;
|
|
494
|
-
hash: string;
|
|
495
497
|
}[];
|
|
496
498
|
}, {
|
|
497
499
|
items: {
|
|
498
|
-
|
|
500
|
+
hash: string;
|
|
499
501
|
data: string;
|
|
502
|
+
type: CaptchaItemTypes;
|
|
500
503
|
label: string;
|
|
501
|
-
hash: string;
|
|
502
504
|
}[];
|
|
503
505
|
}>;
|
|
504
506
|
export declare const CaptchasContainerSchema: import("zod").ZodObject<{
|
|
@@ -514,20 +516,20 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
|
|
|
514
516
|
data: import("zod").ZodString;
|
|
515
517
|
type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
|
|
516
518
|
}, "strip", import("zod").ZodTypeAny, {
|
|
517
|
-
type: CaptchaItemTypes;
|
|
518
|
-
data: string;
|
|
519
519
|
hash: string;
|
|
520
|
-
}, {
|
|
521
|
-
type: CaptchaItemTypes;
|
|
522
520
|
data: string;
|
|
521
|
+
type: CaptchaItemTypes;
|
|
522
|
+
}, {
|
|
523
523
|
hash: string;
|
|
524
|
+
data: string;
|
|
525
|
+
type: CaptchaItemTypes;
|
|
524
526
|
}>, "many">;
|
|
525
527
|
target: import("zod").ZodString;
|
|
526
528
|
}, "strip", import("zod").ZodTypeAny, {
|
|
527
529
|
items: {
|
|
528
|
-
type: CaptchaItemTypes;
|
|
529
|
-
data: string;
|
|
530
530
|
hash: string;
|
|
531
|
+
data: string;
|
|
532
|
+
type: CaptchaItemTypes;
|
|
531
533
|
}[];
|
|
532
534
|
salt: string;
|
|
533
535
|
target: string;
|
|
@@ -538,9 +540,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
|
|
|
538
540
|
timeLimit?: number | undefined;
|
|
539
541
|
}, {
|
|
540
542
|
items: {
|
|
541
|
-
type: CaptchaItemTypes;
|
|
542
|
-
data: string;
|
|
543
543
|
hash: string;
|
|
544
|
+
data: string;
|
|
545
|
+
type: CaptchaItemTypes;
|
|
544
546
|
}[];
|
|
545
547
|
salt: string;
|
|
546
548
|
target: string;
|
|
@@ -554,9 +556,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
|
|
|
554
556
|
}, "strip", import("zod").ZodTypeAny, {
|
|
555
557
|
captchas: {
|
|
556
558
|
items: {
|
|
557
|
-
type: CaptchaItemTypes;
|
|
558
|
-
data: string;
|
|
559
559
|
hash: string;
|
|
560
|
+
data: string;
|
|
561
|
+
type: CaptchaItemTypes;
|
|
560
562
|
}[];
|
|
561
563
|
salt: string;
|
|
562
564
|
target: string;
|
|
@@ -570,9 +572,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
|
|
|
570
572
|
}, {
|
|
571
573
|
captchas: {
|
|
572
574
|
items: {
|
|
573
|
-
type: CaptchaItemTypes;
|
|
574
|
-
data: string;
|
|
575
575
|
hash: string;
|
|
576
|
+
data: string;
|
|
577
|
+
type: CaptchaItemTypes;
|
|
576
578
|
}[];
|
|
577
579
|
salt: string;
|
|
578
580
|
target: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captcha.d.ts","sourceRoot":"","sources":["../../src/datasets/captcha.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAC9D,OAA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