Protected_ endpoints
_endpoints : { getCharacterStats : { path : "characters/{characterId}/fw/stats" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "characterId" ] ; responseSchema : ZodObject < { faction_id : ZodOptional < ZodNumber > ; enlisted_on : ZodOptional < ZodString > ; current_rank : ZodOptional < ZodNumber > ; highest_rank : ZodOptional < ZodNumber > ; kills : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; victory_points : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; } , $loose , > ; } ; getCorporationStats : { path : "corporations/{corporationId}/fw/stats" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" ] ; responseSchema : ZodObject < { faction_id : ZodOptional < ZodNumber > ; enlisted_on : ZodOptional < ZodString > ; pilots : ZodOptional < ZodNumber > ; kills : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; victory_points : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; } , $loose , > ; } ; getOverall : { path : "fw/leaderboards" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { kills : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; victory_points : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; faction_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; } , $loose , > ; } ; getCharacters : { path : "fw/leaderboards/characters" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { kills : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; victory_points : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; character_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; } , $loose , > ; } ; getCorporations : { path : "fw/leaderboards/corporations" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { kills : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; victory_points : ZodObject < { yesterday : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; last_week : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; active_total : ZodArray < ZodObject < { amount : ZodOptional < ZodNumber > ; corporation_id : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; } , $loose , > ; } ; getStats : { path : "fw/stats" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodArray < ZodObject < { faction_id : ZodNumber ; pilots : ZodNumber ; systems_controlled : ZodNumber ; kills : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; victory_points : ZodObject < { yesterday : ZodNumber ; last_week : ZodNumber ; total : ZodNumber } , $loose , > ; } , $loose , > , > ; } ; getSystems : { path : "fw/systems" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodArray < ZodObject < { solar_system_id : ZodNumber ; owner_faction_id : ZodNumber ; occupier_faction_id : ZodNumber ; contested : ZodType < | string & {} | "contested" | "captured" | "uncontested" | "vulnerable" , unknown , $ZodTypeInternals < | string & {} | "contested" | "captured" | "uncontested" | "vulnerable" , unknown , > , > ; victory_points : ZodNumber ; victory_points_threshold : ZodNumber ; } , $loose , > , > ; } ; getWars : { path : "fw/wars" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodArray < ZodObject < { faction_id : ZodNumber ; against_id : ZodNumber } , $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.