@prosopo/types 3.0.5 → 3.5.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/CHANGELOG.md +233 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/ipapi.d.ts +171 -0
- package/dist/api/ipapi.d.ts.map +1 -0
- package/dist/api/ipapi.js +1 -0
- package/dist/api/params.d.ts +2 -1
- package/dist/api/params.d.ts.map +1 -1
- package/dist/api/params.js +1 -0
- package/dist/cjs/api/index.cjs +1 -0
- package/dist/cjs/api/ipapi.cjs +1 -0
- package/dist/cjs/api/params.cjs +1 -0
- package/dist/cjs/client/index.cjs +11 -0
- package/dist/cjs/client/settings.cjs +65 -1
- package/dist/cjs/config/config.cjs +23 -5
- package/dist/cjs/config/frictionless.cjs +9 -2
- package/dist/cjs/config/index.cjs +5 -1
- package/dist/cjs/datasets/captcha.cjs +1 -1
- package/dist/cjs/index.cjs +18 -1
- package/dist/cjs/provider/api.cjs +15 -0
- package/dist/cjs/provider/detection.cjs +1 -0
- package/dist/cjs/provider/index.cjs +3 -0
- package/dist/client/index.js +13 -2
- package/dist/client/settings.d.ts +356 -8
- package/dist/client/settings.d.ts.map +1 -1
- package/dist/client/settings.js +67 -3
- package/dist/config/config.d.ts +64 -22
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +24 -6
- package/dist/config/frictionless.d.ts +6 -0
- package/dist/config/frictionless.d.ts.map +1 -1
- package/dist/config/frictionless.js +10 -3
- package/dist/config/index.js +7 -3
- package/dist/datasets/captcha.js +1 -1
- package/dist/index.js +23 -6
- package/dist/procaptcha/manager.d.ts +1 -1
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/props.d.ts +1 -0
- package/dist/procaptcha/props.d.ts.map +1 -1
- package/dist/procaptcha-frictionless/props.d.ts +1 -1
- package/dist/procaptcha-frictionless/props.d.ts.map +1 -1
- package/dist/provider/api.d.ts +263 -1
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +17 -2
- package/dist/provider/detection.d.ts +8 -0
- package/dist/provider/detection.d.ts.map +1 -0
- package/dist/provider/detection.js +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +5 -2
- package/package.json +11 -15
package/dist/provider/api.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ApiJsonError } from "@prosopo/common";
|
|
2
1
|
import type { Address4, Address6 } from "ip-address";
|
|
3
2
|
import { type ZodDefault, type ZodNumber, type ZodObject, type ZodOptional, type input, type output, type infer as zInfer } from "zod";
|
|
4
3
|
import { ApiParams } from "../api/params.js";
|
|
@@ -6,6 +5,11 @@ import type { CaptchaType } from "../client/captchaType/captchaType.js";
|
|
|
6
5
|
import { Tier } from "../client/index.js";
|
|
7
6
|
import { type Captcha, type DappAccount, type DatasetID, type PoWChallengeId, type UserAccount } from "../datasets/index.js";
|
|
8
7
|
import { type ChallengeSignature, type RequestHashSignature } from "../procaptcha/index.js";
|
|
8
|
+
export type ApiJsonError = {
|
|
9
|
+
message: string;
|
|
10
|
+
key?: string;
|
|
11
|
+
code: number;
|
|
12
|
+
};
|
|
9
13
|
export declare const ApiPrefix: "/v1/prosopo";
|
|
10
14
|
export type IPAddress = Address4 | Address6;
|
|
11
15
|
export declare const DEFAULT_SOLVED_COUNT = 2;
|
|
@@ -25,6 +29,40 @@ export declare enum PublicApiPaths {
|
|
|
25
29
|
Healthz = "/healthz",
|
|
26
30
|
GetProviderDetails = "/v1/prosopo/provider/public/details"
|
|
27
31
|
}
|
|
32
|
+
export declare const providerDetailsSchema: ZodObject<{
|
|
33
|
+
version: import("zod").ZodString;
|
|
34
|
+
message: import("zod").ZodString;
|
|
35
|
+
redis: import("zod").ZodArray<ZodObject<{
|
|
36
|
+
actor: import("zod").ZodString;
|
|
37
|
+
isReady: import("zod").ZodBoolean;
|
|
38
|
+
awaitingTimeSeconds: ZodNumber;
|
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
40
|
+
actor: string;
|
|
41
|
+
isReady: boolean;
|
|
42
|
+
awaitingTimeSeconds: number;
|
|
43
|
+
}, {
|
|
44
|
+
actor: string;
|
|
45
|
+
isReady: boolean;
|
|
46
|
+
awaitingTimeSeconds: number;
|
|
47
|
+
}>, "many">;
|
|
48
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
49
|
+
message: string;
|
|
50
|
+
version: string;
|
|
51
|
+
redis: {
|
|
52
|
+
actor: string;
|
|
53
|
+
isReady: boolean;
|
|
54
|
+
awaitingTimeSeconds: number;
|
|
55
|
+
}[];
|
|
56
|
+
}, {
|
|
57
|
+
message: string;
|
|
58
|
+
version: string;
|
|
59
|
+
redis: {
|
|
60
|
+
actor: string;
|
|
61
|
+
isReady: boolean;
|
|
62
|
+
awaitingTimeSeconds: number;
|
|
63
|
+
}[];
|
|
64
|
+
}>;
|
|
65
|
+
export type ProviderDetails = output<typeof providerDetailsSchema>;
|
|
28
66
|
export type TGetImageCaptchaChallengePathAndParams = `${ClientApiPaths.GetImageCaptchaChallenge}/${DatasetID}/${UserAccount}/${DappAccount}`;
|
|
29
67
|
export type TGetImageCaptchaChallengeURL = `${string}${TGetImageCaptchaChallengePathAndParams}`;
|
|
30
68
|
export type TGetPowCaptchaChallengeURL = `${string}${ClientApiPaths.GetPowCaptchaChallenge}`;
|
|
@@ -525,18 +563,182 @@ export declare const RegisterSitekeyBody: ZodObject<{
|
|
|
525
563
|
frictionlessThreshold: ZodDefault<ZodOptional<ZodNumber>>;
|
|
526
564
|
powDifficulty: ZodDefault<ZodOptional<ZodNumber>>;
|
|
527
565
|
imageThreshold: ZodDefault<ZodOptional<ZodNumber>>;
|
|
566
|
+
ipValidationRules: ZodOptional<ZodObject<{
|
|
567
|
+
actions: ZodObject<{
|
|
568
|
+
countryChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
569
|
+
cityChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
570
|
+
ispChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
571
|
+
distanceExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
572
|
+
abuseScoreExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
573
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
574
|
+
countryChangeAction: import("../client/settings.js").IPValidationAction;
|
|
575
|
+
cityChangeAction: import("../client/settings.js").IPValidationAction;
|
|
576
|
+
ispChangeAction: import("../client/settings.js").IPValidationAction;
|
|
577
|
+
distanceExceedAction: import("../client/settings.js").IPValidationAction;
|
|
578
|
+
abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
|
|
579
|
+
}, {
|
|
580
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
581
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
582
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
583
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
584
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
585
|
+
}>;
|
|
586
|
+
distanceThresholdKm: ZodDefault<ZodOptional<ZodNumber>>;
|
|
587
|
+
abuseScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
|
|
588
|
+
requireAllConditions: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
|
|
589
|
+
countryOverrides: ZodOptional<import("zod").ZodRecord<import("zod").ZodString, ZodObject<{
|
|
590
|
+
actions: ZodObject<{
|
|
591
|
+
countryChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
592
|
+
cityChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
593
|
+
ispChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
594
|
+
distanceExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
595
|
+
abuseScoreExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
|
|
596
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
597
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
598
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
599
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
600
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
601
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
602
|
+
}, {
|
|
603
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
604
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
605
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
606
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
607
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
608
|
+
}>;
|
|
609
|
+
distanceThresholdKm: ZodOptional<ZodNumber>;
|
|
610
|
+
abuseScoreThreshold: ZodOptional<ZodNumber>;
|
|
611
|
+
requireAllConditions: ZodOptional<import("zod").ZodBoolean>;
|
|
612
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
613
|
+
actions: {
|
|
614
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
615
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
616
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
617
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
618
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
619
|
+
};
|
|
620
|
+
distanceThresholdKm?: number | undefined;
|
|
621
|
+
abuseScoreThreshold?: number | undefined;
|
|
622
|
+
requireAllConditions?: boolean | undefined;
|
|
623
|
+
}, {
|
|
624
|
+
actions: {
|
|
625
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
626
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
627
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
628
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
629
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
630
|
+
};
|
|
631
|
+
distanceThresholdKm?: number | undefined;
|
|
632
|
+
abuseScoreThreshold?: number | undefined;
|
|
633
|
+
requireAllConditions?: boolean | undefined;
|
|
634
|
+
}>>>;
|
|
635
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
636
|
+
actions: {
|
|
637
|
+
countryChangeAction: import("../client/settings.js").IPValidationAction;
|
|
638
|
+
cityChangeAction: import("../client/settings.js").IPValidationAction;
|
|
639
|
+
ispChangeAction: import("../client/settings.js").IPValidationAction;
|
|
640
|
+
distanceExceedAction: import("../client/settings.js").IPValidationAction;
|
|
641
|
+
abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
|
|
642
|
+
};
|
|
643
|
+
distanceThresholdKm: number;
|
|
644
|
+
abuseScoreThreshold: number;
|
|
645
|
+
requireAllConditions: boolean;
|
|
646
|
+
countryOverrides?: Record<string, {
|
|
647
|
+
actions: {
|
|
648
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
649
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
650
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
651
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
652
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
653
|
+
};
|
|
654
|
+
distanceThresholdKm?: number | undefined;
|
|
655
|
+
abuseScoreThreshold?: number | undefined;
|
|
656
|
+
requireAllConditions?: boolean | undefined;
|
|
657
|
+
}> | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
actions: {
|
|
660
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
661
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
662
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
663
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
664
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
665
|
+
};
|
|
666
|
+
distanceThresholdKm?: number | undefined;
|
|
667
|
+
abuseScoreThreshold?: number | undefined;
|
|
668
|
+
requireAllConditions?: boolean | undefined;
|
|
669
|
+
countryOverrides?: Record<string, {
|
|
670
|
+
actions: {
|
|
671
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
672
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
673
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
674
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
675
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
676
|
+
};
|
|
677
|
+
distanceThresholdKm?: number | undefined;
|
|
678
|
+
abuseScoreThreshold?: number | undefined;
|
|
679
|
+
requireAllConditions?: boolean | undefined;
|
|
680
|
+
}> | undefined;
|
|
681
|
+
}>>;
|
|
528
682
|
}, "strip", import("zod").ZodTypeAny, {
|
|
529
683
|
captchaType: CaptchaType;
|
|
530
684
|
domains: string[];
|
|
531
685
|
frictionlessThreshold: number;
|
|
532
686
|
powDifficulty: number;
|
|
533
687
|
imageThreshold: number;
|
|
688
|
+
ipValidationRules?: {
|
|
689
|
+
actions: {
|
|
690
|
+
countryChangeAction: import("../client/settings.js").IPValidationAction;
|
|
691
|
+
cityChangeAction: import("../client/settings.js").IPValidationAction;
|
|
692
|
+
ispChangeAction: import("../client/settings.js").IPValidationAction;
|
|
693
|
+
distanceExceedAction: import("../client/settings.js").IPValidationAction;
|
|
694
|
+
abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
|
|
695
|
+
};
|
|
696
|
+
distanceThresholdKm: number;
|
|
697
|
+
abuseScoreThreshold: number;
|
|
698
|
+
requireAllConditions: boolean;
|
|
699
|
+
countryOverrides?: Record<string, {
|
|
700
|
+
actions: {
|
|
701
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
702
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
703
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
704
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
705
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
706
|
+
};
|
|
707
|
+
distanceThresholdKm?: number | undefined;
|
|
708
|
+
abuseScoreThreshold?: number | undefined;
|
|
709
|
+
requireAllConditions?: boolean | undefined;
|
|
710
|
+
}> | undefined;
|
|
711
|
+
} | undefined;
|
|
534
712
|
}, {
|
|
535
713
|
captchaType?: CaptchaType | undefined;
|
|
536
714
|
domains?: string[] | undefined;
|
|
537
715
|
frictionlessThreshold?: number | undefined;
|
|
538
716
|
powDifficulty?: number | undefined;
|
|
539
717
|
imageThreshold?: number | undefined;
|
|
718
|
+
ipValidationRules?: {
|
|
719
|
+
actions: {
|
|
720
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
721
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
722
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
723
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
724
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
725
|
+
};
|
|
726
|
+
distanceThresholdKm?: number | undefined;
|
|
727
|
+
abuseScoreThreshold?: number | undefined;
|
|
728
|
+
requireAllConditions?: boolean | undefined;
|
|
729
|
+
countryOverrides?: Record<string, {
|
|
730
|
+
actions: {
|
|
731
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
732
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
733
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
734
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
735
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
736
|
+
};
|
|
737
|
+
distanceThresholdKm?: number | undefined;
|
|
738
|
+
abuseScoreThreshold?: number | undefined;
|
|
739
|
+
requireAllConditions?: boolean | undefined;
|
|
740
|
+
}> | undefined;
|
|
741
|
+
} | undefined;
|
|
540
742
|
}>>;
|
|
541
743
|
}, "strip", import("zod").ZodTypeAny, {
|
|
542
744
|
siteKey: string;
|
|
@@ -547,6 +749,30 @@ export declare const RegisterSitekeyBody: ZodObject<{
|
|
|
547
749
|
frictionlessThreshold: number;
|
|
548
750
|
powDifficulty: number;
|
|
549
751
|
imageThreshold: number;
|
|
752
|
+
ipValidationRules?: {
|
|
753
|
+
actions: {
|
|
754
|
+
countryChangeAction: import("../client/settings.js").IPValidationAction;
|
|
755
|
+
cityChangeAction: import("../client/settings.js").IPValidationAction;
|
|
756
|
+
ispChangeAction: import("../client/settings.js").IPValidationAction;
|
|
757
|
+
distanceExceedAction: import("../client/settings.js").IPValidationAction;
|
|
758
|
+
abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
|
|
759
|
+
};
|
|
760
|
+
distanceThresholdKm: number;
|
|
761
|
+
abuseScoreThreshold: number;
|
|
762
|
+
requireAllConditions: boolean;
|
|
763
|
+
countryOverrides?: Record<string, {
|
|
764
|
+
actions: {
|
|
765
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
766
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
767
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
768
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
769
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
770
|
+
};
|
|
771
|
+
distanceThresholdKm?: number | undefined;
|
|
772
|
+
abuseScoreThreshold?: number | undefined;
|
|
773
|
+
requireAllConditions?: boolean | undefined;
|
|
774
|
+
}> | undefined;
|
|
775
|
+
} | undefined;
|
|
550
776
|
} | undefined;
|
|
551
777
|
}, {
|
|
552
778
|
siteKey: string;
|
|
@@ -557,6 +783,30 @@ export declare const RegisterSitekeyBody: ZodObject<{
|
|
|
557
783
|
frictionlessThreshold?: number | undefined;
|
|
558
784
|
powDifficulty?: number | undefined;
|
|
559
785
|
imageThreshold?: number | undefined;
|
|
786
|
+
ipValidationRules?: {
|
|
787
|
+
actions: {
|
|
788
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
789
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
790
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
791
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
792
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
793
|
+
};
|
|
794
|
+
distanceThresholdKm?: number | undefined;
|
|
795
|
+
abuseScoreThreshold?: number | undefined;
|
|
796
|
+
requireAllConditions?: boolean | undefined;
|
|
797
|
+
countryOverrides?: Record<string, {
|
|
798
|
+
actions: {
|
|
799
|
+
countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
800
|
+
cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
801
|
+
ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
802
|
+
distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
803
|
+
abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
|
|
804
|
+
};
|
|
805
|
+
distanceThresholdKm?: number | undefined;
|
|
806
|
+
abuseScoreThreshold?: number | undefined;
|
|
807
|
+
requireAllConditions?: boolean | undefined;
|
|
808
|
+
}> | undefined;
|
|
809
|
+
} | undefined;
|
|
560
810
|
} | undefined;
|
|
561
811
|
}>;
|
|
562
812
|
export declare const UpdateDetectorKeyBody: ZodObject<{
|
|
@@ -566,6 +816,18 @@ export declare const UpdateDetectorKeyBody: ZodObject<{
|
|
|
566
816
|
}, {
|
|
567
817
|
detectorKey: string;
|
|
568
818
|
}>;
|
|
819
|
+
export declare const RemoveDetectorKeyBodySpec: ZodObject<{
|
|
820
|
+
detectorKey: import("zod").ZodString;
|
|
821
|
+
expirationInSeconds: ZodOptional<ZodNumber>;
|
|
822
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
823
|
+
detectorKey: string;
|
|
824
|
+
expirationInSeconds?: number | undefined;
|
|
825
|
+
}, {
|
|
826
|
+
detectorKey: string;
|
|
827
|
+
expirationInSeconds?: number | undefined;
|
|
828
|
+
}>;
|
|
829
|
+
export type RemoveDetectorKeyBodyInput = input<typeof RemoveDetectorKeyBodySpec>;
|
|
830
|
+
export type RemoveDetectorKeyBodyOutput = output<typeof RemoveDetectorKeyBodySpec>;
|
|
569
831
|
export type RegisterSitekeyBodyTypeOutput = output<typeof RegisterSitekeyBody>;
|
|
570
832
|
export declare const ProsopoCaptchaCountConfigSchema: ZodObject<{
|
|
571
833
|
solved: ZodDefault<ZodOptional<ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/provider/api.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/provider/api.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACN,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,WAAW,EAIhB,KAAK,KAAK,EAIV,KAAK,MAAM,EAGX,KAAK,KAAK,IAAI,MAAM,EACpB,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAwB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAKhE,OAAO,EACN,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAGzB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,SAAS,eAAyB,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5C,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,oBAAY,cAAc;IACzB,wBAAwB,8CAA8C;IACtE,sBAAsB,4CAA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,CACtC,CAAC;AAEF,oBAAY,aAAa;IACxB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC3B;AAID,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC"}
|
package/dist/provider/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object,
|
|
1
|
+
import { object, number, boolean, string, coerce, union, array, nativeEnum } from "zod";
|
|
2
2
|
import { ApiParams } from "../api/params.js";
|
|
3
3
|
import "../client/index.js";
|
|
4
4
|
import { DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED, DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT } from "../config/timeouts.js";
|
|
@@ -28,6 +28,15 @@ var PublicApiPaths = /* @__PURE__ */ ((PublicApiPaths2) => {
|
|
|
28
28
|
PublicApiPaths2["GetProviderDetails"] = "/v1/prosopo/provider/public/details";
|
|
29
29
|
return PublicApiPaths2;
|
|
30
30
|
})(PublicApiPaths || {});
|
|
31
|
+
const providerDetailsSchema = object({
|
|
32
|
+
version: string(),
|
|
33
|
+
message: string(),
|
|
34
|
+
redis: object({
|
|
35
|
+
actor: string(),
|
|
36
|
+
isReady: boolean(),
|
|
37
|
+
awaitingTimeSeconds: number()
|
|
38
|
+
}).array()
|
|
39
|
+
});
|
|
31
40
|
var AdminApiPaths = /* @__PURE__ */ ((AdminApiPaths2) => {
|
|
32
41
|
AdminApiPaths2["SiteKeyRegister"] = "/v1/prosopo/provider/admin/sitekey/register";
|
|
33
42
|
AdminApiPaths2["UpdateDetectorKey"] = "/v1/prosopo/provider/admin/detector/update";
|
|
@@ -176,6 +185,10 @@ const RegisterSitekeyBody = object({
|
|
|
176
185
|
const UpdateDetectorKeyBody = object({
|
|
177
186
|
[ApiParams.detectorKey]: string()
|
|
178
187
|
});
|
|
188
|
+
const RemoveDetectorKeyBodySpec = object({
|
|
189
|
+
[ApiParams.detectorKey]: string(),
|
|
190
|
+
[ApiParams.expirationInSeconds]: number().positive().optional()
|
|
191
|
+
});
|
|
179
192
|
const ProsopoCaptchaCountConfigSchema = object({
|
|
180
193
|
solved: object({
|
|
181
194
|
count: number().positive()
|
|
@@ -218,9 +231,11 @@ export {
|
|
|
218
231
|
ProviderDefaultRateLimits,
|
|
219
232
|
PublicApiPaths,
|
|
220
233
|
RegisterSitekeyBody,
|
|
234
|
+
RemoveDetectorKeyBodySpec,
|
|
221
235
|
ServerPowCaptchaVerifyRequestBody,
|
|
222
236
|
SubmitPowCaptchaSolutionBody,
|
|
223
237
|
UpdateDetectorKeyBody,
|
|
224
238
|
VerifyPowCaptchaSolutionBody,
|
|
225
|
-
VerifySolutionBody
|
|
239
|
+
VerifySolutionBody,
|
|
240
|
+
providerDetailsSchema
|
|
226
241
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/provider/detection.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAaA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAaA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/dist/provider/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./accounts.js";
|
|
2
|
-
import { AdminApiPaths, ApiPathRateLimits, ApiPrefix, BlockRuleSpec, BlockRuleType, CaptchaRequestBody, CaptchaSolutionBody, ClientApiPaths, DEFAULT_SOLVED_COUNT, DEFAULT_UNSOLVED_COUNT, DappDomainRequestBody, GetFrictionlessCaptchaChallengeRequestBody, GetPowCaptchaChallengeRequestBody, ProsopoCaptchaCountConfigSchema, ProviderDefaultRateLimits, PublicApiPaths, RegisterSitekeyBody, ServerPowCaptchaVerifyRequestBody, SubmitPowCaptchaSolutionBody, UpdateDetectorKeyBody, VerifyPowCaptchaSolutionBody, VerifySolutionBody } from "./api.js";
|
|
2
|
+
import { AdminApiPaths, ApiPathRateLimits, ApiPrefix, BlockRuleSpec, BlockRuleType, CaptchaRequestBody, CaptchaSolutionBody, ClientApiPaths, DEFAULT_SOLVED_COUNT, DEFAULT_UNSOLVED_COUNT, DappDomainRequestBody, GetFrictionlessCaptchaChallengeRequestBody, GetPowCaptchaChallengeRequestBody, ProsopoCaptchaCountConfigSchema, ProviderDefaultRateLimits, PublicApiPaths, RegisterSitekeyBody, RemoveDetectorKeyBodySpec, ServerPowCaptchaVerifyRequestBody, SubmitPowCaptchaSolutionBody, UpdateDetectorKeyBody, VerifyPowCaptchaSolutionBody, VerifySolutionBody, providerDetailsSchema } from "./api.js";
|
|
3
3
|
import { ScheduledTaskNames, ScheduledTaskStatus } from "./scheduler.js";
|
|
4
|
+
import "./detection.js";
|
|
4
5
|
export {
|
|
5
6
|
AdminApiPaths,
|
|
6
7
|
ApiPathRateLimits,
|
|
@@ -19,11 +20,13 @@ export {
|
|
|
19
20
|
ProviderDefaultRateLimits,
|
|
20
21
|
PublicApiPaths,
|
|
21
22
|
RegisterSitekeyBody,
|
|
23
|
+
RemoveDetectorKeyBodySpec,
|
|
22
24
|
ScheduledTaskNames,
|
|
23
25
|
ScheduledTaskStatus,
|
|
24
26
|
ServerPowCaptchaVerifyRequestBody,
|
|
25
27
|
SubmitPowCaptchaSolutionBody,
|
|
26
28
|
UpdateDetectorKeyBody,
|
|
27
29
|
VerifyPowCaptchaSolutionBody,
|
|
28
|
-
VerifySolutionBody
|
|
30
|
+
VerifySolutionBody,
|
|
31
|
+
providerDetailsSchema
|
|
29
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "Types for prosopo TypeScript packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
21
|
-
"build": "NODE_ENV=${NODE_ENV:-
|
|
21
|
+
"build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
22
22
|
"build:tsc": "tsc --build --verbose",
|
|
23
|
-
"build:cjs": "NODE_ENV=${NODE_ENV:-
|
|
24
|
-
"typecheck": "tsc --
|
|
25
|
-
"test": "echo no tests"
|
|
23
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
24
|
+
"typecheck": "tsc --project tsconfig.types.json"
|
|
26
25
|
},
|
|
27
26
|
"repository": {
|
|
28
27
|
"type": "git",
|
|
@@ -36,18 +35,15 @@
|
|
|
36
35
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"@polkadot/extension-inject": "0.46.9",
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
38
|
+
"@polkadot/types": "10.13.1",
|
|
39
|
+
"@polkadot/util": "12.6.2",
|
|
40
|
+
"@prosopo/locale": "3.1.20",
|
|
41
|
+
"@prosopo/util": "3.1.5",
|
|
42
|
+
"@prosopo/util-crypto": "13.5.22",
|
|
43
|
+
"@prosopo/config": "3.1.20",
|
|
45
44
|
"ip-address": "10.0.1",
|
|
46
|
-
"openpgp": "5.11.3",
|
|
47
45
|
"scale-ts": "1.6.0",
|
|
48
|
-
"zod": "3.23.8"
|
|
49
|
-
"@prosopo/config": "3.1.2",
|
|
50
|
-
"webpack-dev-server": "5.2.2"
|
|
46
|
+
"zod": "3.23.8"
|
|
51
47
|
},
|
|
52
48
|
"devDependencies": {
|
|
53
49
|
"@types/node": "22.5.5",
|