Skip to content
320 changes: 290 additions & 30 deletions src/api/@tanstack/react-query.gen.ts

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/api/client/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,16 @@ export const createClient = (config: Config = {}): Client => {
case 'arrayBuffer':
case 'blob':
case 'formData':
case 'json':
case 'text':
data = await response[parseAs]();
break;
case 'json': {
// Some servers return 200 with no Content-Length and empty body.
// response.json() would throw; read as text and parse if non-empty.
const text = await response.text();
data = text ? JSON.parse(text) : {};
break;
}
case 'stream':
return opts.responseStyle === 'data'
? response.body
Expand Down
90 changes: 75 additions & 15 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ export {
fctMissedSlotRateHourlyServiceList,
fctNodeActiveLast24hServiceGet,
fctNodeActiveLast24hServiceList,
fctNodeCpuUtilizationByProcessServiceGet,
fctNodeCpuUtilizationByProcessServiceList,
fctOpcodeGasByOpcodeDailyServiceGet,
fctOpcodeGasByOpcodeDailyServiceList,
fctOpcodeGasByOpcodeHourlyServiceGet,
Expand Down Expand Up @@ -257,6 +259,10 @@ export {
intBlockOpcodeGasServiceList,
intBlockProposerCanonicalServiceGet,
intBlockProposerCanonicalServiceList,
intContractCreationServiceGet,
intContractCreationServiceList,
intContractSelfdestructServiceGet,
intContractSelfdestructServiceList,
intContractStorageExpiry12mServiceGet,
intContractStorageExpiry12mServiceList,
intContractStorageExpiry18mServiceGet,
Expand Down Expand Up @@ -297,12 +303,14 @@ export {
intCustodyProbeServiceList,
intEngineGetBlobsServiceGet,
intEngineGetBlobsServiceList,
intEngineNewPayloadFastestServiceGet,
intEngineNewPayloadFastestServiceList,
intEngineNewPayloadFastestExecutionByNodeClassServiceGet,
intEngineNewPayloadFastestExecutionByNodeClassServiceList,
intEngineNewPayloadServiceGet,
intEngineNewPayloadServiceList,
intExecutionBlockByDateServiceGet,
intExecutionBlockByDateServiceList,
intStorageSelfdestructDiffsServiceGet,
intStorageSelfdestructDiffsServiceList,
intStorageSlotDiffByAddressSlotServiceGet,
intStorageSlotDiffByAddressSlotServiceList,
intStorageSlotDiffServiceGet,
Expand Down Expand Up @@ -1343,6 +1351,17 @@ export type {
FctNodeActiveLast24hServiceListErrors,
FctNodeActiveLast24hServiceListResponse,
FctNodeActiveLast24hServiceListResponses,
FctNodeCpuUtilizationByProcess,
FctNodeCpuUtilizationByProcessServiceGetData,
FctNodeCpuUtilizationByProcessServiceGetError,
FctNodeCpuUtilizationByProcessServiceGetErrors,
FctNodeCpuUtilizationByProcessServiceGetResponse,
FctNodeCpuUtilizationByProcessServiceGetResponses,
FctNodeCpuUtilizationByProcessServiceListData,
FctNodeCpuUtilizationByProcessServiceListError,
FctNodeCpuUtilizationByProcessServiceListErrors,
FctNodeCpuUtilizationByProcessServiceListResponse,
FctNodeCpuUtilizationByProcessServiceListResponses,
FctOpcodeGasByOpcodeDaily,
FctOpcodeGasByOpcodeDailyServiceGetData,
FctOpcodeGasByOpcodeDailyServiceGetError,
Expand Down Expand Up @@ -1708,6 +1727,7 @@ export type {
GetFctMissedSlotRateDailyResponse,
GetFctMissedSlotRateHourlyResponse,
GetFctNodeActiveLast24hResponse,
GetFctNodeCpuUtilizationByProcessResponse,
GetFctOpcodeGasByOpcodeDailyResponse,
GetFctOpcodeGasByOpcodeHourlyResponse,
GetFctOpcodeOpsDailyResponse,
Expand Down Expand Up @@ -1746,6 +1766,8 @@ export type {
GetIntBlockMevCanonicalResponse,
GetIntBlockOpcodeGasResponse,
GetIntBlockProposerCanonicalResponse,
GetIntContractCreationResponse,
GetIntContractSelfdestructResponse,
GetIntContractStorageExpiry12mResponse,
GetIntContractStorageExpiry18mResponse,
GetIntContractStorageExpiry1mResponse,
Expand All @@ -1766,9 +1788,10 @@ export type {
GetIntCustodyProbeOrderBySlotResponse,
GetIntCustodyProbeResponse,
GetIntEngineGetBlobsResponse,
GetIntEngineNewPayloadFastestResponse,
GetIntEngineNewPayloadFastestExecutionByNodeClassResponse,
GetIntEngineNewPayloadResponse,
GetIntExecutionBlockByDateResponse,
GetIntStorageSelfdestructDiffsResponse,
GetIntStorageSlotDiffByAddressSlotResponse,
GetIntStorageSlotDiffResponse,
GetIntStorageSlotExpiry12mResponse,
Expand Down Expand Up @@ -1936,6 +1959,28 @@ export type {
IntBlockProposerCanonicalServiceListErrors,
IntBlockProposerCanonicalServiceListResponse,
IntBlockProposerCanonicalServiceListResponses,
IntContractCreation,
IntContractCreationServiceGetData,
IntContractCreationServiceGetError,
IntContractCreationServiceGetErrors,
IntContractCreationServiceGetResponse,
IntContractCreationServiceGetResponses,
IntContractCreationServiceListData,
IntContractCreationServiceListError,
IntContractCreationServiceListErrors,
IntContractCreationServiceListResponse,
IntContractCreationServiceListResponses,
IntContractSelfdestruct,
IntContractSelfdestructServiceGetData,
IntContractSelfdestructServiceGetError,
IntContractSelfdestructServiceGetErrors,
IntContractSelfdestructServiceGetResponse,
IntContractSelfdestructServiceGetResponses,
IntContractSelfdestructServiceListData,
IntContractSelfdestructServiceListError,
IntContractSelfdestructServiceListErrors,
IntContractSelfdestructServiceListResponse,
IntContractSelfdestructServiceListResponses,
IntContractStorageExpiry12m,
IntContractStorageExpiry12mServiceGetData,
IntContractStorageExpiry12mServiceGetError,
Expand Down Expand Up @@ -2157,17 +2202,17 @@ export type {
IntEngineGetBlobsServiceListResponse,
IntEngineGetBlobsServiceListResponses,
IntEngineNewPayload,
IntEngineNewPayloadFastest,
IntEngineNewPayloadFastestServiceGetData,
IntEngineNewPayloadFastestServiceGetError,
IntEngineNewPayloadFastestServiceGetErrors,
IntEngineNewPayloadFastestServiceGetResponse,
IntEngineNewPayloadFastestServiceGetResponses,
IntEngineNewPayloadFastestServiceListData,
IntEngineNewPayloadFastestServiceListError,
IntEngineNewPayloadFastestServiceListErrors,
IntEngineNewPayloadFastestServiceListResponse,
IntEngineNewPayloadFastestServiceListResponses,
IntEngineNewPayloadFastestExecutionByNodeClass,
IntEngineNewPayloadFastestExecutionByNodeClassServiceGetData,
IntEngineNewPayloadFastestExecutionByNodeClassServiceGetError,
IntEngineNewPayloadFastestExecutionByNodeClassServiceGetErrors,
IntEngineNewPayloadFastestExecutionByNodeClassServiceGetResponse,
IntEngineNewPayloadFastestExecutionByNodeClassServiceGetResponses,
IntEngineNewPayloadFastestExecutionByNodeClassServiceListData,
IntEngineNewPayloadFastestExecutionByNodeClassServiceListError,
IntEngineNewPayloadFastestExecutionByNodeClassServiceListErrors,
IntEngineNewPayloadFastestExecutionByNodeClassServiceListResponse,
IntEngineNewPayloadFastestExecutionByNodeClassServiceListResponses,
IntEngineNewPayloadServiceGetData,
IntEngineNewPayloadServiceGetError,
IntEngineNewPayloadServiceGetErrors,
Expand All @@ -2189,6 +2234,17 @@ export type {
IntExecutionBlockByDateServiceListErrors,
IntExecutionBlockByDateServiceListResponse,
IntExecutionBlockByDateServiceListResponses,
IntStorageSelfdestructDiffs,
IntStorageSelfdestructDiffsServiceGetData,
IntStorageSelfdestructDiffsServiceGetError,
IntStorageSelfdestructDiffsServiceGetErrors,
IntStorageSelfdestructDiffsServiceGetResponse,
IntStorageSelfdestructDiffsServiceGetResponses,
IntStorageSelfdestructDiffsServiceListData,
IntStorageSelfdestructDiffsServiceListError,
IntStorageSelfdestructDiffsServiceListErrors,
IntStorageSelfdestructDiffsServiceListResponse,
IntStorageSelfdestructDiffsServiceListResponses,
IntStorageSlotDiff,
IntStorageSlotDiffByAddressSlot,
IntStorageSlotDiffByAddressSlotServiceGetData,
Expand Down Expand Up @@ -2532,6 +2588,7 @@ export type {
ListFctMissedSlotRateDailyResponse,
ListFctMissedSlotRateHourlyResponse,
ListFctNodeActiveLast24hResponse,
ListFctNodeCpuUtilizationByProcessResponse,
ListFctOpcodeGasByOpcodeDailyResponse,
ListFctOpcodeGasByOpcodeHourlyResponse,
ListFctOpcodeOpsDailyResponse,
Expand Down Expand Up @@ -2570,6 +2627,8 @@ export type {
ListIntBlockMevCanonicalResponse,
ListIntBlockOpcodeGasResponse,
ListIntBlockProposerCanonicalResponse,
ListIntContractCreationResponse,
ListIntContractSelfdestructResponse,
ListIntContractStorageExpiry12mResponse,
ListIntContractStorageExpiry18mResponse,
ListIntContractStorageExpiry1mResponse,
Expand All @@ -2590,9 +2649,10 @@ export type {
ListIntCustodyProbeOrderBySlotResponse,
ListIntCustodyProbeResponse,
ListIntEngineGetBlobsResponse,
ListIntEngineNewPayloadFastestResponse,
ListIntEngineNewPayloadFastestExecutionByNodeClassResponse,
ListIntEngineNewPayloadResponse,
ListIntExecutionBlockByDateResponse,
ListIntStorageSelfdestructDiffsResponse,
ListIntStorageSlotDiffByAddressSlotResponse,
ListIntStorageSlotDiffResponse,
ListIntStorageSlotExpiry12mResponse,
Expand Down
Loading