From 504dc5a232db92599690374aedbc3c2efca99b20 Mon Sep 17 00:00:00 2001 From: Csillag Kristof Date: Fri, 27 Oct 2023 21:36:25 +0200 Subject: [PATCH 1/4] Re-generate API wrapper code with orval v6.18.1 --- src/oasis-nexus/generated/api.ts | 512 ++++++++++++++++++++++++------- 1 file changed, 409 insertions(+), 103 deletions(-) diff --git a/src/oasis-nexus/generated/api.ts b/src/oasis-nexus/generated/api.ts index a6e716691..20996a39e 100644 --- a/src/oasis-nexus/generated/api.ts +++ b/src/oasis-nexus/generated/api.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.17.0 🍺 + * Generated by orval v6.18.1 🍺 * Do not edit manually. * Oasis Nexus API V1 * An API for accessing indexed data from the Oasis Network. @@ -1643,6 +1643,8 @@ export const getStatus = ( network: 'mainnet' | 'testnet', options?: SecondParameter,signal?: AbortSignal ) => { + + return getStatusMutator( {url: `/${network}/`, method: 'get', signal }, @@ -1650,12 +1652,16 @@ export const getStatus = ( } -export const getGetStatusQueryKey = (network: 'mainnet' | 'testnet',) => [`/${network}/`] as const; +export const getGetStatusQueryKey = (network: 'mainnet' | 'testnet',) => { + + return [`/${network}/`] as const; + } export const getGetStatusQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetStatusQueryKey(network); @@ -1663,10 +1669,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => getStatus(network, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetStatusQueryResult = NonNullable>> export type GetStatusQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1697,6 +1706,8 @@ export const GetConsensusBlocks = ( params?: GetConsensusBlocksParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusBlocksMutator( {url: `/${network}/consensus/blocks`, method: 'get', params, signal @@ -1706,13 +1717,17 @@ export const GetConsensusBlocks = ( export const getGetConsensusBlocksQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusBlocksParams,) => [`/${network}/consensus/blocks`, ...(params ? [params]: [])] as const; + params?: GetConsensusBlocksParams,) => { + + return [`/${network}/consensus/blocks`, ...(params ? [params]: [])] as const; + } export const getGetConsensusBlocksQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusBlocksParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusBlocksQueryKey(network,params); @@ -1720,10 +1735,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusBlocks(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusBlocksQueryResult = NonNullable>> export type GetConsensusBlocksQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1755,6 +1773,8 @@ export const GetConsensusBlocksHeight = ( height: number, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusBlocksHeightMutator( {url: `/${network}/consensus/blocks/${height}`, method: 'get', signal }, @@ -1763,13 +1783,17 @@ export const GetConsensusBlocksHeight = ( export const getGetConsensusBlocksHeightQueryKey = (network: 'mainnet' | 'testnet', - height: number,) => [`/${network}/consensus/blocks/${height}`] as const; + height: number,) => { + + return [`/${network}/consensus/blocks/${height}`] as const; + } export const getGetConsensusBlocksHeightQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', height: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusBlocksHeightQueryKey(network,height); @@ -1777,10 +1801,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusBlocksHeight(network,height, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && height), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && height), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusBlocksHeightQueryResult = NonNullable>> export type GetConsensusBlocksHeightQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1812,6 +1839,8 @@ export const GetConsensusTransactions = ( params?: GetConsensusTransactionsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusTransactionsMutator( {url: `/${network}/consensus/transactions`, method: 'get', params, signal @@ -1821,13 +1850,17 @@ export const GetConsensusTransactions = ( export const getGetConsensusTransactionsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusTransactionsParams,) => [`/${network}/consensus/transactions`, ...(params ? [params]: [])] as const; + params?: GetConsensusTransactionsParams,) => { + + return [`/${network}/consensus/transactions`, ...(params ? [params]: [])] as const; + } export const getGetConsensusTransactionsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusTransactionsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusTransactionsQueryKey(network,params); @@ -1835,10 +1868,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusTransactions(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusTransactionsQueryResult = NonNullable>> export type GetConsensusTransactionsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1870,6 +1906,8 @@ export const GetConsensusTransactionsTxHash = ( txHash: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusTransactionsTxHashMutator( {url: `/${network}/consensus/transactions/${txHash}`, method: 'get', signal }, @@ -1878,13 +1916,17 @@ export const GetConsensusTransactionsTxHash = ( export const getGetConsensusTransactionsTxHashQueryKey = (network: 'mainnet' | 'testnet', - txHash: string,) => [`/${network}/consensus/transactions/${txHash}`] as const; + txHash: string,) => { + + return [`/${network}/consensus/transactions/${txHash}`] as const; + } export const getGetConsensusTransactionsTxHashQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', txHash: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusTransactionsTxHashQueryKey(network,txHash); @@ -1892,10 +1934,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusTransactionsTxHash(network,txHash, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && txHash), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && txHash), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusTransactionsTxHashQueryResult = NonNullable>> export type GetConsensusTransactionsTxHashQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1927,6 +1972,8 @@ export const GetConsensusEvents = ( params?: GetConsensusEventsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEventsMutator( {url: `/${network}/consensus/events`, method: 'get', params, signal @@ -1936,13 +1983,17 @@ export const GetConsensusEvents = ( export const getGetConsensusEventsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusEventsParams,) => [`/${network}/consensus/events`, ...(params ? [params]: [])] as const; + params?: GetConsensusEventsParams,) => { + + return [`/${network}/consensus/events`, ...(params ? [params]: [])] as const; + } export const getGetConsensusEventsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEventsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEventsQueryKey(network,params); @@ -1950,10 +2001,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEvents(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEventsQueryResult = NonNullable>> export type GetConsensusEventsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -1985,6 +2039,8 @@ export const GetConsensusEntities = ( params?: GetConsensusEntitiesParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEntitiesMutator( {url: `/${network}/consensus/entities`, method: 'get', params, signal @@ -1994,13 +2050,17 @@ export const GetConsensusEntities = ( export const getGetConsensusEntitiesQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusEntitiesParams,) => [`/${network}/consensus/entities`, ...(params ? [params]: [])] as const; + params?: GetConsensusEntitiesParams,) => { + + return [`/${network}/consensus/entities`, ...(params ? [params]: [])] as const; + } export const getGetConsensusEntitiesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEntitiesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesQueryKey(network,params); @@ -2008,10 +2068,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntities(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEntitiesQueryResult = NonNullable>> export type GetConsensusEntitiesQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2043,6 +2106,8 @@ export const GetConsensusEntitiesEntityId = ( entityId: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEntitiesEntityIdMutator( {url: `/${network}/consensus/entities/${entityId}`, method: 'get', signal }, @@ -2051,13 +2116,17 @@ export const GetConsensusEntitiesEntityId = ( export const getGetConsensusEntitiesEntityIdQueryKey = (network: 'mainnet' | 'testnet', - entityId: string,) => [`/${network}/consensus/entities/${entityId}`] as const; + entityId: string,) => { + + return [`/${network}/consensus/entities/${entityId}`] as const; + } export const getGetConsensusEntitiesEntityIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdQueryKey(network,entityId); @@ -2065,10 +2134,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityId(network,entityId, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEntitiesEntityIdQueryResult = NonNullable>> export type GetConsensusEntitiesEntityIdQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2101,6 +2173,8 @@ export const GetConsensusEntitiesEntityIdNodes = ( params?: GetConsensusEntitiesEntityIdNodesParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEntitiesEntityIdNodesMutator( {url: `/${network}/consensus/entities/${entityId}/nodes`, method: 'get', params, signal @@ -2111,14 +2185,18 @@ export const GetConsensusEntitiesEntityIdNodes = ( export const getGetConsensusEntitiesEntityIdNodesQueryKey = (network: 'mainnet' | 'testnet', entityId: string, - params?: GetConsensusEntitiesEntityIdNodesParams,) => [`/${network}/consensus/entities/${entityId}/nodes`, ...(params ? [params]: [])] as const; + params?: GetConsensusEntitiesEntityIdNodesParams,) => { + + return [`/${network}/consensus/entities/${entityId}/nodes`, ...(params ? [params]: [])] as const; + } export const getGetConsensusEntitiesEntityIdNodesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, params?: GetConsensusEntitiesEntityIdNodesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdNodesQueryKey(network,entityId,params); @@ -2126,10 +2204,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityIdNodes(network,entityId,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEntitiesEntityIdNodesQueryResult = NonNullable>> export type GetConsensusEntitiesEntityIdNodesQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2163,6 +2244,8 @@ export const GetConsensusEntitiesEntityIdNodesNodeId = ( nodeId: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEntitiesEntityIdNodesNodeIdMutator( {url: `/${network}/consensus/entities/${entityId}/nodes/${nodeId}`, method: 'get', signal }, @@ -2172,14 +2255,18 @@ export const GetConsensusEntitiesEntityIdNodesNodeId = ( export const getGetConsensusEntitiesEntityIdNodesNodeIdQueryKey = (network: 'mainnet' | 'testnet', entityId: string, - nodeId: string,) => [`/${network}/consensus/entities/${entityId}/nodes/${nodeId}`] as const; + nodeId: string,) => { + + return [`/${network}/consensus/entities/${entityId}/nodes/${nodeId}`] as const; + } export const getGetConsensusEntitiesEntityIdNodesNodeIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, nodeId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdNodesNodeIdQueryKey(network,entityId,nodeId); @@ -2187,10 +2274,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityIdNodesNodeId(network,entityId,nodeId, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && entityId && nodeId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && entityId && nodeId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEntitiesEntityIdNodesNodeIdQueryResult = NonNullable>> export type GetConsensusEntitiesEntityIdNodesNodeIdQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2223,6 +2313,8 @@ export const GetConsensusValidators = ( params?: GetConsensusValidatorsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusValidatorsMutator( {url: `/${network}/consensus/validators`, method: 'get', params, signal @@ -2232,13 +2324,17 @@ export const GetConsensusValidators = ( export const getGetConsensusValidatorsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusValidatorsParams,) => [`/${network}/consensus/validators`, ...(params ? [params]: [])] as const; + params?: GetConsensusValidatorsParams,) => { + + return [`/${network}/consensus/validators`, ...(params ? [params]: [])] as const; + } export const getGetConsensusValidatorsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusValidatorsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusValidatorsQueryKey(network,params); @@ -2246,10 +2342,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusValidators(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusValidatorsQueryResult = NonNullable>> export type GetConsensusValidatorsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2281,6 +2380,8 @@ export const GetConsensusValidatorsEntityId = ( entityId: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusValidatorsEntityIdMutator( {url: `/${network}/consensus/validators/${entityId}`, method: 'get', signal }, @@ -2289,13 +2390,17 @@ export const GetConsensusValidatorsEntityId = ( export const getGetConsensusValidatorsEntityIdQueryKey = (network: 'mainnet' | 'testnet', - entityId: string,) => [`/${network}/consensus/validators/${entityId}`] as const; + entityId: string,) => { + + return [`/${network}/consensus/validators/${entityId}`] as const; + } export const getGetConsensusValidatorsEntityIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusValidatorsEntityIdQueryKey(network,entityId); @@ -2303,10 +2408,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusValidatorsEntityId(network,entityId, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusValidatorsEntityIdQueryResult = NonNullable>> export type GetConsensusValidatorsEntityIdQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2338,6 +2446,8 @@ export const GetConsensusAccounts = ( params?: GetConsensusAccountsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsMutator( {url: `/${network}/consensus/accounts`, method: 'get', params, signal @@ -2347,13 +2457,17 @@ export const GetConsensusAccounts = ( export const getGetConsensusAccountsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusAccountsParams,) => [`/${network}/consensus/accounts`, ...(params ? [params]: [])] as const; + params?: GetConsensusAccountsParams,) => { + + return [`/${network}/consensus/accounts`, ...(params ? [params]: [])] as const; + } export const getGetConsensusAccountsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusAccountsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsQueryKey(network,params); @@ -2361,10 +2475,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccounts(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsQueryResult = NonNullable>> export type GetConsensusAccountsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2396,6 +2513,8 @@ export const GetConsensusAccountsAddress = ( address: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsAddressMutator( {url: `/${network}/consensus/accounts/${address}`, method: 'get', signal }, @@ -2404,13 +2523,17 @@ export const GetConsensusAccountsAddress = ( export const getGetConsensusAccountsAddressQueryKey = (network: 'mainnet' | 'testnet', - address: string,) => [`/${network}/consensus/accounts/${address}`] as const; + address: string,) => { + + return [`/${network}/consensus/accounts/${address}`] as const; + } export const getGetConsensusAccountsAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressQueryKey(network,address); @@ -2418,10 +2541,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddress(network,address, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsAddressQueryResult = NonNullable>> export type GetConsensusAccountsAddressQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2454,6 +2580,8 @@ export const GetConsensusAccountsAddressDelegations = ( params?: GetConsensusAccountsAddressDelegationsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsAddressDelegationsMutator( {url: `/${network}/consensus/accounts/${address}/delegations`, method: 'get', params, signal @@ -2464,14 +2592,18 @@ export const GetConsensusAccountsAddressDelegations = ( export const getGetConsensusAccountsAddressDelegationsQueryKey = (network: 'mainnet' | 'testnet', address: string, - params?: GetConsensusAccountsAddressDelegationsParams,) => [`/${network}/consensus/accounts/${address}/delegations`, ...(params ? [params]: [])] as const; + params?: GetConsensusAccountsAddressDelegationsParams,) => { + + return [`/${network}/consensus/accounts/${address}/delegations`, ...(params ? [params]: [])] as const; + } export const getGetConsensusAccountsAddressDelegationsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDelegationsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDelegationsQueryKey(network,address,params); @@ -2479,10 +2611,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDelegations(network,address,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsAddressDelegationsQueryResult = NonNullable>> export type GetConsensusAccountsAddressDelegationsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2516,6 +2651,8 @@ export const GetConsensusAccountsAddressDelegationsTo = ( params?: GetConsensusAccountsAddressDelegationsToParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsAddressDelegationsToMutator( {url: `/${network}/consensus/accounts/${address}/delegations_to`, method: 'get', params, signal @@ -2526,14 +2663,18 @@ export const GetConsensusAccountsAddressDelegationsTo = ( export const getGetConsensusAccountsAddressDelegationsToQueryKey = (network: 'mainnet' | 'testnet', address: string, - params?: GetConsensusAccountsAddressDelegationsToParams,) => [`/${network}/consensus/accounts/${address}/delegations_to`, ...(params ? [params]: [])] as const; + params?: GetConsensusAccountsAddressDelegationsToParams,) => { + + return [`/${network}/consensus/accounts/${address}/delegations_to`, ...(params ? [params]: [])] as const; + } export const getGetConsensusAccountsAddressDelegationsToQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDelegationsToParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDelegationsToQueryKey(network,address,params); @@ -2541,10 +2682,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDelegationsTo(network,address,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsAddressDelegationsToQueryResult = NonNullable>> export type GetConsensusAccountsAddressDelegationsToQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2578,6 +2722,8 @@ export const GetConsensusAccountsAddressDebondingDelegations = ( params?: GetConsensusAccountsAddressDebondingDelegationsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsAddressDebondingDelegationsMutator( {url: `/${network}/consensus/accounts/${address}/debonding_delegations`, method: 'get', params, signal @@ -2588,14 +2734,18 @@ export const GetConsensusAccountsAddressDebondingDelegations = ( export const getGetConsensusAccountsAddressDebondingDelegationsQueryKey = (network: 'mainnet' | 'testnet', address: string, - params?: GetConsensusAccountsAddressDebondingDelegationsParams,) => [`/${network}/consensus/accounts/${address}/debonding_delegations`, ...(params ? [params]: [])] as const; + params?: GetConsensusAccountsAddressDebondingDelegationsParams,) => { + + return [`/${network}/consensus/accounts/${address}/debonding_delegations`, ...(params ? [params]: [])] as const; + } export const getGetConsensusAccountsAddressDebondingDelegationsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDebondingDelegationsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDebondingDelegationsQueryKey(network,address,params); @@ -2603,10 +2753,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDebondingDelegations(network,address,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsAddressDebondingDelegationsQueryResult = NonNullable>> export type GetConsensusAccountsAddressDebondingDelegationsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2640,6 +2793,8 @@ export const GetConsensusAccountsAddressDebondingDelegationsTo = ( params?: GetConsensusAccountsAddressDebondingDelegationsToParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusAccountsAddressDebondingDelegationsToMutator( {url: `/${network}/consensus/accounts/${address}/debonding_delegations_to`, method: 'get', params, signal @@ -2650,14 +2805,18 @@ export const GetConsensusAccountsAddressDebondingDelegationsTo = ( export const getGetConsensusAccountsAddressDebondingDelegationsToQueryKey = (network: 'mainnet' | 'testnet', address: string, - params?: GetConsensusAccountsAddressDebondingDelegationsToParams,) => [`/${network}/consensus/accounts/${address}/debonding_delegations_to`, ...(params ? [params]: [])] as const; + params?: GetConsensusAccountsAddressDebondingDelegationsToParams,) => { + + return [`/${network}/consensus/accounts/${address}/debonding_delegations_to`, ...(params ? [params]: [])] as const; + } export const getGetConsensusAccountsAddressDebondingDelegationsToQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDebondingDelegationsToParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDebondingDelegationsToQueryKey(network,address,params); @@ -2665,10 +2824,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDebondingDelegationsTo(network,address,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusAccountsAddressDebondingDelegationsToQueryResult = NonNullable>> export type GetConsensusAccountsAddressDebondingDelegationsToQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2701,6 +2863,8 @@ export const GetConsensusEpochs = ( params?: GetConsensusEpochsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEpochsMutator( {url: `/${network}/consensus/epochs`, method: 'get', params, signal @@ -2710,13 +2874,17 @@ export const GetConsensusEpochs = ( export const getGetConsensusEpochsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusEpochsParams,) => [`/${network}/consensus/epochs`, ...(params ? [params]: [])] as const; + params?: GetConsensusEpochsParams,) => { + + return [`/${network}/consensus/epochs`, ...(params ? [params]: [])] as const; + } export const getGetConsensusEpochsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEpochsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEpochsQueryKey(network,params); @@ -2724,10 +2892,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEpochs(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEpochsQueryResult = NonNullable>> export type GetConsensusEpochsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2759,6 +2930,8 @@ export const GetConsensusEpochsEpoch = ( epoch: number, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusEpochsEpochMutator( {url: `/${network}/consensus/epochs/${epoch}`, method: 'get', signal }, @@ -2767,13 +2940,17 @@ export const GetConsensusEpochsEpoch = ( export const getGetConsensusEpochsEpochQueryKey = (network: 'mainnet' | 'testnet', - epoch: number,) => [`/${network}/consensus/epochs/${epoch}`] as const; + epoch: number,) => { + + return [`/${network}/consensus/epochs/${epoch}`] as const; + } export const getGetConsensusEpochsEpochQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', epoch: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEpochsEpochQueryKey(network,epoch); @@ -2781,10 +2958,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEpochsEpoch(network,epoch, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && epoch), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && epoch), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusEpochsEpochQueryResult = NonNullable>> export type GetConsensusEpochsEpochQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2816,6 +2996,8 @@ export const GetConsensusProposals = ( params?: GetConsensusProposalsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusProposalsMutator( {url: `/${network}/consensus/proposals`, method: 'get', params, signal @@ -2825,13 +3007,17 @@ export const GetConsensusProposals = ( export const getGetConsensusProposalsQueryKey = (network: 'mainnet' | 'testnet', - params?: GetConsensusProposalsParams,) => [`/${network}/consensus/proposals`, ...(params ? [params]: [])] as const; + params?: GetConsensusProposalsParams,) => { + + return [`/${network}/consensus/proposals`, ...(params ? [params]: [])] as const; + } export const getGetConsensusProposalsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusProposalsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsQueryKey(network,params); @@ -2839,10 +3025,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposals(network,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusProposalsQueryResult = NonNullable>> export type GetConsensusProposalsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2874,6 +3063,8 @@ export const GetConsensusProposalsProposalId = ( proposalId: number, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusProposalsProposalIdMutator( {url: `/${network}/consensus/proposals/${proposalId}`, method: 'get', signal }, @@ -2882,13 +3073,17 @@ export const GetConsensusProposalsProposalId = ( export const getGetConsensusProposalsProposalIdQueryKey = (network: 'mainnet' | 'testnet', - proposalId: number,) => [`/${network}/consensus/proposals/${proposalId}`] as const; + proposalId: number,) => { + + return [`/${network}/consensus/proposals/${proposalId}`] as const; + } export const getGetConsensusProposalsProposalIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', proposalId: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsProposalIdQueryKey(network,proposalId); @@ -2896,10 +3091,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposalsProposalId(network,proposalId, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusProposalsProposalIdQueryResult = NonNullable>> export type GetConsensusProposalsProposalIdQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2932,6 +3130,8 @@ export const GetConsensusProposalsProposalIdVotes = ( params?: GetConsensusProposalsProposalIdVotesParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetConsensusProposalsProposalIdVotesMutator( {url: `/${network}/consensus/proposals/${proposalId}/votes`, method: 'get', params, signal @@ -2942,14 +3142,18 @@ export const GetConsensusProposalsProposalIdVotes = ( export const getGetConsensusProposalsProposalIdVotesQueryKey = (network: 'mainnet' | 'testnet', proposalId: number, - params?: GetConsensusProposalsProposalIdVotesParams,) => [`/${network}/consensus/proposals/${proposalId}/votes`, ...(params ? [params]: [])] as const; + params?: GetConsensusProposalsProposalIdVotesParams,) => { + + return [`/${network}/consensus/proposals/${proposalId}/votes`, ...(params ? [params]: [])] as const; + } export const getGetConsensusProposalsProposalIdVotesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', proposalId: number, params?: GetConsensusProposalsProposalIdVotesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsProposalIdVotesQueryKey(network,proposalId,params); @@ -2957,10 +3161,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposalsProposalIdVotes(network,proposalId,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetConsensusProposalsProposalIdVotesQueryResult = NonNullable>> export type GetConsensusProposalsProposalIdVotesQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -2994,6 +3201,8 @@ export const GetRuntimeBlocks = ( params?: GetRuntimeBlocksParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeBlocksMutator( {url: `/${network}/${runtime}/blocks`, method: 'get', params, signal @@ -3004,14 +3213,18 @@ export const GetRuntimeBlocks = ( export const getGetRuntimeBlocksQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - params?: GetRuntimeBlocksParams,) => [`/${network}/${runtime}/blocks`, ...(params ? [params]: [])] as const; + params?: GetRuntimeBlocksParams,) => { + + return [`/${network}/${runtime}/blocks`, ...(params ? [params]: [])] as const; + } export const getGetRuntimeBlocksQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeBlocksParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeBlocksQueryKey(network,runtime,params); @@ -3019,10 +3232,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeBlocks(network,runtime,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeBlocksQueryResult = NonNullable>> export type GetRuntimeBlocksQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3056,6 +3272,8 @@ export const GetRuntimeTransactions = ( params?: GetRuntimeTransactionsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeTransactionsMutator( {url: `/${network}/${runtime}/transactions`, method: 'get', params, signal @@ -3066,14 +3284,18 @@ export const GetRuntimeTransactions = ( export const getGetRuntimeTransactionsQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - params?: GetRuntimeTransactionsParams,) => [`/${network}/${runtime}/transactions`, ...(params ? [params]: [])] as const; + params?: GetRuntimeTransactionsParams,) => { + + return [`/${network}/${runtime}/transactions`, ...(params ? [params]: [])] as const; + } export const getGetRuntimeTransactionsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeTransactionsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeTransactionsQueryKey(network,runtime,params); @@ -3081,10 +3303,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeTransactions(network,runtime,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeTransactionsQueryResult = NonNullable>> export type GetRuntimeTransactionsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3118,6 +3343,8 @@ export const GetRuntimeTransactionsTxHash = ( txHash: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeTransactionsTxHashMutator( {url: `/${network}/${runtime}/transactions/${txHash}`, method: 'get', signal }, @@ -3127,14 +3354,18 @@ export const GetRuntimeTransactionsTxHash = ( export const getGetRuntimeTransactionsTxHashQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - txHash: string,) => [`/${network}/${runtime}/transactions/${txHash}`] as const; + txHash: string,) => { + + return [`/${network}/${runtime}/transactions/${txHash}`] as const; + } export const getGetRuntimeTransactionsTxHashQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, txHash: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeTransactionsTxHashQueryKey(network,runtime,txHash); @@ -3142,10 +3373,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeTransactionsTxHash(network,runtime,txHash, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime && txHash), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime && txHash), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeTransactionsTxHashQueryResult = NonNullable>> export type GetRuntimeTransactionsTxHashQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3179,6 +3413,8 @@ export const GetRuntimeEvents = ( params?: GetRuntimeEventsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeEventsMutator( {url: `/${network}/${runtime}/events`, method: 'get', params, signal @@ -3189,14 +3425,18 @@ export const GetRuntimeEvents = ( export const getGetRuntimeEventsQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - params?: GetRuntimeEventsParams,) => [`/${network}/${runtime}/events`, ...(params ? [params]: [])] as const; + params?: GetRuntimeEventsParams,) => { + + return [`/${network}/${runtime}/events`, ...(params ? [params]: [])] as const; + } export const getGetRuntimeEventsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeEventsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEventsQueryKey(network,runtime,params); @@ -3204,10 +3444,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvents(network,runtime,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeEventsQueryResult = NonNullable>> export type GetRuntimeEventsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3241,6 +3484,8 @@ export const GetRuntimeEvmTokens = ( params?: GetRuntimeEvmTokensParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeEvmTokensMutator( {url: `/${network}/${runtime}/evm_tokens`, method: 'get', params, signal @@ -3251,14 +3496,18 @@ export const GetRuntimeEvmTokens = ( export const getGetRuntimeEvmTokensQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - params?: GetRuntimeEvmTokensParams,) => [`/${network}/${runtime}/evm_tokens`, ...(params ? [params]: [])] as const; + params?: GetRuntimeEvmTokensParams,) => { + + return [`/${network}/${runtime}/evm_tokens`, ...(params ? [params]: [])] as const; + } export const getGetRuntimeEvmTokensQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeEvmTokensParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensQueryKey(network,runtime,params); @@ -3266,10 +3515,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokens(network,runtime,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeEvmTokensQueryResult = NonNullable>> export type GetRuntimeEvmTokensQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3303,6 +3555,8 @@ export const GetRuntimeEvmTokensAddress = ( address: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeEvmTokensAddressMutator( {url: `/${network}/${runtime}/evm_tokens/${address}`, method: 'get', signal }, @@ -3312,14 +3566,18 @@ export const GetRuntimeEvmTokensAddress = ( export const getGetRuntimeEvmTokensAddressQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - address: string,) => [`/${network}/${runtime}/evm_tokens/${address}`] as const; + address: string,) => { + + return [`/${network}/${runtime}/evm_tokens/${address}`] as const; + } export const getGetRuntimeEvmTokensAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensAddressQueryKey(network,runtime,address); @@ -3327,10 +3585,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokensAddress(network,runtime,address, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeEvmTokensAddressQueryResult = NonNullable>> export type GetRuntimeEvmTokensAddressQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3367,6 +3628,8 @@ export const GetRuntimeEvmTokensAddressHolders = ( params?: GetRuntimeEvmTokensAddressHoldersParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeEvmTokensAddressHoldersMutator( {url: `/${network}/${runtime}/evm_tokens/${address}/holders`, method: 'get', params, signal @@ -3378,7 +3641,10 @@ export const GetRuntimeEvmTokensAddressHolders = ( export const getGetRuntimeEvmTokensAddressHoldersQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, address: string, - params?: GetRuntimeEvmTokensAddressHoldersParams,) => [`/${network}/${runtime}/evm_tokens/${address}/holders`, ...(params ? [params]: [])] as const; + params?: GetRuntimeEvmTokensAddressHoldersParams,) => { + + return [`/${network}/${runtime}/evm_tokens/${address}/holders`, ...(params ? [params]: [])] as const; + } @@ -3386,7 +3652,8 @@ export const getGetRuntimeEvmTokensAddressHoldersQueryOptions = >, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensAddressHoldersQueryKey(network,runtime,address,params); @@ -3394,10 +3661,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokensAddressHolders(network,runtime,address,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeEvmTokensAddressHoldersQueryResult = NonNullable>> export type GetRuntimeEvmTokensAddressHoldersQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3434,6 +3704,8 @@ export const GetRuntimeAccountsAddress = ( address: string, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeAccountsAddressMutator( {url: `/${network}/${runtime}/accounts/${address}`, method: 'get', signal }, @@ -3443,14 +3715,18 @@ export const GetRuntimeAccountsAddress = ( export const getGetRuntimeAccountsAddressQueryKey = (network: 'mainnet' | 'testnet', runtime: Runtime, - address: string,) => [`/${network}/${runtime}/accounts/${address}`] as const; + address: string,) => { + + return [`/${network}/${runtime}/accounts/${address}`] as const; + } export const getGetRuntimeAccountsAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeAccountsAddressQueryKey(network,runtime,address); @@ -3458,10 +3734,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeAccountsAddress(network,runtime,address, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeAccountsAddressQueryResult = NonNullable>> export type GetRuntimeAccountsAddressQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3494,6 +3773,8 @@ export const GetRuntimeStatus = ( runtime: Runtime, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetRuntimeStatusMutator( {url: `/${network}/${runtime}/status`, method: 'get', signal }, @@ -3502,13 +3783,17 @@ export const GetRuntimeStatus = ( export const getGetRuntimeStatusQueryKey = (network: 'mainnet' | 'testnet', - runtime: Runtime,) => [`/${network}/${runtime}/status`] as const; + runtime: Runtime,) => { + + return [`/${network}/${runtime}/status`] as const; + } export const getGetRuntimeStatusQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeStatusQueryKey(network,runtime); @@ -3516,10 +3801,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeStatus(network,runtime, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetRuntimeStatusQueryResult = NonNullable>> export type GetRuntimeStatusQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3554,6 +3842,8 @@ export const GetLayerStatsTxVolume = ( params?: GetLayerStatsTxVolumeParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetLayerStatsTxVolumeMutator( {url: `/${network}/${layer}/stats/tx_volume`, method: 'get', params, signal @@ -3564,14 +3854,18 @@ export const GetLayerStatsTxVolume = ( export const getGetLayerStatsTxVolumeQueryKey = (network: 'mainnet' | 'testnet', layer: Layer, - params?: GetLayerStatsTxVolumeParams,) => [`/${network}/${layer}/stats/tx_volume`, ...(params ? [params]: [])] as const; + params?: GetLayerStatsTxVolumeParams,) => { + + return [`/${network}/${layer}/stats/tx_volume`, ...(params ? [params]: [])] as const; + } export const getGetLayerStatsTxVolumeQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', layer: Layer, params?: GetLayerStatsTxVolumeParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetLayerStatsTxVolumeQueryKey(network,layer,params); @@ -3579,10 +3873,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetLayerStatsTxVolume(network,layer,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetLayerStatsTxVolumeQueryResult = NonNullable>> export type GetLayerStatsTxVolumeQueryError = HumanReadableErrorResponse | NotFoundErrorResponse @@ -3620,6 +3917,8 @@ export const GetLayerStatsActiveAccounts = ( params?: GetLayerStatsActiveAccountsParams, options?: SecondParameter,signal?: AbortSignal ) => { + + return GetLayerStatsActiveAccountsMutator( {url: `/${network}/${layer}/stats/active_accounts`, method: 'get', params, signal @@ -3630,14 +3929,18 @@ export const GetLayerStatsActiveAccounts = ( export const getGetLayerStatsActiveAccountsQueryKey = (network: 'mainnet' | 'testnet', layer: Layer, - params?: GetLayerStatsActiveAccountsParams,) => [`/${network}/${layer}/stats/active_accounts`, ...(params ? [params]: [])] as const; + params?: GetLayerStatsActiveAccountsParams,) => { + + return [`/${network}/${layer}/stats/active_accounts`, ...(params ? [params]: [])] as const; + } export const getGetLayerStatsActiveAccountsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', layer: Layer, params?: GetLayerStatsActiveAccountsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} -): UseQueryOptions>, TError, TData> & { queryKey: QueryKey } => { +) => { + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetLayerStatsActiveAccountsQueryKey(network,layer,params); @@ -3645,10 +3948,13 @@ const {query: queryOptions, request: requestOptions} = options ?? {}; const queryFn: QueryFunction>> = ({ signal }) => GetLayerStatsActiveAccounts(network,layer,params, requestOptions, signal); + + - return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions}} + return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } +} export type GetLayerStatsActiveAccountsQueryResult = NonNullable>> export type GetLayerStatsActiveAccountsQueryError = HumanReadableErrorResponse | NotFoundErrorResponse From 1d318c97a47ea7acec57dcb1e124f6430256240a Mon Sep 17 00:00:00 2001 From: Csillag Kristof Date: Fri, 27 Oct 2023 21:39:20 +0200 Subject: [PATCH 2/4] Update orval from 6.18.1 to 6.19.1 --- src/oasis-nexus/package.json | 2 +- src/oasis-nexus/yarn.lock | 479 +++++++++++++++++++---------------- 2 files changed, 267 insertions(+), 214 deletions(-) diff --git a/src/oasis-nexus/package.json b/src/oasis-nexus/package.json index 6aab72fe7..33600679d 100644 --- a/src/oasis-nexus/package.json +++ b/src/oasis-nexus/package.json @@ -4,6 +4,6 @@ "generate": "orval" }, "dependencies": { - "orval": "^6.18.1" + "orval": "^6.19.1" } } diff --git a/src/oasis-nexus/yarn.lock b/src/oasis-nexus/yarn.lock index ce8fbd880..444258345 100644 --- a/src/oasis-nexus/yarn.lock +++ b/src/oasis-nexus/yarn.lock @@ -52,9 +52,9 @@ integrity sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ== "@exodus/schemasafe@^1.0.0-rc.2": - version "1.2.3" - resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.2.3.tgz#6a802a8d9decf8bc90dd834f95e8f41c4feb55b0" - integrity sha512-hmdFF4vVyvXosVdCCnZPCfrgwNPA79y3K5l0QzlKFcK5Qd3nkM9oGKcQYCTnTRWJXIV5SUMkkTFIEIdDFtxQPQ== + version "1.3.0" + resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.3.0.tgz#731656abe21e8e769a7f70a4d833e6312fe59b7f" + integrity sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw== "@ibm-cloud/openapi-ruleset-utilities@0.0.1": version "0.0.1" @@ -109,24 +109,24 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@orval/angular@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/angular/-/angular-6.18.1.tgz#425dbc1f79d0d33ce8ab5d79a82ffa541330aa19" - integrity sha512-kyuqiKyNH1NxrMBZheGTYOU+Gfz4J9Re4MEGUvIVd3Y2Pq4+9zBT+oO3O5LYziquA1viDrzBPEK2LIroHze1Cg== +"@orval/angular@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/angular/-/angular-6.19.1.tgz#85529eee70816eeb650ac6f6576cbf83b64dc2c5" + integrity sha512-8yd1Z75r8VBFFfednXz3eEIrVeEZX+HF6urH0t9EfifJBmO62kSwtJop3UoR3WXq6J4m+ck3nZ4lR9oJ7LeL9g== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" -"@orval/axios@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/axios/-/axios-6.18.1.tgz#5977f79a20268ffc89923ac8ca62a3178c02094f" - integrity sha512-r6cciQatrDb0vWFWEekJYBBL3DE+egbSbGWr938SK5xx/bCLgEQqtDeT3HTS2iGFC8evADH52L0xdx5J/7I/WQ== +"@orval/axios@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/axios/-/axios-6.19.1.tgz#3605e6a217e05fe4531035dee7a9fe81737d933b" + integrity sha512-yV8da4UYoR3OnyqIkj8+b4SSO29e+zLSksKtcHST5DNxwx+wV23DLY9/kdQ286WjSkkQp16hK2XGXMg0cJMtBg== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" -"@orval/core@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/core/-/core-6.18.1.tgz#765359c3eaecd7166c3b882be5949f9ec732b5dd" - integrity sha512-sL6U9tVDhfrYPk50JXLhotBGzT7xePLlgT2ZEQmn9+lUBL0j9zk9oXrSgNsCE+mKVPiVOAXt96FXNUOKUaCE6Q== +"@orval/core@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/core/-/core-6.19.1.tgz#775c1243a7024a451ecb63bd6a3017b43e2fe52d" + integrity sha512-EoHT+MkFL4+sKxi9bKxL0rEWplE3Nls+fp+dhySnCHyRqkV4OXxdBxQd6SawHJqRue1+RvFyEaKGCc2zwe6CPA== dependencies: "@apidevtools/swagger-parser" "^10.1.0" acorn "^8.8.0" @@ -150,38 +150,38 @@ swagger2openapi "^7.0.8" validator "^13.7.0" -"@orval/msw@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/msw/-/msw-6.18.1.tgz#3f529a3d7c13c84cdfff416a47123aab8c1197ff" - integrity sha512-U/+YzhdgEnT7jYfxD4fqGLmboL20U2Rh85HJEpPT59NbpaizI/cMIpr3CWVPRakPPdWzxrc21E5OK7Z/a05qdw== +"@orval/msw@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/msw/-/msw-6.19.1.tgz#1fc35a7feac8c87710ca35da6074a29f6e37727d" + integrity sha512-cE9Ix6W7a4brzytGuKH0IpcWljmznMbnEQf5+M7zfi6T7dQnc0cSmiNJW2kKgfO2hQqDJMoeXo3BA2eaKODpyQ== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" cuid "^2.1.8" lodash.get "^4.4.2" lodash.omit "^4.5.0" openapi3-ts "^3.0.0" -"@orval/query@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/query/-/query-6.18.1.tgz#7f0feab860fcdf8a4d6609b13f8864e1c0b9a969" - integrity sha512-c7O1m6+DSLCbvIKwEvkfh0JccTvp+BFiZKWskXDdjMgasyrZDj5Aa1Jh8vsbtiofJnLqbevCMqaidNSKe561tA== +"@orval/query@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/query/-/query-6.19.1.tgz#0c315586ca6dd1141c9af2e8ea4f85952a7abe2a" + integrity sha512-v2CSqLkPZePwytkQOazIvSPm8VZcZfSCt8zt2J1EiieJGSRZP2G9wA6nZdr3IVpiXUhq3R8xDg9Y8xO/VhoNlQ== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" lodash.omitby "^4.6.0" -"@orval/swr@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/swr/-/swr-6.18.1.tgz#31041330de9e341947a8a316b5be082a902ec2ce" - integrity sha512-z9bA9KlYMobBNMdEnAg/WFbZllwTh6aU96lcpwuZn4sKl0+2Dxu7TKWm2wxMfhH11Qju85yLob7WyqDIytNoNQ== +"@orval/swr@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/swr/-/swr-6.19.1.tgz#eb99e7d22e91453c9c207f9fbb82c83b24d22794" + integrity sha512-CSkg/H6rpbX0JZ9QDOJLAyqf5//BA+ycdqAFGnL4TOAgN8z2AGeu1EqWyQc4Ls1YJIcLlzdrYE2poCT9KH1Weg== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" -"@orval/zod@6.18.1": - version "6.18.1" - resolved "https://registry.yarnpkg.com/@orval/zod/-/zod-6.18.1.tgz#076019968e94a9a3a52e6c33c54bf25e8287a6d2" - integrity sha512-gGGsa+sGtb7Q+Ah5GWU1wC6b/phQ2OVldpsyvqTzMVdsXB6i1P79HplPBRMxeDub/gE7dp1xJm2xy/8lG/j1NA== +"@orval/zod@6.19.1": + version "6.19.1" + resolved "https://registry.yarnpkg.com/@orval/zod/-/zod-6.19.1.tgz#3bea726ea23b3f9fc728fe89868013b0bedd3123" + integrity sha512-A2LqEEM1eHusITeFXsQFNhVjXR5mg2oIwjQRmjJdCZ98HlZpMoO6opEURUTF2qNtREI8HrjEyN7mUNIcLxrDyA== dependencies: - "@orval/core" "6.18.1" + "@orval/core" "6.19.1" lodash.uniq "^4.5.0" "@rollup/plugin-commonjs@~22.0.2": @@ -261,14 +261,14 @@ integrity sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ== "@stoplight/spectral-cli@^6.4.2": - version "6.10.1" - resolved "https://registry.yarnpkg.com/@stoplight/spectral-cli/-/spectral-cli-6.10.1.tgz#950797e55224f420cfc01560136a1f1daa4c1d46" - integrity sha512-yjal3WE42buthVnqfwppw2YmjeXZJ8rmMaHjpx9/94xbbfS79RsReExH9sj1QZam6A9XPGWtjLdWSrklqydpYg== + version "6.11.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-cli/-/spectral-cli-6.11.0.tgz#ca833f251bc65dc2b2532599cd024f2d4f97ae4b" + integrity sha512-IURDN47BPIf3q4ZyUPujGpBzuHWFE5yT34w9rTJ1GKA4SgdscEdQO9KoTjOPT4G4cvDlEV3bNxwQ3uRm7+wRlA== dependencies: "@stoplight/json" "~3.21.0" "@stoplight/path" "1.3.2" "@stoplight/spectral-core" "^1.18.3" - "@stoplight/spectral-formatters" "^1.2.0" + "@stoplight/spectral-formatters" "^1.3.0" "@stoplight/spectral-parsers" "^1.0.3" "@stoplight/spectral-ref-resolver" "^1.0.4" "@stoplight/spectral-ruleset-bundler" "^1.5.2" @@ -322,10 +322,10 @@ "@types/json-schema" "^7.0.7" tslib "^2.3.1" -"@stoplight/spectral-formatters@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@stoplight/spectral-formatters/-/spectral-formatters-1.2.0.tgz#8f58fd72d67a1c273f974625d7a4489d628b5a16" - integrity sha512-1IrQksU1fpuvK7oT8t0jk419vkvzHbwqKYtnyoF9yZa+MV1AcSsieD5I6wBFL0WlgFr6iCg23s1V99VXlrFelw== +"@stoplight/spectral-formatters@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-formatters/-/spectral-formatters-1.3.0.tgz#01c70872c10f0ba9cf6b36527b22ad973cdf8c34" + integrity sha512-ryuMwlzbPUuyn7ybSEbFYsljYmvTaTyD51wyCQs4ROzgfm3Yo5QDD0IsiJUzUpKK/Ml61ZX8ebgiPiRFEJtBpg== dependencies: "@stoplight/path" "^1.3.2" "@stoplight/spectral-core" "^1.15.1" @@ -334,6 +334,7 @@ chalk "4.1.2" cliui "7.0.4" lodash "^4.17.21" + node-sarif-builder "^2.0.3" strip-ansi "6.0" text-table "^0.2.0" tslib "^2.5.0" @@ -419,9 +420,9 @@ validate-npm-package-name "3.0.0" "@stoplight/spectral-rulesets@>=1", "@stoplight/spectral-rulesets@^1.6.0": - version "1.16.0" - resolved "https://registry.yarnpkg.com/@stoplight/spectral-rulesets/-/spectral-rulesets-1.16.0.tgz#6a0e61da489e559850293fa2c3187ead30134691" - integrity sha512-vHnQ50zZARymT+LkLD1l0sXoe76iUf0FWFyTp3xSRFvMIvoqFlUHONjKqFUUQzLaidSWWVah3repmAibHTdaSA== + version "1.18.0" + resolved "https://registry.yarnpkg.com/@stoplight/spectral-rulesets/-/spectral-rulesets-1.18.0.tgz#2c15fddc9b9bf3fec5eba4108dad0f3b1c9f9f7e" + integrity sha512-7LiCteW5pofMuBtf1BO+Ig5pT1XV9oqGrUjqWwSqD6jcy8ejE45pOQpef4h4um9tj3Y+tewfdbthLjhu8sdoeA== dependencies: "@asyncapi/specs" "^4.1.0" "@stoplight/better-ajv-errors" "1.0.3" @@ -460,9 +461,9 @@ utility-types "^3.10.0" "@stoplight/types@^12.3.0 || ^13.0.0", "@stoplight/types@^13.0.0", "@stoplight/types@^13.15.0", "@stoplight/types@^13.6.0": - version "13.18.0" - resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-13.18.0.tgz#73c85ddf09fa8c1b0438a4cba56b000e923cfb09" - integrity sha512-TuoUfuQYDdJ71QxRJs9wWQS1alSFox85fsCF3PlQv0uEW3oPeOPQx6H9se3dx1z8FcaNPM3ZzEFpdvYAkyM8wg== + version "13.20.0" + resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-13.20.0.tgz#d42682f1e3a14a3c60bdf0df08bff4023518763d" + integrity sha512-2FNTv05If7ib79VPDA/r9eUet76jewXFH2y2K5vuge6SXbRHtWBhcaRmu+6QpF4/WRNoJj5XYRSwLGXDxysBGA== dependencies: "@types/json-schema" "^7.0.4" utility-types "^3.10.0" @@ -491,16 +492,16 @@ tslib "^2.2.0" "@types/es-aggregate-error@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz#a970b4a5bbee95d87aebaa2aa317c846c18429df" - integrity sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA== + version "1.0.4" + resolved "https://registry.yarnpkg.com/@types/es-aggregate-error/-/es-aggregate-error-1.0.4.tgz#b4898cdbe5c1bf5c345bd134081d1bb02d47f909" + integrity sha512-95tL6tLR8P3Utx4SxXUEc0e+k2B9VhtBozhgxKGpv30ylIuxGxf080d7mYZ08sH5UjpDv/Nd6F80tH1p+KuPIg== dependencies: "@types/node" "*" "@types/estree@*": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.1.tgz#aa22750962f3bf0e79d753d3cc067f010c95f194" - integrity sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA== + version "1.0.3" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.3.tgz#2be19e759a3dd18c79f9f436bd7363556c1a73dd" + integrity sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ== "@types/estree@0.0.39": version "0.0.39" @@ -508,19 +509,26 @@ integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== "@types/json-schema@^7.0.11", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.7": - version "7.0.12" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" - integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== + version "7.0.14" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.14.tgz#74a97a5573980802f32c8e47b663530ab3b6b7d1" + integrity sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw== "@types/node@*": - version "20.4.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.9.tgz#c7164e0f8d3f12dfae336af0b1f7fdec8c6b204f" - integrity sha512-8e2HYcg7ohnTUbHk8focoklEQYvemQmu9M/f43DZVx43kHn0tE3BY/6gSDxS7k0SprtS0NHvj+L80cGLnoOUcQ== + version "20.8.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.9.tgz#646390b4fab269abce59c308fc286dcd818a2b08" + integrity sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg== + dependencies: + undici-types "~5.26.4" + +"@types/sarif@^2.1.4": + version "2.1.6" + resolved "https://registry.yarnpkg.com/@types/sarif/-/sarif-2.1.6.tgz#3193ee191cb686c43b4136311c3efbf27e1094ca" + integrity sha512-x+68l19JJnfXX9oq85k6KZwsPuOa2BKESkYqbRbA09zLSZXIDNyDo1illgDB/P0ZdpIa4EII3pHJ6DQq3xo3Qw== "@types/urijs@^1.19.19": - version "1.19.19" - resolved "https://registry.yarnpkg.com/@types/urijs/-/urijs-1.19.19.tgz#2789369799907fc11e2bc6e3a00f6478c2281b95" - integrity sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg== + version "1.19.22" + resolved "https://registry.yarnpkg.com/@types/urijs/-/urijs-1.19.22.tgz#188c573007001de3be3983af5437727bf3042dd6" + integrity sha512-qnYBwfN7O/+i6E1Kr8JaCKsrCLpRCiQ1XxkSxNIYuJ/5Aagt0+HlMX78DJMUrNzDULMz0eu2gcprlxJaDtACOw== abort-controller@^3.0.0: version "3.0.0" @@ -530,9 +538,9 @@ abort-controller@^3.0.0: event-target-shim "^5.0.0" acorn@^8.8.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== + version "8.11.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" + integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== ajv-draft-04@^1.0.0, ajv-draft-04@~1.0.0: version "1.0.0" @@ -606,14 +614,15 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -arraybuffer.prototype.slice@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz#9b5ea3868a6eebc30273da577eb888381c0044bb" - integrity sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw== +arraybuffer.prototype.slice@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" + integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== dependencies: array-buffer-byte-length "^1.0.0" call-bind "^1.0.2" define-properties "^1.2.0" + es-abstract "^1.22.1" get-intrinsic "^1.2.1" is-array-buffer "^3.0.2" is-shared-array-buffer "^1.0.2" @@ -682,13 +691,14 @@ cac@^6.7.12: resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== +call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.4, call-bind@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" + integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" + function-bind "^1.1.2" + get-intrinsic "^1.2.1" + set-function-length "^1.1.1" call-me-maybe@^1.0.1: version "1.0.2" @@ -818,11 +828,21 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" -define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" - integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== +define-data-property@^1.0.1, define-data-property@^1.1.0, define-data-property@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" + integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== + dependencies: + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== dependencies: + define-data-property "^1.0.1" has-property-descriptors "^1.0.0" object-keys "^1.1.1" @@ -851,26 +871,26 @@ enquirer@^2.3.6: ansi-colors "^4.1.1" strip-ansi "^6.0.1" -es-abstract@^1.19.0, es-abstract@^1.20.4: - version "1.22.1" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.1.tgz#8b4e5fc5cefd7f1660f0f8e1a52900dfbc9d9ccc" - integrity sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw== +es-abstract@^1.22.1: + version "1.22.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" + integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== dependencies: array-buffer-byte-length "^1.0.0" - arraybuffer.prototype.slice "^1.0.1" + arraybuffer.prototype.slice "^1.0.2" available-typed-arrays "^1.0.5" - call-bind "^1.0.2" + call-bind "^1.0.5" es-set-tostringtag "^2.0.1" es-to-primitive "^1.2.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.2" get-symbol-description "^1.0.0" globalthis "^1.0.3" gopd "^1.0.1" - has "^1.0.3" has-property-descriptors "^1.0.0" has-proto "^1.0.1" has-symbols "^1.0.3" + hasown "^2.0.0" internal-slot "^1.0.5" is-array-buffer "^3.0.2" is-callable "^1.2.7" @@ -878,45 +898,46 @@ es-abstract@^1.19.0, es-abstract@^1.20.4: is-regex "^1.1.4" is-shared-array-buffer "^1.0.2" is-string "^1.0.7" - is-typed-array "^1.1.10" + is-typed-array "^1.1.12" is-weakref "^1.0.2" - object-inspect "^1.12.3" + object-inspect "^1.13.1" object-keys "^1.1.1" object.assign "^4.1.4" - regexp.prototype.flags "^1.5.0" - safe-array-concat "^1.0.0" + regexp.prototype.flags "^1.5.1" + safe-array-concat "^1.0.1" safe-regex-test "^1.0.0" - string.prototype.trim "^1.2.7" - string.prototype.trimend "^1.0.6" - string.prototype.trimstart "^1.0.6" + string.prototype.trim "^1.2.8" + string.prototype.trimend "^1.0.7" + string.prototype.trimstart "^1.0.7" typed-array-buffer "^1.0.0" typed-array-byte-length "^1.0.0" typed-array-byte-offset "^1.0.0" typed-array-length "^1.0.4" unbox-primitive "^1.0.2" - which-typed-array "^1.1.10" + which-typed-array "^1.1.13" es-aggregate-error@^1.0.7: - version "1.0.9" - resolved "https://registry.yarnpkg.com/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz#b50925cdf78c8a634bd766704f6f7825902be3d9" - integrity sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg== + version "1.0.11" + resolved "https://registry.yarnpkg.com/es-aggregate-error/-/es-aggregate-error-1.0.11.tgz#013d6b205a1875044e8ddb8592aa8bd5b6cb21c5" + integrity sha512-DCiZiNlMlbvofET/cE55My387NiLvuGToBEZDdK9U2G3svDCjL8WOgO5Il6lO83nQ8qmag/R9nArdpaFQ/m3lA== dependencies: - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-data-property "^1.1.0" + define-properties "^1.2.1" + es-abstract "^1.22.1" function-bind "^1.1.1" - functions-have-names "^1.2.3" - get-intrinsic "^1.1.3" + get-intrinsic "^1.2.1" globalthis "^1.0.3" has-property-descriptors "^1.0.0" + set-function-name "^2.0.1" es-set-tostringtag@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz#338d502f6f674301d710b80c8592de8a15f09cd8" - integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg== + version "2.0.2" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" + integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== dependencies: - get-intrinsic "^1.1.3" - has "^1.0.3" + get-intrinsic "^1.2.2" has-tostringtag "^1.0.0" + hasown "^2.0.0" es-to-primitive@^1.2.1: version "1.2.1" @@ -1188,7 +1209,7 @@ format-util@^1.0.3: resolved "https://registry.yarnpkg.com/format-util/-/format-util-1.0.5.tgz#1ffb450c8a03e7bccffe40643180918cc297d271" integrity sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg== -fs-extra@^10.1.0: +fs-extra@^10.0.0, fs-extra@^10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== @@ -1203,26 +1224,26 @@ fs.realpath@^1.0.0: integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.1, function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -function.prototype.name@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" - integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== +function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - functions-have-names "^1.2.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" -functions-have-names@^1.2.2, functions-have-names@^1.2.3: +functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -1232,15 +1253,15 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" - integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== +get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" + integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== dependencies: - function-bind "^1.1.1" - has "^1.0.3" + function-bind "^1.1.2" has-proto "^1.0.1" has-symbols "^1.0.3" + hasown "^2.0.0" get-source@^2.0.12: version "2.0.12" @@ -1324,11 +1345,11 @@ has-flag@^4.0.0: integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== has-property-descriptors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861" - integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" + integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== dependencies: - get-intrinsic "^1.1.1" + get-intrinsic "^1.2.2" has-proto@^1.0.1: version "1.0.1" @@ -1347,12 +1368,12 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== +hasown@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" + integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== dependencies: - function-bind "^1.1.1" + function-bind "^1.1.2" hpagent@~1.2.0: version "1.2.0" @@ -1418,12 +1439,12 @@ inherits@2: integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== internal-slot@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" - integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== + version "1.0.6" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" + integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== dependencies: - get-intrinsic "^1.2.0" - has "^1.0.3" + get-intrinsic "^1.2.2" + hasown "^2.0.0" side-channel "^1.0.4" is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: @@ -1463,11 +1484,11 @@ is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== is-core-module@^2.13.0: - version "2.13.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" - integrity sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ== + version "2.13.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" + integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== dependencies: - has "^1.0.3" + hasown "^2.0.0" is-date-object@^1.0.1: version "1.0.5" @@ -1551,7 +1572,7 @@ is-symbol@^1.0.2, is-symbol@^1.0.3: dependencies: has-symbols "^1.0.2" -is-typed-array@^1.1.10, is-typed-array@^1.1.9: +is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.9: version "1.1.12" resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== @@ -1784,9 +1805,9 @@ node-fetch-h2@^2.3.0: http2-client "^1.2.5" node-fetch@^2.6.0, node-fetch@^2.6.1, node-fetch@^2.6.7: - version "2.6.12" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.12.tgz#02eb8e22074018e3d5a83016649d04df0e348fba" - integrity sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g== + version "2.7.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== dependencies: whatwg-url "^5.0.0" @@ -1797,6 +1818,14 @@ node-readfiles@^0.2.0: dependencies: es6-promise "^3.2.1" +node-sarif-builder@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/node-sarif-builder/-/node-sarif-builder-2.0.3.tgz#179ae590ce020f97f9e45037dc1cde85aa4398ec" + integrity sha512-Pzr3rol8fvhG/oJjIq2NTVB0vmdNNlz22FENhhPojYRZ4/ee08CfK4YuKmuL54V9MLhI1kpzxfOJ/63LzmZzDg== + dependencies: + "@types/sarif" "^2.1.4" + fs-extra "^10.0.0" + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -1855,10 +1884,10 @@ oas-validator@^5.0.8: should "^13.2.1" yaml "^1.10.0" -object-inspect@^1.12.3, object-inspect@^1.9.0: - version "1.12.3" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" - integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== +object-inspect@^1.13.1, object-inspect@^1.9.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== object-keys@^1.1.1: version "1.1.1" @@ -1903,19 +1932,19 @@ openapi3-ts@^3.0.0: dependencies: yaml "^2.2.1" -orval@^6.18.1: - version "6.18.1" - resolved "https://registry.yarnpkg.com/orval/-/orval-6.18.1.tgz#3511dc69ec6f21554e67c4c0c26c783002d5c9ba" - integrity sha512-wV1QPgoafC9JvO48eEZtN99GApuaYCwvsbcAZudHM0MAw2DbKFy0ThIeXLI5VjW+bdInoNd/8RqncCwZSZVSCg== +orval@^6.19.1: + version "6.19.1" + resolved "https://registry.yarnpkg.com/orval/-/orval-6.19.1.tgz#a7cac7536f0bba44fd71bdfbee89eba8b63acc1b" + integrity sha512-V7z+mn8X4JcgC0uaGs6rwNNOJH4wk+LUidxiPoXVaLtHt8g7qUfKQseozbXx8rk+Qgx8WT7EY2+AjDNYNSTjGA== dependencies: "@apidevtools/swagger-parser" "^10.1.0" - "@orval/angular" "6.18.1" - "@orval/axios" "6.18.1" - "@orval/core" "6.18.1" - "@orval/msw" "6.18.1" - "@orval/query" "6.18.1" - "@orval/swr" "6.18.1" - "@orval/zod" "6.18.1" + "@orval/angular" "6.19.1" + "@orval/axios" "6.19.1" + "@orval/core" "6.19.1" + "@orval/msw" "6.19.1" + "@orval/query" "6.19.1" + "@orval/swr" "6.19.1" + "@orval/zod" "6.19.1" ajv "^8.11.0" cac "^6.7.12" chalk "^4.1.2" @@ -2036,14 +2065,14 @@ reftools@^1.1.9: resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" integrity sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w== -regexp.prototype.flags@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" - integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== +regexp.prototype.flags@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" + integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" - functions-have-names "^1.2.3" + set-function-name "^2.0.0" require-all@^3.0.0: version "3.0.0" @@ -2066,9 +2095,9 @@ reserved@0.1.2: integrity sha512-/qO54MWj5L8WCBP9/UNe2iefJc+L9yETbH32xO/ft/EYPOTCR5k+azvDUgdCOKwZH8hXwPd0b8XBL78Nn2U69g== resolve@^1.17.0: - version "1.22.4" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.4.tgz#1dc40df46554cdaf8948a486a10f6ba1e2026c34" - integrity sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg== + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== dependencies: is-core-module "^2.13.0" path-parse "^1.0.7" @@ -2093,13 +2122,13 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -safe-array-concat@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.0.tgz#2064223cba3c08d2ee05148eedbc563cd6d84060" - integrity sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ== +safe-array-concat@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c" + integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q== dependencies: call-bind "^1.0.2" - get-intrinsic "^1.2.0" + get-intrinsic "^1.2.1" has-symbols "^1.0.3" isarray "^2.0.5" @@ -2122,6 +2151,25 @@ semver@^5.7.1: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== +set-function-length@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" + integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + dependencies: + define-data-property "^1.1.1" + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +set-function-name@^2.0.0, set-function-name@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" + integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + dependencies: + define-data-property "^1.0.1" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.0" + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -2241,32 +2289,32 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string.prototype.trim@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz#a68352740859f6893f14ce3ef1bb3037f7a90533" - integrity sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg== +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -string.prototype.trimend@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" - integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" -string.prototype.trimstart@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" - integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + define-properties "^1.2.0" + es-abstract "^1.22.1" strip-ansi@6.0, strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" @@ -2337,9 +2385,9 @@ tslib@^1.14.1: integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== tslib@^2.0.1, tslib@^2.2.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.5.0, tslib@^2.6.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410" - integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig== + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== typed-array-buffer@^1.0.0: version "1.0.0" @@ -2390,6 +2438,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" @@ -2455,13 +2508,13 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" -which-typed-array@^1.1.10, which-typed-array@^1.1.11: - version "1.1.11" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.11.tgz#99d691f23c72aab6768680805a271b69761ed61a" - integrity sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew== +which-typed-array@^1.1.11, which-typed-array@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== dependencies: available-typed-arrays "^1.0.5" - call-bind "^1.0.2" + call-bind "^1.0.4" for-each "^0.3.3" gopd "^1.0.1" has-tostringtag "^1.0.0" @@ -2503,9 +2556,9 @@ yaml@^1.10.0: integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== yaml@^2.2.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" - integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== + version "2.3.3" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.3.tgz#01f6d18ef036446340007db8e016810e5d64aad9" + integrity sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ== yargs-parser@^21.0.0, yargs-parser@^21.1.1: version "21.1.1" From 3d54731572b86530404d7536b6e01868f8785e92 Mon Sep 17 00:00:00 2001 From: Csillag Kristof Date: Fri, 27 Oct 2023 21:39:42 +0200 Subject: [PATCH 3/4] Re-generate API wrapper code with orval v6.19.1 --- src/oasis-nexus/generated/api.ts | 789 +++++++++++++++---------------- 1 file changed, 378 insertions(+), 411 deletions(-) diff --git a/src/oasis-nexus/generated/api.ts b/src/oasis-nexus/generated/api.ts index 20996a39e..1af954dee 100644 --- a/src/oasis-nexus/generated/api.ts +++ b/src/oasis-nexus/generated/api.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.18.1 🍺 + * Generated by orval v6.19.1 🍺 * Do not edit manually. * Oasis Nexus API V1 * An API for accessing indexed data from the Oasis Network. @@ -9,10 +9,10 @@ import { useQuery } from '@tanstack/react-query' import type { - UseQueryOptions, QueryFunction, - UseQueryResult, - QueryKey + QueryKey, + UseQueryOptions, + UseQueryResult } from '@tanstack/react-query' import getStatusMutator from '../replaceNetworkWithBaseURL'; import GetConsensusBlocksMutator from '../replaceNetworkWithBaseURL'; @@ -558,10 +558,10 @@ export type HumanReadableErrorResponse = { }; export interface ActiveAccounts { - /** The date for the end of the daily active accounts measurement window. */ - window_end: string; /** The number of active accounts for the 24hour window ending at window_end. */ active_accounts: number; + /** The date for the end of the daily active accounts measurement window. */ + window_end: string; } /** @@ -575,10 +575,10 @@ export interface ActiveAccountsList { } export interface TxVolume { - /** The end timestamp for this daily transaction volume measurement. */ - window_end: string; /** The transaction volume for this window. */ tx_volume: number; + /** The end timestamp for this daily transaction volume measurement. */ + window_end: string; } /** @@ -592,47 +592,47 @@ export interface TxVolumeList { } export interface AccountStats { - /** The total number of tokens sent, in base units. */ - total_sent: string; - /** The total number of tokens received, in base units. */ - total_received: string; /** The total number of transactions this account was involved with. */ num_txns: number; + /** The total number of tokens received, in base units. */ + total_received: string; + /** The total number of tokens sent, in base units. */ + total_sent: string; } export interface EvmToken { /** The Oasis address of this token's contract. */ contract_addr: string; + /** The number of least significant digits in base units that should be displayed as +decimals when displaying tokens. `tokens = base_units / (10**decimals)`. +Affects display only. Often equals 18, to match ETH. + */ + decimals?: number; /** The Ethereum address of this token's contract. */ eth_contract_addr: string; + /** Whether the contract has been successfully verified by Sourcify. +Additional information on verified contracts is available via +the `/{runtime}/accounts/{address}` endpoint. + */ + is_verified: boolean; /** Name of the token, as provided by token contract's `name()` method. */ name?: string; + /** The number of addresses that have a nonzero balance of this token. + */ + num_holders: number; + /** The total number of transfers of this token. + */ + num_transfers?: number; /** Symbol of the token, as provided by token contract's `symbol()` method. */ symbol?: string; - /** The number of least significant digits in base units that should be displayed as -decimals when displaying tokens. `tokens = base_units / (10**decimals)`. -Affects display only. Often equals 18, to match ETH. - */ - decimals?: number; + /** The total number of base units available. */ + total_supply?: string; /** The heuristically determined interface that the token contract implements. A less specialized variant of the token might be detected; for example, an ERC-1363 token might be labeled as ERC-20 here. If the type cannot be detected or is not supported, this field will be null/absent. */ type: EvmTokenType; - /** The total number of base units available. */ - total_supply?: string; - /** The total number of transfers of this token. - */ - num_transfers?: number; - /** The number of addresses that have a nonzero balance of this token. - */ - num_holders: number; - /** Whether the contract has been successfully verified by Sourcify. -Additional information on verified contracts is available via -the `/{runtime}/accounts/{address}` endpoint. - */ - is_verified: boolean; } /** @@ -679,30 +679,30 @@ managed by smart contracts deployed in this runtime. For example, in EVM-compati this does not include ERC-20 tokens */ balances: RuntimeSdkBalance[]; - /** Data on the EVM smart contract associated with this account address. Only present for accounts -that represent a smart contract on EVM. - */ - evm_contract?: RuntimeEvmContract; /** The balances of this account in each runtime, as managed by EVM smart contracts (notably, ERC-20). NOTE: This field is limited to 1000 entries. If you need more, please let us know in a GitHub issue. */ evm_balances: RuntimeEvmBalance[]; + /** Data on the EVM smart contract associated with this account address. Only present for accounts +that represent a smart contract on EVM. + */ + evm_contract?: RuntimeEvmContract; stats: AccountStats; } export interface RuntimeTransactionEncryptionEnvelope { + /** The base64-encoded encrypted transaction data. */ + data?: string; + /** The base64-encoded nonce used to encrypt the transaction data. */ + data_nonce?: string; /** The format of the encrypted evm transaction envelope. */ format: string; /** The base64-encoded public key used to encrypt the transaction. */ public_key?: string; - /** The base64-encoded nonce used to encrypt the transaction data. */ - data_nonce?: string; - /** The base64-encoded encrypted transaction data. */ - data?: string; - /** The base64-encoded nonce used to encrypt the transaction results. */ - result_nonce?: string; /** The base64-encoded encrypted result data. */ result?: string; + /** The base64-encoded nonce used to encrypt the transaction results. */ + result_nonce?: string; } /** @@ -715,29 +715,30 @@ export type RuntimeTransactionBody = { [key: string]: any }; */ export interface RuntimeTransaction { - /** The block round at which this transaction was executed. */ - round: number; - /** The 0-based index of this transaction in the block. */ - index: number; - /** The second-granular consensus time when this tx's block was proposed. */ - timestamp: string; - /** The Oasis cryptographic hash of this transaction's encoding. */ - hash: string; + /** A reasonable "amount" associated with this transaction, if +applicable. The meaning varies based on the transaction method. +Usually in native denomination, ParaTime units. As a string. + */ + amount?: string; + /** The method call body. May be null if the transaction was malformed. */ + body?: RuntimeTransactionBody; + /** The fee that was charged for the transaction execution (total, native denomination, +ParaTime base units, as a string). +Calculated as `gas_price * gas_used`, where `gas_price = fee / gas_limit`. + */ + charged_fee: string; + /** The data relevant to the encrypted transaction. Only present for encrypted +transactions in confidential EVM runtimes like Sapphire. +Note: The term "envelope" in this context refers to the [Oasis-style encryption envelopes](https://github.com/oasisprotocol/oasis-sdk/blob/c36a7ee194abf4ca28fdac0edbefe3843b39bf69/runtime-sdk/src/types/callformat.rs) +which differ slightly from [digital envelopes](hhttps://en.wikipedia.org/wiki/Hybrid_cryptosystem#Envelope_encryption). + */ + encryption_envelope?: RuntimeTransactionEncryptionEnvelope; + /** Error details of a failed transaction. */ + error?: TxError; /** The Ethereum cryptographic hash of this transaction's encoding. Absent for non-Ethereum-format transactions. */ eth_hash?: string; - /** The Oasis address of this transaction's 0th signer. -Unlike Ethereum, Oasis natively supports multiple-signature transactions. -However, the great majority of transactions only have a single signer in practice. -Retrieving the other signers is currently not supported by this API. - */ - sender_0: string; - /** The Ethereum address of this transaction's 0th signer. - */ - sender_0_eth?: string; - /** The nonce used with this transaction's 0th signer, to prevent replay. */ - nonce_0: number; /** The fee that this transaction's sender committed to pay to execute it (total, native denomination, ParaTime base units, as a string). */ @@ -748,13 +749,18 @@ execute it. gas_limit: number; /** The total gas used by the transaction. */ gas_used: number; - /** The fee that was charged for the transaction execution (total, native denomination, -ParaTime base units, as a string). -Calculated as `gas_price * gas_used`, where `gas_price = fee / gas_limit`. + /** The Oasis cryptographic hash of this transaction's encoding. */ + hash: string; + /** The 0-based index of this transaction in the block. */ + index: number; + /** Whether this transaction likely represents a native token transfer. +This is based on a heuristic, and can change at any time without warning and possibly without updating the documentation. +The current heuristic sets this to `true` for: + - Transactions with method "accounts.Transfer". Those are always native token transfers. + - Transactions with method "evm.Call" that have no `data` field in their `body`. Those tend to be transfers, but the runtimes provides no reliable visibility into whether a transfer happened. +Note: Other transactions with method "evm.Call", and possibly "evm.Create", may also be (or include) native token transfers. The heuristic will be `false` for those. */ - charged_fee: string; - /** The total byte size of the transaction. */ - size: number; + is_likely_native_token_transfer?: boolean; /** The method that was called. Defined by the runtime. In theory, this could be any string as the runtimes evolve. In practice, Nexus currently expects only the following methods: - "accounts.Transfer" @@ -767,16 +773,27 @@ In practice, Nexus currently expects only the following methods: May be null if the transaction was malformed or encrypted. */ method?: string; - /** The method call body. May be null if the transaction was malformed. */ - body?: RuntimeTransactionBody; - /** Whether this transaction likely represents a native token transfer. -This is based on a heuristic, and can change at any time without warning and possibly without updating the documentation. -The current heuristic sets this to `true` for: - - Transactions with method "accounts.Transfer". Those are always native token transfers. - - Transactions with method "evm.Call" that have no `data` field in their `body`. Those tend to be transfers, but the runtimes provides no reliable visibility into whether a transfer happened. -Note: Other transactions with method "evm.Call", and possibly "evm.Create", may also be (or include) native token transfers. The heuristic will be `false` for those. + /** The nonce used with this transaction's 0th signer, to prevent replay. */ + nonce_0: number; + /** The block round at which this transaction was executed. */ + round: number; + /** The Oasis address of this transaction's 0th signer. +Unlike Ethereum, Oasis natively supports multiple-signature transactions. +However, the great majority of transactions only have a single signer in practice. +Retrieving the other signers is currently not supported by this API. */ - is_likely_native_token_transfer?: boolean; + sender_0: string; + /** The Ethereum address of this transaction's 0th signer. + */ + sender_0_eth?: string; + /** The total byte size of the transaction. */ + size: number; + /** Whether this transaction successfully executed. +Can be absent (meaning "unknown") for confidential runtimes. + */ + success?: boolean; + /** The second-granular consensus time when this tx's block was proposed. */ + timestamp: string; /** A reasonable "to" Oasis address associated with this transaction, if applicable. The meaning varies based on the transaction method. Some notable examples: - For `method = "accounts.Transfer"`, this is the paratime account receiving the funds. @@ -791,23 +808,6 @@ if applicable. The meaning varies based on the transaction method. Some notable /** A reasonable "to" Ethereum address associated with this transaction, */ to_eth?: string; - /** A reasonable "amount" associated with this transaction, if -applicable. The meaning varies based on the transaction method. -Usually in native denomination, ParaTime units. As a string. - */ - amount?: string; - /** The data relevant to the encrypted transaction. Only present for encrypted -transactions in confidential EVM runtimes like Sapphire. -Note: The term "envelope" in this context refers to the [Oasis-style encryption envelopes](https://github.com/oasisprotocol/oasis-sdk/blob/c36a7ee194abf4ca28fdac0edbefe3843b39bf69/runtime-sdk/src/types/callformat.rs) -which differ slightly from [digital envelopes](hhttps://en.wikipedia.org/wiki/Hybrid_cryptosystem#Envelope_encryption). - */ - encryption_envelope?: RuntimeTransactionEncryptionEnvelope; - /** Whether this transaction successfully executed. -Can be absent (meaning "unknown") for confidential runtimes. - */ - success?: boolean; - /** Error details of a failed transaction. */ - error?: TxError; } /** @@ -840,6 +840,12 @@ Includes the smart contract's [ABI](https://docs.soliditylang.org/en/develop/abi } export interface RuntimeEvmContract { + /** The creation bytecode of the smart contract. This includes the constructor logic +and the constructor parameters. When run, this code generates the runtime bytecode. +Can be omitted for contracts that were created by another contract, as opposed +to a direct `Create` call. + */ + creation_bytecode?: string; /** The Oasis cryptographic hash of the transaction that created the smart contract. Can be omitted for contracts that were created by another contract, as opposed to a direct `Create` call. @@ -849,20 +855,14 @@ to a direct `Create` call. Encoded as a lowercase hex string. */ eth_creation_tx?: string; - /** The creation bytecode of the smart contract. This includes the constructor logic -and the constructor parameters. When run, this code generates the runtime bytecode. -Can be omitted for contracts that were created by another contract, as opposed -to a direct `Create` call. - */ - creation_bytecode?: string; + /** The total amount of gas used to create or call this contract. */ + gas_used: number; /** The runtime bytecode of the smart contract. This is the code stored on-chain that describes a smart contract. Every contract has this info, but Nexus fetches it separately, so the field may be missing for very fresh contracts (or if the fetching process is stalled). */ runtime_bytecode?: string; - /** The total amount of gas used to create or call this contract. */ - gas_used: number; /** Additional information obtained from contract verification. Only available for smart contracts that have been verified successfully by Sourcify. */ @@ -874,14 +874,14 @@ contracts that have been verified successfully by Sourcify. */ export interface EvmEventToken { - type?: EvmTokenType; - /** Symbol of the token, as provided by token contract's `symbol()` method. */ - symbol?: string; /** The number of least significant digits in base units that should be displayed as decimals when displaying tokens. `tokens = base_units / (10**decimals)`. Affects display only. Often equals 18, to match ETH. */ decimals?: number; + /** Symbol of the token, as provided by token contract's `symbol()` method. */ + symbol?: string; + type?: EvmTokenType; } /** @@ -893,10 +893,10 @@ Values of other EVM types (integer types, strings, arrays, etc.) are represented */ export interface EvmEventParam { - /** The parameter name. */ - name: string; /** The solidity type of the event parameter. */ evm_type: string; + /** The parameter name. */ + name: string; /** The parameter value. */ value: unknown; } @@ -929,25 +929,6 @@ export type RuntimeEventBody = { [key: string]: any }; * An event emitted by the runtime layer */ export interface RuntimeEvent { - /** The block height at which this event was generated. */ - round: number; - /** 0-based index of this event's originating transaction within its block. -Absent if the event did not originate from a transaction. - */ - tx_index?: number; - /** Hash of this event's originating transaction. -Absent if the event did not originate from a transaction. - */ - tx_hash?: string | null; - /** Ethereum trasnsaction hash of this event's originating transaction. -Absent if the event did not originate from an EVM transaction. - */ - eth_tx_hash?: string; - /** The second-granular consensus time of this event's block. - */ - timestamp: string; - /** The type of the event. */ - type: RuntimeEventType; /** The decoded event contents. This spec does not encode the many possible types; instead, see [the Go API](https://pkg.go.dev/github.com/oasisprotocol/oasis-sdk/client-sdk/go/modules). This object will conform to one of the `*Event` types two levels down @@ -955,6 +936,10 @@ the hierarchy (e.g. `MintEvent` from `accounts > Event > MintEvent`), OR `evm > Event`. */ body: RuntimeEventBody; + /** Ethereum trasnsaction hash of this event's originating transaction. +Absent if the event did not originate from an EVM transaction. + */ + eth_tx_hash?: string; /** If the event type is `evm.log`, this field describes the human-readable type of evm event, e.g. `Transfer`. We currently only support two types of evm events, ERC20 `Transfer` and `Approve`. Absent if the event type is not `evm.log`. @@ -966,6 +951,21 @@ Absent if the event type is not `evm.log`. */ evm_log_params?: EvmEventParam[]; evm_token?: EvmEventToken; + /** The block height at which this event was generated. */ + round: number; + /** The second-granular consensus time of this event's block. + */ + timestamp: string; + /** Hash of this event's originating transaction. +Absent if the event did not originate from a transaction. + */ + tx_hash?: string | null; + /** 0-based index of this event's originating transaction within its block. +Absent if the event did not originate from a transaction. + */ + tx_index?: number; + /** The type of the event. */ + type: RuntimeEventType; } /** @@ -983,18 +983,18 @@ export type RuntimeEventList = List & RuntimeEventListAllOf; */ export interface RuntimeBlock { - /** The block round. */ - round: number; + /** The total gas used by all transactions in the block. */ + gas_used: number; /** The block header hash. */ hash: string; - /** The second-granular consensus time. */ - timestamp: string; /** The number of transactions in the block. */ num_transactions: number; + /** The block round. */ + round: number; /** The total byte size of all transactions in the block. */ size: number; - /** The total gas used by all transactions in the block. */ - gas_used: number; + /** The second-granular consensus time. */ + timestamp: string; } /** @@ -1032,8 +1032,8 @@ export type ProposalVotes = List & ProposalVotesAllOf; */ export interface ProposalTarget { consensus_protocol?: string; - runtime_host_protocol?: string; runtime_committee_protocol?: string; + runtime_host_protocol?: string; } /** @@ -1041,30 +1041,30 @@ export interface ProposalTarget { */ export interface Proposal { - /** The unique identifier of the proposal. */ - id: number; - /** The staking address of the proposal submitter. */ - submitter: string; - /** The state of the proposal. */ - state: string; - /** The deposit attached to this proposal. */ - deposit: string; - /** The name of the upgrade handler. */ - handler?: string; - target?: ProposalTarget; - /** The epoch at which the proposed upgrade will happen. */ - epoch?: number; /** The proposal to cancel, if this proposal proposes cancelling an existing proposal. */ cancels?: number; - /** The epoch at which this proposal was created. */ - created_at: number; /** The epoch at which voting for this proposal will close. */ closes_at: number; + /** The epoch at which this proposal was created. */ + created_at: number; + /** The deposit attached to this proposal. */ + deposit: string; + /** The epoch at which the proposed upgrade will happen. */ + epoch?: number; + /** The name of the upgrade handler. */ + handler?: string; + /** The unique identifier of the proposal. */ + id: number; /** The number of invalid votes for this proposal, after tallying. */ invalid_votes: string; + /** The state of the proposal. */ + state: string; + /** The staking address of the proposal submitter. */ + submitter: string; + target?: ProposalTarget; } /** @@ -1082,12 +1082,12 @@ export type ProposalList = List & ProposalListAllOf; */ export interface Epoch { + /** The (inclusive) height at which this epoch ended. Omitted if the epoch is still active. */ + end_height?: number; /** The epoch number. */ id: number; /** The (inclusive) height at which this epoch started. */ start_height: number; - /** The (inclusive) height at which this epoch ended. Omitted if the epoch is still active. */ - end_height?: number; } /** @@ -1114,24 +1114,24 @@ export interface Allowance { export interface Account { /** The staking address for this account. */ address: string; - /** A nonce used to prevent replay. */ - nonce: number; + /** The allowances made by this account. */ + allowances: Allowance[]; /** The available balance, in base units. */ available: string; - /** The active escrow balance, in base units. */ - escrow: string; /** The debonding escrow balance, in base units. */ debonding: string; - /** The delegations balance, in base units. -For efficiency, this field is omitted when listing multiple-accounts. - */ - delegations_balance?: string; /** The debonding delegations balance, in base units. For efficiency, this field is omitted when listing multiple-accounts. */ debonding_delegations_balance?: string; - /** The allowances made by this account. */ - allowances: Allowance[]; + /** The delegations balance, in base units. +For efficiency, this field is omitted when listing multiple-accounts. + */ + delegations_balance?: string; + /** The active escrow balance, in base units. */ + escrow: string; + /** A nonce used to prevent replay. */ + nonce: number; } /** @@ -1139,12 +1139,12 @@ For efficiency, this field is omitted when listing multiple-accounts. */ export interface BareTokenHolder { - /** The oasis address of the account holder. */ - holder_address: string; - /** The Ethereum address of the same account holder, if meaningfully defined. */ - eth_holder_address?: string; /** Number of tokens held, in base units. */ balance: string; + /** The Ethereum address of the same account holder, if meaningfully defined. */ + eth_holder_address?: string; + /** The oasis address of the account holder. */ + holder_address: string; } /** @@ -1167,13 +1167,13 @@ export interface RuntimeEvmBalance { token_contract_addr: string; /** The EVM address of this token's contract. */ token_contract_addr_eth: string; - /** The token ticker symbol. Not guaranteed to be unique across distinct EVM tokens. */ - token_symbol?: string; + /** The number of decimals of precision for this token. */ + token_decimals: number; /** The name of the token. Not guaranteed to be unique across distinct EVM tokens. */ token_name?: string; + /** The token ticker symbol. Not guaranteed to be unique across distinct EVM tokens. */ + token_symbol?: string; token_type: EvmTokenType; - /** The number of decimals of precision for this token. */ - token_decimals: number; } /** @@ -1182,10 +1182,10 @@ export interface RuntimeEvmBalance { export interface RuntimeSdkBalance { /** Number of tokens held, in base units. */ balance: string; - /** The token ticker symbol. Unique across all oasis-sdk tokens in the same runtime. */ - token_symbol: string; /** The number of decimals of precision for this token. */ token_decimals: number; + /** The token ticker symbol. Unique across all oasis-sdk tokens in the same runtime. */ + token_symbol: string; } export type AddressDerivationContext = typeof AddressDerivationContext[keyof typeof AddressDerivationContext]; @@ -1220,16 +1220,16 @@ ERC20 tokens or tools such as Metamask cannot interact with staking addresses. */ export interface AddressPreimage { - /** The method by which the oasis address was derived from `address_data`. - */ - context: AddressDerivationContext; - /** Version of the `context`. */ - context_version?: number | null; /** The base64-encoded data from which the oasis address was derived. When `context = "oasis-runtime-sdk/address: secp256k1eth"`, this is the Ethereum address (in base64, not hex!). */ address_data: string; + /** The method by which the oasis address was derived from `address_data`. + */ + context: AddressDerivationContext; + /** Version of the `context`. */ + context_version?: number | null; } /** @@ -1247,25 +1247,25 @@ export type AccountList = List & AccountListAllOf; */ export interface Node { - /** The public key identifying this node. */ - id: string; + /** The unique identifier of this node as a consensus member */ + consensus_pubkey: string; /** The public key identifying the entity controlling this node. */ entity_id: string; /** The epoch in which this node's commitment expires. */ expiration: number; - /** The public key used for establishing TLS connections. */ - tls_pubkey: string; - /** The public key that will be used for establishing TLS connections -upon rotation. - */ - tls_next_pubkey: string; + /** The public key identifying this node. */ + id: string; /** The unique identifier of this node on the P2P transport. */ p2p_pubkey: string; - /** The unique identifier of this node as a consensus member */ - consensus_pubkey: string; /** A bitmask representing this node's roles. */ roles: string; + /** The public key that will be used for establishing TLS connections +upon rotation. + */ + tls_next_pubkey: string; + /** The public key used for establishing TLS connections. */ + tls_pubkey: string; } /** @@ -1280,25 +1280,25 @@ export type NodeListAllOf = { export type NodeList = List & NodeListAllOf; export interface ValidatorMedia { - /** An URL associated with the entity. */ - website_link?: string; /** An email address for the validator. */ email_address?: string; - /** A Twitter handle. */ - twitter_acc?: string; - /** An Telegram handle. */ - tg_chat?: string; /** A logo type. */ logotype?: string; /** The human-readable name of this validator. */ name?: string; + /** An Telegram handle. */ + tg_chat?: string; + /** A Twitter handle. */ + twitter_acc?: string; + /** An URL associated with the entity. */ + website_link?: string; } export interface ValidatorCommissionBound { + epoch_end: number; + epoch_start: number; lower: number; upper: number; - epoch_start: number; - epoch_end: number; } /** @@ -1306,22 +1306,22 @@ export interface ValidatorCommissionBound { */ export interface Validator { + /** Whether the entity is part of validator set (top by stake). */ + active: boolean; + current_commission_bound: ValidatorCommissionBound; + /** Commission rate. */ + current_rate: number; /** The staking address identifying this Validator. */ entity_address: string; /** The public key identifying this Validator. */ entity_id: string; - /** The public key identifying this Validator's node. */ - node_id: string; /** The amount staked. */ escrow: string; - /** Whether the entity is part of validator set (top by stake). */ - active: boolean; + media?: ValidatorMedia; + /** The public key identifying this Validator's node. */ + node_id: string; /** Whether the entity has a node that is registered for being a validator, node is up to date, and has successfully registered itself. It may or may not be part of validator set. */ status: boolean; - media?: ValidatorMedia; - /** Commission rate. */ - current_rate: number; - current_commission_bound: ValidatorCommissionBound; } /** @@ -1339,10 +1339,10 @@ export type ValidatorList = List & ValidatorListAllOf; */ export interface Entity { - /** The public key identifying this entity. */ - id: string; /** The staking address belonging to this entity; derived from the entity's public key. */ address: string; + /** The public key identifying this entity. */ + id: string; /** The vector of nodes owned by this entity. */ nodes: string[]; } @@ -1373,22 +1373,22 @@ export type ConsensusEventBody = { [key: string]: any }; export interface ConsensusEvent { /** The block height at which this event was generated. */ block: number; - /** 0-based index of this event's originating transaction within its block. -Absent if the event did not originate from a transaction. + /** The event contents. This spec does not encode the many possible types; +instead, see [the Go API](https://pkg.go.dev/github.com/oasisprotocol/oasis-core/go/consensus/api/transaction/results#Event) of oasis-core. +This object will conform to one of the `*Event` types two levels down +the hierarchy, e.g. `TransferEvent` from `Event > staking.Event > TransferEvent` */ - tx_index?: number | null; + body: ConsensusEventBody; /** Hash of this event's originating transaction. Absent if the event did not originate from a transaction. */ tx_hash?: string | null; + /** 0-based index of this event's originating transaction within its block. +Absent if the event did not originate from a transaction. + */ + tx_index?: number | null; /** The type of the event. */ type: ConsensusEventType; - /** The event contents. This spec does not encode the many possible types; -instead, see [the Go API](https://pkg.go.dev/github.com/oasisprotocol/oasis-core/go/consensus/api/transaction/results#Event) of oasis-core. -This object will conform to one of the `*Event` types two levels down -the hierarchy, e.g. `TransferEvent` from `Event > staking.Event > TransferEvent` - */ - body: ConsensusEventBody; } /** @@ -1427,12 +1427,12 @@ export const ConsensusEventType = { } as const; export interface TxError { - /** The module of a failed transaction. */ - module?: string; /** The status code of a failed transaction. */ code: number; /** The message of a failed transaction. */ message?: string; + /** The module of a failed transaction. */ + module?: string; } /** @@ -1475,30 +1475,30 @@ export const ConsensusTxMethod = { export interface Transaction { /** The block height at which this transaction was executed. */ block: number; - /** 0-based index of this transaction in its block */ - index: number; - /** The second-granular consensus time of this tx's block, i.e. roughly when the -[block was proposed](https://github.com/tendermint/tendermint/blob/v0.34.x/spec/core/data_structures.md#header). - */ - timestamp: string; - /** The cryptographic hash of this transaction's encoding. */ - hash: string; - /** The address of who sent this transaction. */ - sender: string; - /** The nonce used with this transaction, to prevent replay. */ - nonce: number; + /** The method call body. */ + body: string; + /** Error details of a failed transaction. */ + error?: TxError; /** The fee that this transaction's sender committed to pay to execute it. */ fee: string; + /** The cryptographic hash of this transaction's encoding. */ + hash: string; + /** 0-based index of this transaction in its block */ + index: number; /** The method that was called. */ method: ConsensusTxMethod; - /** The method call body. */ - body: string; + /** The nonce used with this transaction, to prevent replay. */ + nonce: number; + /** The address of who sent this transaction. */ + sender: string; /** Whether this transaction successfully executed. */ success: boolean; - /** Error details of a failed transaction. */ - error?: TxError; + /** The second-granular consensus time of this tx's block, i.e. roughly when the +[block was proposed](https://github.com/tendermint/tendermint/blob/v0.34.x/spec/core/data_structures.md#header). + */ + timestamp: string; } /** @@ -1508,14 +1508,14 @@ to pay to execute it. export interface DebondingDelegation { /** The amount of tokens delegated in base units. */ amount: string; + /** The epoch at which the debonding ends. */ + debond_end: number; + /** The delegator address. */ + delegator: string; /** The shares of tokens delegated. */ shares: string; /** The delegatee (validator) address. */ validator: string; - /** The delegator address. */ - delegator: string; - /** The epoch at which the debonding ends. */ - debond_end: number; } /** @@ -1535,12 +1535,12 @@ export type DebondingDelegationList = List & DebondingDelegationListAllOf; export interface Delegation { /** The amount of tokens delegated in base units. */ amount: string; + /** The delegator address. */ + delegator: string; /** The shares of tokens delegated. */ shares: string; /** The delegatee (validator) address. */ validator: string; - /** The delegator address. */ - delegator: string; } /** @@ -1558,14 +1558,14 @@ export type DelegationList = List & DelegationListAllOf; */ export interface Block { - /** The block height. */ - height: number; /** The block header hash. */ hash: string; - /** The second-granular consensus time. */ - timestamp: string; + /** The block height. */ + height: number; /** Number of transactions in the block. */ num_transactions: number; + /** The second-granular consensus time. */ + timestamp: string; } export type BlockListAllOf = { @@ -1577,21 +1577,21 @@ export interface Status { how far behind Nexus is from the chain. */ latest_block: number; - /** The height of the most recently produced block on-chain as seen by Nexus. */ - latest_node_block: number; /** The RFC 3339 formatted consensus time of when the most recently indexed block was produced. */ latest_block_time: string; + /** The height of the most recently produced block on-chain as seen by Nexus. */ + latest_node_block: number; /** The number of milliseconds since Nexus processed the latest block. */ latest_update_age_ms: number; } export interface List { + /** Whether total_count is clipped for performance reasons. */ + is_total_count_clipped: boolean; /** The total number of records that match the query, i.e. the number of records the query would return with limit=infinity. */ total_count: number; - /** Whether total_count is clipped for performance reasons. */ - is_total_count_clipped: boolean; } /** @@ -1636,6 +1636,7 @@ type AwaitedInput = PromiseLike | T; ? P : never; + /** * @summary Returns the status of indexing. */ @@ -1656,24 +1657,23 @@ export const getGetStatusQueryKey = (network: 'mainnet' | 'testnet',) => { return [`/${network}/`] as const; } - export const getGetStatusQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetStatusQueryKey(network); - + const queryFn: QueryFunction>> = ({ signal }) => getStatus(network, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -1721,25 +1721,24 @@ export const getGetConsensusBlocksQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/blocks`, ...(params ? [params]: [])] as const; } - export const getGetConsensusBlocksQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusBlocksParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusBlocksQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusBlocks(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -1787,25 +1786,24 @@ export const getGetConsensusBlocksHeightQueryKey = (network: 'mainnet' | 'testne return [`/${network}/consensus/blocks/${height}`] as const; } - export const getGetConsensusBlocksHeightQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', height: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusBlocksHeightQueryKey(network,height); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusBlocksHeight(network,height, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && height), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -1854,25 +1852,24 @@ export const getGetConsensusTransactionsQueryKey = (network: 'mainnet' | 'testne return [`/${network}/consensus/transactions`, ...(params ? [params]: [])] as const; } - export const getGetConsensusTransactionsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusTransactionsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusTransactionsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusTransactions(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -1920,25 +1917,24 @@ export const getGetConsensusTransactionsTxHashQueryKey = (network: 'mainnet' | ' return [`/${network}/consensus/transactions/${txHash}`] as const; } - export const getGetConsensusTransactionsTxHashQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', txHash: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusTransactionsTxHashQueryKey(network,txHash); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusTransactionsTxHash(network,txHash, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && txHash), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -1987,25 +1983,24 @@ export const getGetConsensusEventsQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/events`, ...(params ? [params]: [])] as const; } - export const getGetConsensusEventsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEventsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEventsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEvents(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2054,25 +2049,24 @@ export const getGetConsensusEntitiesQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/entities`, ...(params ? [params]: [])] as const; } - export const getGetConsensusEntitiesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEntitiesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntities(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2120,25 +2114,24 @@ export const getGetConsensusEntitiesEntityIdQueryKey = (network: 'mainnet' | 'te return [`/${network}/consensus/entities/${entityId}`] as const; } - export const getGetConsensusEntitiesEntityIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdQueryKey(network,entityId); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityId(network,entityId, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2189,26 +2182,25 @@ export const getGetConsensusEntitiesEntityIdNodesQueryKey = (network: 'mainnet' return [`/${network}/consensus/entities/${entityId}/nodes`, ...(params ? [params]: [])] as const; } - export const getGetConsensusEntitiesEntityIdNodesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, params?: GetConsensusEntitiesEntityIdNodesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdNodesQueryKey(network,entityId,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityIdNodes(network,entityId,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2259,26 +2251,25 @@ export const getGetConsensusEntitiesEntityIdNodesNodeIdQueryKey = (network: 'mai return [`/${network}/consensus/entities/${entityId}/nodes/${nodeId}`] as const; } - export const getGetConsensusEntitiesEntityIdNodesNodeIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, nodeId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEntitiesEntityIdNodesNodeIdQueryKey(network,entityId,nodeId); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEntitiesEntityIdNodesNodeId(network,entityId,nodeId, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && entityId && nodeId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2328,25 +2319,24 @@ export const getGetConsensusValidatorsQueryKey = (network: 'mainnet' | 'testnet' return [`/${network}/consensus/validators`, ...(params ? [params]: [])] as const; } - export const getGetConsensusValidatorsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusValidatorsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusValidatorsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusValidators(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2394,25 +2384,24 @@ export const getGetConsensusValidatorsEntityIdQueryKey = (network: 'mainnet' | ' return [`/${network}/consensus/validators/${entityId}`] as const; } - export const getGetConsensusValidatorsEntityIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', entityId: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusValidatorsEntityIdQueryKey(network,entityId); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusValidatorsEntityId(network,entityId, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && entityId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2461,25 +2450,24 @@ export const getGetConsensusAccountsQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/accounts`, ...(params ? [params]: [])] as const; } - export const getGetConsensusAccountsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusAccountsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccounts(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2527,25 +2515,24 @@ export const getGetConsensusAccountsAddressQueryKey = (network: 'mainnet' | 'tes return [`/${network}/consensus/accounts/${address}`] as const; } - export const getGetConsensusAccountsAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressQueryKey(network,address); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddress(network,address, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2596,26 +2583,25 @@ export const getGetConsensusAccountsAddressDelegationsQueryKey = (network: 'main return [`/${network}/consensus/accounts/${address}/delegations`, ...(params ? [params]: [])] as const; } - export const getGetConsensusAccountsAddressDelegationsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDelegationsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDelegationsQueryKey(network,address,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDelegations(network,address,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2667,26 +2653,25 @@ export const getGetConsensusAccountsAddressDelegationsToQueryKey = (network: 'ma return [`/${network}/consensus/accounts/${address}/delegations_to`, ...(params ? [params]: [])] as const; } - export const getGetConsensusAccountsAddressDelegationsToQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDelegationsToParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDelegationsToQueryKey(network,address,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDelegationsTo(network,address,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2738,26 +2723,25 @@ export const getGetConsensusAccountsAddressDebondingDelegationsQueryKey = (netwo return [`/${network}/consensus/accounts/${address}/debonding_delegations`, ...(params ? [params]: [])] as const; } - export const getGetConsensusAccountsAddressDebondingDelegationsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDebondingDelegationsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDebondingDelegationsQueryKey(network,address,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDebondingDelegations(network,address,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2809,26 +2793,25 @@ export const getGetConsensusAccountsAddressDebondingDelegationsToQueryKey = (net return [`/${network}/consensus/accounts/${address}/debonding_delegations_to`, ...(params ? [params]: [])] as const; } - export const getGetConsensusAccountsAddressDebondingDelegationsToQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', address: string, params?: GetConsensusAccountsAddressDebondingDelegationsToParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusAccountsAddressDebondingDelegationsToQueryKey(network,address,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusAccountsAddressDebondingDelegationsTo(network,address,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2878,25 +2861,24 @@ export const getGetConsensusEpochsQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/epochs`, ...(params ? [params]: [])] as const; } - export const getGetConsensusEpochsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusEpochsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEpochsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEpochs(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -2944,25 +2926,24 @@ export const getGetConsensusEpochsEpochQueryKey = (network: 'mainnet' | 'testnet return [`/${network}/consensus/epochs/${epoch}`] as const; } - export const getGetConsensusEpochsEpochQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', epoch: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusEpochsEpochQueryKey(network,epoch); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusEpochsEpoch(network,epoch, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && epoch), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3011,25 +2992,24 @@ export const getGetConsensusProposalsQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/consensus/proposals`, ...(params ? [params]: [])] as const; } - export const getGetConsensusProposalsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', params?: GetConsensusProposalsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsQueryKey(network,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposals(network,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3077,25 +3057,24 @@ export const getGetConsensusProposalsProposalIdQueryKey = (network: 'mainnet' | return [`/${network}/consensus/proposals/${proposalId}`] as const; } - export const getGetConsensusProposalsProposalIdQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', proposalId: number, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsProposalIdQueryKey(network,proposalId); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposalsProposalId(network,proposalId, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3146,26 +3125,25 @@ export const getGetConsensusProposalsProposalIdVotesQueryKey = (network: 'mainne return [`/${network}/consensus/proposals/${proposalId}/votes`, ...(params ? [params]: [])] as const; } - export const getGetConsensusProposalsProposalIdVotesQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', proposalId: number, params?: GetConsensusProposalsProposalIdVotesParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetConsensusProposalsProposalIdVotesQueryKey(network,proposalId,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetConsensusProposalsProposalIdVotes(network,proposalId,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && proposalId), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3217,26 +3195,25 @@ export const getGetRuntimeBlocksQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/${runtime}/blocks`, ...(params ? [params]: [])] as const; } - export const getGetRuntimeBlocksQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeBlocksParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeBlocksQueryKey(network,runtime,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeBlocks(network,runtime,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3288,26 +3265,25 @@ export const getGetRuntimeTransactionsQueryKey = (network: 'mainnet' | 'testnet' return [`/${network}/${runtime}/transactions`, ...(params ? [params]: [])] as const; } - export const getGetRuntimeTransactionsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeTransactionsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeTransactionsQueryKey(network,runtime,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeTransactions(network,runtime,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3358,26 +3334,25 @@ export const getGetRuntimeTransactionsTxHashQueryKey = (network: 'mainnet' | 'te return [`/${network}/${runtime}/transactions/${txHash}`] as const; } - export const getGetRuntimeTransactionsTxHashQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, txHash: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeTransactionsTxHashQueryKey(network,runtime,txHash); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeTransactionsTxHash(network,runtime,txHash, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime && txHash), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3429,26 +3404,25 @@ export const getGetRuntimeEventsQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/${runtime}/events`, ...(params ? [params]: [])] as const; } - export const getGetRuntimeEventsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeEventsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEventsQueryKey(network,runtime,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvents(network,runtime,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3500,26 +3474,25 @@ export const getGetRuntimeEvmTokensQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/${runtime}/evm_tokens`, ...(params ? [params]: [])] as const; } - export const getGetRuntimeEvmTokensQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, params?: GetRuntimeEvmTokensParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensQueryKey(network,runtime,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokens(network,runtime,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3570,26 +3543,25 @@ export const getGetRuntimeEvmTokensAddressQueryKey = (network: 'mainnet' | 'test return [`/${network}/${runtime}/evm_tokens/${address}`] as const; } - export const getGetRuntimeEvmTokensAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensAddressQueryKey(network,runtime,address); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokensAddress(network,runtime,address, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3645,7 +3617,6 @@ export const getGetRuntimeEvmTokensAddressHoldersQueryKey = (network: 'mainnet' return [`/${network}/${runtime}/evm_tokens/${address}/holders`, ...(params ? [params]: [])] as const; } - export const getGetRuntimeEvmTokensAddressHoldersQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', @@ -3653,19 +3624,19 @@ export const getGetRuntimeEvmTokensAddressHoldersQueryOptions = >, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeEvmTokensAddressHoldersQueryKey(network,runtime,address,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeEvmTokensAddressHolders(network,runtime,address,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3719,26 +3690,25 @@ export const getGetRuntimeAccountsAddressQueryKey = (network: 'mainnet' | 'testn return [`/${network}/${runtime}/accounts/${address}`] as const; } - export const getGetRuntimeAccountsAddressQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, address: string, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeAccountsAddressQueryKey(network,runtime,address); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeAccountsAddress(network,runtime,address, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime && address), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3787,25 +3757,24 @@ export const getGetRuntimeStatusQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/${runtime}/status`] as const; } - export const getGetRuntimeStatusQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', runtime: Runtime, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetRuntimeStatusQueryKey(network,runtime); - + const queryFn: QueryFunction>> = ({ signal }) => GetRuntimeStatus(network,runtime, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && runtime), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3858,26 +3827,25 @@ export const getGetLayerStatsTxVolumeQueryKey = (network: 'mainnet' | 'testnet', return [`/${network}/${layer}/stats/tx_volume`, ...(params ? [params]: [])] as const; } - export const getGetLayerStatsTxVolumeQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', layer: Layer, params?: GetLayerStatsTxVolumeParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetLayerStatsTxVolumeQueryKey(network,layer,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetLayerStatsTxVolume(network,layer,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } @@ -3933,26 +3901,25 @@ export const getGetLayerStatsActiveAccountsQueryKey = (network: 'mainnet' | 'tes return [`/${network}/${layer}/stats/active_accounts`, ...(params ? [params]: [])] as const; } - export const getGetLayerStatsActiveAccountsQueryOptions = >, TError = HumanReadableErrorResponse | NotFoundErrorResponse>(network: 'mainnet' | 'testnet', layer: Layer, params?: GetLayerStatsActiveAccountsParams, options?: { query?:UseQueryOptions>, TError, TData>, request?: SecondParameter} ) => { - + const {query: queryOptions, request: requestOptions} = options ?? {}; const queryKey = queryOptions?.queryKey ?? getGetLayerStatsActiveAccountsQueryKey(network,layer,params); - + const queryFn: QueryFunction>> = ({ signal }) => GetLayerStatsActiveAccounts(network,layer,params, requestOptions, signal); - - + + return { queryKey, queryFn, enabled: !!(network && layer), ...queryOptions} as UseQueryOptions>, TError, TData> & { queryKey: QueryKey } } From b764eb871b664748dcbebfb73cf20f1afc572737 Mon Sep 17 00:00:00 2001 From: Csillag Kristof Date: Fri, 27 Oct 2023 21:42:44 +0200 Subject: [PATCH 4/4] Add changelog --- .changelog/977.internal.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .changelog/977.internal.md diff --git a/.changelog/977.internal.md b/.changelog/977.internal.md new file mode 100644 index 000000000..3fe0bd766 --- /dev/null +++ b/.changelog/977.internal.md @@ -0,0 +1 @@ +Update to latest Orval version (for code generation)