Point agol_fdw at an ArcGIS Online layer and it reads the whole definition — so nothing is lost in translation.
The introspect_layer() function fetches a hosted feature layer's JSON definition from ArcGIS Online and records every part of it in a metadata catalog inside the agol_fdw schema: fields and their types, geometry and spatial reference, edit-tracking columns, coded-value and range domains, subtypes, attribute rules (constraint, calculation, validation), relationships, and contingent value groups.
That catalog is the single source of truth the rest of the extension relies on — for generating DDL, building triggers, and reconciling schema drift later.
SELECT agol_fdw.introspect_layer(
layer_url := 'https://services.arcgis.com/.../FeatureServer/0',
layer_name := 'poles'
);
-- now the catalog holds every field, domain, subtype, rule,
-- relationship, and contingent value group for that layer.