@kya-os/checkpoint-shared 1.10.0 → 1.11.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.
- package/CHANGELOG.md +89 -0
- package/dist/base64url-BbVG8f-v.js +65 -0
- package/dist/base64url-D2MvsR20.mjs +49 -0
- package/dist/base64url-D2MvsR20.mjs.map +1 -0
- package/dist/beacon-forward-secret/index.d.mts +4 -0
- package/dist/beacon-forward-secret/index.d.mts.map +1 -0
- package/dist/beacon-forward-secret/index.d.ts +4 -0
- package/dist/beacon-forward-secret/index.d.ts.map +1 -0
- package/dist/beacon-forward-secret/index.js +15 -0
- package/dist/beacon-forward-secret/index.mjs +15 -0
- package/dist/beacon-forward-secret/index.mjs.map +1 -0
- package/dist/beacon-types/index.d.mts +53 -1
- package/dist/beacon-types/index.d.mts.map +1 -1
- package/dist/beacon-types/index.d.ts +53 -1
- package/dist/beacon-types/index.d.ts.map +1 -1
- package/dist/beacon-types/index.js +86 -1
- package/dist/beacon-types/index.mjs +77 -2
- package/dist/beacon-types/index.mjs.map +1 -1
- package/dist/{browser-posture-5fPrsxx7.d.mts → browser-posture-WPk0kl9u.d.mts} +18 -1
- package/dist/browser-posture-WPk0kl9u.d.mts.map +1 -0
- package/dist/{browser-posture-CCR1kh5e.d.ts → browser-posture-_y6BcdXw.d.ts} +18 -1
- package/dist/browser-posture-_y6BcdXw.d.ts.map +1 -0
- package/dist/browser-posture-cookie.mjs.map +1 -1
- package/dist/browser-posture-proof-verifier.js +136 -5
- package/dist/browser-posture-proof-verifier.mjs +134 -2
- package/dist/browser-posture-proof-verifier.mjs.map +1 -0
- package/dist/browser-posture-proof.d.mts +1 -1
- package/dist/browser-posture-proof.d.ts +1 -1
- package/dist/browser-posture-proof.js +1 -1
- package/dist/browser-posture-proof.mjs +1 -1
- package/dist/browser-posture-report.d.mts +17 -0
- package/dist/browser-posture-report.d.mts.map +1 -1
- package/dist/browser-posture-report.d.ts +17 -0
- package/dist/browser-posture-report.d.ts.map +1 -1
- package/dist/browser-posture.d.mts +1 -1
- package/dist/browser-posture.d.ts +1 -1
- package/dist/browser-posture.js +18 -1
- package/dist/browser-posture.mjs +18 -1
- package/dist/browser-posture.mjs.map +1 -1
- package/dist/browser.d.mts +10 -0
- package/dist/browser.d.mts.map +1 -1
- package/dist/browser.d.ts +10 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/canonical-signer/index.d.mts.map +1 -1
- package/dist/canonical-signer/index.d.ts.map +1 -1
- package/dist/canonical-signer/index.js +0 -4
- package/dist/canonical-signer/index.mjs +0 -4
- package/dist/canonical-signer/index.mjs.map +1 -1
- package/dist/{client-ip-B7w-uHfS.d.ts → client-ip-8KneiMK0.d.mts} +12 -2
- package/dist/{client-ip-B7w-uHfS.d.mts.map → client-ip-8KneiMK0.d.mts.map} +1 -1
- package/dist/{client-ip-B7w-uHfS.d.mts → client-ip-8KneiMK0.d.ts} +12 -2
- package/dist/{client-ip-B7w-uHfS.d.ts.map → client-ip-8KneiMK0.d.ts.map} +1 -1
- package/dist/{client-ip-B8wFzJ5f.js → client-ip-BEmLC4I4.js} +71 -0
- package/dist/{client-ip-DIJyr6px.mjs → client-ip-DlHx7GGh.mjs} +61 -2
- package/dist/client-ip-DlHx7GGh.mjs.map +1 -0
- package/dist/client-ip.d.mts +2 -2
- package/dist/client-ip.d.ts +2 -2
- package/dist/client-ip.js +3 -1
- package/dist/client-ip.mjs +2 -2
- package/dist/deploy/index.d.mts.map +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/index.js +5 -1
- package/dist/deploy/index.mjs +5 -1
- package/dist/deploy/index.mjs.map +1 -1
- package/dist/{detection-reason-mapping-CQexNvR7.d.ts → detection-reason-mapping-BemDaDED.d.mts} +5 -2
- package/dist/detection-reason-mapping-BemDaDED.d.mts.map +1 -0
- package/dist/{detection-reason-mapping-CQexNvR7.d.mts → detection-reason-mapping-BemDaDED.d.ts} +5 -2
- package/dist/detection-reason-mapping-BemDaDED.d.ts.map +1 -0
- package/dist/{detection-reason-mapping-B9RSkOs8.js → detection-reason-mapping-BxYaQ8kb.js} +33 -8
- package/dist/{detection-reason-mapping-BGymWIPl.mjs → detection-reason-mapping-j-7bXsVb.mjs} +29 -10
- package/dist/detection-reason-mapping-j-7bXsVb.mjs.map +1 -0
- package/dist/errors/index.d.mts +4 -0
- package/dist/errors/index.d.mts.map +1 -1
- package/dist/errors/index.d.ts +4 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +24 -8
- package/dist/errors/index.mjs +24 -8
- package/dist/errors/index.mjs.map +1 -1
- package/dist/{fetcher-CZfLcbRZ.d.mts → fetcher-CTKz07jg.d.mts} +12 -2
- package/dist/fetcher-CTKz07jg.d.mts.map +1 -0
- package/dist/{fetcher-CCw4Q95g.d.ts → fetcher-DCr920hx.d.ts} +12 -2
- package/dist/fetcher-DCr920hx.d.ts.map +1 -0
- package/dist/gateway-client-ip.js +1 -1
- package/dist/gateway-client-ip.mjs +1 -1
- package/dist/identity-cookie/index.d.mts +14 -0
- package/dist/identity-cookie/index.d.mts.map +1 -0
- package/dist/identity-cookie/index.d.ts +14 -0
- package/dist/identity-cookie/index.d.ts.map +1 -0
- package/dist/identity-cookie/index.js +45 -0
- package/dist/identity-cookie/index.mjs +43 -0
- package/dist/identity-cookie/index.mjs.map +1 -0
- package/dist/index.d.mts +598 -142
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +598 -142
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +793 -198
- package/dist/index.mjs +743 -188
- package/dist/index.mjs.map +1 -1
- package/dist/kya-http.d.mts +2 -2
- package/dist/kya-http.d.ts +2 -2
- package/dist/kya-http.js +2 -1
- package/dist/kya-http.mjs +2 -2
- package/dist/mcpi/dashboard-config/index.mjs.map +1 -1
- package/dist/patterns-CdTh7LU2.d.mts +35 -0
- package/dist/patterns-CdTh7LU2.d.mts.map +1 -0
- package/dist/patterns-CdTh7LU2.d.ts +35 -0
- package/dist/patterns-CdTh7LU2.d.ts.map +1 -0
- package/dist/{patterns-CiMpbdAF.js → patterns-CnNxRnaK.js} +3 -130
- package/dist/{patterns-D4OAsNQY.mjs → patterns-CpRk9R3M.mjs} +5 -96
- package/dist/patterns-CpRk9R3M.mjs.map +1 -0
- package/dist/patterns.d.mts +2 -2
- package/dist/patterns.d.ts +2 -2
- package/dist/patterns.js +1 -7
- package/dist/patterns.mjs +2 -2
- package/dist/policy/fetcher.d.mts +2 -2
- package/dist/policy/fetcher.d.ts +2 -2
- package/dist/policy/fetcher.js +100 -8
- package/dist/policy/fetcher.mjs +99 -9
- package/dist/policy/fetcher.mjs.map +1 -1
- package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs +81 -0
- package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs.map +1 -0
- package/dist/proxy-assertion-mapping-BxhENrcY.d.mts +70 -0
- package/dist/proxy-assertion-mapping-BxhENrcY.d.mts.map +1 -0
- package/dist/proxy-assertion-mapping-D64AyZfG.js +85 -0
- package/dist/proxy-assertion-mapping-DhAynFqG.d.ts +70 -0
- package/dist/proxy-assertion-mapping-DhAynFqG.d.ts.map +1 -0
- package/dist/proxy-assertions.d.mts +2 -0
- package/dist/proxy-assertions.d.ts +2 -0
- package/dist/proxy-assertions.js +4 -0
- package/dist/proxy-assertions.mjs +3 -0
- package/dist/reason-codes.d.mts +2 -2
- package/dist/reason-codes.d.ts +2 -2
- package/dist/reason-codes.js +3 -2
- package/dist/reason-codes.mjs +2 -2
- package/dist/{registered-sid-CnWIU_l1.d.ts → registered-sid-BgDhdj2l.d.mts} +13 -2
- package/dist/registered-sid-BgDhdj2l.d.mts.map +1 -0
- package/dist/{registered-sid-CnWIU_l1.d.mts → registered-sid-BgDhdj2l.d.ts} +13 -2
- package/dist/registered-sid-BgDhdj2l.d.ts.map +1 -0
- package/dist/{registered-sid-BZfDOfXy.js → registered-sid-DG1tSSvl.js} +67 -12
- package/dist/{registered-sid-CS9V8nPr.mjs → registered-sid-D__xiDPu.mjs} +63 -14
- package/dist/registered-sid-D__xiDPu.mjs.map +1 -0
- package/dist/timezone-country-B6PkDyNP.d.mts +15 -0
- package/dist/timezone-country-B6PkDyNP.d.mts.map +1 -0
- package/dist/timezone-country-B6PkDyNP.d.ts +15 -0
- package/dist/timezone-country-B6PkDyNP.d.ts.map +1 -0
- package/dist/timezone-country-CROxU2Tl.js +505 -0
- package/dist/timezone-country-CrrnkOdy.mjs +489 -0
- package/dist/timezone-country-CrrnkOdy.mjs.map +1 -0
- package/dist/timezone-country.d.mts +2 -0
- package/dist/timezone-country.d.ts +2 -0
- package/dist/timezone-country.js +6 -0
- package/dist/timezone-country.mjs +3 -0
- package/dist/tool-protection/index.mjs.map +1 -1
- package/fixtures/detection/cloudflare-alias-parity.json +383 -0
- package/fixtures/detection/reason-codes.json +3 -1
- package/fixtures/detection/signal-exposure-example.json +1 -1
- package/fixtures/iana-tzdata/backward +375 -0
- package/fixtures/iana-tzdata/renamed-zones.json +21 -0
- package/fixtures/iana-tzdata/version +1 -0
- package/fixtures/iana-tzdata/zone.tab +448 -0
- package/fixtures/workbench/management-session.v1.json +20 -0
- package/fixtures/workbench/model-credentials.v1.json +8 -0
- package/fixtures/workbench/task-grant.v1.json +37 -0
- package/package.json +25 -3
- package/src/data/compiled/merged-rules.json +9 -7
- package/dist/browser-posture-5fPrsxx7.d.mts.map +0 -1
- package/dist/browser-posture-CCR1kh5e.d.ts.map +0 -1
- package/dist/browser-posture-proof-verifier-DvsOmFrM.js +0 -202
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs +0 -180
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs.map +0 -1
- package/dist/client-ip-DIJyr6px.mjs.map +0 -1
- package/dist/detection-reason-mapping-BGymWIPl.mjs.map +0 -1
- package/dist/detection-reason-mapping-CQexNvR7.d.mts.map +0 -1
- package/dist/detection-reason-mapping-CQexNvR7.d.ts.map +0 -1
- package/dist/fetcher-CCw4Q95g.d.ts.map +0 -1
- package/dist/fetcher-CZfLcbRZ.d.mts.map +0 -1
- package/dist/patterns-Bp40cwh2.d.mts +0 -110
- package/dist/patterns-Bp40cwh2.d.mts.map +0 -1
- package/dist/patterns-Bp40cwh2.d.ts +0 -110
- package/dist/patterns-Bp40cwh2.d.ts.map +0 -1
- package/dist/patterns-D4OAsNQY.mjs.map +0 -1
- package/dist/registered-sid-CS9V8nPr.mjs.map +0 -1
- package/dist/registered-sid-CnWIU_l1.d.mts.map +0 -1
- package/dist/registered-sid-CnWIU_l1.d.ts.map +0 -1
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
//#region src/data/generated/timezone-country.ts
|
|
2
|
+
const TIMEZONE_COUNTRY_MAP = {
|
|
3
|
+
"Africa/Abidjan": "CI",
|
|
4
|
+
"Africa/Accra": "GH",
|
|
5
|
+
"Africa/Addis_Ababa": "ET",
|
|
6
|
+
"Africa/Algiers": "DZ",
|
|
7
|
+
"Africa/Asmara": "ER",
|
|
8
|
+
"Africa/Asmera": "ER",
|
|
9
|
+
"Africa/Bamako": "ML",
|
|
10
|
+
"Africa/Bangui": "CF",
|
|
11
|
+
"Africa/Banjul": "GM",
|
|
12
|
+
"Africa/Bissau": "GW",
|
|
13
|
+
"Africa/Blantyre": "MW",
|
|
14
|
+
"Africa/Brazzaville": "CG",
|
|
15
|
+
"Africa/Bujumbura": "BI",
|
|
16
|
+
"Africa/Cairo": "EG",
|
|
17
|
+
"Africa/Casablanca": "MA",
|
|
18
|
+
"Africa/Ceuta": "ES",
|
|
19
|
+
"Africa/Conakry": "GN",
|
|
20
|
+
"Africa/Dakar": "SN",
|
|
21
|
+
"Africa/Dar_es_Salaam": "TZ",
|
|
22
|
+
"Africa/Djibouti": "DJ",
|
|
23
|
+
"Africa/Douala": "CM",
|
|
24
|
+
"Africa/El_Aaiun": "EH",
|
|
25
|
+
"Africa/Freetown": "SL",
|
|
26
|
+
"Africa/Gaborone": "BW",
|
|
27
|
+
"Africa/Harare": "ZW",
|
|
28
|
+
"Africa/Johannesburg": "ZA",
|
|
29
|
+
"Africa/Juba": "SS",
|
|
30
|
+
"Africa/Kampala": "UG",
|
|
31
|
+
"Africa/Khartoum": "SD",
|
|
32
|
+
"Africa/Kigali": "RW",
|
|
33
|
+
"Africa/Kinshasa": "CD",
|
|
34
|
+
"Africa/Lagos": "NG",
|
|
35
|
+
"Africa/Libreville": "GA",
|
|
36
|
+
"Africa/Lome": "TG",
|
|
37
|
+
"Africa/Luanda": "AO",
|
|
38
|
+
"Africa/Lubumbashi": "CD",
|
|
39
|
+
"Africa/Lusaka": "ZM",
|
|
40
|
+
"Africa/Malabo": "GQ",
|
|
41
|
+
"Africa/Maputo": "MZ",
|
|
42
|
+
"Africa/Maseru": "LS",
|
|
43
|
+
"Africa/Mbabane": "SZ",
|
|
44
|
+
"Africa/Mogadishu": "SO",
|
|
45
|
+
"Africa/Monrovia": "LR",
|
|
46
|
+
"Africa/Nairobi": "KE",
|
|
47
|
+
"Africa/Ndjamena": "TD",
|
|
48
|
+
"Africa/Niamey": "NE",
|
|
49
|
+
"Africa/Nouakchott": "MR",
|
|
50
|
+
"Africa/Ouagadougou": "BF",
|
|
51
|
+
"Africa/Porto-Novo": "BJ",
|
|
52
|
+
"Africa/Sao_Tome": "ST",
|
|
53
|
+
"Africa/Tripoli": "LY",
|
|
54
|
+
"Africa/Tunis": "TN",
|
|
55
|
+
"Africa/Windhoek": "NA",
|
|
56
|
+
"America/Adak": "US",
|
|
57
|
+
"America/Anchorage": "US",
|
|
58
|
+
"America/Anguilla": "AI",
|
|
59
|
+
"America/Antigua": "AG",
|
|
60
|
+
"America/Araguaina": "BR",
|
|
61
|
+
"America/Argentina/Buenos_Aires": "AR",
|
|
62
|
+
"America/Argentina/Catamarca": "AR",
|
|
63
|
+
"America/Argentina/Cordoba": "AR",
|
|
64
|
+
"America/Argentina/Jujuy": "AR",
|
|
65
|
+
"America/Argentina/La_Rioja": "AR",
|
|
66
|
+
"America/Argentina/Mendoza": "AR",
|
|
67
|
+
"America/Argentina/Rio_Gallegos": "AR",
|
|
68
|
+
"America/Argentina/Salta": "AR",
|
|
69
|
+
"America/Argentina/San_Juan": "AR",
|
|
70
|
+
"America/Argentina/San_Luis": "AR",
|
|
71
|
+
"America/Argentina/Tucuman": "AR",
|
|
72
|
+
"America/Argentina/Ushuaia": "AR",
|
|
73
|
+
"America/Aruba": "AW",
|
|
74
|
+
"America/Asuncion": "PY",
|
|
75
|
+
"America/Atikokan": "CA",
|
|
76
|
+
"America/Bahia": "BR",
|
|
77
|
+
"America/Bahia_Banderas": "MX",
|
|
78
|
+
"America/Barbados": "BB",
|
|
79
|
+
"America/Belem": "BR",
|
|
80
|
+
"America/Belize": "BZ",
|
|
81
|
+
"America/Blanc-Sablon": "CA",
|
|
82
|
+
"America/Boa_Vista": "BR",
|
|
83
|
+
"America/Bogota": "CO",
|
|
84
|
+
"America/Boise": "US",
|
|
85
|
+
"America/Buenos_Aires": "AR",
|
|
86
|
+
"America/Cambridge_Bay": "CA",
|
|
87
|
+
"America/Campo_Grande": "BR",
|
|
88
|
+
"America/Cancun": "MX",
|
|
89
|
+
"America/Caracas": "VE",
|
|
90
|
+
"America/Catamarca": "AR",
|
|
91
|
+
"America/Cayenne": "GF",
|
|
92
|
+
"America/Cayman": "KY",
|
|
93
|
+
"America/Chicago": "US",
|
|
94
|
+
"America/Chihuahua": "MX",
|
|
95
|
+
"America/Ciudad_Juarez": "MX",
|
|
96
|
+
"America/Coral_Harbour": "CA",
|
|
97
|
+
"America/Cordoba": "AR",
|
|
98
|
+
"America/Costa_Rica": "CR",
|
|
99
|
+
"America/Coyhaique": "CL",
|
|
100
|
+
"America/Creston": "CA",
|
|
101
|
+
"America/Cuiaba": "BR",
|
|
102
|
+
"America/Curacao": "CW",
|
|
103
|
+
"America/Danmarkshavn": "GL",
|
|
104
|
+
"America/Dawson": "CA",
|
|
105
|
+
"America/Dawson_Creek": "CA",
|
|
106
|
+
"America/Denver": "US",
|
|
107
|
+
"America/Detroit": "US",
|
|
108
|
+
"America/Dominica": "DM",
|
|
109
|
+
"America/Edmonton": "CA",
|
|
110
|
+
"America/Eirunepe": "BR",
|
|
111
|
+
"America/El_Salvador": "SV",
|
|
112
|
+
"America/Fort_Nelson": "CA",
|
|
113
|
+
"America/Fortaleza": "BR",
|
|
114
|
+
"America/Glace_Bay": "CA",
|
|
115
|
+
"America/Godthab": "GL",
|
|
116
|
+
"America/Goose_Bay": "CA",
|
|
117
|
+
"America/Grand_Turk": "TC",
|
|
118
|
+
"America/Grenada": "GD",
|
|
119
|
+
"America/Guadeloupe": "GP",
|
|
120
|
+
"America/Guatemala": "GT",
|
|
121
|
+
"America/Guayaquil": "EC",
|
|
122
|
+
"America/Guyana": "GY",
|
|
123
|
+
"America/Halifax": "CA",
|
|
124
|
+
"America/Havana": "CU",
|
|
125
|
+
"America/Hermosillo": "MX",
|
|
126
|
+
"America/Indiana/Indianapolis": "US",
|
|
127
|
+
"America/Indiana/Knox": "US",
|
|
128
|
+
"America/Indiana/Marengo": "US",
|
|
129
|
+
"America/Indiana/Petersburg": "US",
|
|
130
|
+
"America/Indiana/Tell_City": "US",
|
|
131
|
+
"America/Indiana/Vevay": "US",
|
|
132
|
+
"America/Indiana/Vincennes": "US",
|
|
133
|
+
"America/Indiana/Winamac": "US",
|
|
134
|
+
"America/Indianapolis": "US",
|
|
135
|
+
"America/Inuvik": "CA",
|
|
136
|
+
"America/Iqaluit": "CA",
|
|
137
|
+
"America/Jamaica": "JM",
|
|
138
|
+
"America/Jujuy": "AR",
|
|
139
|
+
"America/Juneau": "US",
|
|
140
|
+
"America/Kentucky/Louisville": "US",
|
|
141
|
+
"America/Kentucky/Monticello": "US",
|
|
142
|
+
"America/Kralendijk": "BQ",
|
|
143
|
+
"America/La_Paz": "BO",
|
|
144
|
+
"America/Lima": "PE",
|
|
145
|
+
"America/Los_Angeles": "US",
|
|
146
|
+
"America/Louisville": "US",
|
|
147
|
+
"America/Lower_Princes": "SX",
|
|
148
|
+
"America/Maceio": "BR",
|
|
149
|
+
"America/Managua": "NI",
|
|
150
|
+
"America/Manaus": "BR",
|
|
151
|
+
"America/Marigot": "MF",
|
|
152
|
+
"America/Martinique": "MQ",
|
|
153
|
+
"America/Matamoros": "MX",
|
|
154
|
+
"America/Mazatlan": "MX",
|
|
155
|
+
"America/Mendoza": "AR",
|
|
156
|
+
"America/Menominee": "US",
|
|
157
|
+
"America/Merida": "MX",
|
|
158
|
+
"America/Metlakatla": "US",
|
|
159
|
+
"America/Mexico_City": "MX",
|
|
160
|
+
"America/Miquelon": "PM",
|
|
161
|
+
"America/Moncton": "CA",
|
|
162
|
+
"America/Monterrey": "MX",
|
|
163
|
+
"America/Montevideo": "UY",
|
|
164
|
+
"America/Montserrat": "MS",
|
|
165
|
+
"America/Nassau": "BS",
|
|
166
|
+
"America/New_York": "US",
|
|
167
|
+
"America/Nome": "US",
|
|
168
|
+
"America/Noronha": "BR",
|
|
169
|
+
"America/North_Dakota/Beulah": "US",
|
|
170
|
+
"America/North_Dakota/Center": "US",
|
|
171
|
+
"America/North_Dakota/New_Salem": "US",
|
|
172
|
+
"America/Nuuk": "GL",
|
|
173
|
+
"America/Ojinaga": "MX",
|
|
174
|
+
"America/Panama": "PA",
|
|
175
|
+
"America/Paramaribo": "SR",
|
|
176
|
+
"America/Phoenix": "US",
|
|
177
|
+
"America/Port-au-Prince": "HT",
|
|
178
|
+
"America/Port_of_Spain": "TT",
|
|
179
|
+
"America/Porto_Velho": "BR",
|
|
180
|
+
"America/Puerto_Rico": "PR",
|
|
181
|
+
"America/Punta_Arenas": "CL",
|
|
182
|
+
"America/Rankin_Inlet": "CA",
|
|
183
|
+
"America/Recife": "BR",
|
|
184
|
+
"America/Regina": "CA",
|
|
185
|
+
"America/Resolute": "CA",
|
|
186
|
+
"America/Rio_Branco": "BR",
|
|
187
|
+
"America/Santarem": "BR",
|
|
188
|
+
"America/Santiago": "CL",
|
|
189
|
+
"America/Santo_Domingo": "DO",
|
|
190
|
+
"America/Sao_Paulo": "BR",
|
|
191
|
+
"America/Scoresbysund": "GL",
|
|
192
|
+
"America/Sitka": "US",
|
|
193
|
+
"America/St_Barthelemy": "BL",
|
|
194
|
+
"America/St_Johns": "CA",
|
|
195
|
+
"America/St_Kitts": "KN",
|
|
196
|
+
"America/St_Lucia": "LC",
|
|
197
|
+
"America/St_Thomas": "VI",
|
|
198
|
+
"America/St_Vincent": "VC",
|
|
199
|
+
"America/Swift_Current": "CA",
|
|
200
|
+
"America/Tegucigalpa": "HN",
|
|
201
|
+
"America/Thule": "GL",
|
|
202
|
+
"America/Tijuana": "MX",
|
|
203
|
+
"America/Toronto": "CA",
|
|
204
|
+
"America/Tortola": "VG",
|
|
205
|
+
"America/Vancouver": "CA",
|
|
206
|
+
"America/Whitehorse": "CA",
|
|
207
|
+
"America/Winnipeg": "CA",
|
|
208
|
+
"America/Yakutat": "US",
|
|
209
|
+
"Antarctica/Casey": "AQ",
|
|
210
|
+
"Antarctica/Davis": "AQ",
|
|
211
|
+
"Antarctica/DumontDUrville": "AQ",
|
|
212
|
+
"Antarctica/Macquarie": "AU",
|
|
213
|
+
"Antarctica/Mawson": "AQ",
|
|
214
|
+
"Antarctica/McMurdo": "AQ",
|
|
215
|
+
"Antarctica/Palmer": "AQ",
|
|
216
|
+
"Antarctica/Rothera": "AQ",
|
|
217
|
+
"Antarctica/Syowa": "AQ",
|
|
218
|
+
"Antarctica/Troll": "AQ",
|
|
219
|
+
"Antarctica/Vostok": "AQ",
|
|
220
|
+
"Arctic/Longyearbyen": "SJ",
|
|
221
|
+
"Asia/Aden": "YE",
|
|
222
|
+
"Asia/Almaty": "KZ",
|
|
223
|
+
"Asia/Amman": "JO",
|
|
224
|
+
"Asia/Anadyr": "RU",
|
|
225
|
+
"Asia/Aqtau": "KZ",
|
|
226
|
+
"Asia/Aqtobe": "KZ",
|
|
227
|
+
"Asia/Ashgabat": "TM",
|
|
228
|
+
"Asia/Atyrau": "KZ",
|
|
229
|
+
"Asia/Baghdad": "IQ",
|
|
230
|
+
"Asia/Bahrain": "BH",
|
|
231
|
+
"Asia/Baku": "AZ",
|
|
232
|
+
"Asia/Bangkok": "TH",
|
|
233
|
+
"Asia/Barnaul": "RU",
|
|
234
|
+
"Asia/Beirut": "LB",
|
|
235
|
+
"Asia/Bishkek": "KG",
|
|
236
|
+
"Asia/Brunei": "BN",
|
|
237
|
+
"Asia/Calcutta": "IN",
|
|
238
|
+
"Asia/Chita": "RU",
|
|
239
|
+
"Asia/Colombo": "LK",
|
|
240
|
+
"Asia/Damascus": "SY",
|
|
241
|
+
"Asia/Dhaka": "BD",
|
|
242
|
+
"Asia/Dili": "TL",
|
|
243
|
+
"Asia/Dubai": "AE",
|
|
244
|
+
"Asia/Dushanbe": "TJ",
|
|
245
|
+
"Asia/Famagusta": "CY",
|
|
246
|
+
"Asia/Gaza": "PS",
|
|
247
|
+
"Asia/Hebron": "PS",
|
|
248
|
+
"Asia/Ho_Chi_Minh": "VN",
|
|
249
|
+
"Asia/Hong_Kong": "HK",
|
|
250
|
+
"Asia/Hovd": "MN",
|
|
251
|
+
"Asia/Irkutsk": "RU",
|
|
252
|
+
"Asia/Jakarta": "ID",
|
|
253
|
+
"Asia/Jayapura": "ID",
|
|
254
|
+
"Asia/Jerusalem": "IL",
|
|
255
|
+
"Asia/Kabul": "AF",
|
|
256
|
+
"Asia/Kamchatka": "RU",
|
|
257
|
+
"Asia/Karachi": "PK",
|
|
258
|
+
"Asia/Kathmandu": "NP",
|
|
259
|
+
"Asia/Katmandu": "NP",
|
|
260
|
+
"Asia/Khandyga": "RU",
|
|
261
|
+
"Asia/Kolkata": "IN",
|
|
262
|
+
"Asia/Krasnoyarsk": "RU",
|
|
263
|
+
"Asia/Kuala_Lumpur": "MY",
|
|
264
|
+
"Asia/Kuching": "MY",
|
|
265
|
+
"Asia/Kuwait": "KW",
|
|
266
|
+
"Asia/Macau": "MO",
|
|
267
|
+
"Asia/Magadan": "RU",
|
|
268
|
+
"Asia/Makassar": "ID",
|
|
269
|
+
"Asia/Manila": "PH",
|
|
270
|
+
"Asia/Muscat": "OM",
|
|
271
|
+
"Asia/Nicosia": "CY",
|
|
272
|
+
"Asia/Novokuznetsk": "RU",
|
|
273
|
+
"Asia/Novosibirsk": "RU",
|
|
274
|
+
"Asia/Omsk": "RU",
|
|
275
|
+
"Asia/Oral": "KZ",
|
|
276
|
+
"Asia/Phnom_Penh": "KH",
|
|
277
|
+
"Asia/Pontianak": "ID",
|
|
278
|
+
"Asia/Pyongyang": "KP",
|
|
279
|
+
"Asia/Qatar": "QA",
|
|
280
|
+
"Asia/Qostanay": "KZ",
|
|
281
|
+
"Asia/Qyzylorda": "KZ",
|
|
282
|
+
"Asia/Rangoon": "MM",
|
|
283
|
+
"Asia/Riyadh": "SA",
|
|
284
|
+
"Asia/Saigon": "VN",
|
|
285
|
+
"Asia/Sakhalin": "RU",
|
|
286
|
+
"Asia/Samarkand": "UZ",
|
|
287
|
+
"Asia/Seoul": "KR",
|
|
288
|
+
"Asia/Shanghai": "CN",
|
|
289
|
+
"Asia/Singapore": "SG",
|
|
290
|
+
"Asia/Srednekolymsk": "RU",
|
|
291
|
+
"Asia/Taipei": "TW",
|
|
292
|
+
"Asia/Tashkent": "UZ",
|
|
293
|
+
"Asia/Tbilisi": "GE",
|
|
294
|
+
"Asia/Tehran": "IR",
|
|
295
|
+
"Asia/Thimphu": "BT",
|
|
296
|
+
"Asia/Tokyo": "JP",
|
|
297
|
+
"Asia/Tomsk": "RU",
|
|
298
|
+
"Asia/Ulaanbaatar": "MN",
|
|
299
|
+
"Asia/Urumqi": "CN",
|
|
300
|
+
"Asia/Ust-Nera": "RU",
|
|
301
|
+
"Asia/Vientiane": "LA",
|
|
302
|
+
"Asia/Vladivostok": "RU",
|
|
303
|
+
"Asia/Yakutsk": "RU",
|
|
304
|
+
"Asia/Yangon": "MM",
|
|
305
|
+
"Asia/Yekaterinburg": "RU",
|
|
306
|
+
"Asia/Yerevan": "AM",
|
|
307
|
+
"Atlantic/Azores": "PT",
|
|
308
|
+
"Atlantic/Bermuda": "BM",
|
|
309
|
+
"Atlantic/Canary": "ES",
|
|
310
|
+
"Atlantic/Cape_Verde": "CV",
|
|
311
|
+
"Atlantic/Faeroe": "FO",
|
|
312
|
+
"Atlantic/Faroe": "FO",
|
|
313
|
+
"Atlantic/Madeira": "PT",
|
|
314
|
+
"Atlantic/Reykjavik": "IS",
|
|
315
|
+
"Atlantic/South_Georgia": "GS",
|
|
316
|
+
"Atlantic/St_Helena": "SH",
|
|
317
|
+
"Atlantic/Stanley": "FK",
|
|
318
|
+
"Australia/Adelaide": "AU",
|
|
319
|
+
"Australia/Brisbane": "AU",
|
|
320
|
+
"Australia/Broken_Hill": "AU",
|
|
321
|
+
"Australia/Darwin": "AU",
|
|
322
|
+
"Australia/Eucla": "AU",
|
|
323
|
+
"Australia/Hobart": "AU",
|
|
324
|
+
"Australia/Lindeman": "AU",
|
|
325
|
+
"Australia/Lord_Howe": "AU",
|
|
326
|
+
"Australia/Melbourne": "AU",
|
|
327
|
+
"Australia/Perth": "AU",
|
|
328
|
+
"Australia/Sydney": "AU",
|
|
329
|
+
"Europe/Amsterdam": "NL",
|
|
330
|
+
"Europe/Andorra": "AD",
|
|
331
|
+
"Europe/Astrakhan": "RU",
|
|
332
|
+
"Europe/Athens": "GR",
|
|
333
|
+
"Europe/Belgrade": "RS",
|
|
334
|
+
"Europe/Berlin": "DE",
|
|
335
|
+
"Europe/Bratislava": "SK",
|
|
336
|
+
"Europe/Brussels": "BE",
|
|
337
|
+
"Europe/Bucharest": "RO",
|
|
338
|
+
"Europe/Budapest": "HU",
|
|
339
|
+
"Europe/Busingen": "DE",
|
|
340
|
+
"Europe/Chisinau": "MD",
|
|
341
|
+
"Europe/Copenhagen": "DK",
|
|
342
|
+
"Europe/Dublin": "IE",
|
|
343
|
+
"Europe/Gibraltar": "GI",
|
|
344
|
+
"Europe/Guernsey": "GG",
|
|
345
|
+
"Europe/Helsinki": "FI",
|
|
346
|
+
"Europe/Isle_of_Man": "IM",
|
|
347
|
+
"Europe/Istanbul": "TR",
|
|
348
|
+
"Europe/Jersey": "JE",
|
|
349
|
+
"Europe/Kaliningrad": "RU",
|
|
350
|
+
"Europe/Kiev": "UA",
|
|
351
|
+
"Europe/Kirov": "RU",
|
|
352
|
+
"Europe/Kyiv": "UA",
|
|
353
|
+
"Europe/Lisbon": "PT",
|
|
354
|
+
"Europe/Ljubljana": "SI",
|
|
355
|
+
"Europe/London": "GB",
|
|
356
|
+
"Europe/Luxembourg": "LU",
|
|
357
|
+
"Europe/Madrid": "ES",
|
|
358
|
+
"Europe/Malta": "MT",
|
|
359
|
+
"Europe/Mariehamn": "AX",
|
|
360
|
+
"Europe/Minsk": "BY",
|
|
361
|
+
"Europe/Monaco": "MC",
|
|
362
|
+
"Europe/Moscow": "RU",
|
|
363
|
+
"Europe/Oslo": "NO",
|
|
364
|
+
"Europe/Paris": "FR",
|
|
365
|
+
"Europe/Podgorica": "ME",
|
|
366
|
+
"Europe/Prague": "CZ",
|
|
367
|
+
"Europe/Riga": "LV",
|
|
368
|
+
"Europe/Rome": "IT",
|
|
369
|
+
"Europe/Samara": "RU",
|
|
370
|
+
"Europe/San_Marino": "SM",
|
|
371
|
+
"Europe/Sarajevo": "BA",
|
|
372
|
+
"Europe/Saratov": "RU",
|
|
373
|
+
"Europe/Simferopol": "UA",
|
|
374
|
+
"Europe/Skopje": "MK",
|
|
375
|
+
"Europe/Sofia": "BG",
|
|
376
|
+
"Europe/Stockholm": "SE",
|
|
377
|
+
"Europe/Tallinn": "EE",
|
|
378
|
+
"Europe/Tirane": "AL",
|
|
379
|
+
"Europe/Ulyanovsk": "RU",
|
|
380
|
+
"Europe/Vaduz": "LI",
|
|
381
|
+
"Europe/Vatican": "VA",
|
|
382
|
+
"Europe/Vienna": "AT",
|
|
383
|
+
"Europe/Vilnius": "LT",
|
|
384
|
+
"Europe/Volgograd": "RU",
|
|
385
|
+
"Europe/Warsaw": "PL",
|
|
386
|
+
"Europe/Zagreb": "HR",
|
|
387
|
+
"Europe/Zurich": "CH",
|
|
388
|
+
"Indian/Antananarivo": "MG",
|
|
389
|
+
"Indian/Chagos": "IO",
|
|
390
|
+
"Indian/Christmas": "CX",
|
|
391
|
+
"Indian/Cocos": "CC",
|
|
392
|
+
"Indian/Comoro": "KM",
|
|
393
|
+
"Indian/Kerguelen": "TF",
|
|
394
|
+
"Indian/Mahe": "SC",
|
|
395
|
+
"Indian/Maldives": "MV",
|
|
396
|
+
"Indian/Mauritius": "MU",
|
|
397
|
+
"Indian/Mayotte": "YT",
|
|
398
|
+
"Indian/Reunion": "RE",
|
|
399
|
+
"Pacific/Apia": "WS",
|
|
400
|
+
"Pacific/Auckland": "NZ",
|
|
401
|
+
"Pacific/Bougainville": "PG",
|
|
402
|
+
"Pacific/Chatham": "NZ",
|
|
403
|
+
"Pacific/Chuuk": "FM",
|
|
404
|
+
"Pacific/Easter": "CL",
|
|
405
|
+
"Pacific/Efate": "VU",
|
|
406
|
+
"Pacific/Enderbury": "KI",
|
|
407
|
+
"Pacific/Fakaofo": "TK",
|
|
408
|
+
"Pacific/Fiji": "FJ",
|
|
409
|
+
"Pacific/Funafuti": "TV",
|
|
410
|
+
"Pacific/Galapagos": "EC",
|
|
411
|
+
"Pacific/Gambier": "PF",
|
|
412
|
+
"Pacific/Guadalcanal": "SB",
|
|
413
|
+
"Pacific/Guam": "GU",
|
|
414
|
+
"Pacific/Honolulu": "US",
|
|
415
|
+
"Pacific/Kanton": "KI",
|
|
416
|
+
"Pacific/Kiritimati": "KI",
|
|
417
|
+
"Pacific/Kosrae": "FM",
|
|
418
|
+
"Pacific/Kwajalein": "MH",
|
|
419
|
+
"Pacific/Majuro": "MH",
|
|
420
|
+
"Pacific/Marquesas": "PF",
|
|
421
|
+
"Pacific/Midway": "UM",
|
|
422
|
+
"Pacific/Nauru": "NR",
|
|
423
|
+
"Pacific/Niue": "NU",
|
|
424
|
+
"Pacific/Norfolk": "NF",
|
|
425
|
+
"Pacific/Noumea": "NC",
|
|
426
|
+
"Pacific/Pago_Pago": "AS",
|
|
427
|
+
"Pacific/Palau": "PW",
|
|
428
|
+
"Pacific/Pitcairn": "PN",
|
|
429
|
+
"Pacific/Pohnpei": "FM",
|
|
430
|
+
"Pacific/Ponape": "FM",
|
|
431
|
+
"Pacific/Port_Moresby": "PG",
|
|
432
|
+
"Pacific/Rarotonga": "CK",
|
|
433
|
+
"Pacific/Saipan": "MP",
|
|
434
|
+
"Pacific/Tahiti": "PF",
|
|
435
|
+
"Pacific/Tarawa": "KI",
|
|
436
|
+
"Pacific/Tongatapu": "TO",
|
|
437
|
+
"Pacific/Truk": "FM",
|
|
438
|
+
"Pacific/Wake": "UM",
|
|
439
|
+
"Pacific/Wallis": "WF"
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/timezone-country.ts
|
|
444
|
+
/**
|
|
445
|
+
* Browser timezone vs. network (IP/ASN-resolved) country contradiction
|
|
446
|
+
* check. Part of the P23 pairwise-consistency set — see
|
|
447
|
+
* `pairwise-consistency.ts` for the aggregator this plugs into and the
|
|
448
|
+
* weight this check is assigned there.
|
|
449
|
+
*
|
|
450
|
+
* `Intl.DateTimeFormat().resolvedOptions().timeZone` reports the IANA
|
|
451
|
+
* timezone the OS believes it's in; the request's resolved network country
|
|
452
|
+
* (Cloudflare `cf-ipcountry` / Vercel `x-vercel-ip-country`, already
|
|
453
|
+
* persisted on `detections.geo_country`) reports where the connection
|
|
454
|
+
* physically originates. These usually agree. When they don't, it's
|
|
455
|
+
* genuinely informative — but disagreement is also the ORDINARY, EXPECTED
|
|
456
|
+
* behaviour of two large legitimate populations: VPN users (exit node in a
|
|
457
|
+
* different country than the user) and travellers (device timezone that
|
|
458
|
+
* hasn't been manually changed, or has, while the trip is still ongoing).
|
|
459
|
+
*/
|
|
460
|
+
function resolveTimezoneCountry(timezone) {
|
|
461
|
+
if (!timezone) return null;
|
|
462
|
+
return (Object.hasOwn(TIMEZONE_COUNTRY_MAP, timezone) ? TIMEZONE_COUNTRY_MAP[timezone] : void 0) ?? null;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* The timezone/network-country contradiction check: flags disagreement
|
|
466
|
+
* between the browser-reported IANA timezone and the network-resolved
|
|
467
|
+
* country. Only flags when *both* sides resolve to a known value and they
|
|
468
|
+
* disagree — an unrecognized timezone or an absent network country is
|
|
469
|
+
* "nothing to compare", not a contradiction, exactly like the platform
|
|
470
|
+
* check in `client-hints-contradiction.ts`.
|
|
471
|
+
*
|
|
472
|
+
* `networkCountry` is compared case-insensitively against the ISO alpha-2
|
|
473
|
+
* code — `detections.geo_country` is already stored uppercase, but this
|
|
474
|
+
* guards against a caller passing a differently-cased value.
|
|
475
|
+
*/
|
|
476
|
+
function checkTimezoneCountryContradiction(timezone, networkCountry) {
|
|
477
|
+
const expectedCountry = resolveTimezoneCountry(timezone);
|
|
478
|
+
const normalizedNetworkCountry = networkCountry?.trim().toUpperCase() || null;
|
|
479
|
+
return {
|
|
480
|
+
contradicted: expectedCountry !== null && normalizedNetworkCountry !== null && expectedCountry !== normalizedNetworkCountry,
|
|
481
|
+
timezone: timezone ?? null,
|
|
482
|
+
networkCountry: normalizedNetworkCountry,
|
|
483
|
+
expectedCountry
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
//#endregion
|
|
488
|
+
Object.defineProperty(exports, 'TIMEZONE_COUNTRY_MAP', {
|
|
489
|
+
enumerable: true,
|
|
490
|
+
get: function () {
|
|
491
|
+
return TIMEZONE_COUNTRY_MAP;
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(exports, 'checkTimezoneCountryContradiction', {
|
|
495
|
+
enumerable: true,
|
|
496
|
+
get: function () {
|
|
497
|
+
return checkTimezoneCountryContradiction;
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
Object.defineProperty(exports, 'resolveTimezoneCountry', {
|
|
501
|
+
enumerable: true,
|
|
502
|
+
get: function () {
|
|
503
|
+
return resolveTimezoneCountry;
|
|
504
|
+
}
|
|
505
|
+
});
|