33 * Do not edit manually.
44 * PasarGuardAPI
55 * Unified GUI Censorship Resistant Solution
6- * OpenAPI spec version: 1.4.1
6+ * OpenAPI spec version: 1.5.0
77 */
88import { useMutation , useQuery } from '@tanstack/react-query'
99import type {
@@ -368,20 +368,20 @@ export interface UsersResponse {
368368
369369export type UserUsageStatsListPeriod = Period | null
370370
371- export interface UserUsageStat {
372- total_traffic : number
373- period_start : string
374- }
375-
376- export type UserUsageStatsListStats = { [ key : string ] : UserUsageStat [ ] }
377-
378371export interface UserUsageStatsList {
379372 period ?: UserUsageStatsListPeriod
380373 start : string
381374 end : string
382375 stats : UserUsageStatsListStats
383376}
384377
378+ export interface UserUsageStat {
379+ total_traffic : number
380+ period_start : string
381+ }
382+
383+ export type UserUsageStatsListStats = { [ key : string ] : UserUsageStat [ ] }
384+
385385export type UserTemplateResponseIsDisabled = boolean | null
386386
387387export type UserTemplateResponseOnHoldTimeout = number | null
@@ -750,8 +750,6 @@ export interface TransportSettingsOutput {
750750
751751export type TransportSettingsInputWebsocketSettings = WebSocketSettings | null
752752
753- export type TransportSettingsInputTcpSettings = TcpSettings | null
754-
755753export type TransportSettingsInputKcpSettings = KCPSettings | null
756754
757755export type TransportSettingsInputGrpcSettings = GRPCSettings | null
@@ -804,6 +802,8 @@ export interface TcpSettings {
804802 response ?: TcpSettingsResponse
805803}
806804
805+ export type TransportSettingsInputTcpSettings = TcpSettings | null
806+
807807export type SystemStatsCpuUsage = number | null
808808
809809export type SystemStatsCpuCores = number | null
@@ -1774,6 +1774,26 @@ export type BaseHostMuxSettings = MuxSettingsOutput | null
17741774
17751775export type BaseHostTransportSettings = TransportSettingsOutput | null
17761776
1777+ export type BaseHostHttpHeadersAnyOf = { [ key : string ] : string }
1778+
1779+ export type BaseHostHttpHeaders = BaseHostHttpHeadersAnyOf | null
1780+
1781+ export type BaseHostAllowinsecure = boolean | null
1782+
1783+ export type BaseHostAlpn = ProxyHostALPN [ ] | null
1784+
1785+ export type BaseHostPath = string | null
1786+
1787+ export type BaseHostHost = string [ ] | null
1788+
1789+ export type BaseHostSni = string [ ] | null
1790+
1791+ export type BaseHostPort = number | null
1792+
1793+ export type BaseHostInboundTag = string | null
1794+
1795+ export type BaseHostId = number | null
1796+
17771797export interface BaseHost {
17781798 id ?: BaseHostId
17791799 remark : string
@@ -1800,26 +1820,6 @@ export interface BaseHost {
18001820 ech_config_list ?: BaseHostEchConfigList
18011821}
18021822
1803- export type BaseHostHttpHeadersAnyOf = { [ key : string ] : string }
1804-
1805- export type BaseHostHttpHeaders = BaseHostHttpHeadersAnyOf | null
1806-
1807- export type BaseHostAllowinsecure = boolean | null
1808-
1809- export type BaseHostAlpn = ProxyHostALPN [ ] | null
1810-
1811- export type BaseHostPath = string | null
1812-
1813- export type BaseHostHost = string [ ] | null
1814-
1815- export type BaseHostSni = string [ ] | null
1816-
1817- export type BaseHostPort = number | null
1818-
1819- export type BaseHostInboundTag = string | null
1820-
1821- export type BaseHostId = number | null
1822-
18231823export type ApplicationOutputDescription = { [ key : string ] : string }
18241824
18251825export interface ApplicationOutput {
@@ -1969,31 +1969,6 @@ export interface AdminCreate {
19691969 username : string
19701970}
19711971
1972- export type AdminContactInfoNotificationEnable = UserNotificationEnable | null
1973-
1974- export type AdminContactInfoSupportUrl = string | null
1975-
1976- export type AdminContactInfoProfileTitle = string | null
1977-
1978- export type AdminContactInfoSubDomain = string | null
1979-
1980- export type AdminContactInfoDiscordWebhook = string | null
1981-
1982- export type AdminContactInfoTelegramId = number | null
1983-
1984- /**
1985- * Base model containing the core admin identification fields.
1986- */
1987- export interface AdminContactInfo {
1988- username : string
1989- telegram_id ?: AdminContactInfoTelegramId
1990- discord_webhook ?: AdminContactInfoDiscordWebhook
1991- sub_domain ?: AdminContactInfoSubDomain
1992- profile_title ?: AdminContactInfoProfileTitle
1993- support_url ?: AdminContactInfoSupportUrl
1994- notification_enable ?: AdminContactInfoNotificationEnable
1995- }
1996-
19971972/**
19981973 * Minimal admin model containing only the username.
19991974 */
0 commit comments