mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-05 00:36:09 +03:00
Merge remote-tracking branch 'origin/main' into codex/nodes-fleet-7342
This commit is contained in:
@@ -1639,6 +1639,14 @@ export const EXAMPLES: Record<string, unknown> = {
|
||||
],
|
||||
"target": "old.example.com:443"
|
||||
},
|
||||
"RemoteInboundOption": {
|
||||
"id": 7,
|
||||
"listen": "127.0.0.1",
|
||||
"port": 443,
|
||||
"protocol": "vless",
|
||||
"remark": "VLESS-443",
|
||||
"tag": "in-443"
|
||||
},
|
||||
"ServerSettings": {
|
||||
"contentPaddingAddition": "",
|
||||
"disableCookies": false,
|
||||
|
||||
@@ -6055,6 +6055,43 @@ export const SCHEMAS: Record<string, unknown> = {
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"RemoteInboundOption": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"example": 7,
|
||||
"type": "integer"
|
||||
},
|
||||
"listen": {
|
||||
"example": "127.0.0.1",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"example": 443,
|
||||
"type": "integer"
|
||||
},
|
||||
"protocol": {
|
||||
"example": "vless",
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"example": "VLESS-443",
|
||||
"type": "string"
|
||||
},
|
||||
"tag": {
|
||||
"example": "in-443",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"listen",
|
||||
"port",
|
||||
"protocol",
|
||||
"remark",
|
||||
"tag"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerSettings": {
|
||||
"description": "ServerSettings is the \"server\" block of an AmneziaWG inbound's Settings\nJSON: the interface-level configuration shared by every client/peer. The\nlisten port is deliberately not duplicated here — it lives on the inbound\nrow itself (Inbound.Port), like every other protocol.",
|
||||
"properties": {
|
||||
|
||||
@@ -1364,6 +1364,15 @@ export interface RealityWatchStatus {
|
||||
target: string;
|
||||
}
|
||||
|
||||
export interface RemoteInboundOption {
|
||||
id: number;
|
||||
listen: string;
|
||||
port: number;
|
||||
protocol: Protocol;
|
||||
remark: string;
|
||||
tag: string;
|
||||
}
|
||||
|
||||
export interface ServerSettings {
|
||||
contentPaddingAddition?: string;
|
||||
disableCookies: boolean;
|
||||
|
||||
@@ -1461,6 +1461,16 @@ export const RealityWatchStatusSchema = z.object({
|
||||
});
|
||||
export type RealityWatchStatus = z.infer<typeof RealityWatchStatusSchema>;
|
||||
|
||||
export const RemoteInboundOptionSchema = z.object({
|
||||
id: z.number().int(),
|
||||
listen: z.string(),
|
||||
port: z.number().int(),
|
||||
protocol: z.lazy(() => ProtocolSchema),
|
||||
remark: z.string(),
|
||||
tag: z.string(),
|
||||
});
|
||||
export type RemoteInboundOption = z.infer<typeof RemoteInboundOptionSchema>;
|
||||
|
||||
export const ServerSettingsSchema = z.object({
|
||||
contentPaddingAddition: z.string().optional(),
|
||||
disableCookies: z.boolean(),
|
||||
|
||||
@@ -303,6 +303,16 @@ export const sections: readonly Section[] = [
|
||||
response:
|
||||
'{\n "success": true,\n "obj": [\n {\n "id": 1,\n "remark": "VLESS-443",\n "settings": {\n "clients": [\n { "email": "alice", "enable": true }\n ],\n "decryption": "none"\n },\n "clientStats": []\n }\n ]\n}',
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/panel/api/inbounds/catalog',
|
||||
summary:
|
||||
'List inbound metadata for the authenticated user. Returns id, tag, remark, listen, protocol, and port for remote ID lookup and reconciliation.',
|
||||
description:
|
||||
'Available to panel sessions, admin, node-admin, and node-sync tokens. The catalog queries only metadata columns. An empty catalog is returned as an empty array.',
|
||||
responseSchema: 'RemoteInboundOption',
|
||||
responseSchemaArray: true,
|
||||
},
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/panel/api/inbounds/options',
|
||||
|
||||
Reference in New Issue
Block a user