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
6.0 KiB
JSON
253 lines
6.0 KiB
JSON
{
|
|
"AF": "Afeganist\u00e3o",
|
|
"ZA": "\u00c1frica do Sul",
|
|
"AX": "Alanda",
|
|
"AL": "Alb\u00e2nia",
|
|
"DE": "Alemanha",
|
|
"AD": "Andorra",
|
|
"AO": "Angola",
|
|
"AI": "Anguila",
|
|
"AQ": "Ant\u00e1rtida",
|
|
"AG": "Ant\u00edgua e Barbuda",
|
|
"SA": "Ar\u00e1bia Saudita",
|
|
"DZ": "Arg\u00e9lia",
|
|
"AR": "Argentina",
|
|
"AM": "Arm\u00e9nia",
|
|
"AW": "Aruba",
|
|
"AU": "Austr\u00e1lia",
|
|
"AT": "\u00c1ustria",
|
|
"AZ": "Azerbaij\u00e3o",
|
|
"BS": "Baamas",
|
|
"BD": "Bangladeche",
|
|
"BB": "Barbados",
|
|
"BH": "Bar\u00e9m",
|
|
"BE": "B\u00e9lgica",
|
|
"BZ": "Belize",
|
|
"BJ": "Benim",
|
|
"BM": "Bermudas",
|
|
"BY": "Bielorr\u00fassia",
|
|
"BO": "Bol\u00edvia",
|
|
"BA": "B\u00f3snia e Herzegovina",
|
|
"BW": "Botsuana",
|
|
"BR": "Brasil",
|
|
"BN": "Brunei",
|
|
"BG": "Bulg\u00e1ria",
|
|
"BF": "Burquina Faso",
|
|
"BI": "Burundi",
|
|
"BT": "But\u00e3o",
|
|
"CV": "Cabo Verde",
|
|
"CM": "Camar\u00f5es",
|
|
"KH": "Camboja",
|
|
"CA": "Canad\u00e1",
|
|
"QA": "Catar",
|
|
"KZ": "Cazaquist\u00e3o",
|
|
"TD": "Chade",
|
|
"CZ": "Ch\u00e9quia",
|
|
"CL": "Chile",
|
|
"CN": "China",
|
|
"CY": "Chipre",
|
|
"VA": "Cidade do Vaticano",
|
|
"CO": "Col\u00f4mbia",
|
|
"KM": "Comores",
|
|
"CG": "Congo-Brazzaville",
|
|
"CD": "Congo-Kinshasa",
|
|
"KP": "Coreia do Norte",
|
|
"KR": "Coreia do Sul",
|
|
"CR": "Costa Rica",
|
|
"CI": "C\u00f4te d\u2019Ivoire (Costa do Marfim)",
|
|
"HR": "Cro\u00e1cia",
|
|
"CU": "Cuba",
|
|
"CW": "Cura\u00e7au",
|
|
"DK": "Dinamarca",
|
|
"DM": "Dom\u00ednica",
|
|
"EG": "Egito",
|
|
"AE": "Emirados \u00c1rabes Unidos",
|
|
"EC": "Equador",
|
|
"ER": "Eritreia",
|
|
"SK": "Eslov\u00e1quia",
|
|
"SI": "Eslov\u00e9nia",
|
|
"ES": "Espanha",
|
|
"SZ": "Essuat\u00edni",
|
|
"US": "Estados Unidos",
|
|
"EE": "Est\u00f3nia",
|
|
"ET": "Eti\u00f3pia",
|
|
"FJ": "Fiji",
|
|
"PH": "Filipinas",
|
|
"FI": "Finl\u00e2ndia",
|
|
"FR": "Fran\u00e7a",
|
|
"GA": "Gab\u00e3o",
|
|
"GM": "G\u00e2mbia",
|
|
"GH": "Gana",
|
|
"GE": "Ge\u00f3rgia",
|
|
"GI": "Gibraltar",
|
|
"GD": "Granada",
|
|
"GR": "Gr\u00e9cia",
|
|
"GL": "Gronel\u00e2ndia",
|
|
"GP": "Guadalupe",
|
|
"GU": "Guame",
|
|
"GT": "Guatemala",
|
|
"GG": "Guernesey",
|
|
"GY": "Guiana",
|
|
"GF": "Guiana Francesa",
|
|
"GN": "Guin\u00e9",
|
|
"GQ": "Guin\u00e9 Equatorial",
|
|
"GW": "Guin\u00e9-Bissau",
|
|
"HT": "Haiti",
|
|
"HN": "Honduras",
|
|
"HK": "Hong Kong, RAE da China",
|
|
"HU": "Hungria",
|
|
"YE": "I\u00e9men",
|
|
"BV": "Ilha Bouvet",
|
|
"IM": "Ilha de Man",
|
|
"CX": "Ilha do Natal",
|
|
"NF": "Ilha Norfolk",
|
|
"KY": "Ilhas Caim\u00e3o",
|
|
"CK": "Ilhas Cook",
|
|
"CC": "Ilhas dos Cocos (Keeling)",
|
|
"FO": "Ilhas Faro\u00e9",
|
|
"GS": "Ilhas Ge\u00f3rgia do Sul e Sandwich do Sul",
|
|
"HM": "Ilhas Heard e McDonald",
|
|
"FK": "Ilhas Malvinas (Falkland)",
|
|
"MP": "Ilhas Marianas do Norte",
|
|
"MH": "Ilhas Marshall",
|
|
"UM": "Ilhas Menores Afastadas dos EUA",
|
|
"PN": "Ilhas Pitcairn",
|
|
"SB": "Ilhas Salom\u00e3o",
|
|
"TC": "Ilhas Turcas e Caicos",
|
|
"VG": "Ilhas Virgens Brit\u00e2nicas",
|
|
"VI": "Ilhas Virgens dos EUA",
|
|
"IN": "\u00cdndia",
|
|
"ID": "Indon\u00e9sia",
|
|
"IR": "Ir\u00e3o",
|
|
"IQ": "Iraque",
|
|
"IE": "Irlanda",
|
|
"IS": "Isl\u00e2ndia",
|
|
"IL": "Israel",
|
|
"IT": "It\u00e1lia",
|
|
"JM": "Jamaica",
|
|
"JP": "Jap\u00e3o",
|
|
"JE": "Jersey",
|
|
"DJ": "Jibuti",
|
|
"JO": "Jord\u00e2nia",
|
|
"XK": "Kosovo",
|
|
"KW": "Koweit",
|
|
"LA": "Laos",
|
|
"LS": "Lesoto",
|
|
"LV": "Let\u00f3nia",
|
|
"LB": "L\u00edbano",
|
|
"LR": "Lib\u00e9ria",
|
|
"LY": "L\u00edbia",
|
|
"LI": "Listenstaine",
|
|
"LT": "Litu\u00e2nia",
|
|
"LU": "Luxemburgo",
|
|
"MO": "Macau, RAE da China",
|
|
"MK": "Maced\u00f3nia do Norte",
|
|
"MG": "Madag\u00e1scar",
|
|
"YT": "Maiote",
|
|
"MY": "Mal\u00e1sia",
|
|
"MW": "Mal\u00e1ui",
|
|
"MV": "Maldivas",
|
|
"ML": "Mali",
|
|
"MT": "Malta",
|
|
"MA": "Marrocos",
|
|
"MQ": "Martinica",
|
|
"MU": "Maur\u00edcia",
|
|
"MR": "Maurit\u00e2nia",
|
|
"MX": "M\u00e9xico",
|
|
"MM": "Mianmar (Birm\u00e2nia)",
|
|
"FM": "Micron\u00e9sia",
|
|
"MZ": "Mo\u00e7ambique",
|
|
"MD": "Mold\u00e1via",
|
|
"MC": "M\u00f3naco",
|
|
"MN": "Mong\u00f3lia",
|
|
"MS": "Monserrate",
|
|
"ME": "Montenegro",
|
|
"NA": "Nam\u00edbia",
|
|
"NR": "Nauru",
|
|
"NP": "Nepal",
|
|
"NI": "Nicar\u00e1gua",
|
|
"NE": "N\u00edger",
|
|
"NG": "Nig\u00e9ria",
|
|
"NU": "Niu\u00ea",
|
|
"NO": "Noruega",
|
|
"NC": "Nova Caled\u00f3nia",
|
|
"NZ": "Nova Zel\u00e2ndia",
|
|
"OM": "Om\u00e3",
|
|
"NL": "Pa\u00edses Baixos",
|
|
"BQ": "Pa\u00edses Baixos Caribenhos",
|
|
"PW": "Palau",
|
|
"PA": "Panam\u00e1",
|
|
"PG": "Papua-Nova Guin\u00e9",
|
|
"PK": "Paquist\u00e3o",
|
|
"PY": "Paraguai",
|
|
"PE": "Peru",
|
|
"PF": "Polin\u00e9sia Francesa",
|
|
"PL": "Pol\u00f3nia",
|
|
"PR": "Porto Rico",
|
|
"PT": "Portugal",
|
|
"KE": "Qu\u00e9nia",
|
|
"KG": "Quirguist\u00e3o",
|
|
"KI": "Quirib\u00e1ti",
|
|
"GB": "Reino Unido",
|
|
"CF": "Rep\u00fablica Centro-Africana",
|
|
"DO": "Rep\u00fablica Dominicana",
|
|
"RE": "Reuni\u00e3o",
|
|
"RO": "Rom\u00e9nia",
|
|
"RW": "Ruanda",
|
|
"RU": "R\u00fassia",
|
|
"SV": "Salvador",
|
|
"WS": "Samoa",
|
|
"AS": "Samoa Americana",
|
|
"SH": "Santa Helena",
|
|
"LC": "Santa L\u00facia",
|
|
"BL": "S\u00e3o Bartolomeu",
|
|
"KN": "S\u00e3o Crist\u00f3v\u00e3o e Neves",
|
|
"SM": "S\u00e3o Marinho",
|
|
"MF": "S\u00e3o Martinho",
|
|
"SX": "S\u00e3o Martinho (Sint Maarten)",
|
|
"PM": "S\u00e3o Pedro e Miquel\u00e3o",
|
|
"ST": "S\u00e3o Tom\u00e9 e Pr\u00edncipe",
|
|
"VC": "S\u00e3o Vicente e Granadinas",
|
|
"EH": "Sara Ocidental",
|
|
"SC": "Seicheles",
|
|
"SN": "Senegal",
|
|
"SL": "Serra Leoa",
|
|
"RS": "S\u00e9rvia",
|
|
"SG": "Singapura",
|
|
"SY": "S\u00edria",
|
|
"SO": "Som\u00e1lia",
|
|
"LK": "Sri Lanca",
|
|
"SD": "Sud\u00e3o",
|
|
"SS": "Sud\u00e3o do Sul",
|
|
"SE": "Su\u00e9cia",
|
|
"CH": "Su\u00ed\u00e7a",
|
|
"SR": "Suriname",
|
|
"SJ": "Svalbard e Jan Mayen",
|
|
"TH": "Tail\u00e2ndia",
|
|
"TW": "Taiwan",
|
|
"TJ": "Tajiquist\u00e3o",
|
|
"TZ": "Tanz\u00e2nia",
|
|
"IO": "Territ\u00f3rio Brit\u00e2nico do Oceano \u00cdndico",
|
|
"TF": "Territ\u00f3rios Austrais Franceses",
|
|
"PS": "Territ\u00f3rios palestinianos",
|
|
"TL": "Timor-Leste",
|
|
"TG": "Togo",
|
|
"TO": "Tonga",
|
|
"TK": "Toquelau",
|
|
"TT": "Trindade e Tobago",
|
|
"TN": "Tun\u00edsia",
|
|
"TM": "Turquemenist\u00e3o",
|
|
"TR": "Turquia",
|
|
"TV": "Tuvalu",
|
|
"UA": "Ucr\u00e2nia",
|
|
"UG": "Uganda",
|
|
"UY": "Uruguai",
|
|
"UZ": "Usbequist\u00e3o",
|
|
"VU": "Vanuatu",
|
|
"VE": "Venezuela",
|
|
"VN": "Vietname",
|
|
"WF": "Wallis e Futuna",
|
|
"ZM": "Z\u00e2mbia",
|
|
"ZW": "Zimbabu\u00e9"
|
|
}
|