Protected_ endpoints
_endpoints : { getSovereigntyHubs : { path : "corporations/{corporationId}/structures/sovereignty-hubs" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" ] ; responseSchema : ZodObject < { sovereignty_hubs : ZodArray < ZodObject < { id : ZodNumber ; solar_system_id : ZodNumber } , $loose > , > ; } , $loose , > ; } ; getOrbitalSkyhooks : { path : "corporations/{corporationId}/structures/skyhooks" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" ] ; responseSchema : ZodObject < { skyhooks : ZodArray < ZodObject < { id : ZodNumber ; planet_id : ZodNumber } , $loose > , > ; } , $loose , > ; } ; getRaidableSkyhooks : { path : "skyhooks/raidable" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { skyhooks : ZodArray < ZodObject < { planet_id : ZodNumber ; solar_system_id : ZodNumber ; theft_vulnerability : ZodObject < { start : ZodString ; end : ZodString } , $loose , > ; } , $loose , > , > ; } , $loose , > ; } ; getSkyhookDetail : { path : "corporations/{corporationId}/structures/skyhooks/{skyhookId}" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" , "skyhookId" ] ; responseSchema : ZodObject < { id : ZodNumber ; planet_id : ZodNumber ; state : ZodType < | string & {} | "Unspecified" | "ShieldVulnerable" | "ArmorReinforced" | "ArmorVulnerable" | "HullReinforced" | "HullVulnerable" , unknown , $ZodTypeInternals < | string & {} | "Unspecified" | "ShieldVulnerable" | "ArmorReinforced" | "ArmorVulnerable" | "HullReinforced" | "HullVulnerable" , unknown , > , > ; is_active : ZodBoolean ; effective_workforce : ZodOptional < ZodNumber > ; reagents : ZodOptional < ZodArray < ZodObject < { type_id : ZodNumber ; secured_stock : ZodNumber ; unsecured_stock : ZodNumber ; last_cycle : ZodString ; } , $loose , > , > , > ; reinforcement_timer : ZodOptional < ZodObject < { end : ZodString } , $loose > > ; theft_vulnerability : ZodOptional < ZodObject < { start : ZodString ; end : ZodString } , $loose > , > ; } , $loose , > ; } ; getSovereigntyHubDetail : { path : "corporations/{corporationId}/structures/sovereignty-hubs/{sovereigntyHubId}" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" , "sovereigntyHubId" ] ; responseSchema : ZodObject < { id : ZodNumber ; solar_system_id : ZodNumber ; upgrades : ZodArray < ZodObject < { type_id : ZodNumber ; power_state : ZodType < | string & {} | "Unspecified" | "Online" | "Offline" | "Low" | "Pending" , unknown , $ZodTypeInternals < | (...) & (...) | "Unspecified" | "Online" | "Offline" | "Low" | "Pending" , unknown , > , > ; } , $loose , > , > ; reagent_bay : ZodObject < { last_updated : ZodString ; reagents : ZodArray < ZodObject < { type_id : ZodNumber ; amount : ZodNumber ; burning_per_hour : ZodNumber ; } , $loose , > , > ; } , $loose , > ; resources : ZodObject < { power : ZodObject < { available : ZodNumber ; allocated : ZodNumber } , $loose , > ; workforce : ZodObject < { available : ZodNumber ; allocated : ZodNumber } , $loose , > ; } , $loose , > ; workforce_transport : ZodObject < { configuration : ZodObject < {} , $loose > ; state : ZodObject < {} , $loose > ; } , $loose , > ; fuel_access_list_id : ZodOptional < ZodNumber > ; vulnerability_window : ZodOptional < ZodObject < { start : ZodString ; end : ZodString } , $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.