Protected_ endpoints
_endpoints : { getOpenApiJson : { path : "meta/openapi.json" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodRecord < ZodString , ZodUnknown > ; } ; getOpenApiYaml : { path : "meta/openapi.yaml" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodString ; textResponse : { accept : "application/yaml, text/yaml, text/plain" } ; } ; getChangelog : { path : "meta/changelog" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { changelog : ZodRecord < ZodString , ZodArray < ZodObject < { method : ZodString ; path : ZodString ; compatibility_date : ZodString ; type : ZodType < (...) & (...) | "breaking" | "changed" | "new" | "removed" , unknown , $ZodTypeInternals < (...) | (...) | (...) | (...) | (...), unknown > , > ; description : ZodString ; } , $loose , > , > , > ; } , $loose , > ; } ; getCompatibilityDates : { path : "meta/compatibility-dates" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { compatibility_dates : ZodArray < ZodString > } , $loose , > ; } ; getName : { path : "meta/name" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { current : ZodString ; history : ZodArray < ZodObject < { date : ZodString ; name : ZodString } , $loose > , > ; } , $loose , > ; } ; getStatus : { path : "meta/status" ; method : "GET" ; requiresAuth : false ; responseSchema : ZodObject < { routes : ZodArray < ZodObject < { method : ZodType < string & {} | "GET" | "POST" | "PUT" | "DELETE" , unknown , $ZodTypeInternals < (...) & (...) | "GET" | "POST" | "PUT" | "DELETE" , unknown , > , > ; path : ZodString ; status : ZodType < | string & {} | "Unknown" | "OK" | "Degraded" | "Down" | "Recovering" , unknown , $ZodTypeInternals < | (...) & (...) | "Unknown" | "OK" | "Degraded" | "Down" | "Recovering" , unknown , > , > ; } , $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.