Protected_ endpoints
_endpoints : { getMilitaryCampaigns : { path : "military-campaigns" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { campaigns : ZodArray < ZodObject < { id : ZodString ; state : ZodType < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , $ZodTypeInternals < | (...) & (...) | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , > , > ; progress : ZodNumber ; started : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; } , $loose , > , > ; } , $loose , > ; } ; getMilitaryCampaign : { path : "military-campaigns/{campaignId}" ; method : "GET" ; requiresAuth : false ; pathParams : readonly [ "campaignId" ] ; responseSchema : ZodObject < { id : ZodString ; state : ZodType < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , $ZodTypeInternals < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , > , > ; progress : ZodNumber ; started : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; } , $loose , > ; } ; getMilitaryCampaignObjectives : { path : "military-campaigns/{campaignId}/objectives" ; method : "GET" ; requiresAuth : false ; pathParams : readonly [ "campaignId" ] ; queryParams : { after : "after" ; before : "before" ; limit : "limit" } ; responseSchema : ZodObject < { objectives : ZodArray < ZodObject < { id : ZodString ; state : ZodType < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , $ZodTypeInternals < | (...) & (...) | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , > , > ; progress : ZodNumber ; last_modified : ZodString ; started : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; participants : ZodObject < { total : ZodNumber ; committed : ZodNumber ; contributors : ZodNumber ; } , $loose , > ; } , $loose , > , > ; cursor : ZodOptional < ZodObject < { before : ZodOptional < ZodString > ; after : ZodOptional < ZodString > } , $loose , > , > ; } , $loose , > ; } ; getMilitaryCampaignObjective : { path : "military-campaigns/{campaignId}/objectives/{objectiveId}" ; method : "GET" ; requiresAuth : false ; pathParams : readonly [ "campaignId" , "objectiveId" ] ; responseSchema : ZodObject < { id : ZodString ; state : ZodType < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , $ZodTypeInternals < string & {} | "Unspecified" | "Active" | "Completed" | "Expired" , unknown , > , > ; progress : ZodNumber ; last_modified : ZodString ; started : ZodOptional < ZodString > ; finished : ZodOptional < ZodString > ; participants : ZodObject < { total : ZodNumber ; committed : ZodNumber ; contributors : ZodNumber } , $loose , > ; } , $loose , > ; } ; getCharacterMilitaryCampaignObjectives : { path : "characters/{characterId}/military-campaigns/objectives" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "characterId" ] ; queryParams : { after : "after" ; before : "before" ; limit : "limit" } ; responseSchema : ZodObject < { objectives : ZodArray < ZodObject < { id : ZodString ; campaign_id : ZodString ; is_committed : ZodBoolean ; contributed : ZodNumber ; last_modified : ZodString ; } , $loose , > , > ; cursor : ZodOptional < ZodObject < { before : ZodOptional < ZodString > ; after : ZodOptional < ZodString > } , $loose , > , > ; } , $loose , > ; } ; getCharacterMilitaryCampaignObjective : { path : "characters/{characterId}/military-campaigns/objectives/{objectiveId}" ; method : "GET" ; requiresAuth : true ; pathParams : readonly [ "characterId" , "objectiveId" ] ; responseSchema : ZodObject < { id : ZodString ; campaign_id : ZodString ; is_committed : ZodBoolean ; contributed : ZodNumber ; last_modified : 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.