Protected_ endpoints
_endpoints : { getFittings : { path : "characters/{characterId}/fittings" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "characterId" ] ; responseSchema : ZodArray < ZodObject < { fitting_id : ZodNumber ; name : ZodString ; description : ZodString ; ship_type_id : ZodNumber ; items : ZodArray < ZodObject < { type_id : ZodNumber ; flag : ZodUnion < readonly [ ZodNumber , ZodString ] > ; quantity : ZodNumber ; } , $loose , > , > ; } , $loose , > , > ; } ; createFitting : { path : "characters/{characterId}/fittings" ; method : "POST" ; responseSchema : ZodObject < { fitting_id : ZodNumber } , $loose > ; requiresAuth : true ; pathParams : readonly [ "characterId" ] ; hasBody : true ; } ; deleteFitting : { path : "characters/{characterId}/fittings/{fittingId}" ; method : "DELETE" ; requiresAuth : true ; pathParams : readonly [ "characterId" , "fittingId" ] ; } ; }
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.