Protected_ endpoints
_endpoints : { getSovereigntyCampaigns : { path : "sovereignty/campaigns" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodArray < ZodObject < { campaign_id : ZodNumber ; structure_id : ZodNumber ; solar_system_id : ZodNumber ; constellation_id : ZodNumber ; event_type : ZodType < | string & {} | "tcu_defense" | "ihub_defense" | "station_defense" | "station_freeport" , unknown , $ZodTypeInternals < | string & {} | "tcu_defense" | "ihub_defense" | "station_defense" | "station_freeport" , unknown , > , > ; start_time : ZodString ; defender_id : ZodOptional < ZodNumber > ; defender_score : ZodOptional < ZodNumber > ; attackers_score : ZodOptional < ZodNumber > ; participants : ZodOptional < ZodArray < ZodObject < { alliance_id : ZodNumber ; score : ZodNumber } , $loose > , > , > ; } , $loose , > , > ; } ; getSovereigntySystems : { path : "sovereignty/systems" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { solar_systems : ZodArray < ZodObject < { solar_system_id : ZodNumber ; claim : ZodObject < { alliance : ZodOptional < ZodObject < (...), (...)> > ; faction : ZodOptional < ZodObject < (...), (...)> > ; unclaimed : ZodOptional < ZodBoolean > ; } , $loose , > ; } , $loose , > , > ; } , $loose , > ; } ; }
The base of the custom domain clients: an endpoint map turned into methods, plus the
stream*/fetchAll*page helpers andwithMetadata/withSafeMode. Extend it for a custom domain client of your own.