captchasonic 2.0.0 → 2.1.0

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.
@@ -1,603 +0,0 @@
1
- // @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
2
- // @generated from file captchasonicai/v1/sonic.proto (package captchasonicai.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
- import type { Message } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * Describes the file captchasonicai/v1/sonic.proto.
11
- */
12
- export const file_captchasonicai_v1_sonic: GenFile = /*@__PURE__*/
13
- fileDesc("Ch1jYXB0Y2hhc29uaWNhaS92MS9zb25pYy5wcm90bxIRY2FwdGNoYXNvbmljYWkudjEi1gIKBFRhc2sSDAoEdHlwZRgBIAEoCRIOCgZpbWFnZXMYAiADKAwSEAoIcXVlc3Rpb24YAyABKAkSFAoMcXVlc3Rpb25UeXBlGAQgASgJEhIKCnNjcmVlbnNob3QYBSABKAgSDQoFaW1hZ2UYBiABKAwSEAoIZXhhbXBsZXMYByADKAwSEgoKd2Vic2l0ZVVSTBgIIAEoCRISCgp3ZWJzaXRlS2V5GAkgASgJEg4KBm1vZHVsZRgKIAEoCRIPCgdudW1lcmljGAsgASgIEhYKDmNhc2Vfc2Vuc2l0aXZlGAwgASgIEhEKCW1pbkxlbmd0aBgNIAEoBRIRCgltYXhMZW5ndGgYDiABKAUSCwoDZ3R2GA8gASgFEgoKAmd0GBAgASgJEhEKCWNoYWxsZW5nZRgRIAEoCRIRCgljYXB0Y2hhSWQYEiABKAkSDQoFcHJveHkYEyABKAkiSgoRQ3JlYXRlVGFza1JlcXVlc3QSDgoGYXBpS2V5GAEgASgJEiUKBHRhc2sYAiABKAsyFy5jYXB0Y2hhc29uaWNhaS52MS5UYXNrIpMCChJDcmVhdGVUYXN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CgpHZXRCYWxhbmNlEiQuY2FwdGNoYXNvbmljYWkudjEuR2V0QmFsYW5jZVJlcXVlc3QaJS5jYXB0Y2hhc29uaWNhaS52MS5HZXRCYWxhbmNlUmVzcG9uc2USYQoLSGVhbHRoQ2hlY2sSJS5jYXB0Y2hhc29uaWNhaS52MS5IZWFsdGhDaGVja1JlcXVlc3QaJi5jYXB0Y2hhc29uaWNhaS52MS5IZWFsdGhDaGVja1Jlc3BvbnNlIgOQAgFCrQEKFWNvbS5jYXB0Y2hhc29uaWNhaS52MUILU29uaWNQcm90b3NQAVpIYnVmLmJ1aWxkL2dlbi9nby9jYXB0Y2hhc29uaWNhaS9zb25pYy9jYXB0Y2hhc29uaWNhaS92MTtjYXB0Y2hhc29uaWNhaXYxqgIRQ2FwdGNoYVNvbmljQUkuVjHKAhFDYXB0Y2hhU29uaWNBaVxWMeoCEkNhcHRjaGFTb25pY0FpOjpWMWIGcHJvdG8z");
14
-
15
- /**
16
- * @generated from message captchasonicai.v1.Task
17
- */
18
- export type Task = Message<"captchasonicai.v1.Task"> & {
19
- /**
20
- * @generated from field: string type = 1;
21
- */
22
- type: string;
23
-
24
- /**
25
- * raw binary — no base64 overhead
26
- *
27
- * @generated from field: repeated bytes images = 2;
28
- */
29
- images: Uint8Array[];
30
-
31
- /**
32
- * @generated from field: string question = 3;
33
- */
34
- question: string;
35
-
36
- /**
37
- * @generated from field: string questionType = 4;
38
- */
39
- questionType: string;
40
-
41
- /**
42
- * @generated from field: bool screenshot = 5;
43
- */
44
- screenshot: boolean;
45
-
46
- /**
47
- * single raw binary image
48
- *
49
- * @generated from field: bytes image = 6;
50
- */
51
- image: Uint8Array;
52
-
53
- /**
54
- * raw binary example images
55
- *
56
- * @generated from field: repeated bytes examples = 7;
57
- */
58
- examples: Uint8Array[];
59
-
60
- /**
61
- * @generated from field: string websiteURL = 8;
62
- */
63
- websiteURL: string;
64
-
65
- /**
66
- * @generated from field: string websiteKey = 9;
67
- */
68
- websiteKey: string;
69
-
70
- /**
71
- * OCR options
72
- *
73
- * @generated from field: string module = 10;
74
- */
75
- module: string;
76
-
77
- /**
78
- * @generated from field: bool numeric = 11;
79
- */
80
- numeric: boolean;
81
-
82
- /**
83
- * @generated from field: bool case_sensitive = 12;
84
- */
85
- caseSensitive: boolean;
86
-
87
- /**
88
- * @generated from field: int32 minLength = 13;
89
- */
90
- minLength: number;
91
-
92
- /**
93
- * @generated from field: int32 maxLength = 14;
94
- */
95
- maxLength: number;
96
-
97
- /**
98
- * Geetest options
99
- *
100
- * @generated from field: int32 gtv = 15;
101
- */
102
- gtv: number;
103
-
104
- /**
105
- * @generated from field: string gt = 16;
106
- */
107
- gt: string;
108
-
109
- /**
110
- * @generated from field: string challenge = 17;
111
- */
112
- challenge: string;
113
-
114
- /**
115
- * @generated from field: string captchaId = 18;
116
- */
117
- captchaId: string;
118
-
119
- /**
120
- * Common
121
- *
122
- * @generated from field: string proxy = 19;
123
- */
124
- proxy: string;
125
- };
126
-
127
- /**
128
- * Describes the message captchasonicai.v1.Task.
129
- * Use `create(TaskSchema)` to create a new message.
130
- */
131
- export const TaskSchema: GenMessage<Task> = /*@__PURE__*/
132
- messageDesc(file_captchasonicai_v1_sonic, 0);
133
-
134
- /**
135
- * @generated from message captchasonicai.v1.CreateTaskRequest
136
- */
137
- export type CreateTaskRequest = Message<"captchasonicai.v1.CreateTaskRequest"> & {
138
- /**
139
- * @generated from field: string apiKey = 1;
140
- */
141
- apiKey: string;
142
-
143
- /**
144
- * @generated from field: captchasonicai.v1.Task task = 2;
145
- */
146
- task?: Task | undefined;
147
- };
148
-
149
- /**
150
- * Describes the message captchasonicai.v1.CreateTaskRequest.
151
- * Use `create(CreateTaskRequestSchema)` to create a new message.
152
- */
153
- export const CreateTaskRequestSchema: GenMessage<CreateTaskRequest> = /*@__PURE__*/
154
- messageDesc(file_captchasonicai_v1_sonic, 1);
155
-
156
- /**
157
- * @generated from message captchasonicai.v1.CreateTaskResponse
158
- */
159
- export type CreateTaskResponse = Message<"captchasonicai.v1.CreateTaskResponse"> & {
160
- /**
161
- * @generated from field: int32 errorId = 1;
162
- */
163
- errorId: number;
164
-
165
- /**
166
- * @generated from field: string errorDescription = 2;
167
- */
168
- errorDescription: string;
169
-
170
- /**
171
- * @generated from field: string taskId = 3;
172
- */
173
- taskId: string;
174
-
175
- /**
176
- * legacy string map (backward compat)
177
- *
178
- * @generated from field: map<string, string> solution = 4;
179
- */
180
- solution: { [key: string]: string };
181
-
182
- /**
183
- * @generated from field: string status = 5;
184
- */
185
- status: string;
186
-
187
- /**
188
- * typed solution
189
- *
190
- * @generated from field: captchasonicai.v1.SolutionPayload typed_solution = 6;
191
- */
192
- typedSolution?: SolutionPayload | undefined;
193
- };
194
-
195
- /**
196
- * Describes the message captchasonicai.v1.CreateTaskResponse.
197
- * Use `create(CreateTaskResponseSchema)` to create a new message.
198
- */
199
- export const CreateTaskResponseSchema: GenMessage<CreateTaskResponse> = /*@__PURE__*/
200
- messageDesc(file_captchasonicai_v1_sonic, 2);
201
-
202
- /**
203
- * @generated from message captchasonicai.v1.SolutionPayload
204
- */
205
- export type SolutionPayload = Message<"captchasonicai.v1.SolutionPayload"> & {
206
- /**
207
- * @generated from oneof captchasonicai.v1.SolutionPayload.kind
208
- */
209
- kind: {
210
- /**
211
- * hCaptcha, AWS WAF, reCAPTCHA multi
212
- *
213
- * @generated from field: captchasonicai.v1.GridSolution grid = 1;
214
- */
215
- value: GridSolution;
216
- case: "grid";
217
- } | {
218
- /**
219
- * reCAPTCHA single (yes/no per tile)
220
- *
221
- * @generated from field: captchasonicai.v1.SingleSolution single = 2;
222
- */
223
- value: SingleSolution;
224
- case: "single";
225
- } | {
226
- /**
227
- * Geetest click, TikTok click
228
- *
229
- * @generated from field: captchasonicai.v1.ClickSolution click = 3;
230
- */
231
- value: ClickSolution;
232
- case: "click";
233
- } | {
234
- /**
235
- * Geetest slide, Binance slide, TikTok whirl
236
- *
237
- * @generated from field: captchasonicai.v1.SlideSolution slide = 4;
238
- */
239
- value: SlideSolution;
240
- case: "slide";
241
- } | {
242
- /**
243
- * OCR, Audio STT
244
- *
245
- * @generated from field: captchasonicai.v1.TextSolution text = 5;
246
- */
247
- value: TextSolution;
248
- case: "text";
249
- } | { case: undefined; value?: undefined };
250
- };
251
-
252
- /**
253
- * Describes the message captchasonicai.v1.SolutionPayload.
254
- * Use `create(SolutionPayloadSchema)` to create a new message.
255
- */
256
- export const SolutionPayloadSchema: GenMessage<SolutionPayload> = /*@__PURE__*/
257
- messageDesc(file_captchasonicai_v1_sonic, 3);
258
-
259
- /**
260
- * @generated from message captchasonicai.v1.GridSolution
261
- */
262
- export type GridSolution = Message<"captchasonicai.v1.GridSolution"> & {
263
- /**
264
- * 0-indexed tile positions
265
- *
266
- * @generated from field: repeated int32 objects = 1;
267
- */
268
- objects: number[];
269
-
270
- /**
271
- * grid dimension (3 or 4)
272
- *
273
- * @generated from field: int32 size = 2;
274
- */
275
- size: number;
276
-
277
- /**
278
- * "multi"
279
- *
280
- * @generated from field: string type = 3;
281
- */
282
- type: string;
283
- };
284
-
285
- /**
286
- * Describes the message captchasonicai.v1.GridSolution.
287
- * Use `create(GridSolutionSchema)` to create a new message.
288
- */
289
- export const GridSolutionSchema: GenMessage<GridSolution> = /*@__PURE__*/
290
- messageDesc(file_captchasonicai_v1_sonic, 4);
291
-
292
- /**
293
- * @generated from message captchasonicai.v1.SingleSolution
294
- */
295
- export type SingleSolution = Message<"captchasonicai.v1.SingleSolution"> & {
296
- /**
297
- * per-tile true/false
298
- *
299
- * @generated from field: repeated bool has_object = 1;
300
- */
301
- hasObject: boolean[];
302
-
303
- /**
304
- * @generated from field: int32 size = 2;
305
- */
306
- size: number;
307
-
308
- /**
309
- * "single" or "multi"
310
- *
311
- * @generated from field: string type = 3;
312
- */
313
- type: string;
314
- };
315
-
316
- /**
317
- * Describes the message captchasonicai.v1.SingleSolution.
318
- * Use `create(SingleSolutionSchema)` to create a new message.
319
- */
320
- export const SingleSolutionSchema: GenMessage<SingleSolution> = /*@__PURE__*/
321
- messageDesc(file_captchasonicai_v1_sonic, 5);
322
-
323
- /**
324
- * @generated from message captchasonicai.v1.ClickCoord
325
- */
326
- export type ClickCoord = Message<"captchasonicai.v1.ClickCoord"> & {
327
- /**
328
- * @generated from field: int32 x = 1;
329
- */
330
- x: number;
331
-
332
- /**
333
- * @generated from field: int32 y = 2;
334
- */
335
- y: number;
336
- };
337
-
338
- /**
339
- * Describes the message captchasonicai.v1.ClickCoord.
340
- * Use `create(ClickCoordSchema)` to create a new message.
341
- */
342
- export const ClickCoordSchema: GenMessage<ClickCoord> = /*@__PURE__*/
343
- messageDesc(file_captchasonicai_v1_sonic, 6);
344
-
345
- /**
346
- * @generated from message captchasonicai.v1.ClickGroup
347
- */
348
- export type ClickGroup = Message<"captchasonicai.v1.ClickGroup"> & {
349
- /**
350
- * ordered click positions
351
- *
352
- * @generated from field: repeated captchasonicai.v1.ClickCoord coords = 1;
353
- */
354
- coords: ClickCoord[];
355
- };
356
-
357
- /**
358
- * Describes the message captchasonicai.v1.ClickGroup.
359
- * Use `create(ClickGroupSchema)` to create a new message.
360
- */
361
- export const ClickGroupSchema: GenMessage<ClickGroup> = /*@__PURE__*/
362
- messageDesc(file_captchasonicai_v1_sonic, 7);
363
-
364
- /**
365
- * @generated from message captchasonicai.v1.ClickSolution
366
- */
367
- export type ClickSolution = Message<"captchasonicai.v1.ClickSolution"> & {
368
- /**
369
- * one group per query image
370
- *
371
- * @generated from field: repeated captchasonicai.v1.ClickGroup groups = 1;
372
- */
373
- groups: ClickGroup[];
374
- };
375
-
376
- /**
377
- * Describes the message captchasonicai.v1.ClickSolution.
378
- * Use `create(ClickSolutionSchema)` to create a new message.
379
- */
380
- export const ClickSolutionSchema: GenMessage<ClickSolution> = /*@__PURE__*/
381
- messageDesc(file_captchasonicai_v1_sonic, 8);
382
-
383
- /**
384
- * @generated from message captchasonicai.v1.SlideSolution
385
- */
386
- export type SlideSolution = Message<"captchasonicai.v1.SlideSolution"> & {
387
- /**
388
- * slide offset in pixels
389
- *
390
- * @generated from field: int32 x = 1;
391
- */
392
- x: number;
393
-
394
- /**
395
- * full slide data JSON if needed
396
- *
397
- * @generated from field: string raw_json = 2;
398
- */
399
- rawJson: string;
400
- };
401
-
402
- /**
403
- * Describes the message captchasonicai.v1.SlideSolution.
404
- * Use `create(SlideSolutionSchema)` to create a new message.
405
- */
406
- export const SlideSolutionSchema: GenMessage<SlideSolution> = /*@__PURE__*/
407
- messageDesc(file_captchasonicai_v1_sonic, 9);
408
-
409
- /**
410
- * @generated from message captchasonicai.v1.TextSolution
411
- */
412
- export type TextSolution = Message<"captchasonicai.v1.TextSolution"> & {
413
- /**
414
- * one per image (OCR) or single element (audio)
415
- *
416
- * @generated from field: repeated string texts = 1;
417
- */
418
- texts: string[];
419
- };
420
-
421
- /**
422
- * Describes the message captchasonicai.v1.TextSolution.
423
- * Use `create(TextSolutionSchema)` to create a new message.
424
- */
425
- export const TextSolutionSchema: GenMessage<TextSolution> = /*@__PURE__*/
426
- messageDesc(file_captchasonicai_v1_sonic, 10);
427
-
428
- /**
429
- * @generated from message captchasonicai.v1.GetTaskResultRequest
430
- */
431
- export type GetTaskResultRequest = Message<"captchasonicai.v1.GetTaskResultRequest"> & {
432
- /**
433
- * @generated from field: string apiKey = 1;
434
- */
435
- apiKey: string;
436
-
437
- /**
438
- * @generated from field: string taskId = 2;
439
- */
440
- taskId: string;
441
- };
442
-
443
- /**
444
- * Describes the message captchasonicai.v1.GetTaskResultRequest.
445
- * Use `create(GetTaskResultRequestSchema)` to create a new message.
446
- */
447
- export const GetTaskResultRequestSchema: GenMessage<GetTaskResultRequest> = /*@__PURE__*/
448
- messageDesc(file_captchasonicai_v1_sonic, 11);
449
-
450
- /**
451
- * @generated from message captchasonicai.v1.GetTaskResultResponse
452
- */
453
- export type GetTaskResultResponse = Message<"captchasonicai.v1.GetTaskResultResponse"> & {
454
- /**
455
- * @generated from field: int32 errorId = 1;
456
- */
457
- errorId: number;
458
-
459
- /**
460
- * @generated from field: string status = 2;
461
- */
462
- status: string;
463
-
464
- /**
465
- * legacy string map
466
- *
467
- * @generated from field: map<string, string> solution = 3;
468
- */
469
- solution: { [key: string]: string };
470
-
471
- /**
472
- * typed solution
473
- *
474
- * @generated from field: captchasonicai.v1.SolutionPayload typed_solution = 4;
475
- */
476
- typedSolution?: SolutionPayload | undefined;
477
- };
478
-
479
- /**
480
- * Describes the message captchasonicai.v1.GetTaskResultResponse.
481
- * Use `create(GetTaskResultResponseSchema)` to create a new message.
482
- */
483
- export const GetTaskResultResponseSchema: GenMessage<GetTaskResultResponse> = /*@__PURE__*/
484
- messageDesc(file_captchasonicai_v1_sonic, 12);
485
-
486
- /**
487
- * @generated from message captchasonicai.v1.GetBalanceRequest
488
- */
489
- export type GetBalanceRequest = Message<"captchasonicai.v1.GetBalanceRequest"> & {
490
- /**
491
- * @generated from field: string apiKey = 1;
492
- */
493
- apiKey: string;
494
- };
495
-
496
- /**
497
- * Describes the message captchasonicai.v1.GetBalanceRequest.
498
- * Use `create(GetBalanceRequestSchema)` to create a new message.
499
- */
500
- export const GetBalanceRequestSchema: GenMessage<GetBalanceRequest> = /*@__PURE__*/
501
- messageDesc(file_captchasonicai_v1_sonic, 13);
502
-
503
- /**
504
- * @generated from message captchasonicai.v1.GetBalanceResponse
505
- */
506
- export type GetBalanceResponse = Message<"captchasonicai.v1.GetBalanceResponse"> & {
507
- /**
508
- * @generated from field: double balance = 1;
509
- */
510
- balance: number;
511
-
512
- /**
513
- * @generated from field: int32 errorId = 2;
514
- */
515
- errorId: number;
516
-
517
- /**
518
- * @generated from field: string status = 3;
519
- */
520
- status: string;
521
- };
522
-
523
- /**
524
- * Describes the message captchasonicai.v1.GetBalanceResponse.
525
- * Use `create(GetBalanceResponseSchema)` to create a new message.
526
- */
527
- export const GetBalanceResponseSchema: GenMessage<GetBalanceResponse> = /*@__PURE__*/
528
- messageDesc(file_captchasonicai_v1_sonic, 14);
529
-
530
- /**
531
- * @generated from message captchasonicai.v1.HealthCheckRequest
532
- */
533
- export type HealthCheckRequest = Message<"captchasonicai.v1.HealthCheckRequest"> & {
534
- };
535
-
536
- /**
537
- * Describes the message captchasonicai.v1.HealthCheckRequest.
538
- * Use `create(HealthCheckRequestSchema)` to create a new message.
539
- */
540
- export const HealthCheckRequestSchema: GenMessage<HealthCheckRequest> = /*@__PURE__*/
541
- messageDesc(file_captchasonicai_v1_sonic, 15);
542
-
543
- /**
544
- * @generated from message captchasonicai.v1.HealthCheckResponse
545
- */
546
- export type HealthCheckResponse = Message<"captchasonicai.v1.HealthCheckResponse"> & {
547
- /**
548
- * @generated from field: bool healthy = 1;
549
- */
550
- healthy: boolean;
551
-
552
- /**
553
- * @generated from field: string version = 2;
554
- */
555
- version: string;
556
- };
557
-
558
- /**
559
- * Describes the message captchasonicai.v1.HealthCheckResponse.
560
- * Use `create(HealthCheckResponseSchema)` to create a new message.
561
- */
562
- export const HealthCheckResponseSchema: GenMessage<HealthCheckResponse> = /*@__PURE__*/
563
- messageDesc(file_captchasonicai_v1_sonic, 16);
564
-
565
- /**
566
- * @generated from service captchasonicai.v1.SonicService
567
- */
568
- export const SonicService: GenService<{
569
- /**
570
- * @generated from rpc captchasonicai.v1.SonicService.CreateTask
571
- */
572
- createTask: {
573
- methodKind: "unary";
574
- input: typeof CreateTaskRequestSchema;
575
- output: typeof CreateTaskResponseSchema;
576
- },
577
- /**
578
- * @generated from rpc captchasonicai.v1.SonicService.GetTaskResult
579
- */
580
- getTaskResult: {
581
- methodKind: "unary";
582
- input: typeof GetTaskResultRequestSchema;
583
- output: typeof GetTaskResultResponseSchema;
584
- },
585
- /**
586
- * @generated from rpc captchasonicai.v1.SonicService.GetBalance
587
- */
588
- getBalance: {
589
- methodKind: "unary";
590
- input: typeof GetBalanceRequestSchema;
591
- output: typeof GetBalanceResponseSchema;
592
- },
593
- /**
594
- * @generated from rpc captchasonicai.v1.SonicService.HealthCheck
595
- */
596
- healthCheck: {
597
- methodKind: "unary";
598
- input: typeof HealthCheckRequestSchema;
599
- output: typeof HealthCheckResponseSchema;
600
- },
601
- }> = /*@__PURE__*/
602
- serviceDesc(file_captchasonicai_v1_sonic, 0);
603
-