From 715f342992a53aa3e8008083ad99958a2d2b0997 Mon Sep 17 00:00:00 2001 From: "konfig-bot[bot]" <121480725+konfig-bot[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:00:47 +0000 Subject: [PATCH] Update OpenAPI Specification (composio.json) --- composio.json | 270 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 267 insertions(+), 3 deletions(-) diff --git a/composio.json b/composio.json index a6af8d2..7c90dd0 100644 --- a/composio.json +++ b/composio.json @@ -6,7 +6,7 @@ "id": { "type": "string" }, - "clientId": { + "projectId": { "type": "string" }, "email": { @@ -60,7 +60,7 @@ "type": "object", "required": [ "id", - "clientId", + "projectId", "email", "name", "role", @@ -191,13 +191,18 @@ "email": { "type": "string", "description": "The email associated with the client" + }, + "orgId": { + "type": "string", + "description": "The organization ID associated with the client" } }, "type": "object", "required": [ "clientId", "apiKey", - "email" + "email", + "orgId" ] }, "UserGitUserInfo": { @@ -375,6 +380,50 @@ "apiKey" ] }, + "ProjectReqDTO": { + "properties": { + "name": { + "type": "string", + "description": "The name of the project" + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "ProjectResDTO": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the project" + }, + "name": { + "type": "string", + "description": "The name of the project" + } + }, + "type": "object", + "required": [ + "id", + "name" + ] + }, + "ProjectListResDTO": { + "properties": { + "items": { + "items": { + "type": "object" + }, + "type": "array", + "description": "The list of projects" + } + }, + "type": "object", + "required": [ + "items" + ] + }, "InviteMemberReqDTO": { "properties": { "email": { @@ -2163,6 +2212,72 @@ "totalPages" ] }, + "AdvancedUseCaseSearchQueryDTO": { + "properties": { + "useCase": { + "type": "string" + }, + "limit": { + "type": "number" + }, + "maxActionsPerTask": { + "type": "number" + }, + "minActionsPerTask": { + "type": "number" + }, + "apps": { + "type": "string" + }, + "filterByAvailableApps": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "useCase" + ] + }, + "AdvancedUseCaseSearchTask": { + "properties": { + "app": { + "type": "string" + }, + "actions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "type": "string" + }, + "order": { + "type": "number" + } + }, + "type": "object", + "required": [ + "app", + "actions", + "description", + "order" + ] + }, + "AdvancedUseCaseSearchResponse": { + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/AdvancedUseCaseSearchTask" + }, + "type": "array" + } + }, + "type": "object", + "required": [ + "items" + ] + }, "ExecuteActionResDTO": { "properties": { "response_data": { @@ -3844,6 +3959,83 @@ "description": "Get client info" } }, + "/api/v1/client/auth/project/add": { + "post": { + "operationId": "_addProject", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectReqDTO" + } + } + }, + "description": "ProjectReqDTO", + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": {} + }, + "description": "Successful response" + } + }, + "summary": "Add project", + "tags": [ + "Auth" + ] + } + }, + "/api/v1/client/auth/project/delete/{projectId}": { + "delete": { + "operationId": "_deleteProject", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": {} + }, + "description": "Successful response" + } + }, + "summary": "Delete project", + "tags": [ + "Auth" + ] + } + }, + "/api/v1/client/auth/projects": { + "get": { + "operationId": "_getProjects", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectListResDTO" + } + } + }, + "description": "" + } + }, + "summary": "Get projects", + "tags": [ + "Auth" + ] + } + }, "/api/v1/api_keys": { "post": { "operationId": "_generateAPIKey", @@ -5715,6 +5907,78 @@ "description": "Execute an action with direct auth." } }, + "/api/v2/actions/search/advanced": { + "get": { + "operationId": "_advancedUseCaseSearch", + "parameters": [ + { + "in": "query", + "name": "useCase", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "type": "number" + } + }, + { + "in": "query", + "name": "maxActionsPerTask", + "required": false, + "schema": { + "type": "number" + } + }, + { + "in": "query", + "name": "minActionsPerTask", + "required": false, + "schema": { + "type": "number" + } + }, + { + "in": "query", + "name": "apps", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filterByAvailableApps", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdvancedUseCaseSearchResponse" + } + } + }, + "description": "" + } + }, + "summary": "Advanced use case search", + "tags": [ + "Actions" + ], + "description": "Perform use case search." + } + }, "/api/v2/triggers/{triggerName}": { "get": { "operationId": "_getTriggerInfoV2",