Protected_ endpoints
_endpoints : { getCorporationProjects : { path : "corporations/{corporationId}/projects" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" ] ; queryParams : { before : "before" ; after : "after" } ; responseSchema : ZodObject < { cursor : ZodOptional < ZodObject < { before : ZodOptional < ZodString > ; after : ZodOptional < ZodString > } , $loose , > , > ; projects : ZodArray < ZodObject < { id : ZodString ; name : ZodString ; state : ZodType < | string & {} | "Unspecified" | "Active" | "Closed" | "Completed" | "Expired" | "Deleted" , unknown , $ZodTypeInternals < | (...) & (...) | "Unspecified" | "Active" | "Closed" | "Completed" | "Expired" | "Deleted" , unknown , > , > ; last_modified : ZodString ; progress : ZodObject < { current : ZodNumber ; desired : ZodNumber } , $loose , > ; reward : ZodOptional < ZodObject < { initial : ZodNumber ; remaining : ZodNumber } , $loose > , > ; } , $loose , > , > ; } , $loose , > ; } ; getCorporationProject : { path : "corporations/{corporationId}/projects/{projectId}" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" , "projectId" ] ; responseSchema : ZodObject < { id : ZodString ; name : ZodString ; state : ZodType < | string & {} | "Unspecified" | "Active" | "Closed" | "Completed" | "Expired" | "Deleted" , unknown , $ZodTypeInternals < | string & {} | "Unspecified" | "Active" | "Closed" | "Completed" | "Expired" | "Deleted" , unknown , > , > ; last_modified : ZodString ; progress : ZodObject < { current : ZodNumber ; desired : ZodNumber } , $loose > ; reward : ZodOptional < ZodObject < { initial : ZodNumber ; remaining : ZodNumber } , $loose > , > ; creator : ZodObject < { id : ZodNumber ; name : ZodString } , $loose > ; details : ZodObject < { career : ZodType < | string & {} | "Unspecified" | "Explorer" | "Industrialist" | "Enforcer" | "Soldier of Fortune" , unknown , $ZodTypeInternals < | string & {} | "Unspecified" | "Explorer" | "Industrialist" | "Enforcer" | "Soldier of Fortune" , unknown , > , > ; created : ZodString ; description : ZodString ; expires : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; } , $loose , > ; configuration : ZodRecord < ZodString , ZodUnknown > ; contribution : ZodOptional < ZodObject < { participation_limit : ZodOptional < ZodNumber > ; reward_per_contribution : ZodOptional < ZodNumber > ; submission_limit : ZodOptional < ZodNumber > ; submission_multiplier : ZodOptional < ZodNumber > ; } , $loose , > , > ; } , $loose , > ; } ; getCorporationProjectContribution : { path : "corporations/{corporationId}/projects/{projectId}/contribution/{characterId}" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" , "projectId" , "characterId" ] ; responseSchema : ZodObject < { contributed : ZodNumber ; last_modified : ZodOptional < ZodString > } , $loose , > ; } ; getCorporationProjectContributors : { path : "corporations/{corporationId}/projects/{projectId}/contributors" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "corporationId" , "projectId" ] ; queryParams : { before : "before" ; after : "after" } ; responseSchema : ZodObject < { contributors : ZodArray < ZodObject < { id : ZodNumber ; name : ZodString ; contributed : ZodNumber } , $loose , > , > ; cursor : ZodOptional < ZodObject < { before : ZodOptional < ZodString > ; after : ZodOptional < 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.