diff --git a/packages/protocol/openapi.json b/packages/protocol/openapi.json index 6f519677a81..0c01a29509a 100644 --- a/packages/protocol/openapi.json +++ b/packages/protocol/openapi.json @@ -4127,6 +4127,85 @@ "summary": "Get session message" } }, + "/api/session/{sessionID}/environment": { + "put": { + "tags": ["session"], + "operationId": "v2.session.environment", + "parameters": [ + { + "name": "sessionID", + "in": "path", + "schema": { + "type": "string", + "allOf": [ + { + "pattern": "^ses" + } + ] + }, + "required": true + } + ], + "security": [], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + }, + "404": { + "description": "SessionNotFoundError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionNotFoundError" + } + } + } + } + }, + "description": "Replace the process environment used by local shell commands for this session.", + "summary": "Set session environment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["variables"], + "additionalProperties": false + } + } + }, + "required": true + } + } + }, "/api/session/{sessionID}/message": { "get": { "tags": ["session"], diff --git a/packages/www/openapi.json b/packages/www/openapi.json index 6f519677a81..0c01a29509a 100644 --- a/packages/www/openapi.json +++ b/packages/www/openapi.json @@ -4127,6 +4127,85 @@ "summary": "Get session message" } }, + "/api/session/{sessionID}/environment": { + "put": { + "tags": ["session"], + "operationId": "v2.session.environment", + "parameters": [ + { + "name": "sessionID", + "in": "path", + "schema": { + "type": "string", + "allOf": [ + { + "pattern": "^ses" + } + ] + }, + "required": true + } + ], + "security": [], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + }, + "404": { + "description": "SessionNotFoundError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionNotFoundError" + } + } + } + } + }, + "description": "Replace the process environment used by local shell commands for this session.", + "summary": "Set session environment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["variables"], + "additionalProperties": false + } + } + }, + "required": true + } + } + }, "/api/session/{sessionID}/message": { "get": { "tags": ["session"], diff --git a/packages/www/public/openapi.json b/packages/www/public/openapi.json index 6f519677a81..0c01a29509a 100644 --- a/packages/www/public/openapi.json +++ b/packages/www/public/openapi.json @@ -4127,6 +4127,85 @@ "summary": "Get session message" } }, + "/api/session/{sessionID}/environment": { + "put": { + "tags": ["session"], + "operationId": "v2.session.environment", + "parameters": [ + { + "name": "sessionID", + "in": "path", + "schema": { + "type": "string", + "allOf": [ + { + "pattern": "^ses" + } + ] + }, + "required": true + } + ], + "security": [], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + }, + "404": { + "description": "SessionNotFoundError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionNotFoundError" + } + } + } + } + }, + "description": "Replace the process environment used by local shell commands for this session.", + "summary": "Set session environment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["variables"], + "additionalProperties": false + } + } + }, + "required": true + } + } + }, "/api/session/{sessionID}/message": { "get": { "tags": ["session"],