Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 98 additions & 47 deletions pint-openapi-bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,6 @@
"schema": {
"$ref": "#/components/schemas/ExecListResponse"
}
},
"text/event-stream": {
"schema": {
"type": "string",
"description": "Server-Sent Events stream of exec updates"
}
}
}
},
Expand Down Expand Up @@ -1042,12 +1036,6 @@
"200": {
"description": "Exec output retrieved successfully",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ExecStdout",
"description": "Plain text exec output"
}
},
"text/event-stream": {
"schema": {
"type": "string",
Expand Down Expand Up @@ -1638,14 +1626,62 @@
}
}
},
"/api/v1/ports/stream": {
"/api/v1/stream/execs": {
"get": {
"summary": "List all execs",
"tags": [
"execs"
],
"description": "Returns a list of all active execs using SSE.",
"operationId": "StreamExecsList",
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Execs retrieved successfully",
"content": {
"text/event-stream": {
"schema": {
"type": "string",
"description": "Server-Sent Events stream of exec updates"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"default": {
"description": "Unexpected Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/api/v1/stream/ports": {
"get": {
"summary": "List open ports using Server-Sent Events (SSE)",
"tags": [
"ports"
],
"description": "Lists all open TCP ports on the system AND LISTEN TO THE CHANGES, excluding ignored ports configured in the server.",
"operationId": "ListPortsSSE",
"operationId": "StreamPortsList",
"security": [
{
"bearerAuth": []
Expand Down Expand Up @@ -1889,14 +1925,24 @@
"pid": {
"type": "integer",
"description": "Process ID of the exec"
},
"interactive": {
"type": "boolean",
"description": "Whether the exec is interactive"
},
"exitCode": {
"type": "integer",
"description": "Exit code of the process (only present when process has exited)"
}
},
"required": [
"id",
"command",
"args",
"status",
"pid"
"pid",
"interactive",
"exitCode"
]
},
"ExecListResponse": {
Expand Down Expand Up @@ -1969,38 +2015,6 @@
"message"
]
},
"ExecStdout": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the exec output",
"enum": [
"stdout",
"stderr"
]
},
"output": {
"type": "string",
"description": "Data associated with the exec output"
},
"sequence": {
"type": "integer",
"format": "int32",
"description": "Sequence number of the output message"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of when the output was generated"
}
},
"required": [
"type",
"output",
"sequence"
]
},
"ExecStdin": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2296,6 +2310,43 @@
"ports"
]
},
"ExecStdout": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the exec output",
"enum": [
"stdout",
"stderr"
]
},
"output": {
"type": "string",
"description": "Data associated with the exec output"
},
"sequence": {
"type": "integer",
"format": "int32",
"description": "Sequence number of the output message"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of when the output was generated"
},
"exitCode": {
"type": "integer",
"description": "Exit code of the process (only present when process has exited)"
}
},
"required": [
"type",
"output",
"sequence",
"exitCode"
]
},
"Task": {
"$ref": "#/components/schemas/TaskItem"
}
Expand Down