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.7 KiB
JSON
253 lines
5.7 KiB
JSON
{
|
|
"AF": "Afganistan",
|
|
"ZA": "Africa de Sud",
|
|
"AL": "Albania",
|
|
"DZ": "Algeria",
|
|
"AD": "Andorra",
|
|
"AO": "Angola",
|
|
"AI": "Anguilla",
|
|
"AQ": "Antarctica",
|
|
"AG": "Antigua \u0219i Barbuda",
|
|
"SA": "Arabia Saudit\u0103",
|
|
"AR": "Argentina",
|
|
"AM": "Armenia",
|
|
"AW": "Aruba",
|
|
"AU": "Australia",
|
|
"AT": "Austria",
|
|
"AZ": "Azerbaidjan",
|
|
"BS": "Bahamas",
|
|
"BH": "Bahrain",
|
|
"BD": "Bangladesh",
|
|
"BB": "Barbados",
|
|
"BY": "Belarus",
|
|
"BE": "Belgia",
|
|
"BZ": "Belize",
|
|
"BJ": "Benin",
|
|
"BM": "Bermuda",
|
|
"BT": "Bhutan",
|
|
"BO": "Bolivia",
|
|
"BA": "Bosnia \u0219i Her\u021begovina",
|
|
"BW": "Botswana",
|
|
"BR": "Brazilia",
|
|
"BN": "Brunei",
|
|
"BG": "Bulgaria",
|
|
"BF": "Burkina Faso",
|
|
"BI": "Burundi",
|
|
"KH": "Cambodgia",
|
|
"CM": "Camerun",
|
|
"CA": "Canada",
|
|
"CV": "Capul Verde",
|
|
"CZ": "Cehia",
|
|
"CL": "Chile",
|
|
"CN": "China",
|
|
"TD": "Ciad",
|
|
"CY": "Cipru",
|
|
"CO": "Columbia",
|
|
"KM": "Comore",
|
|
"CG": "Congo - Brazzaville",
|
|
"CD": "Congo - Kinshasa",
|
|
"KP": "Coreea de Nord",
|
|
"KR": "Coreea de Sud",
|
|
"CR": "Costa Rica",
|
|
"CI": "C\u00f4te d\u2019Ivoire",
|
|
"HR": "Croa\u021bia",
|
|
"CU": "Cuba",
|
|
"CW": "Cura\u00e7ao",
|
|
"DK": "Danemarca",
|
|
"DJ": "Djibouti",
|
|
"DM": "Dominica",
|
|
"EC": "Ecuador",
|
|
"EG": "Egipt",
|
|
"SV": "El Salvador",
|
|
"CH": "Elve\u021bia",
|
|
"AE": "Emiratele Arabe Unite",
|
|
"ER": "Eritreea",
|
|
"EE": "Estonia",
|
|
"SZ": "eSwatini",
|
|
"ET": "Etiopia",
|
|
"FJ": "Fiji",
|
|
"PH": "Filipine",
|
|
"FI": "Finlanda",
|
|
"FR": "Fran\u021ba",
|
|
"GA": "Gabon",
|
|
"GM": "Gambia",
|
|
"GE": "Georgia",
|
|
"GS": "Georgia de Sud \u0219i Insulele Sandwich de Sud",
|
|
"DE": "Germania",
|
|
"GH": "Ghana",
|
|
"GI": "Gibraltar",
|
|
"GR": "Grecia",
|
|
"GD": "Grenada",
|
|
"GL": "Groenlanda",
|
|
"GP": "Guadelupa",
|
|
"GU": "Guam",
|
|
"GT": "Guatemala",
|
|
"GG": "Guernsey",
|
|
"GN": "Guineea",
|
|
"GQ": "Guineea Ecuatorial\u0103",
|
|
"GW": "Guineea-Bissau",
|
|
"GY": "Guyana",
|
|
"GF": "Guyana Francez\u0103",
|
|
"HT": "Haiti",
|
|
"HN": "Honduras",
|
|
"IN": "India",
|
|
"ID": "Indonezia",
|
|
"BV": "Insula Bouvet",
|
|
"CX": "Insula Christmas",
|
|
"HM": "Insula Heard \u0219i Insulele McDonald",
|
|
"IM": "Insula Man",
|
|
"NF": "Insula Norfolk",
|
|
"AX": "Insulele \u00c5land",
|
|
"BQ": "Insulele Caraibe Olandeze",
|
|
"KY": "Insulele Cayman",
|
|
"CC": "Insulele Cocos (Keeling)",
|
|
"CK": "Insulele Cook",
|
|
"FK": "Insulele Falkland",
|
|
"FO": "Insulele Feroe",
|
|
"UM": "Insulele \u00cendep\u0103rtate ale S.U.A.",
|
|
"MP": "Insulele Mariane de Nord",
|
|
"MH": "Insulele Marshall",
|
|
"PN": "Insulele Pitcairn",
|
|
"SB": "Insulele Solomon",
|
|
"TC": "Insulele Turks \u0219i Caicos",
|
|
"VI": "Insulele Virgine Americane",
|
|
"VG": "Insulele Virgine Britanice",
|
|
"JO": "Iordania",
|
|
"IQ": "Irak",
|
|
"IR": "Iran",
|
|
"IE": "Irlanda",
|
|
"IS": "Islanda",
|
|
"IL": "Israel",
|
|
"IT": "Italia",
|
|
"JM": "Jamaica",
|
|
"JP": "Japonia",
|
|
"JE": "Jersey",
|
|
"KZ": "Kazahstan",
|
|
"KG": "K\u00e2rg\u00e2zstan",
|
|
"KE": "Kenya",
|
|
"KI": "Kiribati",
|
|
"XK": "Kosovo",
|
|
"KW": "Kuweit",
|
|
"LA": "Laos",
|
|
"LS": "Lesotho",
|
|
"LV": "Letonia",
|
|
"LB": "Liban",
|
|
"LR": "Liberia",
|
|
"LY": "Libia",
|
|
"LI": "Liechtenstein",
|
|
"LT": "Lituania",
|
|
"LU": "Luxemburg",
|
|
"MK": "Macedonia de Nord",
|
|
"MG": "Madagascar",
|
|
"MW": "Malawi",
|
|
"MY": "Malaysia",
|
|
"MV": "Maldive",
|
|
"ML": "Mali",
|
|
"MT": "Malta",
|
|
"MA": "Maroc",
|
|
"MQ": "Martinica",
|
|
"MR": "Mauritania",
|
|
"MU": "Mauritius",
|
|
"YT": "Mayotte",
|
|
"MX": "Mexic",
|
|
"FM": "Micronezia",
|
|
"MC": "Monaco",
|
|
"MN": "Mongolia",
|
|
"MS": "Montserrat",
|
|
"MZ": "Mozambic",
|
|
"ME": "Muntenegru",
|
|
"MM": "Myanmar (Birmania)",
|
|
"NA": "Namibia",
|
|
"NR": "Nauru",
|
|
"NP": "Nepal",
|
|
"NI": "Nicaragua",
|
|
"NE": "Niger",
|
|
"NG": "Nigeria",
|
|
"NU": "Niue",
|
|
"NO": "Norvegia",
|
|
"NC": "Noua Caledonie",
|
|
"NZ": "Noua Zeeland\u0103",
|
|
"OM": "Oman",
|
|
"PK": "Pakistan",
|
|
"PW": "Palau",
|
|
"PA": "Panama",
|
|
"PG": "Papua-Noua Guinee",
|
|
"PY": "Paraguay",
|
|
"PE": "Peru",
|
|
"PF": "Polinezia Francez\u0103",
|
|
"PL": "Polonia",
|
|
"PT": "Portugalia",
|
|
"PR": "Puerto Rico",
|
|
"QA": "Qatar",
|
|
"HK": "R.A.S. Hong Kong a Chinei",
|
|
"MO": "R.A.S. Macao, China",
|
|
"GB": "Regatul Unit",
|
|
"CF": "Republica Centrafrican\u0103",
|
|
"DO": "Republica Dominican\u0103",
|
|
"MD": "Republica Moldova",
|
|
"RE": "R\u00e9union",
|
|
"RO": "Rom\u00e2nia",
|
|
"RU": "Rusia",
|
|
"RW": "Rwanda",
|
|
"EH": "Sahara Occidental\u0103",
|
|
"KN": "Saint Kitts \u0219i Nevis",
|
|
"VC": "Saint Vincent \u0219i Grenadinele",
|
|
"BL": "Saint-Barth\u00e9lemy",
|
|
"PM": "Saint-Pierre \u0219i Miquelon",
|
|
"WS": "Samoa",
|
|
"AS": "Samoa American\u0103",
|
|
"SM": "San Marino",
|
|
"ST": "S\u00e3o Tom\u00e9 \u0219i Pr\u00edncipe",
|
|
"SN": "Senegal",
|
|
"RS": "Serbia",
|
|
"SC": "Seychelles",
|
|
"SH": "Sf\u00e2nta Elena",
|
|
"LC": "Sf\u00e2nta Lucia",
|
|
"MF": "Sf\u00e2ntul Martin",
|
|
"SL": "Sierra Leone",
|
|
"SG": "Singapore",
|
|
"SX": "Sint-Maarten",
|
|
"SY": "Siria",
|
|
"SK": "Slovacia",
|
|
"SI": "Slovenia",
|
|
"SO": "Somalia",
|
|
"ES": "Spania",
|
|
"LK": "Sri Lanka",
|
|
"US": "Statele Unite ale Americii",
|
|
"VA": "Statul Cet\u0103\u021bii Vaticanului",
|
|
"SD": "Sudan",
|
|
"SS": "Sudanul de Sud",
|
|
"SE": "Suedia",
|
|
"SR": "Suriname",
|
|
"SJ": "Svalbard \u0219i Jan Mayen",
|
|
"TJ": "Tadjikistan",
|
|
"TW": "Taiwan",
|
|
"TZ": "Tanzania",
|
|
"TF": "Teritoriile Australe \u0219i Antarctice Franceze",
|
|
"PS": "Teritoriile Palestiniene",
|
|
"IO": "Teritoriul Britanic din Oceanul Indian",
|
|
"TH": "Thailanda",
|
|
"TL": "Timor-Leste",
|
|
"TG": "Togo",
|
|
"TK": "Tokelau",
|
|
"TO": "Tonga",
|
|
"TT": "Trinidad \u0219i Tobago",
|
|
"TN": "Tunisia",
|
|
"TR": "Turcia",
|
|
"TM": "Turkmenistan",
|
|
"TV": "Tuvalu",
|
|
"NL": "\u021a\u0103rile de Jos",
|
|
"UA": "Ucraina",
|
|
"UG": "Uganda",
|
|
"HU": "Ungaria",
|
|
"UY": "Uruguay",
|
|
"UZ": "Uzbekistan",
|
|
"VU": "Vanuatu",
|
|
"VE": "Venezuela",
|
|
"VN": "Vietnam",
|
|
"WF": "Wallis \u0219i Futuna",
|
|
"YE": "Yemen",
|
|
"ZM": "Zambia",
|
|
"ZW": "Zimbabwe"
|
|
}
|