-
Notifications
You must be signed in to change notification settings - Fork 0
/
payloads.go
72 lines (55 loc) · 1.81 KB
/
payloads.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package anticaptcha
type RecaptchaV2Payload struct {
// EndpointUrl is the endpoint that has Recaptcha Protection
EndpointUrl string
// EndpointKey is the Recaptcha Key
// Can be found on the Endpoint URL page
EndpointKey string
// IsInvisibleCaptcha Enable if endpoint has invisible Recaptcha V2
IsInvisibleCaptcha bool
}
type RecaptchaV3Payload struct {
// EndpointUrl is the endpoint that has Recaptcha Protection
EndpointUrl string
// EndpointKey is the Recaptcha Key
// Can be found on the Endpoint URL page
EndpointKey string
// Action is the action name of the recaptcha, you can find it in source code of site
Action string
// IsEnterprise should be set if V3 Enterprise is used
IsEnterprise bool
// MinScore defaults to 0.3, accepted values are 0.3, 0.6, 0.9
MinScore float32
}
type TurnstilePayload struct {
// EndpointUrl is the endpoint that has FunCaptcha Protection
EndpointUrl string
// EndpointKey is the Recaptcha Key
// Can be found on the Endpoint URL page
EndpointKey string
}
type ImageCaptchaPayload struct {
// Base64String is the base64 representation of the image
Base64String string
// CaseSensitive should be set to true if captcha is case-sensitive
CaseSensitive bool
// InstructionsForSolver should be set if the human solver needs additional information
// about how to solve the captcha
InstructionsForSolver string
}
type CoordinatesPayload struct {
// Body is the base64 representation of the image
Body string
// ImageInstructions is the base64 representation of the image
ImageInstructions string
}
type CustomPayload struct {
Params map[string]any
}
type HCaptchaPayload struct {
// EndpointUrl is the endpoint that has Recaptcha Protection
EndpointUrl string
// EndpointKey is the HCaptcha Key
// Can be found on the Endpoint URL page
EndpointKey string
}