SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore(api): deprecate any hand-written api call (#11632)
Vinicius Lourençob898269ddcb4
diff --git a/frontend/src/api/alerts/getTriggered.ts b/frontend/src/api/alerts/getTriggered.tsindex 8bad1d3da5..d20eaa3015 100644--- a/frontend/src/api/alerts/getTriggered.ts+++ b/frontend/src/api/alerts/getTriggered.ts@@ -5,6 +5,13 @@ import convertObjectIntoParams from 'lib/query/convertObjectIntoParams';import { ErrorResponse, SuccessResponse } from 'types/api';import { PayloadProps, Props } from 'types/api/alerts/getTriggered';+/**+ * @deprecated Use the generated `useGetAlerts` hook (or `getAlerts` fetcher) from+ * `api/generated/services/alerts` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const getTriggered = async (props: Props,): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {diff --git a/frontend/src/api/channels/createEmail.ts b/frontend/src/api/channels/createEmail.tsindex 7729eb12ca..a464914666 100644--- a/frontend/src/api/channels/createEmail.ts+++ b/frontend/src/api/channels/createEmail.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createEmail';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/createMsTeams.ts b/frontend/src/api/channels/createMsTeams.tsindex 1a01a9c788..21f75df6f7 100644--- a/frontend/src/api/channels/createMsTeams.ts+++ b/frontend/src/api/channels/createMsTeams.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createMsTeams';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/createOpsgenie.ts b/frontend/src/api/channels/createOpsgenie.tsindex edc9ba3024..325788f914 100644--- a/frontend/src/api/channels/createOpsgenie.ts+++ b/frontend/src/api/channels/createOpsgenie.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createOpsgenie';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/createPager.ts b/frontend/src/api/channels/createPager.tsindex 46bad5daf3..9b40c71a4e 100644--- a/frontend/src/api/channels/createPager.ts+++ b/frontend/src/api/channels/createPager.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createPager';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/createSlack.ts b/frontend/src/api/channels/createSlack.tsindex 4cd78d6396..3a61ccdf49 100644--- a/frontend/src/api/channels/createSlack.ts+++ b/frontend/src/api/channels/createSlack.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createSlack';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/createWebhook.ts b/frontend/src/api/channels/createWebhook.tsindex 2a5f7fa7b2..1fe8dd98f2 100644--- a/frontend/src/api/channels/createWebhook.ts+++ b/frontend/src/api/channels/createWebhook.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/createWebhook';+/**+ * @deprecated Use the generated `useCreateChannel` hook (or `createChannel` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const create = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/delete.ts b/frontend/src/api/channels/delete.tsindex 387817ef20..a8701788b6 100644--- a/frontend/src/api/channels/delete.ts+++ b/frontend/src/api/channels/delete.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/delete';+/**+ * @deprecated Use the generated `useDeleteChannelByID` hook (or `deleteChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const deleteChannel = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/editEmail.ts b/frontend/src/api/channels/editEmail.tsindex 2a43a53d32..4a5443388b 100644--- a/frontend/src/api/channels/editEmail.ts+++ b/frontend/src/api/channels/editEmail.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editEmail';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editEmail = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/editMsTeams.ts b/frontend/src/api/channels/editMsTeams.tsindex 67b25fcf3a..935949ab68 100644--- a/frontend/src/api/channels/editMsTeams.ts+++ b/frontend/src/api/channels/editMsTeams.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editMsTeams';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editMsTeams = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/editOpsgenie.ts b/frontend/src/api/channels/editOpsgenie.tsindex e77e24ef26..4a16175287 100644--- a/frontend/src/api/channels/editOpsgenie.ts+++ b/frontend/src/api/channels/editOpsgenie.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorResponse, ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editOpsgenie';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editOpsgenie = async (props: Props,): Promise<SuccessResponseV2<PayloadProps> | ErrorResponse> => {diff --git a/frontend/src/api/channels/editPager.ts b/frontend/src/api/channels/editPager.tsindex dc1f1c3709..1c0b5bad65 100644--- a/frontend/src/api/channels/editPager.ts+++ b/frontend/src/api/channels/editPager.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editPager';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editPager = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/editSlack.ts b/frontend/src/api/channels/editSlack.tsindex 000444d33d..91ca47473d 100644--- a/frontend/src/api/channels/editSlack.ts+++ b/frontend/src/api/channels/editSlack.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editSlack';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editSlack = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/editWebhook.ts b/frontend/src/api/channels/editWebhook.tsindex 2c818738af..6cc4d26ce8 100644--- a/frontend/src/api/channels/editWebhook.ts+++ b/frontend/src/api/channels/editWebhook.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/editWebhook';+/**+ * @deprecated Use the generated `useUpdateChannelByID` hook (or `updateChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const editWebhook = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/channels/get.ts b/frontend/src/api/channels/get.tsindex 18080cfacc..087a584886 100644--- a/frontend/src/api/channels/get.ts+++ b/frontend/src/api/channels/get.ts@@ -5,6 +5,13 @@ import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/channels/get';import { Channels } from 'types/api/channels/getAll';+/**+ * @deprecated Use the generated `useGetChannelByID` hook (or `getChannelByID` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const get = async (props: Props): Promise<SuccessResponseV2<Channels>> => {try {const response = await axios.get<PayloadProps>(`/channels/${props.id}`);diff --git a/frontend/src/api/channels/getAll.ts b/frontend/src/api/channels/getAll.tsindex 5b98bb83b9..2db4ef7cb9 100644--- a/frontend/src/api/channels/getAll.ts+++ b/frontend/src/api/channels/getAll.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { Channels, PayloadProps } from 'types/api/channels/getAll';+/**+ * @deprecated Use the generated `useListChannels` hook (or `listChannels` fetcher) from+ * `api/generated/services/channels` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const getAll = async (): Promise<SuccessResponseV2<Channels[]>> => {try {const response = await axios.get<PayloadProps>('/channels');diff --git a/frontend/src/api/dashboard/public/createPublicDashboard.ts b/frontend/src/api/dashboard/public/createPublicDashboard.tsindex 66ef406c76..f03183ebd5 100644--- a/frontend/src/api/dashboard/public/createPublicDashboard.ts+++ b/frontend/src/api/dashboard/public/createPublicDashboard.ts@@ -5,6 +5,13 @@ import { DEFAULT_TIME_RANGE } from 'container/TopNav/DateTimeSelectionV2/constanimport { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { CreatePublicDashboardProps } from 'types/api/dashboard/public/create';+/**+ * @deprecated Use the generated `useCreatePublicDashboard` hook (or `createPublicDashboard` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const createPublicDashboard = async (props: CreatePublicDashboardProps,): Promise<SuccessResponseV2<CreatePublicDashboardProps>> => {diff --git a/frontend/src/api/dashboard/public/getPublicDashboardData.ts b/frontend/src/api/dashboard/public/getPublicDashboardData.tsindex 4d0a32204d..06408cbdfd 100644--- a/frontend/src/api/dashboard/public/getPublicDashboardData.ts+++ b/frontend/src/api/dashboard/public/getPublicDashboardData.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { GetPublicDashboardDataProps, PayloadProps,PublicDashboardDataProps } from 'types/api/dashboard/public/get';+/**+ * @deprecated Use the generated `useGetPublicDashboardData` hook (or `getPublicDashboardData` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const getPublicDashboardData = async (props: GetPublicDashboardDataProps): Promise<SuccessResponseV2<PublicDashboardDataProps>> => {try {const response = await axios.get<PayloadProps>(`/public/dashboards/${props.id}`);diff --git a/frontend/src/api/dashboard/public/getPublicDashboardMeta.ts b/frontend/src/api/dashboard/public/getPublicDashboardMeta.tsindex dc9fe67707..72a4fe9b1d 100644--- a/frontend/src/api/dashboard/public/getPublicDashboardMeta.ts+++ b/frontend/src/api/dashboard/public/getPublicDashboardMeta.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { GetPublicDashboardMetaProps, PayloadProps,PublicDashboardMetaProps } from 'types/api/dashboard/public/getMeta';+/**+ * @deprecated Use the generated `useGetPublicDashboard` hook (or `getPublicDashboard` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const getPublicDashboardMeta = async (props: GetPublicDashboardMetaProps): Promise<SuccessResponseV2<PublicDashboardMetaProps>> => {try {const response = await axios.get<PayloadProps>(`/dashboards/${props.id}/public`);diff --git a/frontend/src/api/dashboard/public/getPublicDashboardWidgetData.ts b/frontend/src/api/dashboard/public/getPublicDashboardWidgetData.tsindex 71fd305dec..d961d95047 100644--- a/frontend/src/api/dashboard/public/getPublicDashboardWidgetData.ts+++ b/frontend/src/api/dashboard/public/getPublicDashboardWidgetData.ts@@ -6,6 +6,13 @@ import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { GetPublicDashboardWidgetDataProps } from 'types/api/dashboard/public/getWidgetData';+/**+ * @deprecated Use the generated `useGetPublicDashboardWidgetQueryRange` hook (or `getPublicDashboardWidgetQueryRange` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const getPublicDashboardWidgetData = async (props: GetPublicDashboardWidgetDataProps): Promise<SuccessResponseV2<MetricRangePayloadV5>> => {try {const response = await axios.get(`/public/dashboards/${props.id}/widgets/${props.index}/query_range`, {diff --git a/frontend/src/api/dashboard/public/revokePublicDashboardAccess.ts b/frontend/src/api/dashboard/public/revokePublicDashboardAccess.tsindex 71f23ac66c..155ceb72f9 100644--- a/frontend/src/api/dashboard/public/revokePublicDashboardAccess.ts+++ b/frontend/src/api/dashboard/public/revokePublicDashboardAccess.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps,RevokePublicDashboardAccessProps } from 'types/api/dashboard/public/delete';+/**+ * @deprecated Use the generated `useDeletePublicDashboard` hook (or `deletePublicDashboard` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const revokePublicDashboardAccess = async (props: RevokePublicDashboardAccessProps,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/dashboard/public/updatePublicDashboard.ts b/frontend/src/api/dashboard/public/updatePublicDashboard.tsindex 976cac55b0..33b416da85 100644--- a/frontend/src/api/dashboard/public/updatePublicDashboard.ts+++ b/frontend/src/api/dashboard/public/updatePublicDashboard.ts@@ -5,6 +5,13 @@ import { DEFAULT_TIME_RANGE } from 'container/TopNav/DateTimeSelectionV2/constanimport { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { UpdatePublicDashboardProps } from 'types/api/dashboard/public/update';+/**+ * @deprecated Use the generated `useUpdatePublicDashboard` hook (or `updatePublicDashboard` fetcher) from+ * `api/generated/services/dashboard` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const updatePublicDashboard = async (props: UpdatePublicDashboardProps,): Promise<SuccessResponseV2<UpdatePublicDashboardProps>> => {diff --git a/frontend/src/api/dashboard/substitute_vars.ts b/frontend/src/api/dashboard/substitute_vars.tsindex 2ab57b2e42..4b3c1fabc1 100644--- a/frontend/src/api/dashboard/substitute_vars.ts+++ b/frontend/src/api/dashboard/substitute_vars.ts@@ -9,6 +9,13 @@ interface ISubstituteVars {compositeQuery: ICompositeMetricQuery;}+/**+ * @deprecated Use the generated `useReplaceVariables` hook (or `replaceVariables` fetcher) from+ * `api/generated/services/querier` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */export const getSubstituteVars = async (props?: Partial<QueryRangePayloadV5>,signal?: AbortSignal,diff --git a/frontend/src/api/dynamicVariables/getFieldKeys.ts b/frontend/src/api/dynamicVariables/getFieldKeys.tsindex 3a9dd00011..e56c84f183 100644--- a/frontend/src/api/dynamicVariables/getFieldKeys.ts+++ b/frontend/src/api/dynamicVariables/getFieldKeys.ts@@ -8,6 +8,12 @@ import { FieldKeyResponse } from 'types/api/dynamicVariables/getFieldKeys';* Get field keys for a given signal type* @param signal Type of signal (traces, logs, metrics)* @param name Optional search text+ *+ * @deprecated Use the generated `useGetFieldsKeys` hook (or `getFieldsKeys` fetcher) from+ * `api/generated/services/fields` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.*/export const getFieldKeys = async (signal?: 'traces' | 'logs' | 'metrics',diff --git a/frontend/src/api/dynamicVariables/getFieldValues.ts b/frontend/src/api/dynamicVariables/getFieldValues.tsindex 0489c877f5..b3ca39a738 100644--- a/frontend/src/api/dynamicVariables/getFieldValues.ts+++ b/frontend/src/api/dynamicVariables/getFieldValues.ts@@ -11,6 +11,12 @@ import { FieldValueResponse } from 'types/api/dynamicVariables/getFieldValues';* @param name Name of the attribute for which values are being fetched* @param value Optional search text* @param existingQuery Optional existing query - across all present dynamic variables+ *+ * @deprecated Use the generated `useGetFieldsValues` hook (or `getFieldsValues` fetcher) from+ * `api/generated/services/fields` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.*/export const getFieldValues = async (signal?: 'traces' | 'logs' | 'metrics',diff --git a/frontend/src/api/querySuggestions/getKeySuggestions.ts b/frontend/src/api/querySuggestions/getKeySuggestions.tsindex 50626dee8b..ae58862a91 100644--- a/frontend/src/api/querySuggestions/getKeySuggestions.ts+++ b/frontend/src/api/querySuggestions/getKeySuggestions.ts@@ -5,6 +5,13 @@ import {QueryKeySuggestionsResponseProps,} from 'types/api/querySuggestions/types';+/**+ * @deprecated Use the generated `useGetFieldsKeys` hook (or `getFieldsKeys` fetcher) from+ * `api/generated/services/fields` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */export const getKeySuggestions = (props: QueryKeyRequestProps,): Promise<AxiosResponse<QueryKeySuggestionsResponseProps>> => {diff --git a/frontend/src/api/querySuggestions/getValueSuggestion.ts b/frontend/src/api/querySuggestions/getValueSuggestion.tsindex f91a40139b..60fd37e6b4 100644--- a/frontend/src/api/querySuggestions/getValueSuggestion.ts+++ b/frontend/src/api/querySuggestions/getValueSuggestion.ts@@ -5,6 +5,13 @@ import {QueryKeyValueSuggestionsResponseProps,} from 'types/api/querySuggestions/types';+/**+ * @deprecated Use the generated `useGetFieldsValues` hook (or `getFieldsValues` fetcher) from+ * `api/generated/services/fields` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */export const getValueSuggestions = (props: QueryKeyValueRequestProps,): Promise<AxiosResponse<QueryKeyValueSuggestionsResponseProps>> => {diff --git a/frontend/src/api/routingPolicies/createRoutingPolicy.ts b/frontend/src/api/routingPolicies/createRoutingPolicy.tsindex 69bf58bd8c..1e8e093e14 100644--- a/frontend/src/api/routingPolicies/createRoutingPolicy.ts+++ b/frontend/src/api/routingPolicies/createRoutingPolicy.ts@@ -15,6 +15,13 @@ export interface CreateRoutingPolicyResponse {message: string;}+/**+ * @deprecated Use the generated `useCreateRoutePolicy` hook (or `createRoutePolicy` fetcher) from+ * `api/generated/services/routepolicies` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const createRoutingPolicy = async (props: CreateRoutingPolicyBody,): Promise<diff --git a/frontend/src/api/routingPolicies/deleteRoutingPolicy.ts b/frontend/src/api/routingPolicies/deleteRoutingPolicy.tsindex 444ec0b1ab..f7db1e0f01 100644--- a/frontend/src/api/routingPolicies/deleteRoutingPolicy.ts+++ b/frontend/src/api/routingPolicies/deleteRoutingPolicy.ts@@ -8,6 +8,13 @@ export interface DeleteRoutingPolicyResponse {message: string;}+/**+ * @deprecated Use the generated `useDeleteRoutePolicyByID` hook (or `deleteRoutePolicyByID` fetcher) from+ * `api/generated/services/routepolicies` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const deleteRoutingPolicy = async (routingPolicyId: string,): Promise<diff --git a/frontend/src/api/routingPolicies/getRoutingPolicies.ts b/frontend/src/api/routingPolicies/getRoutingPolicies.tsindex b06d359c9d..e3156b24ca 100644--- a/frontend/src/api/routingPolicies/getRoutingPolicies.ts+++ b/frontend/src/api/routingPolicies/getRoutingPolicies.ts@@ -20,6 +20,13 @@ export interface GetRoutingPoliciesResponse {data?: ApiRoutingPolicy[];}+/**+ * @deprecated Use the generated `useGetAllRoutePolicies` hook (or `getAllRoutePolicies` fetcher) from+ * `api/generated/services/routepolicies` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */export const getRoutingPolicies = async (signal?: AbortSignal,headers?: Record<string, string>,diff --git a/frontend/src/api/routingPolicies/updateRoutingPolicy.ts b/frontend/src/api/routingPolicies/updateRoutingPolicy.tsindex 63731fe5bf..cadd90b39d 100644--- a/frontend/src/api/routingPolicies/updateRoutingPolicy.ts+++ b/frontend/src/api/routingPolicies/updateRoutingPolicy.ts@@ -15,6 +15,13 @@ export interface UpdateRoutingPolicyResponse {message: string;}+/**+ * @deprecated Use the generated `useUpdateRoutePolicy` hook (or `updateRoutePolicy` fetcher) from+ * `api/generated/services/routepolicies` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const updateRoutingPolicy = async (id: string,props: UpdateRoutingPolicyBody,diff --git a/frontend/src/api/v1/factor_password/resetPassword.ts b/frontend/src/api/v1/factor_password/resetPassword.tsindex 58d54765bf..97c0b8cbed 100644--- a/frontend/src/api/v1/factor_password/resetPassword.ts+++ b/frontend/src/api/v1/factor_password/resetPassword.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/user/resetPassword';+/**+ * @deprecated Use the generated `useResetPassword` hook (or `resetPassword` fetcher) from+ * `api/generated/services/users` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const resetPassword = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/v1/invite/bulk/create.ts b/frontend/src/api/v1/invite/bulk/create.tsindex c0c7952ecb..78bd7679fb 100644--- a/frontend/src/api/v1/invite/bulk/create.ts+++ b/frontend/src/api/v1/invite/bulk/create.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { UsersProps } from 'types/api/user/inviteUsers';+/**+ * @deprecated Use the generated `useCreateBulkInvite` hook (or `createBulkInvite` fetcher) from+ * `api/generated/services/users` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const inviteUsers = async (users: UsersProps,): Promise<SuccessResponseV2<null>> => {diff --git a/frontend/src/api/v1/invite/create.ts b/frontend/src/api/v1/invite/create.tsindex dbf48d3a96..b0ef9bcc06 100644--- a/frontend/src/api/v1/invite/create.ts+++ b/frontend/src/api/v1/invite/create.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/user/setInvite';+/**+ * @deprecated Use the generated `useCreateInvite` hook (or `createInvite` fetcher) from+ * `api/generated/services/users` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const sendInvite = async (props: Props,): Promise<SuccessResponseV2<PayloadProps>> => {diff --git a/frontend/src/api/v1/org/preferences/list.ts b/frontend/src/api/v1/org/preferences/list.tsindex 6864639908..37349b7563 100644--- a/frontend/src/api/v1/org/preferences/list.ts+++ b/frontend/src/api/v1/org/preferences/list.ts@@ -5,6 +5,13 @@ import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps } from 'types/api/preferences/list';import { OrgPreference } from 'types/api/preferences/preference';+/**+ * @deprecated Use the generated `useListOrgPreferences` hook (or `listOrgPreferences` fetcher) from+ * `api/generated/services/preferences` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const listPreference = async (): Promise<SuccessResponseV2<OrgPreference[]>> => {diff --git a/frontend/src/api/v1/org/preferences/name/update.ts b/frontend/src/api/v1/org/preferences/name/update.tsindex d226c9b96c..8a5cceb667 100644--- a/frontend/src/api/v1/org/preferences/name/update.ts+++ b/frontend/src/api/v1/org/preferences/name/update.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { Props } from 'types/api/preferences/update';+/**+ * @deprecated Use the generated `useUpdateOrgPreference` hook (or `updateOrgPreference` fetcher) from+ * `api/generated/services/preferences` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const update = async (props: Props): Promise<SuccessResponseV2<null>> => {try {const response = await axios.put(`/org/preferences/${props.name}`, {diff --git a/frontend/src/api/v1/user/preferences/list.ts b/frontend/src/api/v1/user/preferences/list.tsindex f2af94c2c8..2c14d10435 100644--- a/frontend/src/api/v1/user/preferences/list.ts+++ b/frontend/src/api/v1/user/preferences/list.ts@@ -5,6 +5,13 @@ import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps } from 'types/api/preferences/list';import { UserPreference } from 'types/api/preferences/preference';+/**+ * @deprecated Use the generated `useListUserPreferences` hook (or `listUserPreferences` fetcher) from+ * `api/generated/services/preferences` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const list = async (): Promise<SuccessResponseV2<UserPreference[]>> => {try {const response = await axios.get<PayloadProps>(`/user/preferences`);diff --git a/frontend/src/api/v1/user/preferences/name/get.ts b/frontend/src/api/v1/user/preferences/name/get.tsindex 941c96f849..8b33e08bbe 100644--- a/frontend/src/api/v1/user/preferences/name/get.ts+++ b/frontend/src/api/v1/user/preferences/name/get.ts@@ -5,6 +5,13 @@ import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { PayloadProps, Props } from 'types/api/preferences/get';import { UserPreference } from 'types/api/preferences/preference';+/**+ * @deprecated Use the generated `useGetUserPreference` hook (or `getUserPreference` fetcher) from+ * `api/generated/services/preferences` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const get = async (props: Props,): Promise<SuccessResponseV2<UserPreference>> => {diff --git a/frontend/src/api/v1/user/preferences/name/update.ts b/frontend/src/api/v1/user/preferences/name/update.tsindex 1f9605f877..15465a1b0b 100644--- a/frontend/src/api/v1/user/preferences/name/update.ts+++ b/frontend/src/api/v1/user/preferences/name/update.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, SuccessResponseV2 } from 'types/api';import { Props } from 'types/api/preferences/update';+/**+ * @deprecated Use the generated `useUpdateUserPreference` hook (or `updateUserPreference` fetcher) from+ * `api/generated/services/preferences` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const update = async (props: Props): Promise<SuccessResponseV2<null>> => {try {const response = await axios.put(`/user/preferences/${props.name}`, {diff --git a/frontend/src/api/v2/sessions/context/get.ts b/frontend/src/api/v2/sessions/context/get.tsindex 2f08c74623..cf5fae03b5 100644--- a/frontend/src/api/v2/sessions/context/get.ts+++ b/frontend/src/api/v2/sessions/context/get.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, RawSuccessResponse, SuccessResponseV2 } from 'types/api';import { Props, SessionsContext } from 'types/api/v2/sessions/context/get';+/**+ * @deprecated Use the generated `useGetSessionContext` hook (or `getSessionContext` fetcher) from+ * `api/generated/services/sessions` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const get = async (props: Props,): Promise<SuccessResponseV2<SessionsContext>> => {diff --git a/frontend/src/api/v2/sessions/delete.ts b/frontend/src/api/v2/sessions/delete.tsindex 339ea0639e..eaacaa3c05 100644--- a/frontend/src/api/v2/sessions/delete.ts+++ b/frontend/src/api/v2/sessions/delete.ts@@ -3,6 +3,13 @@ import { ErrorResponseHandlerV2 } from 'api/ErrorResponseHandlerV2';import { AxiosError } from 'axios';import { ErrorV2Resp, RawSuccessResponse, SuccessResponseV2 } from 'types/api';+/**+ * @deprecated Use the generated `useDeleteSession` hook (or `deleteSession` fetcher) from+ * `api/generated/services/sessions` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const deleteSession = async (): Promise<SuccessResponseV2<null>> => {try {const response = await axios.delete<RawSuccessResponse<null>>('/sessions');diff --git a/frontend/src/api/v2/sessions/email_password/post.ts b/frontend/src/api/v2/sessions/email_password/post.tsindex 643821a0a0..6b4ce030dc 100644--- a/frontend/src/api/v2/sessions/email_password/post.ts+++ b/frontend/src/api/v2/sessions/email_password/post.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, RawSuccessResponse, SuccessResponseV2 } from 'types/api';import { Props, Token } from 'types/api/v2/sessions/email_password/post';+/**+ * @deprecated Use the generated `useCreateSessionByEmailPassword` hook (or `createSessionByEmailPassword` fetcher) from+ * `api/generated/services/sessions` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const post = async (props: Props): Promise<SuccessResponseV2<Token>> => {try {const response = await axios.post<RawSuccessResponse<Token>>(diff --git a/frontend/src/api/v2/sessions/rotate/post.ts b/frontend/src/api/v2/sessions/rotate/post.tsindex 7738aba0a8..311b8bf2d7 100644--- a/frontend/src/api/v2/sessions/rotate/post.ts+++ b/frontend/src/api/v2/sessions/rotate/post.ts@@ -4,6 +4,13 @@ import { AxiosError } from 'axios';import { ErrorV2Resp, RawSuccessResponse, SuccessResponseV2 } from 'types/api';import { Props, Token } from 'types/api/v2/sessions/rotate/post';+/**+ * @deprecated Use the generated `useRotateSession` hook (or `rotateSession` fetcher) from+ * `api/generated/services/sessions` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */const post = async (props: Props): Promise<SuccessResponseV2<Token>> => {try {const response = await axios.post<RawSuccessResponse<Token>>(diff --git a/frontend/src/api/v5/queryRange/getQueryRange.ts b/frontend/src/api/v5/queryRange/getQueryRange.tsindex 82afa1e9ee..9c89aed5e3 100644--- a/frontend/src/api/v5/queryRange/getQueryRange.ts+++ b/frontend/src/api/v5/queryRange/getQueryRange.ts@@ -8,6 +8,13 @@ import {QueryRangePayloadV5,} from 'types/api/v5/queryRange';+/**+ * @deprecated Use the generated `useQueryRangeV5` hook (or `queryRangeV5` fetcher) from+ * `api/generated/services/querier` instead. This hand-written client targets the+ * same endpoint and will be removed once call sites migrate.+ *+ * Part of https://github.com/SigNoz/engineering-pod/issues/5289, add a comment or update when removing this method.+ */export const getQueryRangeV5 = async (props: QueryRangePayloadV5,version: string,