Protected_ endpoints
_endpoints : { getWars : { path : "wars" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodArray < ZodNumber > ; } ; getWarById : { path : "wars/{warId}" ; method : "GET" ; requiresAuth : false ; pathParams : readonly [ "warId" ] ; responseSchema : ZodObject < { id : ZodNumber ; declared : ZodString ; started : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; retracted : ZodOptional < ZodString > ; mutual : ZodBoolean ; open_for_allies : ZodBoolean ; aggressor : ZodObject < { corporation_id : ZodOptional < ZodNumber > ; alliance_id : ZodOptional < ZodNumber > ; isk_destroyed : ZodNumber ; ships_killed : ZodNumber ; } , $loose , > ; defender : ZodObject < { corporation_id : ZodOptional < ZodNumber > ; alliance_id : ZodOptional < ZodNumber > ; isk_destroyed : ZodNumber ; ships_killed : ZodNumber ; } , $loose , > ; allies : ZodOptional < ZodArray < ZodObject < { corporation_id : ZodOptional < ZodNumber > ; alliance_id : ZodOptional < ZodNumber > ; } , $loose , > , > , > ; } , $loose , > ; } ; getWarKillmails : { path : "wars/{warId}/killmails" ; method : "GET" ; requiresAuth : false ; pathParams : readonly [ "warId" ] ; responseSchema : ZodArray < ZodObject < { killmail_id : ZodNumber ; killmail_hash : ZodString } , $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.