11// This file is auto-generated by @hey-api/openapi-ts
22
3- import {
4- createClient ,
5- createConfig ,
6- type OptionsLegacyParser ,
7- } from "@hey-api/client-fetch" ;
8- import type {
9- GetMessagesDashboardMessagesGetError ,
10- GetMessagesDashboardMessagesGetResponse ,
11- GetAlertsDashboardAlertsGetError ,
12- GetAlertsDashboardAlertsGetResponse ,
13- StreamSseDashboardAlertsNotificationGetError ,
14- StreamSseDashboardAlertsNotificationGetResponse ,
15- } from "./types.gen" ;
3+ import { createClient , createConfig , type OptionsLegacyParser } from '@hey-api/client-fetch' ;
4+ import type { GetMessagesDashboardMessagesGetError , GetMessagesDashboardMessagesGetResponse , GetAlertsDashboardAlertsGetError , GetAlertsDashboardAlertsGetResponse , StreamSseDashboardAlertsNotificationGetError , StreamSseDashboardAlertsNotificationGetResponse } from './types.gen' ;
165
176export const client = createClient ( createConfig ( ) ) ;
187
198/**
209 * Get Messages
2110 * Get all the messages from the database and return them as a list of conversations.
2211 */
23- export const getMessagesDashboardMessagesGet = <
24- ThrowOnError extends boolean = false ,
25- > (
26- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
27- ) => {
28- return ( options ?. client ?? client ) . get <
29- GetMessagesDashboardMessagesGetResponse ,
30- GetMessagesDashboardMessagesGetError ,
31- ThrowOnError
32- > ( {
33- ...options ,
34- url : "/dashboard/messages" ,
35- } ) ;
12+ export const getMessagesDashboardMessagesGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
13+ return ( options ?. client ?? client ) . get < GetMessagesDashboardMessagesGetResponse , GetMessagesDashboardMessagesGetError , ThrowOnError > ( {
14+ ...options ,
15+ url : '/dashboard/messages'
16+ } ) ;
3617} ;
3718
3819/**
3920 * Get Alerts
4021 * Get all the messages from the database and return them as a list of conversations.
4122 */
42- export const getAlertsDashboardAlertsGet = <
43- ThrowOnError extends boolean = false ,
44- > (
45- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
46- ) => {
47- return ( options ?. client ?? client ) . get <
48- GetAlertsDashboardAlertsGetResponse ,
49- GetAlertsDashboardAlertsGetError ,
50- ThrowOnError
51- > ( {
52- ...options ,
53- url : "/dashboard/alerts" ,
54- } ) ;
23+ export const getAlertsDashboardAlertsGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
24+ return ( options ?. client ?? client ) . get < GetAlertsDashboardAlertsGetResponse , GetAlertsDashboardAlertsGetError , ThrowOnError > ( {
25+ ...options ,
26+ url : '/dashboard/alerts'
27+ } ) ;
5528} ;
5629
5730/**
5831 * Stream Sse
5932 * Send alerts event
6033 */
61- export const streamSseDashboardAlertsNotificationGet = <
62- ThrowOnError extends boolean = false ,
63- > (
64- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
65- ) => {
66- return ( options ?. client ?? client ) . get <
67- StreamSseDashboardAlertsNotificationGetResponse ,
68- StreamSseDashboardAlertsNotificationGetError ,
69- ThrowOnError
70- > ( {
71- ...options ,
72- url : "/dashboard/alerts_notification" ,
73- } ) ;
74- } ;
34+ export const streamSseDashboardAlertsNotificationGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
35+ return ( options ?. client ?? client ) . get < StreamSseDashboardAlertsNotificationGetResponse , StreamSseDashboardAlertsNotificationGetError , ThrowOnError > ( {
36+ ...options ,
37+ url : '/dashboard/alerts_notification'
38+ } ) ;
39+ } ;
0 commit comments