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