Railyard side of PY1.3 (RYP-D2, RYP-E1, SC-E3). Acceptance:
1. apps/insights: umami-software/umami v3.4.0 (MIT, commit ec0ff503),
vendored --depth 1, LICENSE kept, NOTICE added. Fork additions only:
src/railyard/{ingest,summary,tenancy,api-only}.ts, /v1/ingest/batch (the
edge collector contract v1, bearer INSIGHTS_INGEST_TOKEN, no IP ever,
retried batches de-duplicated by migration 90_railyard_ingest_receipts),
/api/v1/tenants/{org}/summary (bearer INSIGHTS_API_TOKEN), src/proxy.ts
(INSIGHTS_API_ONLY=1 serves only the Railyard API and the heartbeat).
Tenant isolation is tested at the API level (an app id owned by another org
is refused) and at the SQL level (upstream migrations 01-26 plus 90 on a
throwaway cluster: org B never reads org A's rows, even naming its app).
Upstream vitest suite: not run on the Mac (pnpm 12.3.4 pinned upstream,
disk floor); it runs in the image build on box 2 or CI.
2. No upstream product name in anything a customer loads: the page tag, the
console pages and the fork's additions (tests); the upstream dashboard is
never served in API-only mode.
3. The console writes the collector's site entry on "Add app", on
auto-created apps from deploys, and rewrites every entry on add-on, plan or
pause changes (lib/sites.ts, SITES KV binding). The bridge gains
`sites` (the project's app, site key, page tag and collector URLs, entry
written) and the analytics proof is the first event from Insights. The
console's Insights page shows visitors, events, first event and the
visit -> signup -> first action funnel.
5. insights-edge/src/caps.ts: at 100% of the cap events are still counted and
not stored until the next UTC month; the console shows the same message
from a byte-identical copy (lib/caps.ts, tested).
4 (384 MB at 50 events a second for 10 min) is measured on staging before deploy.
Env: INSIGHTS_API_URL, INSIGHTS_API_TOKEN, SITES KV binding (console);
INSIGHTS_INGEST_TOKEN, INSIGHTS_API_TOKEN, INSIGHTS_API_ONLY (Insights).
Tests: console 54/54 (tsc clean), insights fork 7/7 (incl. SQL isolation),
insights-edge caps + collector + sim 14/14, tests/contract 3/3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
253 lines
5.3 KiB
JSON
253 lines
5.3 KiB
JSON
{
|
|
"AF": "Afghanistan",
|
|
"ZA": "Afrika Selatan",
|
|
"AL": "Albania",
|
|
"DZ": "Algeria",
|
|
"US": "Amerika Syarikat",
|
|
"AD": "Andorra",
|
|
"AO": "Angola",
|
|
"AI": "Anguilla",
|
|
"AQ": "Antartika",
|
|
"AG": "Antigua dan Barbuda",
|
|
"SA": "Arab Saudi",
|
|
"AR": "Argentina",
|
|
"AM": "Armenia",
|
|
"AW": "Aruba",
|
|
"AU": "Australia",
|
|
"AT": "Austria",
|
|
"AZ": "Azerbaijan",
|
|
"BS": "Bahamas",
|
|
"BH": "Bahrain",
|
|
"BD": "Bangladesh",
|
|
"BB": "Barbados",
|
|
"NL": "Belanda",
|
|
"BQ": "Belanda Caribbean",
|
|
"BY": "Belarus",
|
|
"BE": "Belgium",
|
|
"BZ": "Belize",
|
|
"BJ": "Benin",
|
|
"BM": "Bermuda",
|
|
"BT": "Bhutan",
|
|
"BO": "Bolivia",
|
|
"BA": "Bosnia dan Herzegovina",
|
|
"BW": "Botswana",
|
|
"BR": "Brazil",
|
|
"BN": "Brunei",
|
|
"BG": "Bulgaria",
|
|
"BF": "Burkina Faso",
|
|
"BI": "Burundi",
|
|
"CM": "Cameroon",
|
|
"CV": "Cape Verde",
|
|
"TD": "Chad",
|
|
"CL": "Chile",
|
|
"CN": "China",
|
|
"CO": "Colombia",
|
|
"KM": "Comoros",
|
|
"CG": "Congo - Brazzaville",
|
|
"CD": "Congo - Kinshasa",
|
|
"CR": "Costa Rica",
|
|
"CI": "Cote d\u2019Ivoire",
|
|
"HR": "Croatia",
|
|
"CU": "Cuba",
|
|
"CW": "Curacao",
|
|
"CY": "Cyprus",
|
|
"CZ": "Czechia",
|
|
"DK": "Denmark",
|
|
"DJ": "Djibouti",
|
|
"DM": "Dominica",
|
|
"EC": "Ecuador",
|
|
"SV": "El Salvador",
|
|
"AE": "Emiriah Arab Bersatu",
|
|
"ER": "Eritrea",
|
|
"EE": "Estonia",
|
|
"ET": "Ethiopia",
|
|
"FJ": "Fiji",
|
|
"PH": "Filipina",
|
|
"FI": "Finland",
|
|
"GA": "Gabon",
|
|
"GM": "Gambia",
|
|
"GE": "Georgia",
|
|
"GH": "Ghana",
|
|
"GI": "Gibraltar",
|
|
"GR": "Greece",
|
|
"GL": "Greenland",
|
|
"GD": "Grenada",
|
|
"GP": "Guadeloupe",
|
|
"GU": "Guam",
|
|
"GT": "Guatemala",
|
|
"GG": "Guernsey",
|
|
"GF": "Guiana Perancis",
|
|
"GN": "Guinea",
|
|
"GW": "Guinea Bissau",
|
|
"GQ": "Guinea Khatulistiwa",
|
|
"GY": "Guyana",
|
|
"HT": "Haiti",
|
|
"HN": "Honduras",
|
|
"HK": "Hong Kong SAR China",
|
|
"HU": "Hungary",
|
|
"IS": "Iceland",
|
|
"IN": "India",
|
|
"ID": "Indonesia",
|
|
"IR": "Iran",
|
|
"IQ": "Iraq",
|
|
"IE": "Ireland",
|
|
"IM": "Isle of Man",
|
|
"IL": "Israel",
|
|
"IT": "Itali",
|
|
"JM": "Jamaica",
|
|
"JP": "Jepun",
|
|
"DE": "Jerman",
|
|
"JE": "Jersey",
|
|
"JO": "Jordan",
|
|
"CA": "Kanada",
|
|
"KZ": "Kazakhstan",
|
|
"KH": "Kemboja",
|
|
"KE": "Kenya",
|
|
"AX": "Kepulauan Aland",
|
|
"KY": "Kepulauan Cayman",
|
|
"CC": "Kepulauan Cocos (Keeling)",
|
|
"CK": "Kepulauan Cook",
|
|
"FK": "Kepulauan Falkland",
|
|
"FO": "Kepulauan Faroe",
|
|
"GS": "Kepulauan Georgia Selatan & Sandwich Selatan",
|
|
"HM": "Kepulauan Heard & McDonald",
|
|
"MP": "Kepulauan Mariana Utara",
|
|
"MH": "Kepulauan Marshall",
|
|
"PN": "Kepulauan Pitcairn",
|
|
"SB": "Kepulauan Solomon",
|
|
"UM": "Kepulauan Terpencil A.S.",
|
|
"TC": "Kepulauan Turks dan Caicos",
|
|
"VI": "Kepulauan Virgin A.S.",
|
|
"VG": "Kepulauan Virgin British",
|
|
"KI": "Kiribati",
|
|
"KR": "Korea Selatan",
|
|
"KP": "Korea Utara",
|
|
"XK": "Kosovo",
|
|
"VA": "Kota Vatican",
|
|
"KW": "Kuwait",
|
|
"KG": "Kyrgyzstan",
|
|
"LA": "Laos",
|
|
"LV": "Latvia",
|
|
"LS": "Lesotho",
|
|
"LR": "Liberia",
|
|
"LY": "Libya",
|
|
"LI": "Liechtenstein",
|
|
"LT": "Lithuania",
|
|
"LB": "Lubnan",
|
|
"LU": "Luxembourg",
|
|
"MO": "Macau SAR China",
|
|
"MK": "Macedonia Utara",
|
|
"MG": "Madagaskar",
|
|
"MA": "Maghribi",
|
|
"MW": "Malawi",
|
|
"MY": "Malaysia",
|
|
"MV": "Maldives",
|
|
"ML": "Mali",
|
|
"MT": "Malta",
|
|
"MQ": "Martinique",
|
|
"MR": "Mauritania",
|
|
"MU": "Mauritius",
|
|
"YT": "Mayotte",
|
|
"EG": "Mesir",
|
|
"MX": "Mexico",
|
|
"FM": "Micronesia",
|
|
"MD": "Moldova",
|
|
"MC": "Monaco",
|
|
"MN": "Mongolia",
|
|
"ME": "Montenegro",
|
|
"MS": "Montserrat",
|
|
"MZ": "Mozambique",
|
|
"MM": "Myanmar (Burma)",
|
|
"NA": "Namibia",
|
|
"NR": "Nauru",
|
|
"NP": "Nepal",
|
|
"NC": "New Caledonia",
|
|
"NZ": "New Zealand",
|
|
"NI": "Nicaragua",
|
|
"NE": "Niger",
|
|
"NG": "Nigeria",
|
|
"NU": "Niue",
|
|
"NO": "Norway",
|
|
"OM": "Oman",
|
|
"PK": "Pakistan",
|
|
"PW": "Palau",
|
|
"PA": "Panama",
|
|
"PG": "Papua New Guinea",
|
|
"PY": "Paraguay",
|
|
"FR": "Perancis",
|
|
"PE": "Peru",
|
|
"PL": "Poland",
|
|
"PF": "Polinesia Perancis",
|
|
"PT": "Portugal",
|
|
"PR": "Puerto Rico",
|
|
"BV": "Pulau Bouvet",
|
|
"CX": "Pulau Krismas",
|
|
"NF": "Pulau Norfolk",
|
|
"QA": "Qatar",
|
|
"CF": "Republik Afrika Tengah",
|
|
"DO": "Republik Dominica",
|
|
"RE": "Reunion",
|
|
"RO": "Romania",
|
|
"RU": "Rusia",
|
|
"RW": "Rwanda",
|
|
"EH": "Sahara Barat",
|
|
"SH": "Saint Helena",
|
|
"KN": "Saint Kitts dan Nevis",
|
|
"LC": "Saint Lucia",
|
|
"MF": "Saint Martin",
|
|
"PM": "Saint Pierre dan Miquelon",
|
|
"VC": "Saint Vincent dan Grenadines",
|
|
"WS": "Samoa",
|
|
"AS": "Samoa Amerika",
|
|
"SM": "San Marino",
|
|
"ST": "Sao Tome dan Principe",
|
|
"SN": "Senegal",
|
|
"ES": "Sepanyol",
|
|
"RS": "Serbia",
|
|
"SC": "Seychelles",
|
|
"SL": "Sierra Leone",
|
|
"SG": "Singapura",
|
|
"SX": "Sint Maarten",
|
|
"SK": "Slovakia",
|
|
"SI": "Slovenia",
|
|
"SO": "Somalia",
|
|
"LK": "Sri Lanka",
|
|
"BL": "St. Barthelemy",
|
|
"SD": "Sudan",
|
|
"SS": "Sudan Selatan",
|
|
"SR": "Surinam",
|
|
"SJ": "Svalbard dan Jan Mayen",
|
|
"SZ": "Swaziland",
|
|
"SE": "Sweden",
|
|
"CH": "Switzerland",
|
|
"SY": "Syria",
|
|
"TW": "Taiwan",
|
|
"TJ": "Tajikistan",
|
|
"TZ": "Tanzania",
|
|
"TH": "Thailand",
|
|
"TL": "Timor-Leste",
|
|
"TG": "Togo",
|
|
"TK": "Tokelau",
|
|
"TO": "Tonga",
|
|
"TT": "Trinidad dan Tobago",
|
|
"TN": "Tunisia",
|
|
"TR": "Turki",
|
|
"TM": "Turkmenistan",
|
|
"TV": "Tuvalu",
|
|
"UG": "Uganda",
|
|
"UA": "Ukraine",
|
|
"GB": "United Kingdom",
|
|
"UY": "Uruguay",
|
|
"UZ": "Uzbekistan",
|
|
"VU": "Vanuatu",
|
|
"VE": "Venezuela",
|
|
"VN": "Vietnam",
|
|
"WF": "Wallis dan Futuna",
|
|
"IO": "Wilayah Lautan Hindi British",
|
|
"PS": "Wilayah Palestin",
|
|
"TF": "Wilayah Selatan Perancis",
|
|
"YE": "Yaman",
|
|
"ZM": "Zambia",
|
|
"ZW": "Zimbabwe"
|
|
}
|