From 7523f7a157d6c9d20e0e2bcd2a6ae293a11c3054 Mon Sep 17 00:00:00 2001 From: "konfig-bot[bot]" <121480725+konfig-bot[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:31:25 +0000 Subject: [PATCH 1/2] Update OpenAPI Specification (composio.json) --- composio.json | 2634 ++++++++++++++++++++++++++++++------------------- 1 file changed, 1638 insertions(+), 996 deletions(-) diff --git a/composio.json b/composio.json index e00b7e7..fe5e6f4 100644 --- a/composio.json +++ b/composio.json @@ -2,9 +2,15 @@ "components": { "schemas": { "MagicLinkResDTO": { - "properties": { "status": { "type": "string" } }, + "properties": { + "status": { + "type": "string" + } + }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "MagicLinkReqDTO": { "properties": { @@ -19,7 +25,10 @@ } }, "type": "object", - "required": ["email", "verifyHost"] + "required": [ + "email", + "verifyHost" + ] }, "LogoutResDTO": { "properties": { @@ -29,24 +38,45 @@ } }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "VerifyMagicLinkReqDTO": { "properties": { - "token": { "type": "string", "description": "The magic link token" } + "token": { + "type": "string", + "description": "The magic link token" + } }, "type": "object", - "required": ["token"] + "required": [ + "token" + ] }, "VerifyMagicLinkDataDTO": { "properties": { - "clientId": { "type": "string" }, - "isValid": { "type": "boolean" }, - "jwtToken": { "type": "string" }, - "email": { "type": "string", "format": "email" } + "clientId": { + "type": "string" + }, + "isValid": { + "type": "boolean" + }, + "jwtToken": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + } }, "type": "object", - "required": ["clientId", "isValid", "jwtToken", "email"], + "required": [ + "clientId", + "isValid", + "jwtToken", + "email" + ], "description": "Data containing client and token information if verification is successful" }, "VerifyMagicLinkResDTO": { @@ -55,25 +85,37 @@ "type": "string", "description": "Message indicating the result of the verification" }, - "data": { "$ref": "#/components/schemas/VerifyMagicLinkDataDTO" } + "data": { + "$ref": "#/components/schemas/VerifyMagicLinkDataDTO" + } }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "IdentifyClientReqDTO": { "properties": { - "hash": { "type": "string", "description": "The hash of the client" }, + "hash": { + "type": "string", + "description": "The hash of the client" + }, "framework": { "type": "string", "description": "The framework used by the client" } }, "type": "object", - "required": ["hash"] + "required": [ + "hash" + ] }, "IdentifyClientResDTO": { "properties": { - "clientId": { "type": "string", "description": "The client ID" }, + "clientId": { + "type": "string", + "description": "The client ID" + }, "apiKey": { "type": "string", "description": "The API key associated with the client" @@ -84,15 +126,26 @@ } }, "type": "object", - "required": ["clientId", "apiKey", "email"] + "required": [ + "clientId", + "apiKey", + "email" + ] }, "UserGitUserInfo": { "properties": { - "name": { "type": "string" }, - "email": { "format": "email", "type": "string" } + "name": { + "type": "string" + }, + "email": { + "format": "email", + "type": "string" + } }, "type": "object", - "required": ["email"], + "required": [ + "email" + ], "description": "User Git information" }, "TrackClientReqDTO": { @@ -110,7 +163,9 @@ } }, "type": "object", - "required": ["framework"] + "required": [ + "framework" + ] }, "TrackClientResDTO": { "properties": { @@ -120,7 +175,9 @@ } }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "DeleteRowAPIDTO": { "properties": { @@ -134,7 +191,10 @@ } }, "type": "object", - "required": ["status", "count"] + "required": [ + "status", + "count" + ] }, "InviteMemberReqDTO": { "properties": { @@ -143,14 +203,21 @@ "type": "string", "description": "The email of the member" }, - "name": { "type": "string", "description": "The name of the member" }, + "name": { + "type": "string", + "description": "The name of the member" + }, "verifyHost": { "type": "string", "description": "The host to verify the member" } }, "type": "object", - "required": ["email", "name", "verifyHost"] + "required": [ + "email", + "name", + "verifyHost" + ] }, "MemberResDTO": { "properties": { @@ -162,7 +229,10 @@ "type": "string", "description": "The uuid identifier for the member" }, - "name": { "type": "string", "description": "The name of the member" }, + "name": { + "type": "string", + "description": "The name of the member" + }, "createdAt": { "pattern": "\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d.\\d+Z?", "type": "string", @@ -175,7 +245,11 @@ } }, "type": "object", - "required": ["email", "id", "name"] + "required": [ + "email", + "id", + "name" + ] }, "GenerateAPIKeyReqDTO": { "properties": { @@ -185,11 +259,16 @@ } }, "type": "object", - "required": ["name"] + "required": [ + "name" + ] }, "APIKeyResDTO": { "properties": { - "id": { "type": "string", "description": "The ID of the API key" }, + "id": { + "type": "string", + "description": "The ID of the API key" + }, "name": { "type": "string", "description": "The name of the API key" @@ -204,10 +283,19 @@ "type": "string", "description": "The last update date of the API key" }, - "key": { "type": "string", "description": "The generated API key" } + "key": { + "type": "string", + "description": "The generated API key" + } }, "type": "object", - "required": ["id", "name", "createdAt", "updatedAt", "key"] + "required": [ + "id", + "name", + "createdAt", + "updatedAt", + "key" + ] }, "DeleteAPIKeyReqDTO": { "properties": { @@ -217,7 +305,9 @@ } }, "type": "object", - "required": ["id"] + "required": [ + "id" + ] }, "DeleteAPIKeyResponseDTO": { "properties": { @@ -227,7 +317,9 @@ } }, "type": "object", - "required": ["deleted"] + "required": [ + "deleted" + ] }, "SingleAppInfoResDTO": { "properties": { @@ -235,19 +327,33 @@ "type": "string", "description": "The unique identifier for the app" }, - "key": { "type": "string", "description": "The key of the app" }, - "name": { "type": "string", "description": "The name of the app" }, + "key": { + "type": "string", + "description": "The key of the app" + }, + "name": { + "type": "string", + "description": "The name of the app" + }, "description": { "type": "string", "description": "The description of the app" }, - "logo": { "type": "string", "description": "The logo of the app" }, + "logo": { + "type": "string", + "description": "The logo of the app" + }, "categories": { - "items": { "type": "string" }, + "items": { + "type": "string" + }, "type": "array", "description": "The categories of the app" }, - "path": { "type": "string", "description": "The path of the app" }, + "path": { + "type": "string", + "description": "The path of the app" + }, "docs": { "type": "string", "description": "The documentation URL of the app" @@ -265,7 +371,9 @@ "description": "The documentation text of the app" }, "testConnectors": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "array", "description": "The test connectors of the app" }, @@ -274,19 +382,33 @@ "description": "Indicates if the app has no authentication" }, "auth_schemes": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "array", "description": "The authentication schemes of the app" }, - "meta": { "description": "The metadata of the app" }, - "yaml": { "description": "The yaml of the app" } + "meta": { + "description": "The metadata of the app" + }, + "yaml": { + "description": "The yaml of the app" + } }, "type": "object", - "required": ["appId", "key", "name", "description"] + "required": [ + "appId", + "key", + "name", + "description" + ] }, "AddToolsReqDTO": { "properties": { - "name": { "type": "string", "description": "The name of the tool" }, + "name": { + "type": "string", + "description": "The name of the tool" + }, "openApiSpecYaml": { "type": "string", "description": "The OpenAPI specification in YAML format" @@ -297,7 +419,11 @@ } }, "type": "object", - "required": ["name", "openApiSpecYaml", "integrationYaml"] + "required": [ + "name", + "openApiSpecYaml", + "integrationYaml" + ] }, "OpenAPISpecListResDTO": { "properties": { @@ -309,7 +435,10 @@ "type": "string", "description": "Name of the OpenAPI spec" }, - "clientId": { "type": "string", "description": "Client identifier" }, + "clientId": { + "type": "string", + "description": "Client identifier" + }, "openApiSpec": { "type": "string", "description": "OpenAPI specification in YAML format" @@ -353,7 +482,11 @@ "format": "date-time" }, "jobStatus": { - "enum": ["running", "success", "failed"], + "enum": [ + "running", + "success", + "failed" + ], "type": "string", "description": "The job status of the app" } @@ -373,17 +506,27 @@ }, "AddRepoURLResDTO": { "properties": { - "repoUrl": { "type": "string", "description": "Repository URL" } + "repoUrl": { + "type": "string", + "description": "Repository URL" + } }, "type": "object", - "required": ["repoUrl"] + "required": [ + "repoUrl" + ] }, "DeleteToolsReqDTO": { "properties": { - "name": { "type": "string", "description": "Name of the tool" } + "name": { + "type": "string", + "description": "Name of the tool" + } }, "type": "object", - "required": ["name"] + "required": [ + "name" + ] }, "DeleteToolsResDTO": { "properties": { @@ -393,11 +536,16 @@ } }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "AddToolsRequestDTO": { "properties": { - "name": { "type": "string", "description": "The name of the tool" }, + "name": { + "type": "string", + "description": "The name of the tool" + }, "open_api_spec_yaml": { "type": "string", "description": "The OpenAPI specification in YAML format" @@ -408,33 +556,59 @@ } }, "type": "object", - "required": ["name", "open_api_spec_yaml", "integration_yaml"] + "required": [ + "name", + "open_api_spec_yaml", + "integration_yaml" + ] }, "AddRepoURLReqDTO": { "properties": { - "repoUrl": { "type": "string", "description": "Repository URL" } + "repoUrl": { + "type": "string", + "description": "Repository URL" + } }, "type": "object", - "required": ["repoUrl"] + "required": [ + "repoUrl" + ] }, "AppQueryDTO": { "properties": { - "category": { "type": "string", "description": "Category of the app" } + "category": { + "type": "string", + "description": "Category of the app" + } }, "type": "object" }, "AppInfoResponseDto": { "properties": { - "appId": { "type": "string", "description": "The ID of the app" }, - "key": { "type": "string", "description": "The key of the app" }, - "name": { "type": "string", "description": "The name of the app" }, + "appId": { + "type": "string", + "description": "The ID of the app" + }, + "key": { + "type": "string", + "description": "The key of the app" + }, + "name": { + "type": "string", + "description": "The name of the app" + }, "description": { "type": "string", "description": "The description of the app" }, - "logo": { "type": "string", "description": "The logo of the app" }, + "logo": { + "type": "string", + "description": "The logo of the app" + }, "categories": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "string", "description": "The categories of the app" }, @@ -461,7 +635,9 @@ "AppListResDTO": { "properties": { "items": { - "items": { "$ref": "#/components/schemas/AppInfoResponseDto" }, + "items": { + "$ref": "#/components/schemas/AppInfoResponseDto" + }, "type": "array", "description": "List of app details" }, @@ -471,7 +647,10 @@ } }, "type": "object", - "required": ["items", "totalPages"] + "required": [ + "items", + "totalPages" + ] }, "GetConnectorInfoResDTO": { "properties": { @@ -483,7 +662,10 @@ "type": "string", "description": "Authentication scheme used by the connector" }, - "name": { "type": "string", "description": "Name of the connector" }, + "name": { + "type": "string", + "description": "Name of the connector" + }, "createdAt": { "pattern": "\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d.\\d+Z?", "type": "string", @@ -515,7 +697,9 @@ "description": "Authentication configuration with sensitive data obscured" }, "expectedInputFields": { - "items": { "type": "string" }, + "items": { + "type": "string" + }, "type": "array", "description": "List of required fields expected from the customer" }, @@ -545,33 +729,58 @@ }, "AuthConfigDTO": { "properties": { - "scopes": { "items": { "type": "string" }, "type": "array" }, - "user_scopes": { "items": { "type": "string" }, "type": "array" } + "scopes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "user_scopes": { + "items": { + "type": "string" + }, + "type": "array" + } }, "type": "object", "description": "Authentication configuration" }, "CreateConnectorPayloadDTO": { "properties": { - "name": { "type": "string", "description": "Name of the connector" }, + "name": { + "type": "string", + "description": "Name of the connector" + }, "authScheme": { "type": "string", "description": "Authentication scheme" }, - "authConfig": { "$ref": "#/components/schemas/AuthConfigDTO" }, + "authConfig": { + "$ref": "#/components/schemas/AuthConfigDTO" + }, "useComposioAuth": { "type": "boolean", "description": "Flag to indicate if Composio authentication should be used", - "anyOf": [{ "type": "boolean" }] + "anyOf": [ + { + "type": "boolean" + } + ] + }, + "appId": { + "type": "string", + "description": "Application ID" }, - "appId": { "type": "string", "description": "Application ID" }, "forceNewIntegration": { "type": "boolean", "description": "Flag to force new integration" } }, "type": "object", - "required": ["name", "appId"] + "required": [ + "name", + "appId" + ] }, "PatchConnectorReqDTO": { "properties": { @@ -594,7 +803,9 @@ } }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "ConnectorListItemDTO": { "properties": { @@ -607,7 +818,9 @@ "description": "Count of connections for the connector" }, "connections": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "array", "description": "List of connections with their details and request logs count" }, @@ -615,22 +828,37 @@ "type": "string", "description": "Unique identifier of the connector" }, - "name": { "type": "string", "description": "Name of the connector" }, + "name": { + "type": "string", + "description": "Name of the connector" + }, "authScheme": { "type": "string", "description": "Authentication scheme used by the connector" }, "createdAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ], "description": "Creation date of the connector" }, "updatedAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ], "description": "Last update date of the connector" }, @@ -668,7 +896,9 @@ "GetConnectorListResDTO": { "properties": { "items": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "array", "description": "List of connectors" }, @@ -676,46 +906,104 @@ "type": "number", "description": "Total number of pages available" }, - "page": { "type": "number", "description": "Current page number" } + "page": { + "type": "number", + "description": "Current page number" + } }, "type": "object", - "required": ["items", "totalPages", "page"] + "required": [ + "items", + "totalPages", + "page" + ] }, "PageInfo": { "properties": { - "total": { "minimum": 0, "type": "integer" }, - "page": { "minimum": 1, "type": "integer" }, - "pageSize": { "minimum": 1, "type": "integer" }, - "totalPages": { "minimum": 1, "type": "integer" } + "total": { + "minimum": 0, + "type": "integer" + }, + "page": { + "minimum": 1, + "type": "integer" + }, + "pageSize": { + "minimum": 1, + "type": "integer" + }, + "totalPages": { + "minimum": 1, + "type": "integer" + } }, "type": "object", - "required": ["total", "page", "pageSize", "totalPages"] + "required": [ + "total", + "page", + "pageSize", + "totalPages" + ] }, "ConnectionWithAppData": { "properties": { - "id": { "type": "string" }, - "integrationId": { "type": "string" }, - "clientUniqueUserId": { "type": "string" }, - "status": { "type": "string" }, - "data": { "type": "object" }, - "deleted": { "type": "boolean" }, - "enabled": { "type": "boolean" }, + "id": { + "type": "string" + }, + "integrationId": { + "type": "string" + }, + "clientUniqueUserId": { + "type": "string" + }, + "status": { + "type": "string" + }, + "data": { + "type": "object" + }, + "deleted": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, "createdAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ] }, "updatedAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ] }, - "appUniqueId": { "type": "string" }, - "appName": { "type": "string" }, - "logo": { "type": "string" }, - "authConfig": { "type": "object" } + "appUniqueId": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "authConfig": { + "type": "object" + } }, "type": "object", "required": [ @@ -731,75 +1019,162 @@ "GetConnectionsResult": { "properties": { "connections": { - "items": { "$ref": "#/components/schemas/ConnectionWithAppData" }, + "items": { + "$ref": "#/components/schemas/ConnectionWithAppData" + }, "type": "array" }, - "pageInfo": { "$ref": "#/components/schemas/PageInfo" } + "pageInfo": { + "$ref": "#/components/schemas/PageInfo" + } }, "type": "object", - "required": ["connections", "pageInfo"] + "required": [ + "connections", + "pageInfo" + ] }, "ToolsExecuteReqDto": { "properties": { - "actionName": { "type": "string" }, - "runInSandbox": { "type": "boolean" }, - "input": { "type": "object" }, - "nlaInput": { "type": "string" }, - "authorizationData": { "type": "object" }, - "appSchema": { "type": "object" } + "actionName": { + "type": "string" + }, + "runInSandbox": { + "type": "boolean" + }, + "input": { + "type": "object" + }, + "nlaInput": { + "type": "string" + }, + "authorizationData": { + "type": "object" + }, + "appSchema": { + "type": "object" + } }, "type": "object", - "required": ["actionName", "runInSandbox", "input"] + "required": [ + "actionName", + "runInSandbox", + "input" + ] }, "DirectExecuteReqDto": { "properties": { - "endpoint": { "type": "string" }, - "base_url": { "type": "string" }, - "headers": { "type": "object" }, - "queryParams": { "type": "object" } + "endpoint": { + "type": "string" + }, + "base_url": { + "type": "string" + }, + "headers": { + "type": "object" + }, + "queryParams": { + "type": "object" + } }, "type": "object", - "required": ["endpoint", "base_url", "headers", "queryParams"] + "required": [ + "endpoint", + "base_url", + "headers", + "queryParams" + ] }, "ActionExecutionResDto": { "properties": { - "data": { "type": "object" }, - "error": { "type": "string" }, - "successfull": { "type": "string" } + "data": { + "type": "object" + }, + "error": { + "type": "string" + }, + "successfull": { + "type": "string" + } }, "type": "object", - "required": ["data"] + "required": [ + "data" + ] }, "ActionExecutionReqDTO": { "properties": { - "connectedAccountId": { "type": "string" }, - "appName": { "type": "string" }, - "entityId": { "type": "string" }, - "endpoint": { "type": "string" }, - "input": { "type": "object" }, - "text": { "type": "string" } + "connectedAccountId": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "entityId": { + "type": "string" + }, + "endpoint": { + "type": "string" + }, + "input": { + "type": "object" + }, + "text": { + "type": "string" + } }, "type": "object" }, "ProxyExecutionReqDTO": { "properties": { - "endpoint": { "type": "string" }, - "connectedAccountId": { "type": "string" } + "endpoint": { + "type": "string" + }, + "connectedAccountId": { + "type": "string" + } }, "type": "object", - "required": ["endpoint", "connectedAccountId"] + "required": [ + "endpoint", + "connectedAccountId" + ] }, "ActionDetailsMinimal": { "properties": { - "appId": { "type": "string" }, - "appKey": { "type": "string" }, - "appName": { "type": "string" }, - "description": { "type": "string" }, - "displayName": { "type": "string" }, - "enabled": { "type": "boolean" }, - "logo": { "type": "string" }, - "name": { "type": "string" }, - "tags": { "items": { "type": "string" }, "type": "array" } + "appId": { + "type": "string" + }, + "appKey": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "deprecated": { + "type": "boolean" + } }, "type": "object", "required": [ @@ -810,22 +1185,51 @@ "enabled", "logo", "name", - "tags" + "tags", + "deprecated" ] }, "ActionDetails": { "properties": { - "parameters": { "type": "object" }, - "response": { "type": "object" }, - "appId": { "type": "string" }, - "appKey": { "type": "string" }, - "appName": { "type": "string" }, - "description": { "type": "string" }, - "displayName": { "type": "string" }, - "enabled": { "type": "boolean" }, - "logo": { "type": "string" }, - "name": { "type": "string" }, - "tags": { "items": { "type": "string" }, "type": "array" } + "parameters": { + "type": "object" + }, + "response": { + "type": "object" + }, + "appId": { + "type": "string" + }, + "appKey": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "deprecated": { + "type": "boolean" + } }, "type": "object", "required": [ @@ -838,32 +1242,53 @@ "enabled", "logo", "name", - "tags" + "tags", + "deprecated" ] }, "ActionsListResponseDTO": { "properties": { "items": { - "items": { "$ref": "#/components/schemas/ActionDetails" }, + "items": { + "$ref": "#/components/schemas/ActionDetails" + }, "type": "array" }, - "page": { "type": "number" }, - "totalPages": { "type": "number" } + "page": { + "type": "number" + }, + "totalPages": { + "type": "number" + } }, "type": "object", - "required": ["items", "page", "totalPages"] + "required": [ + "items", + "page", + "totalPages" + ] }, "ActionsMinimalListResponseDTO": { "properties": { "items": { - "items": { "$ref": "#/components/schemas/ActionDetailsMinimal" }, + "items": { + "$ref": "#/components/schemas/ActionDetailsMinimal" + }, "type": "array" }, - "page": { "type": "number" }, - "totalPages": { "type": "number" } + "page": { + "type": "number" + }, + "totalPages": { + "type": "number" + } }, "type": "object", - "required": ["items", "page", "totalPages"] + "required": [ + "items", + "page", + "totalPages" + ] }, "ExecuteActionResDTO": { "properties": { @@ -877,61 +1302,132 @@ } }, "type": "object", - "required": ["response_data", "execution_details"] + "required": [ + "response_data", + "execution_details" + ] }, "ActionsQueryDTO": { "properties": { - "appNames": { "type": "string", "description": "Names of the apps" }, - "useCase": { "type": "string", "description": "Use case" }, + "appNames": { + "type": "string", + "description": "Names of the apps" + }, + "useCase": { + "type": "string", + "description": "Use case" + }, "showEnabledOnly": { "type": "boolean", "description": "Show enabled only" }, - "limit": { "type": "number", "description": "Limit" }, - "apps": { "type": "string" }, - "actions": { "type": "string" }, - "tags": { "type": "string" }, - "usecaseLimit": { "type": "number" }, - "filterImportantActions": { "type": "boolean" }, - "showAll": { "type": "boolean" } + "limit": { + "type": "number", + "description": "Limit" + }, + "apps": { + "type": "string" + }, + "actions": { + "type": "string" + }, + "tags": { + "type": "string" + }, + "usecaseLimit": { + "type": "number" + }, + "filterImportantActions": { + "type": "boolean" + }, + "showAll": { + "type": "boolean" + } }, "type": "object" }, "ActionsControllerV1": { "properties": { - "getAction": { "items": { "type": "object" }, "type": "array" } + "getAction": { + "items": { + "type": "object" + }, + "type": "array" + } }, "type": "object", - "required": ["getAction"] + "required": [ + "getAction" + ] }, "ConnectionParams": { "properties": { - "integrationId": { "type": "string" }, - "connectionParams": { "type": "object" }, - "isDisabled": { "type": "boolean" }, - "invocationCount": { "type": "number" }, - "id": { "type": "string" }, - "clientUniqueUserId": { "type": "string" }, - "status": { "type": "string" }, - "data": { "type": "object" }, - "deleted": { "type": "boolean" }, - "enabled": { "type": "boolean" }, + "integrationId": { + "type": "string" + }, + "connectionParams": { + "type": "object" + }, + "isDisabled": { + "type": "boolean" + }, + "invocationCount": { + "type": "number" + }, + "id": { + "type": "string" + }, + "clientUniqueUserId": { + "type": "string" + }, + "status": { + "type": "string" + }, + "data": { + "type": "object" + }, + "deleted": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, "createdAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ] }, "updatedAt": { "oneOf": [ - { "format": "date", "type": "string" }, - { "format": "date-time", "type": "string" } + { + "format": "date", + "type": "string" + }, + { + "format": "date-time", + "type": "string" + } ] }, - "appUniqueId": { "type": "string" }, - "appName": { "type": "string" }, - "logo": { "type": "string" }, - "authConfig": { "type": "object" } + "appUniqueId": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "authConfig": { + "type": "object" + } }, "type": "object", "required": [ @@ -947,57 +1443,125 @@ ] }, "ToggleConnectedAccountResponseDTO": { - "properties": { "status": { "type": "string" } }, + "properties": { + "status": { + "type": "string" + } + }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "ConnectionParamsHeaders": { "properties": { - "Authorization": { "type": "string" }, - "x-request-id": { "type": "string" } + "Authorization": { + "type": "string" + }, + "x-request-id": { + "type": "string" + } }, "type": "object" }, "ConnectionParamsForAccount": { "properties": { - "scope": { "type": "string" }, - "scopes": { "type": "string" }, - "id_token": { "type": "string" }, - "client_id": { "type": "string" }, - "expires_in": { "type": "string" }, - "token_type": { "type": "string" }, - "callback_url": { "type": "string" }, - "client_secret": { "type": "string" }, - "code_verifier": { "type": "string" }, - "refresh_token": { "type": "string" }, - "headers": { "type": "object" }, - "queryParams": { "type": "object" }, - "base_url": { "type": "string" } + "scope": { + "type": "string" + }, + "scopes": { + "type": "string" + }, + "id_token": { + "type": "string" + }, + "client_id": { + "type": "string" + }, + "expires_in": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "callback_url": { + "type": "string" + }, + "client_secret": { + "type": "string" + }, + "code_verifier": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "headers": { + "type": "object" + }, + "queryParams": { + "type": "object" + }, + "base_url": { + "type": "string" + } }, "type": "object" }, "MetaApp": { - "properties": { "get_current_user_endpoint": { "type": "string" } }, + "properties": { + "get_current_user_endpoint": { + "type": "string" + } + }, "type": "object", - "required": ["get_current_user_endpoint"] + "required": [ + "get_current_user_endpoint" + ] }, "Meta": { - "properties": { "app": { "type": "object" } }, + "properties": { + "app": { + "type": "object" + } + }, "type": "object", - "required": ["app"] + "required": [ + "app" + ] }, "ConnectedAccountResponseDTO": { "properties": { - "integrationId": { "type": "string" }, - "appUniqueId": { "type": "string" }, - "meta": { "$ref": "#/components/schemas/Meta" }, - "isDisabled": { "type": "boolean" }, - "id": { "type": "string" }, - "clientUniqueUserId": { "type": "string" }, - "status": { "type": "string" }, - "enabled": { "type": "boolean" }, - "createdAt": { "type": "string" }, - "updatedAt": { "type": "string" } + "integrationId": { + "type": "string" + }, + "appUniqueId": { + "type": "string" + }, + "meta": { + "$ref": "#/components/schemas/Meta" + }, + "isDisabled": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "clientUniqueUserId": { + "type": "string" + }, + "status": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } }, "type": "object", "required": [ @@ -1013,60 +1577,124 @@ "GetConnectionsResponseDto": { "properties": { "items": { - "items": { "$ref": "#/components/schemas/ConnectionParams" }, + "items": { + "$ref": "#/components/schemas/ConnectionParams" + }, "type": "array" }, - "totalPages": { "type": "number" }, - "page": { "type": "number" } + "totalPages": { + "type": "number" + }, + "page": { + "type": "number" + } }, "type": "object", - "required": ["items", "totalPages", "page"] + "required": [ + "items", + "totalPages", + "page" + ] }, "GetConnectionsQueryDto": { "properties": { - "page": { "type": "number" }, - "pageSize": { "type": "number" }, - "appNames": { "type": "string" }, - "integrationId": { "type": "string" }, - "connectionId": { "type": "string" }, - "user_uuid": { "type": "string" }, - "showActiveOnly": { "type": "boolean" }, - "status": { "type": "string" }, - "showDisabled": { "type": "boolean" } + "page": { + "type": "number" + }, + "pageSize": { + "type": "number" + }, + "appNames": { + "type": "string" + }, + "integrationId": { + "type": "string" + }, + "connectionId": { + "type": "string" + }, + "user_uuid": { + "type": "string" + }, + "showActiveOnly": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "showDisabled": { + "type": "boolean" + } }, "type": "object" }, "InitiateConnectionPayloadDto": { "properties": { - "data": { "type": "string", "minLength": 1 }, - "integrationId": { "minLength": 1, "type": "string" }, - "redirectUri": { "type": "string" }, - "userUuid": { "type": "string" } + "data": { + "type": "string", + "minLength": 1 + }, + "integrationId": { + "minLength": 1, + "type": "string" + }, + "redirectUri": { + "type": "string" + }, + "userUuid": { + "type": "string" + } }, "type": "object", - "required": ["integrationId"] + "required": [ + "integrationId" + ] }, "InitiateConnectionResponse": { "properties": { - "connectionStatus": { "minLength": 1, "type": "string" }, - "connectedAccountId": { "minLength": 1, "type": "string" }, - "redirectUrl": { "type": "string" } + "connectionStatus": { + "minLength": 1, + "type": "string" + }, + "connectedAccountId": { + "minLength": 1, + "type": "string" + }, + "redirectUrl": { + "type": "string" + } }, "type": "object", - "required": ["connectionStatus", "connectedAccountId"] + "required": [ + "connectionStatus", + "connectedAccountId" + ] }, "OAuth2CallbackQueryDto": { - "properties": { "state": { "type": "string" } }, + "properties": { + "state": { + "type": "string" + } + }, "type": "object", - "required": ["state"] + "required": [ + "state" + ] }, "RedirectUriDTO": { - "properties": { "redirectUri": { "type": "string" } }, + "properties": { + "redirectUri": { + "type": "string" + } + }, "type": "object" }, "ListTriggersQueryDTO": { "properties": { - "appNames": { "type": "string", "description": "Names of the apps" }, + "appNames": { + "type": "string", + "description": "Names of the apps" + }, "connectedAccountIds": { "type": "string", "description": "IDs of the connected accounts" @@ -1100,8 +1728,14 @@ "type": "string", "description": "Names of the triggers" }, - "page": { "type": "number", "description": "Page number" }, - "limit": { "type": "number", "description": "Limit per page" }, + "page": { + "type": "number", + "description": "Page number" + }, + "limit": { + "type": "number", + "description": "Limit per page" + }, "showDisabled": { "type": "boolean", "description": "Show disabled triggers" @@ -1119,14 +1753,23 @@ "type": "string", "description": "ID of the integration" }, - "page": { "type": "number", "description": "Page number" }, - "limit": { "type": "number", "description": "Limit per page" } + "page": { + "type": "number", + "description": "Page number" + }, + "limit": { + "type": "number", + "description": "Limit per page" + } }, "type": "object" }, "TriggerResDTO": { "properties": { - "name": { "type": "string", "description": "Trigger name" }, + "name": { + "type": "string", + "description": "Trigger name" + }, "display_name": { "type": "string", "description": "Trigger display name" @@ -1135,29 +1778,62 @@ "type": "string", "description": "Trigger description" }, - "enabled": { "type": "boolean", "description": "Is trigger enabled" }, + "enabled": { + "type": "boolean", + "description": "Is trigger enabled" + }, "config": { "type": "object", "description": "Trigger configuration" }, - "payload": { "type": "object", "description": "Trigger payload" }, - "logo": { "type": "string", "description": "Trigger logo URL" }, - "count": { "type": "number", "description": "Trigger count" }, - "appKey": { "type": "string", "description": "App key" }, - "appId": { "type": "string", "description": "App ID" }, - "appName": { "type": "string", "description": "App name" }, + "payload": { + "type": "object", + "description": "Trigger payload" + }, + "logo": { + "type": "string", + "description": "Trigger logo URL" + }, + "count": { + "type": "number", + "description": "Trigger count" + }, + "appKey": { + "type": "string", + "description": "App key" + }, + "appId": { + "type": "string", + "description": "App ID" + }, + "appName": { + "type": "string", + "description": "App name" + }, "instructions": { "type": "string", "description": "Trigger instructions" }, - "type": { "type": "string", "description": "Trigger type" } + "type": { + "type": "string", + "description": "Trigger type" + } }, "type": "object", - "required": ["name", "display_name", "appKey", "appId", "appName"] + "required": [ + "name", + "display_name", + "appKey", + "appId", + "appName" + ] }, "SingleTriggerResDTO": { "properties": { - "name": { "type": "string", "description": "Trigger name" }, + "name": { + "type": "string", + "description": "Trigger name" + }, "displayName": { "type": "string", "description": "Trigger display name" @@ -1166,15 +1842,30 @@ "type": "string", "description": "Trigger description" }, - "type": { "type": "string", "description": "Trigger type" }, - "appId": { "type": "string", "description": "App ID" }, - "appName": { "type": "string", "description": "App name" }, + "type": { + "type": "string", + "description": "Trigger type" + }, + "appId": { + "type": "string", + "description": "App ID" + }, + "appName": { + "type": "string", + "description": "App name" + }, "instructions": { "type": "string", "description": "Trigger instructions" }, - "payload": { "type": "object", "description": "Trigger payload" }, - "config": { "type": "object", "description": "Trigger config" } + "payload": { + "type": "object", + "description": "Trigger payload" + }, + "config": { + "type": "object", + "description": "Trigger config" + } }, "type": "object", "required": [ @@ -1190,23 +1881,43 @@ }, "TriggerConfig": { "properties": { - "repo": { "type": "string", "description": "Repository name" }, - "owner": { "type": "string", "description": "Repository owner" } + "repo": { + "type": "string", + "description": "Repository name" + }, + "owner": { + "type": "string", + "description": "Repository owner" + } }, "type": "object", - "required": ["repo", "owner"], + "required": [ + "repo", + "owner" + ], "description": "Trigger configuration" }, "ActiveTriggerInstance": { "properties": { - "id": { "type": "string", "description": "Trigger instance ID" }, + "id": { + "type": "string", + "description": "Trigger instance ID" + }, "connectionId": { "type": "string", "description": "Connected account ID" }, - "triggerName": { "type": "string", "description": "Trigger name" }, - "triggerData": { "type": "string", "description": "Trigger data" }, - "triggerConfig": { "$ref": "#/components/schemas/TriggerConfig" }, + "triggerName": { + "type": "string", + "description": "Trigger name" + }, + "triggerData": { + "type": "string", + "description": "Trigger data" + }, + "triggerConfig": { + "$ref": "#/components/schemas/TriggerConfig" + }, "createdAt": { "type": "string", "description": "Created at timestamp", @@ -1235,39 +1946,72 @@ }, "PageInfoDTO": { "properties": { - "currentPage": { "type": "number" }, - "perPage": { "type": "number" }, - "totalPages": { "type": "number" } + "currentPage": { + "type": "number" + }, + "perPage": { + "type": "number" + }, + "totalPages": { + "type": "number" + } }, "type": "object", - "required": ["currentPage", "perPage", "totalPages"] + "required": [ + "currentPage", + "perPage", + "totalPages" + ] }, "ActiveTriggersResDTO": { "properties": { - "triggers": { "items": { "type": "object" }, "type": "array" }, + "triggers": { + "items": { + "type": "object" + }, + "type": "array" + }, "pageInfo": { - "items": { "$ref": "#/components/schemas/PageInfoDTO" }, + "items": { + "$ref": "#/components/schemas/PageInfoDTO" + }, "type": "array" } }, "type": "object", - "required": ["triggers", "pageInfo"] + "required": [ + "triggers", + "pageInfo" + ] }, "TriggerLogsResDTO": { "properties": { "data": { - "items": { "$ref": "#/components/schemas/TriggerLogItemDTO" }, + "items": { + "$ref": "#/components/schemas/TriggerLogItemDTO" + }, "type": "array" }, - "pageInfo": { "$ref": "#/components/schemas/PageInfoDTO" } + "pageInfo": { + "$ref": "#/components/schemas/PageInfoDTO" + } }, "type": "object", - "required": ["data", "pageInfo"] + "required": [ + "data", + "pageInfo" + ] }, "TriggerLogItemDTO": { "properties": { - "clientId": { "type": "string", "description": "Client ID" }, - "connectionId": { "type": "string", "description": "Connection ID" }, + "clientId": { + "type": "string", + "description": "Client ID" + }, + "connectionId": { + "type": "string", + "description": "Connection ID" + }, "errorTrigger": { "type": "string", "description": "Error trigger", @@ -1293,8 +2037,14 @@ "description": "Trigger name", "nullable": true }, - "id": { "type": "string", "description": "Log ID" }, - "appKey": { "type": "string", "description": "App key" }, + "id": { + "type": "string", + "description": "Log ID" + }, + "appKey": { + "type": "string", + "description": "App key" + }, "createdAt": { "type": "string", "description": "Created at timestamp", @@ -1302,22 +2052,42 @@ } }, "type": "object", - "required": ["clientId", "connectionId", "id", "appKey", "createdAt"] + "required": [ + "clientId", + "connectionId", + "id", + "appKey", + "createdAt" + ] }, "HandleTriggerParamsDTO": { "properties": { - "appName": { "type": "string", "description": "The name of the app" }, - "clientId": { "type": "string", "description": "The client ID" } + "appName": { + "type": "string", + "description": "The name of the app" + }, + "clientId": { + "type": "string", + "description": "The client ID" + } }, "type": "object", - "required": ["appName", "clientId"] + "required": [ + "appName", + "clientId" + ] }, "HandleTriggerBodyDTO": { "properties": { - "body": { "type": "object", "description": "The trigger payload" } + "body": { + "type": "object", + "description": "The trigger payload" + } }, "type": "object", - "required": ["body"] + "required": [ + "body" + ] }, "EnableTriggerParamsDTO": { "properties": { @@ -1325,10 +2095,16 @@ "type": "string", "description": "The connected account ID" }, - "triggerName": { "type": "string", "description": "The trigger name" } + "triggerName": { + "type": "string", + "description": "The trigger name" + } }, "type": "object", - "required": ["connectedAccountId", "triggerName"] + "required": [ + "connectedAccountId", + "triggerName" + ] }, "GetTriggerParamsDTO": { "properties": { @@ -1338,7 +2114,9 @@ } }, "type": "object", - "required": ["triggerId"] + "required": [ + "triggerId" + ] }, "EnableTriggerBodyDTO": { "properties": { @@ -1348,7 +2126,9 @@ } }, "type": "object", - "required": ["triggerConfig"] + "required": [ + "triggerConfig" + ] }, "SwitchTriggerStatusParamsDTO": { "properties": { @@ -1358,7 +2138,9 @@ } }, "type": "object", - "required": ["triggerId"] + "required": [ + "triggerId" + ] }, "SwitchTriggerStatusBodyDTO": { "properties": { @@ -1368,7 +2150,9 @@ } }, "type": "object", - "required": ["enabled"] + "required": [ + "enabled" + ] }, "TriggerInstanceParamsDTO": { "properties": { @@ -1378,14 +2162,21 @@ } }, "type": "object", - "required": ["triggerInstanceId"] + "required": [ + "triggerInstanceId" + ] }, "SetCallbackUrlBodyDTO": { "properties": { - "callbackURL": { "type": "string", "description": "The callback URL" } + "callbackURL": { + "type": "string", + "description": "The callback URL" + } }, "type": "object", - "required": ["callbackURL"] + "required": [ + "callbackURL" + ] }, "TriggerResponseDTO": { "properties": { @@ -1393,14 +2184,19 @@ "type": "string", "description": "The status of the operation" }, - "message": { "type": "string", "description": "Optional message" }, + "message": { + "type": "string", + "description": "Optional message" + }, "triggerId": { "type": "string", "description": "Optional trigger ID" } }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "WebhookURLResponseDTO": { "properties": { @@ -1414,7 +2210,9 @@ } }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "TriggerMetadataDTO": { "properties": { @@ -1478,10 +2276,14 @@ "type": "string", "description": "The status of the operation" }, - "trigger": { "$ref": "#/components/schemas/TriggerMetadataDTO" } + "trigger": { + "$ref": "#/components/schemas/TriggerMetadataDTO" + } }, "type": "object", - "required": ["status"] + "required": [ + "status" + ] }, "GenerateCLISessionReqDTO": { "properties": { @@ -1491,7 +2293,9 @@ } }, "type": "object", - "required": ["channel_name"] + "required": [ + "channel_name" + ] }, "GenerateCLISessionResDTO": { "properties": { @@ -1501,27 +2305,48 @@ } }, "type": "object", - "required": ["key"] + "required": [ + "key" + ] }, "GetCLISessionResDTO": { "properties": { - "clientId": { "type": "string", "description": "The client ID" }, - "cliCode": { "type": "string", "description": "The CLI code" } + "clientId": { + "type": "string", + "description": "The client ID" + }, + "cliCode": { + "type": "string", + "description": "The CLI code" + } }, "type": "object", - "required": ["clientId", "cliCode"] + "required": [ + "clientId", + "cliCode" + ] }, "VerifyCLICodeResDTO": { "properties": { - "clientId": { "type": "string", "description": "The client ID" }, - "cliCode": { "type": "string", "description": "The CLI code" }, + "clientId": { + "type": "string", + "description": "The client ID" + }, + "cliCode": { + "type": "string", + "description": "The CLI code" + }, "apiKey": { "type": "string", "description": "The API key associated with the client" } }, "type": "object", - "required": ["clientId", "cliCode", "apiKey"] + "required": [ + "clientId", + "cliCode", + "apiKey" + ] }, "CLIQueryDTO": { "properties": { @@ -1535,7 +2360,9 @@ } }, "type": "object", - "required": ["key"] + "required": [ + "key" + ] }, "MetadataReqDTO": { "properties": { @@ -1548,7 +2375,9 @@ } }, "type": "object", - "required": ["email"] + "required": [ + "email" + ] }, "TriggersEnabledToggleReqDTO": { "properties": { @@ -1558,7 +2387,9 @@ } }, "type": "object", - "required": ["enabled"] + "required": [ + "enabled" + ] }, "TriggersEnabledToggleResDTO": { "properties": { @@ -1568,7 +2399,9 @@ } }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "TriggerToggleInfoResponseDTO": { "properties": { @@ -1578,27 +2411,50 @@ } }, "type": "object", - "required": ["triggersEnabled"] + "required": [ + "triggersEnabled" + ] }, "ToggleTriggerStateResponseDTO": { - "properties": { "message": { "type": "string" } }, + "properties": { + "message": { + "type": "string" + } + }, "type": "object", - "required": ["message"] + "required": [ + "message" + ] }, "MetadataQueryDTO": { "properties": { - "email": { "type": "string", "description": "Email of the client" } + "email": { + "type": "string", + "description": "Email of the client" + } }, "type": "object", - "required": ["email"] + "required": [ + "email" + ] }, "TriggerMetadata": { "properties": { - "id": { "type": "string", "description": "The unique id of the log" }, + "id": { + "type": "string", + "description": "The unique id of the log" + }, "type": { "type": "string", "description": "The type of the log", - "oneOf": [{ "type": "string", "enum": ["trigger"] }] + "oneOf": [ + { + "type": "string", + "enum": [ + "trigger" + ] + } + ] }, "createdAt": { "pattern": "\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d.\\d+Z?", @@ -1628,7 +2484,9 @@ "type": "string", "description": "The trigger provider payload of the log" }, - "triggerClientPayload": { "type": "string" }, + "triggerClientPayload": { + "type": "string" + }, "triggerClientError": { "type": "string", "description": "The trigger client error of the log" @@ -1656,7 +2514,10 @@ }, "ActionMetadata": { "properties": { - "id": { "type": "string", "description": "The unique id of the log" }, + "id": { + "type": "string", + "description": "The unique id of the log" + }, "request": { "type": "string", "description": "The request sent to the provider" @@ -1672,7 +2533,14 @@ "type": { "type": "string", "description": "The type of the log", - "oneOf": [{ "type": "string", "enum": ["action"] }] + "oneOf": [ + { + "type": "string", + "enum": [ + "action" + ] + } + ] }, "createdAt": { "pattern": "\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d.\\d+Z?", @@ -1747,9 +2615,18 @@ "type": { "type": "string", "description": "The type of the log", - "oneOf": [{ "type": "string", "enum": ["trigger"] }] + "oneOf": [ + { + "type": "string", + "enum": [ + "trigger" + ] + } + ] }, - "meta": { "$ref": "#/components/schemas/TriggerMetadata" } + "meta": { + "$ref": "#/components/schemas/TriggerMetadata" + } }, "type": "object", "required": [ @@ -1794,9 +2671,18 @@ "type": { "type": "string", "description": "The type of the log", - "oneOf": [{ "type": "string", "enum": ["action"] }] + "oneOf": [ + { + "type": "string", + "enum": [ + "action" + ] + } + ] }, - "meta": { "$ref": "#/components/schemas/ActionMetadata" } + "meta": { + "$ref": "#/components/schemas/ActionMetadata" + } }, "type": "object", "required": [ @@ -1817,28 +2703,48 @@ "description": "The cursor to get the next page of logs" }, "data": { - "items": { "type": "object" }, + "items": { + "type": "object" + }, "type": "array", "description": "Logs data" } }, "type": "object", - "required": ["data"] + "required": [ + "data" + ] }, "GetLogsDTO": { "properties": { "type": { - "enum": ["error", "info", "debug"], + "enum": [ + "error", + "info", + "debug" + ], "type": "string", "description": "Type of the log" }, "time": { - "enum": ["5m", "30m", "6h", "1d", "1w", "1month", "1y"], + "enum": [ + "5m", + "30m", + "6h", + "1d", + "1w", + "1month", + "1y" + ], "type": "string", "description": "Time interval for which data needs to be fetched" }, "status": { - "enum": ["all", "success", "error"], + "enum": [ + "all", + "success", + "error" + ], "type": "string", "description": "Status of the log" }, @@ -1868,7 +2774,11 @@ } }, "securitySchemes": { - "api_key": { "type": "apiKey", "in": "header", "name": "x-api-key" } + "api_key": { + "type": "apiKey", + "in": "header", + "name": "x-api-key" + } } }, "info": { @@ -1884,7 +2794,9 @@ "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/IdentifyClientReqDTO" } + "schema": { + "$ref": "#/components/schemas/IdentifyClientReqDTO" + } } }, "description": "IdentifyClientReqDTO", @@ -1903,125 +2815,9 @@ } }, "summary": "Identify client", - "tags": ["Auth"] - } - }, - "/api/v1/client/auth/send_magic_link": { - "post": { - "operationId": "sendMagicLink", - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/MagicLinkReqDTO" } - } - }, - "description": "MagicLinkReqDTO", - "required": false - }, - "responses": { - "202": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/MagicLinkResDTO" } - } - }, - "description": "" - } - }, - "summary": "Send magic link", - "tags": ["Auth"] - } - }, - "/api/v1/client/auth/logout": { - "post": { - "operationId": "logout", - "responses": { - "201": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/LogoutResDTO" } - } - }, - "description": "" - } - }, - "summary": "Logout API", - "tags": ["Auth"], - "description": "Logout the user and clear the server side session" - } - }, - "/api/v1/client/auth/verify_magic_link": { - "post": { - "operationId": "verifyMagicLink", - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/VerifyMagicLinkReqDTO" } - } - }, - "description": "VerifyMagicLinkReqDTO", - "required": false - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VerifyMagicLinkResDTO" - } - } - }, - "description": "" - } - }, - "summary": "Verify magic link", - "tags": ["Auth"] - } - }, - "/api/v1/team/invite": { - "post": { - "operationId": "inviteMember", - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/InviteMemberReqDTO" } - } - }, - "description": "InviteMemberReqDTO", - "required": false - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/MemberResDTO" } - } - }, - "description": "" - } - }, - "summary": "Invite member", - "tags": ["Team"] - } - }, - "/api/v1/team/members": { - "get": { - "operationId": "listMembers", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "items": { "$ref": "#/components/schemas/MemberResDTO" }, - "type": "array" - } - } - }, - "description": "" - } - }, - "summary": "List members", - "tags": ["Team"] + "tags": [ + "Auth" + ] } }, "/api/v1/api_keys": { @@ -2030,7 +2826,9 @@ "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/GenerateAPIKeyReqDTO" } + "schema": { + "$ref": "#/components/schemas/GenerateAPIKeyReqDTO" + } } }, "description": "GenerateAPIKeyReqDTO", @@ -2040,14 +2838,18 @@ "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/APIKeyResDTO" } + "schema": { + "$ref": "#/components/schemas/APIKeyResDTO" + } } }, "description": "" } }, "summary": "Generate api key", - "tags": ["API-Keys"] + "tags": [ + "API-Keys" + ] }, "get": { "operationId": "listAPIKeys", @@ -2056,7 +2858,9 @@ "content": { "application/json": { "schema": { - "items": { "$ref": "#/components/schemas/APIKeyResDTO" }, + "items": { + "$ref": "#/components/schemas/APIKeyResDTO" + }, "type": "array" } } @@ -2065,7 +2869,9 @@ } }, "summary": "List api keys", - "tags": ["API-Keys"] + "tags": [ + "API-Keys" + ] } }, "/api/v1/api_keys/{id}": { @@ -2076,7 +2882,10 @@ "in": "path", "name": "id", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -2092,7 +2901,9 @@ } }, "summary": "Delete api key", - "tags": ["API-Keys"] + "tags": [ + "API-Keys" + ] } }, "/api/v1/apps": { @@ -2102,21 +2913,28 @@ { "in": "query", "name": "category", - "schema": { "type": "string", "description": "Category of the app" } + "schema": { + "type": "string", + "description": "Category of the app" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/AppListResDTO" } + "schema": { + "$ref": "#/components/schemas/AppListResDTO" + } } }, "description": "" } }, "summary": "Get apps", - "tags": ["Apps"], + "tags": [ + "Apps" + ], "description": "Retrieve a list of all applications based on query parameters." } }, @@ -2128,7 +2946,9 @@ "content": { "application/json": { "schema": { - "items": { "$ref": "#/components/schemas/AppListResDTO" }, + "items": { + "$ref": "#/components/schemas/AppListResDTO" + }, "type": "array" } } @@ -2137,7 +2957,9 @@ } }, "summary": "Get opena api specs", - "tags": ["Apps"] + "tags": [ + "Apps" + ] } }, "/api/v1/apps/{appName}": { @@ -2148,21 +2970,28 @@ "in": "path", "name": "appName", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/SingleAppInfoResDTO" } + "schema": { + "$ref": "#/components/schemas/SingleAppInfoResDTO" + } } }, "description": "" } }, "summary": "Get app", - "tags": ["Apps"], + "tags": [ + "Apps" + ], "description": "Get app details" } }, @@ -2193,10 +3022,12 @@ } }, "summary": "Create connector", - "tags": ["Integrations"] + "tags": [ + "Integrations" + ] }, "get": { - "operationId": "listGlobalConnectors", + "operationId": "listAllConnectors", "responses": { "200": { "content": { @@ -2209,8 +3040,10 @@ "description": "" } }, - "summary": "List global connectors", - "tags": ["Integrations"] + "summary": "List all connectors", + "tags": [ + "Integrations" + ] } }, "/api/v1/integrations/{integrationId}": { @@ -2221,7 +3054,10 @@ "in": "path", "name": "integrationId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -2237,22 +3073,29 @@ } }, "summary": "Get connector info", - "tags": ["Integrations"] + "tags": [ + "Integrations" + ] }, "patch": { - "operationId": "patchConnector", + "operationId": "modifyConnector", "parameters": [ { "in": "path", "name": "integrationId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/PatchConnectorReqDTO" } + "schema": { + "$ref": "#/components/schemas/PatchConnectorReqDTO" + } } }, "description": "PatchConnectorReqDTO", @@ -2270,8 +3113,10 @@ "description": "" } }, - "summary": "Patch connector", - "tags": ["Integrations"] + "summary": "Modify connector", + "tags": [ + "Integrations" + ] }, "delete": { "operationId": "deleteConnector", @@ -2280,238 +3125,97 @@ "in": "path", "name": "integrationId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "204": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/DeleteRowAPIDTO" } - } - }, - "description": "" - } - }, - "summary": "Delete connector", - "tags": ["Integrations"] - } - }, - "/api/v1/integrations/{integrationId}/status": { - "post": { - "operationId": "patchPostConnector", - "parameters": [ - { - "in": "path", - "name": "integrationId", - "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/PatchConnectorReqDTO" } - } - }, - "description": "PatchConnectorReqDTO", - "required": false - }, - "responses": { - "201": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PatchConnectorResDTO" + "$ref": "#/components/schemas/DeleteRowAPIDTO" } } }, "description": "" } }, - "summary": "Patch post connector", - "tags": ["Integrations"] + "summary": "Delete connector", + "tags": [ + "Integrations" + ] } }, - "/api/v1/actions": { + "/api/v1/integrations/{integrationId}/status": {}, + "/api/v1/connectedAccounts": { "get": { - "operationId": "listActionsV1", + "operationId": "getConnections", "parameters": [ { "in": "query", - "name": "appNames", - "schema": { "type": "string", "description": "Names of the apps" } - }, - { - "in": "query", - "name": "useCase", - "schema": { "type": "string", "description": "Use case" } - }, - { - "in": "query", - "name": "showEnabledOnly", - "schema": { "type": "boolean", "description": "Show enabled only" } - }, - { - "in": "query", - "name": "limit", - "schema": { "type": "number", "description": "Limit" } - }, - { "in": "query", "name": "apps", "schema": { "type": "string" } }, - { "in": "query", "name": "actions", "schema": { "type": "string" } }, - { "in": "query", "name": "tags", "schema": { "type": "string" } }, - { - "in": "query", - "name": "usecaseLimit", - "schema": { "type": "number" } + "name": "page", + "schema": { + "type": "number" + } }, { "in": "query", - "name": "filterImportantActions", - "schema": { "type": "boolean" } - }, - { "in": "query", "name": "showAll", "schema": { "type": "boolean" } } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActionsListResponseDTO" - } - } - }, - "description": "" - } - }, - "summary": "List actions", - "tags": ["Actions"] - } - }, - "/api/v1/actions/{actionId}/execute": { - "post": { - "operationId": "executeActionV1", - "parameters": [ - { - "in": "path", - "name": "actionId", - "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ActionExecutionReqDTO" } + "name": "pageSize", + "schema": { + "type": "number" } }, - "description": "ActionExecutionReqDTO", - "required": false - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActionExecutionResDto" - } - } - }, - "description": "" - } - }, - "summary": "Execute action", - "tags": ["Actions"] - } - }, - "/api/v1/actions/proxy": { - "post": { - "operationId": "executeActionProxy", - "parameters": [ { "in": "query", - "name": "endpoint", - "required": true, - "schema": { "type": "string" } + "name": "appNames", + "schema": { + "type": "string" + } }, - { - "in": "query", - "name": "connectedAccountId", - "required": true, - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ExecuteActionResDTO" } - } - }, - "description": "" - } - }, - "summary": "Execute action proxy", - "tags": ["Actions"] - } - }, - "/api/v1/actions/{actionId}": { - "get": { - "operationId": "getActionV1", - "parameters": [ - { - "in": "path", - "name": "actionId", - "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/ActionDetails" } - } - }, - "description": "" - } - }, - "summary": "Get action", - "tags": ["Actions"] - } - }, - "/api/v1/connectedAccounts": { - "get": { - "operationId": "getConnections", - "parameters": [ - { "in": "query", "name": "page", "schema": { "type": "number" } }, - { "in": "query", "name": "pageSize", "schema": { "type": "number" } }, - { "in": "query", "name": "appNames", "schema": { "type": "string" } }, { "in": "query", "name": "integrationId", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "in": "query", "name": "connectionId", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "in": "query", "name": "user_uuid", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "in": "query", "name": "showActiveOnly", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "status", + "schema": { + "type": "string" + } }, - { "in": "query", "name": "status", "schema": { "type": "string" } }, { "in": "query", "name": "showDisabled", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } } ], "responses": { @@ -2527,7 +3231,9 @@ } }, "summary": "Get connections", - "tags": ["Connections"] + "tags": [ + "Connections" + ] }, "post": { "operationId": "initiateConnection", @@ -2555,7 +3261,9 @@ } }, "summary": "Initiate connection", - "tags": ["Connections"] + "tags": [ + "Connections" + ] } }, "/api/v1/connectedAccounts/{connectedAccountId}": { @@ -2566,7 +3274,10 @@ "in": "path", "name": "connectedAccountId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -2582,7 +3293,9 @@ } }, "summary": "Get connection", - "tags": ["Connections"] + "tags": [ + "Connections" + ] }, "delete": { "operationId": "deleteConnection", @@ -2591,21 +3304,28 @@ "in": "path", "name": "connectedAccountId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/DeleteRowAPIDTO" } + "schema": { + "$ref": "#/components/schemas/DeleteRowAPIDTO" + } } }, "description": "" } }, "summary": "Delete connection", - "tags": ["Connections"] + "tags": [ + "Connections" + ] } }, "/api/v1/connectedAccounts/{connectedAccountId}/disable": { @@ -2616,7 +3336,10 @@ "in": "path", "name": "connectedAccountId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -2632,7 +3355,9 @@ } }, "summary": "Disable connection", - "tags": ["Connections"] + "tags": [ + "Connections" + ] } }, "/api/v1/connectedAccounts/{connectedAccountId}/enable": { @@ -2643,7 +3368,10 @@ "in": "path", "name": "connectedAccountId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -2659,7 +3387,9 @@ } }, "summary": "Enable connection", - "tags": ["Connections"] + "tags": [ + "Connections" + ] } }, "/api/v1/triggers": { @@ -2669,7 +3399,10 @@ { "in": "query", "name": "appNames", - "schema": { "type": "string", "description": "Names of the apps" } + "schema": { + "type": "string", + "description": "Names of the apps" + } }, { "in": "query", @@ -2682,12 +3415,18 @@ { "in": "query", "name": "triggerIds", - "schema": { "type": "string", "description": "IDs of the triggers" } + "schema": { + "type": "string", + "description": "IDs of the triggers" + } }, { "in": "query", "name": "showEnabledOnly", - "schema": { "type": "boolean", "description": "Show enabled only" } + "schema": { + "type": "boolean", + "description": "Show enabled only" + } } ], "responses": { @@ -2695,7 +3434,9 @@ "content": { "application/json": { "schema": { - "items": { "$ref": "#/components/schemas/TriggerResDTO" }, + "items": { + "$ref": "#/components/schemas/TriggerResDTO" + }, "type": "array" } } @@ -2704,7 +3445,9 @@ } }, "summary": "List triggers", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "List triggers" } }, @@ -2716,65 +3459,49 @@ "in": "path", "name": "connectedAccountId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } }, { "in": "path", "name": "triggerName", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/EnableTriggerBodyDTO" } + "schema": { + "$ref": "#/components/schemas/EnableTriggerBodyDTO" + } } }, "description": "EnableTriggerBodyDTO", "required": false }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerResponseDTO" } - } - }, - "description": "" - } - }, - "summary": "Enable trigger", - "tags": ["Triggers"], - "description": "Enables a trigger for a connected account and specific trigger name." - } - }, - "/api/v1/triggers/get/{triggerId}": { - "get": { - "operationId": "getTrigger", - "parameters": [ - { - "in": "path", - "name": "triggerId", - "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } - } - ], "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetTriggerResponseDTO" + "$ref": "#/components/schemas/TriggerResponseDTO" } } }, "description": "" } }, - "summary": "Get trigger", - "tags": ["Triggers"], - "description": "Retrieves a specific trigger by its ID." + "summary": "Enable trigger", + "tags": [ + "Triggers" + ], + "description": "Enables a trigger for a connected account and specific trigger name." } }, "/api/v1/triggers/active_triggers": { @@ -2800,7 +3527,10 @@ { "in": "query", "name": "triggerIds", - "schema": { "type": "string", "description": "IDs of the triggers" } + "schema": { + "type": "string", + "description": "IDs of the triggers" + } }, { "in": "query", @@ -2813,12 +3543,18 @@ { "in": "query", "name": "page", - "schema": { "type": "number", "description": "Page number" } + "schema": { + "type": "number", + "description": "Page number" + } }, { "in": "query", "name": "limit", - "schema": { "type": "number", "description": "Limit per page" } + "schema": { + "type": "number", + "description": "Limit per page" + } }, { "in": "query", @@ -2842,7 +3578,9 @@ } }, "summary": "Get active triggers", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Lists active triggers based on query parameters." } }, @@ -2854,7 +3592,10 @@ "in": "path", "name": "triggerId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "requestBody": { @@ -2872,49 +3613,18 @@ "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerResponseDTO" } + "schema": { + "$ref": "#/components/schemas/TriggerResponseDTO" + } } }, "description": "" } }, "summary": "Switch trigger instance status", - "tags": ["Triggers"], - "description": "Switches the status of a trigger instance." - }, - "post": { - "operationId": "switchPostTriggerInstanceStatus", - "parameters": [ - { - "in": "path", - "name": "triggerId", - "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } - } + "tags": [ + "Triggers" ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SwitchTriggerStatusBodyDTO" - } - } - }, - "description": "SwitchTriggerStatusBodyDTO", - "required": false - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerResponseDTO" } - } - }, - "description": "" - } - }, - "summary": "Switch post trigger instance status", - "tags": ["Triggers"], "description": "Switches the status of a trigger instance." } }, @@ -2926,21 +3636,28 @@ "in": "path", "name": "triggerInstanceId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerResponseDTO" } + "schema": { + "$ref": "#/components/schemas/TriggerResponseDTO" + } } }, "description": "" } }, "summary": "Disable trigger", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Disables a specified trigger instance." } }, @@ -2952,21 +3669,28 @@ "in": "path", "name": "triggerInstanceId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/DeleteRowAPIDTO" } + "schema": { + "$ref": "#/components/schemas/DeleteRowAPIDTO" + } } }, "description": "" } }, "summary": "Delete trigger", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Deletes a specified trigger instance." } }, @@ -2976,7 +3700,9 @@ "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/SetCallbackUrlBodyDTO" } + "schema": { + "$ref": "#/components/schemas/SetCallbackUrlBodyDTO" + } } }, "description": "SetCallbackUrlBodyDTO", @@ -2986,14 +3712,18 @@ "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerResponseDTO" } + "schema": { + "$ref": "#/components/schemas/TriggerResponseDTO" + } } }, "description": "" } }, "summary": "Set callback url", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Sets a universal callback URL for the client." } }, @@ -3013,7 +3743,9 @@ } }, "summary": "Get webhook url", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Retrieves the universal callback URL set for the client." } }, @@ -3040,169 +3772,37 @@ { "in": "query", "name": "page", - "schema": { "type": "number", "description": "Page number" } - }, - { - "in": "query", - "name": "limit", - "schema": { "type": "number", "description": "Limit per page" } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/TriggerLogsResDTO" } - } - }, - "description": "" - } - }, - "summary": "Get logs", - "tags": ["Triggers"], - "description": "Fetches logs based on connection and integration details." - } - }, - "/api/v1/cli/generate-cli-session": { - "get": { - "operationId": "generateCLISession", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateCLISessionResDTO" - } - } - }, - "description": "" - } - }, - "summary": "Handle cli code exchange", - "tags": ["CLI"] - } - }, - "/api/v1/cli/get-cli-code": { - "get": { - "operationId": "getCLICode", - "parameters": [ - { - "in": "query", - "name": "key", - "required": true, - "schema": { - "type": "string", - "description": "Unique key for CLI session" - } - }, - { - "in": "query", - "name": "code", - "required": false, - "schema": { - "type": "string", - "description": "Code for CLI verification" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/GetCLISessionResDTO" } - } - }, - "description": "" - } - }, - "summary": "Get cli code", - "tags": ["CLI"] - } - }, - "/api/v1/cli/verify-cli-code": { - "get": { - "operationId": "verifyCLICode", - "parameters": [ - { - "in": "query", - "name": "key", - "required": true, "schema": { - "type": "string", - "description": "Unique key for CLI session" + "type": "number", + "description": "Page number" } }, { "in": "query", - "name": "code", - "required": false, + "name": "limit", "schema": { - "type": "string", - "description": "Code for CLI verification" + "type": "number", + "description": "Limit per page" } } ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/VerifyCLICodeResDTO" } - } - }, - "description": "" - } - }, - "summary": "Handle cli code verification", - "tags": ["CLI"] - } - }, - "/api/v1/metadata/toggle/trigger": { - "post": { - "operationId": "toggleTriggerState", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggersEnabledToggleReqDTO" - } - } - }, - "description": "TriggersEnabledToggleReqDTO", - "required": false - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ToggleTriggerStateResponseDTO" - } - } - }, - "description": "" - } - }, - "summary": "Toggle trigger state", - "tags": ["Metadata"] - } - }, - "/api/v1/metadata/toggle.info": { - "get": { - "operationId": "getToggleInfo", "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggerToggleInfoResponseDTO" + "$ref": "#/components/schemas/TriggerLogsResDTO" } } }, "description": "" } }, - "summary": "Get toggle info", - "tags": ["Metadata"] + "summary": "Get logs", + "tags": [ + "Triggers" + ], + "description": "Fetches logs based on connection and integration details." } }, "/api/v1/logs/": { @@ -3213,7 +3813,11 @@ "in": "query", "name": "type", "schema": { - "enum": ["error", "info", "debug"], + "enum": [ + "error", + "info", + "debug" + ], "type": "string", "description": "Type of the log" } @@ -3222,7 +3826,15 @@ "in": "query", "name": "time", "schema": { - "enum": ["5m", "30m", "6h", "1d", "1w", "1month", "1y"], + "enum": [ + "5m", + "30m", + "6h", + "1d", + "1w", + "1month", + "1y" + ], "type": "string", "description": "Time interval for which data needs to be fetched" } @@ -3231,7 +3843,11 @@ "in": "query", "name": "status", "schema": { - "enum": ["all", "success", "error"], + "enum": [ + "all", + "success", + "error" + ], "type": "string", "description": "Status of the log" } @@ -3247,7 +3863,10 @@ { "in": "query", "name": "integrationId", - "schema": { "type": "string", "description": "Integration UUID" } + "schema": { + "type": "string", + "description": "Integration UUID" + } }, { "in": "query", @@ -3279,111 +3898,99 @@ "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/LogsResDTO" } + "schema": { + "$ref": "#/components/schemas/LogsResDTO" + } } }, "description": "" } }, "summary": "Get logs", - "tags": ["Logs"], + "tags": [ + "Logs" + ], "description": "List logs" } }, - "/api/v2/actions": { + "/api/v2/actions/list/all": { "get": { - "operationId": "listActionsV2", + "operationId": "listActionsMinimalV2", "parameters": [ { "in": "query", "name": "appNames", - "schema": { "type": "string", "description": "Names of the apps" } + "schema": { + "type": "string", + "description": "Names of the apps" + } }, { "in": "query", "name": "useCase", - "schema": { "type": "string", "description": "Use case" } + "schema": { + "type": "string", + "description": "Use case" + } }, { "in": "query", "name": "showEnabledOnly", - "schema": { "type": "boolean", "description": "Show enabled only" } + "schema": { + "type": "boolean", + "description": "Show enabled only" + } }, { "in": "query", "name": "limit", - "schema": { "type": "number", "description": "Limit" } - }, - { "in": "query", "name": "apps", "schema": { "type": "string" } }, - { "in": "query", "name": "actions", "schema": { "type": "string" } }, - { "in": "query", "name": "tags", "schema": { "type": "string" } }, - { - "in": "query", - "name": "usecaseLimit", - "schema": { "type": "number" } - }, - { - "in": "query", - "name": "filterImportantActions", - "schema": { "type": "boolean" } - }, - { "in": "query", "name": "showAll", "schema": { "type": "boolean" } } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActionsListResponseDTO" - } - } - }, - "description": "" - } - }, - "summary": "List actions", - "tags": ["Actions"], - "description": "Retrieve a list of all actions based on query parameters." - } - }, - "/api/v2/actions/list/all": { - "get": { - "operationId": "listActionsMinimalV2", - "parameters": [ - { - "in": "query", - "name": "appNames", - "schema": { "type": "string", "description": "Names of the apps" } + "schema": { + "type": "number", + "description": "Limit" + } }, { "in": "query", - "name": "useCase", - "schema": { "type": "string", "description": "Use case" } + "name": "apps", + "schema": { + "type": "string" + } }, { "in": "query", - "name": "showEnabledOnly", - "schema": { "type": "boolean", "description": "Show enabled only" } + "name": "actions", + "schema": { + "type": "string" + } }, { "in": "query", - "name": "limit", - "schema": { "type": "number", "description": "Limit" } + "name": "tags", + "schema": { + "type": "string" + } }, - { "in": "query", "name": "apps", "schema": { "type": "string" } }, - { "in": "query", "name": "actions", "schema": { "type": "string" } }, - { "in": "query", "name": "tags", "schema": { "type": "string" } }, { "in": "query", "name": "usecaseLimit", - "schema": { "type": "number" } + "schema": { + "type": "number" + } }, { "in": "query", "name": "filterImportantActions", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } }, - { "in": "query", "name": "showAll", "schema": { "type": "boolean" } } + { + "in": "query", + "name": "showAll", + "schema": { + "type": "boolean" + } + } ], "responses": { "200": { @@ -3398,7 +4005,9 @@ } }, "summary": "List actions minimal", - "tags": ["Actions"], + "tags": [ + "Actions" + ], "description": "Retrieve a list of all actions based on query parameters." } }, @@ -3410,13 +4019,18 @@ "in": "path", "name": "actionId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "requestBody": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/ActionExecutionReqDTO" } + "schema": { + "$ref": "#/components/schemas/ActionExecutionReqDTO" + } } }, "description": "ActionExecutionReqDTO", @@ -3435,7 +4049,9 @@ } }, "summary": "Execute action", - "tags": ["Actions"], + "tags": [ + "Actions" + ], "description": "Execute an action. Support both connected account and no auth auth." } }, @@ -3447,21 +4063,28 @@ "in": "path", "name": "actionId", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { "200": { "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/ActionDetails" } + "schema": { + "$ref": "#/components/schemas/ActionDetails" + } } }, "description": "" } }, "summary": "Get action", - "tags": ["Actions"], + "tags": [ + "Actions" + ], "description": "Get action details" } }, @@ -3473,13 +4096,17 @@ "in": "query", "name": "endpoint", "required": true, - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "in": "query", "name": "connectedAccountId", "required": true, - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3495,7 +4122,9 @@ } }, "summary": "Execute action proxy", - "tags": ["Actions"], + "tags": [ + "Actions" + ], "description": "Execute an action with direct auth." } }, @@ -3507,7 +4136,10 @@ "in": "path", "name": "triggerName", "required": true, - "schema": { "pattern": "[^\\/#\\?]+?", "type": "string" } + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } } ], "responses": { @@ -3526,11 +4158,21 @@ } }, "summary": "Get trigger info", - "tags": ["Triggers"], + "tags": [ + "Triggers" + ], "description": "Get Trigger Info" } } }, - "security": [{ "api_key": [] }], - "servers": [{ "url": "https://backend.composio.dev" }] -} + "security": [ + { + "api_key": [] + } + ], + "servers": [ + { + "url": "https://backend.composio.dev" + } + ] +} \ No newline at end of file From 8b60f2a1e87ad122130e281c70165748d08cd989 Mon Sep 17 00:00:00 2001 From: konfig-publisher Date: Thu, 29 Aug 2024 14:33:11 +0000 Subject: [PATCH 2/2] Regenerate SDKs --- .konfig/changesets/modern-bikes-crash.md | 5 + STATISTICS.md | 4 +- openapi-fixed.json | 1107 +++-------------- ruby/.konfig/generate-id.txt | 2 +- ruby/README.md | 612 +-------- ruby/lib/composio.rb | 9 - ruby/lib/composio/api/actions_api.rb | 686 +--------- ruby/lib/composio/api/auth_api.rb | 257 ---- ruby/lib/composio/api/cli_api.rb | 266 ---- ruby/lib/composio/api/integrations_api.rb | 121 +- ruby/lib/composio/api/metadata_api.rb | 180 --- ruby/lib/composio/api/team_api.rb | 188 --- ruby/lib/composio/api/triggers_api.rb | 197 --- ruby/lib/composio/models/action_details.rb | 22 +- .../composio/models/action_details_minimal.rb | 22 +- ruby/spec/api/actions_api_spec.rb | 78 +- ruby/spec/api/auth_api_spec.rb | 33 - ruby/spec/api/cli_api_spec.rb | 63 - ruby/spec/api/integrations_api_spec.rb | 16 +- ruby/spec/api/metadata_api_spec.rb | 50 - ruby/spec/api/team_api_spec.rb | 50 - ruby/spec/api/triggers_api_spec.rb | 25 - .../models/action_details_minimal_spec.rb | 6 + ruby/spec/models/action_details_spec.rb | 6 + 24 files changed, 312 insertions(+), 3693 deletions(-) create mode 100644 .konfig/changesets/modern-bikes-crash.md delete mode 100644 ruby/lib/composio/api/cli_api.rb delete mode 100644 ruby/lib/composio/api/metadata_api.rb delete mode 100644 ruby/lib/composio/api/team_api.rb delete mode 100644 ruby/spec/api/cli_api_spec.rb delete mode 100644 ruby/spec/api/metadata_api_spec.rb delete mode 100644 ruby/spec/api/team_api_spec.rb diff --git a/.konfig/changesets/modern-bikes-crash.md b/.konfig/changesets/modern-bikes-crash.md new file mode 100644 index 0000000..acf1dd6 --- /dev/null +++ b/.konfig/changesets/modern-bikes-crash.md @@ -0,0 +1,5 @@ +--- +ruby: patch +--- + +Regenerate SDKs diff --git a/STATISTICS.md b/STATISTICS.md index 17bfa4f..4120a6b 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,5 +2,5 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| ruby | 48572 | -| **Total** | 48572 | +| ruby | 45913 | +| **Total** | 45913 | diff --git a/openapi-fixed.json b/openapi-fixed.json index 3b93e42..8de3f08 100644 --- a/openapi-fixed.json +++ b/openapi-fixed.json @@ -15,16 +15,13 @@ "name": "Triggers" }, { - "name": "Actions" + "name": "Connections" }, { "name": "Integrations" }, { - "name": "Connections" - }, - { - "name": "Auth" + "name": "Actions" }, { "name": "API-Keys" @@ -33,13 +30,7 @@ "name": "Apps" }, { - "name": "CLI" - }, - { - "name": "Team" - }, - { - "name": "Metadata" + "name": "Auth" }, { "name": "Logs" @@ -78,145 +69,6 @@ } } }, - "/api/v1/client/auth/send_magic_link": { - "post": { - "tags": [ - "Auth" - ], - "summary": "Send magic link", - "operationId": "ClientAuth_sendMagicLink", - "requestBody": { - "description": "MagicLinkReqDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MagicLinkReqDTO" - } - } - }, - "required": false - }, - "responses": { - "202": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MagicLinkResDTO" - } - } - } - } - } - } - }, - "/api/v1/client/auth/logout": { - "post": { - "tags": [ - "Auth" - ], - "summary": "Logout API", - "operationId": "ClientAuth_userLogout", - "description": "Logout the user and clear the server side session", - "responses": { - "201": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LogoutResDTO" - } - } - } - } - } - } - }, - "/api/v1/client/auth/verify_magic_link": { - "post": { - "tags": [ - "Auth" - ], - "summary": "Verify magic link", - "operationId": "ClientAuth_verifyMagicLink", - "requestBody": { - "description": "VerifyMagicLinkReqDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VerifyMagicLinkReqDTO" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VerifyMagicLinkResDTO" - } - } - } - } - } - } - }, - "/api/v1/team/invite": { - "post": { - "tags": [ - "Team" - ], - "summary": "Invite member", - "operationId": "Team_sendInvitation", - "requestBody": { - "description": "InviteMemberReqDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InviteMemberReqDTO" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MemberResDTO" - } - } - } - } - } - } - }, - "/api/v1/team/members": { - "get": { - "tags": [ - "Team" - ], - "summary": "List members", - "operationId": "Team_getMemberList", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TeamGetMemberListResponse" - } - } - } - } - } - } - }, "/api/v1/api_keys": { "post": { "tags": [ @@ -421,7 +273,7 @@ "tags": [ "Integrations" ], - "summary": "List global connectors", + "summary": "List all connectors", "operationId": "AppConnector_listGlobalConnectors", "responses": { "200": { @@ -472,7 +324,7 @@ "tags": [ "Integrations" ], - "summary": "Patch connector", + "summary": "Modify connector", "operationId": "AppConnector_updateIntegration", "parameters": [ { @@ -541,126 +393,74 @@ } }, "/api/v1/integrations/{integrationId}/status": { - "post": { - "tags": [ - "Integrations" - ], - "summary": "Patch post connector", - "operationId": "AppConnector_updateStatus", - "parameters": [ - { - "in": "path", - "name": "integrationId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "requestBody": { - "description": "PatchConnectorReqDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PatchConnectorReqDTO" - } - } - }, - "required": false - }, - "responses": { - "201": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PatchConnectorResDTO" - } - } - } - } - } - } }, - "/api/v1/actions": { + "/api/v1/connectedAccounts": { "get": { "tags": [ - "Actions" + "Connections" ], - "summary": "List actions", - "operationId": "ActionsControllerV1_list", + "summary": "Get connections", + "operationId": "Connections_list", "parameters": [ { "in": "query", - "name": "appNames", - "schema": { - "description": "Names of the apps", - "type": "string" - } - }, - { - "in": "query", - "name": "useCase", + "name": "page", "schema": { - "description": "Use case", - "type": "string" + "type": "number" } }, { "in": "query", - "name": "showEnabledOnly", + "name": "pageSize", "schema": { - "description": "Show enabled only", - "type": "boolean" + "type": "number" } }, { "in": "query", - "name": "limit", + "name": "appNames", "schema": { - "description": "Limit", - "type": "number" + "type": "string" } }, { "in": "query", - "name": "apps", + "name": "integrationId", "schema": { "type": "string" } }, { "in": "query", - "name": "actions", + "name": "connectionId", "schema": { "type": "string" } }, { "in": "query", - "name": "tags", + "name": "user_uuid", "schema": { "type": "string" } }, { "in": "query", - "name": "usecaseLimit", + "name": "showActiveOnly", "schema": { - "type": "number" + "type": "boolean" } }, { "in": "query", - "name": "filterImportantActions", + "name": "status", "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "showAll", + "name": "showDisabled", "schema": { "type": "boolean" } @@ -668,42 +468,29 @@ ], "responses": { "200": { - "description": "", + "description": "Get all connections for the current user", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ActionsListResponseDTO" + "$ref": "#/components/schemas/GetConnectionsResponseDto" } } } } } - } - }, - "/api/v1/actions/{actionId}/execute": { + }, "post": { "tags": [ - "Actions" - ], - "summary": "Execute action", - "operationId": "ActionsControllerV1_execute", - "parameters": [ - { - "in": "path", - "name": "actionId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } + "Connections" ], + "summary": "Initiate connection", + "operationId": "Connections_initiate", "requestBody": { - "description": "ActionExecutionReqDTO", + "description": "InitiateConnectionPayloadDto", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ActionExecutionReqDTO" + "$ref": "#/components/schemas/InitiateConnectionPayloadDto" } } }, @@ -711,11 +498,11 @@ }, "responses": { "200": { - "description": "", + "description": "Initiates a connection for the given integration and mark the connection status as initiated if the auth scheme is OAuth1 or OAuth2", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ActionExecutionResDto" + "$ref": "#/components/schemas/InitiateConnectionResponse" } } } @@ -723,207 +510,20 @@ } } }, - "/api/v1/actions/proxy": { - "post": { + "/api/v1/connectedAccounts/{connectedAccountId}": { + "get": { "tags": [ - "Actions" + "Connections" ], - "summary": "Execute action proxy", - "operationId": "ActionsControllerV1_executeProxy", + "summary": "Get connection", + "operationId": "Connections_get", "parameters": [ { - "in": "query", - "name": "endpoint", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", + "in": "path", "name": "connectedAccountId", "required": true, "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ExecuteActionResDTO" - } - } - } - } - } - } - }, - "/api/v1/actions/{actionId}": { - "get": { - "tags": [ - "Actions" - ], - "summary": "Get action", - "operationId": "ActionsControllerV1_get", - "parameters": [ - { - "in": "path", - "name": "actionId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActionDetails" - } - } - } - } - } - } - }, - "/api/v1/connectedAccounts": { - "get": { - "tags": [ - "Connections" - ], - "summary": "Get connections", - "operationId": "Connections_list", - "parameters": [ - { - "in": "query", - "name": "page", - "schema": { - "type": "number" - } - }, - { - "in": "query", - "name": "pageSize", - "schema": { - "type": "number" - } - }, - { - "in": "query", - "name": "appNames", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "integrationId", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "connectionId", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "user_uuid", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "showActiveOnly", - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "status", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "showDisabled", - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "Get all connections for the current user", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetConnectionsResponseDto" - } - } - } - } - } - }, - "post": { - "tags": [ - "Connections" - ], - "summary": "Initiate connection", - "operationId": "Connections_initiate", - "requestBody": { - "description": "InitiateConnectionPayloadDto", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InitiateConnectionPayloadDto" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "Initiates a connection for the given integration and mark the connection status as initiated if the auth scheme is OAuth1 or OAuth2", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InitiateConnectionResponse" - } - } - } - } - } - } - }, - "/api/v1/connectedAccounts/{connectedAccountId}": { - "get": { - "tags": [ - "Connections" - ], - "summary": "Get connection", - "operationId": "Connections_get", - "parameters": [ - { - "in": "path", - "name": "connectedAccountId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", + "pattern": "[^\\/#\\?]+?", "type": "string" } } @@ -1072,327 +672,9 @@ { "in": "query", "name": "showEnabledOnly", - "schema": { - "description": "Show enabled only", - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggersListResponse" - } - } - } - } - } - } - }, - "/api/v1/triggers/enable/{connectedAccountId}/{triggerName}": { - "post": { - "tags": [ - "Triggers" - ], - "summary": "Enable trigger", - "operationId": "Triggers_enable", - "description": "Enables a trigger for a connected account and specific trigger name.", - "parameters": [ - { - "in": "path", - "name": "connectedAccountId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - }, - { - "in": "path", - "name": "triggerName", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "requestBody": { - "description": "EnableTriggerBodyDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EnableTriggerBodyDTO" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerResponseDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/get/{triggerId}": { - "get": { - "tags": [ - "Triggers" - ], - "summary": "Get trigger", - "operationId": "Triggers_getById", - "description": "Retrieves a specific trigger by its ID.", - "parameters": [ - { - "in": "path", - "name": "triggerId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetTriggerResponseDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/active_triggers": { - "get": { - "tags": [ - "Triggers" - ], - "summary": "Get active triggers", - "operationId": "Triggers_getActiveTriggers", - "description": "Lists active triggers based on query parameters.", - "parameters": [ - { - "in": "query", - "name": "connectedAccountIds", - "schema": { - "description": "IDs of the connected accounts", - "type": "string" - } - }, - { - "in": "query", - "name": "integrationIds", - "schema": { - "description": "IDs of the integrations", - "type": "string" - } - }, - { - "in": "query", - "name": "triggerIds", - "schema": { - "description": "IDs of the triggers", - "type": "string" - } - }, - { - "in": "query", - "name": "triggerNames", - "schema": { - "description": "Names of the triggers", - "type": "string" - } - }, - { - "in": "query", - "name": "page", - "schema": { - "description": "Page number", - "type": "number" - } - }, - { - "in": "query", - "name": "limit", - "schema": { - "description": "Limit per page", - "type": "number" - } - }, - { - "in": "query", - "name": "showDisabled", - "schema": { - "description": "Show disabled triggers", - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActiveTriggersResDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/instance/{triggerId}/status": { - "patch": { - "tags": [ - "Triggers" - ], - "summary": "Switch trigger instance status", - "operationId": "Triggers_switchInstanceStatus", - "description": "Switches the status of a trigger instance.", - "parameters": [ - { - "in": "path", - "name": "triggerId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "requestBody": { - "description": "SwitchTriggerStatusBodyDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SwitchTriggerStatusBodyDTO" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerResponseDTO" - } - } - } - } - } - }, - "post": { - "tags": [ - "Triggers" - ], - "summary": "Switch post trigger instance status", - "operationId": "Triggers_switchPostInstanceStatus", - "description": "Switches the status of a trigger instance.", - "parameters": [ - { - "in": "path", - "name": "triggerId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "requestBody": { - "description": "SwitchTriggerStatusBodyDTO", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SwitchTriggerStatusBodyDTO" - } - } - }, - "required": false - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerResponseDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/disable/{triggerInstanceId}": { - "post": { - "tags": [ - "Triggers" - ], - "summary": "Disable trigger", - "operationId": "Triggers_disableTriggerInstance", - "description": "Disables a specified trigger instance.", - "parameters": [ - { - "in": "path", - "name": "triggerInstanceId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TriggerResponseDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/instance/{triggerInstanceId}": { - "delete": { - "tags": [ - "Triggers" - ], - "summary": "Delete trigger", - "operationId": "Triggers_deleteTriggerInstance", - "description": "Deletes a specified trigger instance.", - "parameters": [ - { - "in": "path", - "name": "triggerInstanceId", - "required": true, - "schema": { - "pattern": "[^\\/#\\?]+?", - "type": "string" + "schema": { + "description": "Show enabled only", + "type": "boolean" } } ], @@ -1402,7 +684,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeleteRowAPIDTO" + "$ref": "#/components/schemas/TriggersListResponse" } } } @@ -1410,20 +692,40 @@ } } }, - "/api/v1/triggers/set_callback_url": { + "/api/v1/triggers/enable/{connectedAccountId}/{triggerName}": { "post": { "tags": [ "Triggers" ], - "summary": "Set callback url", - "operationId": "Triggers_setCallbackUrl", - "description": "Sets a universal callback URL for the client.", + "summary": "Enable trigger", + "operationId": "Triggers_enable", + "description": "Enables a trigger for a connected account and specific trigger name.", + "parameters": [ + { + "in": "path", + "name": "connectedAccountId", + "required": true, + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } + }, + { + "in": "path", + "name": "triggerName", + "required": true, + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } + } + ], "requestBody": { - "description": "SetCallbackUrlBodyDTO", + "description": "EnableTriggerBodyDTO", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SetCallbackUrlBodyDTO" + "$ref": "#/components/schemas/EnableTriggerBodyDTO" } } }, @@ -1443,50 +745,44 @@ } } }, - "/api/v1/triggers/callback_url": { - "get": { - "tags": [ - "Triggers" - ], - "summary": "Get webhook url", - "operationId": "Triggers_getCallbackUrl", - "description": "Retrieves the universal callback URL set for the client.", - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/WebhookURLResponseDTO" - } - } - } - } - } - } - }, - "/api/v1/triggers/logs": { + "/api/v1/triggers/active_triggers": { "get": { "tags": [ "Triggers" ], - "summary": "Get logs", - "operationId": "Triggers_getLogsBasedOnConnectionAndIntegrationDetails", - "description": "Fetches logs based on connection and integration details.", + "summary": "Get active triggers", + "operationId": "Triggers_getActiveTriggers", + "description": "Lists active triggers based on query parameters.", "parameters": [ { "in": "query", - "name": "connectionId", + "name": "connectedAccountIds", "schema": { - "description": "ID of the connection", + "description": "IDs of the connected accounts", "type": "string" } }, { "in": "query", - "name": "integrationId", + "name": "integrationIds", "schema": { - "description": "ID of the integration", + "description": "IDs of the integrations", + "type": "string" + } + }, + { + "in": "query", + "name": "triggerIds", + "schema": { + "description": "IDs of the triggers", + "type": "string" + } + }, + { + "in": "query", + "name": "triggerNames", + "schema": { + "description": "Names of the triggers", "type": "string" } }, @@ -1505,6 +801,14 @@ "description": "Limit per page", "type": "number" } + }, + { + "in": "query", + "name": "showDisabled", + "schema": { + "description": "Show disabled triggers", + "type": "boolean" + } } ], "responses": { @@ -1513,7 +817,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggerLogsResDTO" + "$ref": "#/components/schemas/ActiveTriggersResDTO" } } } @@ -1521,20 +825,43 @@ } } }, - "/api/v1/cli/generate-cli-session": { - "get": { + "/api/v1/triggers/instance/{triggerId}/status": { + "patch": { "tags": [ - "CLI" + "Triggers" + ], + "summary": "Switch trigger instance status", + "operationId": "Triggers_switchInstanceStatus", + "description": "Switches the status of a trigger instance.", + "parameters": [ + { + "in": "path", + "name": "triggerId", + "required": true, + "schema": { + "pattern": "[^\\/#\\?]+?", + "type": "string" + } + } ], - "summary": "Handle cli code exchange", - "operationId": "Cli_exchangeCode", + "requestBody": { + "description": "SwitchTriggerStatusBodyDTO", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SwitchTriggerStatusBodyDTO" + } + } + }, + "required": false + }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateCLISessionResDTO" + "$ref": "#/components/schemas/TriggerResponseDTO" } } } @@ -1542,29 +869,21 @@ } } }, - "/api/v1/cli/get-cli-code": { - "get": { + "/api/v1/triggers/disable/{triggerInstanceId}": { + "post": { "tags": [ - "CLI" + "Triggers" ], - "summary": "Get cli code", - "operationId": "Cli_getCode", + "summary": "Disable trigger", + "operationId": "Triggers_disableTriggerInstance", + "description": "Disables a specified trigger instance.", "parameters": [ { - "in": "query", - "name": "key", + "in": "path", + "name": "triggerInstanceId", "required": true, "schema": { - "description": "Unique key for CLI session", - "type": "string" - } - }, - { - "in": "query", - "name": "code", - "required": false, - "schema": { - "description": "Code for CLI verification", + "pattern": "[^\\/#\\?]+?", "type": "string" } } @@ -1575,7 +894,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetCLISessionResDTO" + "$ref": "#/components/schemas/TriggerResponseDTO" } } } @@ -1583,29 +902,21 @@ } } }, - "/api/v1/cli/verify-cli-code": { - "get": { + "/api/v1/triggers/instance/{triggerInstanceId}": { + "delete": { "tags": [ - "CLI" + "Triggers" ], - "summary": "Handle cli code verification", - "operationId": "Cli_verifyCode", + "summary": "Delete trigger", + "operationId": "Triggers_deleteTriggerInstance", + "description": "Deletes a specified trigger instance.", "parameters": [ { - "in": "query", - "name": "key", + "in": "path", + "name": "triggerInstanceId", "required": true, "schema": { - "description": "Unique key for CLI session", - "type": "string" - } - }, - { - "in": "query", - "name": "code", - "required": false, - "schema": { - "description": "Code for CLI verification", + "pattern": "[^\\/#\\?]+?", "type": "string" } } @@ -1616,7 +927,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/VerifyCLICodeResDTO" + "$ref": "#/components/schemas/DeleteRowAPIDTO" } } } @@ -1624,19 +935,20 @@ } } }, - "/api/v1/metadata/toggle/trigger": { + "/api/v1/triggers/set_callback_url": { "post": { "tags": [ - "Metadata" + "Triggers" ], - "summary": "Toggle trigger state", - "operationId": "Metadata_toggleTriggerState", + "summary": "Set callback url", + "operationId": "Triggers_setCallbackUrl", + "description": "Sets a universal callback URL for the client.", "requestBody": { - "description": "TriggersEnabledToggleReqDTO", + "description": "SetCallbackUrlBodyDTO", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggersEnabledToggleReqDTO" + "$ref": "#/components/schemas/SetCallbackUrlBodyDTO" } } }, @@ -1648,7 +960,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ToggleTriggerStateResponseDTO" + "$ref": "#/components/schemas/TriggerResponseDTO" } } } @@ -1656,20 +968,21 @@ } } }, - "/api/v1/metadata/toggle.info": { + "/api/v1/triggers/callback_url": { "get": { "tags": [ - "Metadata" + "Triggers" ], - "summary": "Get toggle info", - "operationId": "Metadata_getToggleInfo", + "summary": "Get webhook url", + "operationId": "Triggers_getCallbackUrl", + "description": "Retrieves the universal callback URL set for the client.", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggerToggleInfoResponseDTO" + "$ref": "#/components/schemas/WebhookURLResponseDTO" } } } @@ -1677,88 +990,46 @@ } } }, - "/api/v2/actions": { + "/api/v1/triggers/logs": { "get": { "tags": [ - "Actions" + "Triggers" ], - "summary": "List actions", - "operationId": "ActionsControllerV2_list", - "description": "Retrieve a list of all actions based on query parameters.", + "summary": "Get logs", + "operationId": "Triggers_getLogsBasedOnConnectionAndIntegrationDetails", + "description": "Fetches logs based on connection and integration details.", "parameters": [ { "in": "query", - "name": "appNames", + "name": "connectionId", "schema": { - "description": "Names of the apps", + "description": "ID of the connection", "type": "string" } }, { "in": "query", - "name": "useCase", + "name": "integrationId", "schema": { - "description": "Use case", + "description": "ID of the integration", "type": "string" } }, { "in": "query", - "name": "showEnabledOnly", - "schema": { - "description": "Show enabled only", - "type": "boolean" - } - }, - { - "in": "query", - "name": "limit", + "name": "page", "schema": { - "description": "Limit", + "description": "Page number", "type": "number" } }, { "in": "query", - "name": "apps", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "actions", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "tags", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "usecaseLimit", + "name": "limit", "schema": { + "description": "Limit per page", "type": "number" } - }, - { - "in": "query", - "name": "filterImportantActions", - "schema": { - "type": "boolean" - } - }, - { - "in": "query", - "name": "showAll", - "schema": { - "type": "boolean" - } } ], "responses": { @@ -1767,7 +1038,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ActionsListResponseDTO" + "$ref": "#/components/schemas/TriggerLogsResDTO" } } } @@ -3304,6 +2575,9 @@ }, "name": { "type": "string" + }, + "deprecated": { + "type": "boolean" } }, "type": "object", @@ -3315,7 +2589,8 @@ "enabled", "logo", "name", - "tags" + "tags", + "deprecated" ] }, "ActionDetails": { @@ -3355,6 +2630,9 @@ }, "name": { "type": "string" + }, + "deprecated": { + "type": "boolean" } }, "type": "object", @@ -3368,7 +2646,8 @@ "enabled", "logo", "name", - "tags" + "tags", + "deprecated" ] }, "ActionsListResponseDTO": { @@ -4897,12 +4176,6 @@ }, "type": "object" }, - "TeamGetMemberListResponse": { - "items": { - "$ref": "#/components/schemas/MemberResDTO" - }, - "type": "array" - }, "ApiKeysListResponse": { "items": { "$ref": "#/components/schemas/APIKeyResDTO" diff --git a/ruby/.konfig/generate-id.txt b/ruby/.konfig/generate-id.txt index deda16e..6f71d30 100644 --- a/ruby/.konfig/generate-id.txt +++ b/ruby/.konfig/generate-id.txt @@ -1 +1 @@ -f6806b0a-8720-4eaf-ae43-bae770dcd3f1 \ No newline at end of file +8a4ba9f7-0499-454c-b204-bfa14d978c23 \ No newline at end of file diff --git a/ruby/README.md b/ruby/README.md index 644deee..a75480f 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -23,24 +23,13 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world * [`composio.api_keys.list`](#composioapi_keyslist) * [`composio.api_keys.remove`](#composioapi_keysremove) * [`composio.actions.execute`](#composioactionsexecute) - * [`composio.actions.execute_0`](#composioactionsexecute_0) * [`composio.actions.execute_action_proxy`](#composioactionsexecute_action_proxy) - * [`composio.actions.execute_proxy`](#composioactionsexecute_proxy) - * [`composio.actions.get`](#composioactionsget) * [`composio.actions.get_action_by_id`](#composioactionsget_action_by_id) * [`composio.actions.get_all_actions_based_on_query`](#composioactionsget_all_actions_based_on_query) - * [`composio.actions.list`](#composioactionslist) - * [`composio.actions.list_0`](#composioactionslist_0) * [`composio.apps.get_details`](#composioappsget_details) * [`composio.apps.list`](#composioappslist) * [`composio.apps.list_open_api_specs`](#composioappslist_open_api_specs) * [`composio.auth.identify_client_operation`](#composioauthidentify_client_operation) - * [`composio.auth.send_magic_link`](#composioauthsend_magic_link) - * [`composio.auth.user_logout`](#composioauthuser_logout) - * [`composio.auth.verify_magic_link`](#composioauthverify_magic_link) - * [`composio.cli.exchange_code`](#composiocliexchange_code) - * [`composio.cli.get_code`](#composiocliget_code) - * [`composio.cli.verify_code`](#composiocliverify_code) * [`composio.connections.delete`](#composioconnectionsdelete) * [`composio.connections.disable`](#composioconnectionsdisable) * [`composio.connections.enable`](#composioconnectionsenable) @@ -52,24 +41,17 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world * [`composio.integrations.get_connector_info`](#composiointegrationsget_connector_info) * [`composio.integrations.list_global_connectors`](#composiointegrationslist_global_connectors) * [`composio.integrations.update_integration`](#composiointegrationsupdate_integration) - * [`composio.integrations.update_status`](#composiointegrationsupdate_status) * [`composio.logs.list`](#composiologslist) - * [`composio.metadata.get_toggle_info`](#composiometadataget_toggle_info) - * [`composio.metadata.toggle_trigger_state`](#composiometadatatoggle_trigger_state) - * [`composio.team.get_member_list`](#composioteamget_member_list) - * [`composio.team.send_invitation`](#composioteamsend_invitation) * [`composio.triggers.delete_trigger_instance`](#composiotriggersdelete_trigger_instance) * [`composio.triggers.disable_trigger_instance`](#composiotriggersdisable_trigger_instance) * [`composio.triggers.enable`](#composiotriggersenable) * [`composio.triggers.get_active_triggers`](#composiotriggersget_active_triggers) - * [`composio.triggers.get_by_id`](#composiotriggersget_by_id) * [`composio.triggers.get_callback_url`](#composiotriggersget_callback_url) * [`composio.triggers.get_logs_based_on_connection_and_integration_details`](#composiotriggersget_logs_based_on_connection_and_integration_details) * [`composio.triggers.get_trigger_info`](#composiotriggersget_trigger_info) * [`composio.triggers.list`](#composiotriggerslist) * [`composio.triggers.set_callback_url`](#composiotriggersset_callback_url) * [`composio.triggers.switch_instance_status`](#composiotriggersswitch_instance_status) - * [`composio.triggers.switch_post_instance_status`](#composiotriggersswitch_post_instance_status) @@ -197,53 +179,12 @@ p result ### `composio.actions.execute` -Execute action - -#### 🛠️ Usage - -```ruby -result = composio.actions.execute( - action_id: "'+j>6", - connected_account_id: "string_example", - app_name: "string_example", - entity_id: "string_example", - endpoint: "string_example", - input: {}, - text: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### action_id: `String` -##### connectedAccountId: `String` -##### appName: `String` -##### entityId: `String` -##### endpoint: `String` -##### input: `Object` -##### text: `String` -#### 🔄 Return - -[ActionExecutionResDto](./lib/composio/models/action_execution_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/actions/{actionId}/execute` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.actions.execute_0` - Execute an action. Support both connected account and no auth auth. #### 🛠️ Usage ```ruby -result = composio.actions.execute_0( +result = composio.actions.execute( action_id: "'+j>6", connected_account_id: "string_example", app_name: "string_example", @@ -308,66 +249,6 @@ p result --- -### `composio.actions.execute_proxy` - -Execute action proxy - -#### 🛠️ Usage - -```ruby -result = composio.actions.execute_proxy( - endpoint: "endpoint_example", - connected_account_id: "connectedAccountId_example", -) -p result -``` - -#### ⚙️ Parameters - -##### endpoint: `String` -##### connected_account_id: `String` -#### 🔄 Return - -[ExecuteActionResDTO](./lib/composio/models/execute_action_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/actions/proxy` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.actions.get` - -Get action - -#### 🛠️ Usage - -```ruby -result = composio.actions.get( - action_id: "'+j>6", -) -p result -``` - -#### ⚙️ Parameters - -##### action_id: `String` -#### 🔄 Return - -[ActionDetails](./lib/composio/models/action_details.rb) - -#### 🌐 Endpoint - -`/api/v1/actions/{actionId}` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.actions.get_action_by_id` Get action details @@ -444,100 +325,6 @@ p result --- -### `composio.actions.list` - -List actions - -#### 🛠️ Usage - -```ruby -result = composio.actions.list( - app_names: "string_example", - use_case: "string_example", - show_enabled_only: true, - limit: 3.14, - apps: "string_example", - actions: "string_example", - tags: "string_example", - usecase_limit: 3.14, - filter_important_actions: true, - show_all: true, -) -p result -``` - -#### ⚙️ Parameters - -##### app_names: `String` -##### use_case: `String` -##### show_enabled_only: `Boolean` -##### limit: `Float` -##### apps: `String` -##### actions: `String` -##### tags: `String` -##### usecase_limit: `Float` -##### filter_important_actions: `Boolean` -##### show_all: `Boolean` -#### 🔄 Return - -[ActionsListResponseDTO](./lib/composio/models/actions_list_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/actions` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.actions.list_0` - -Retrieve a list of all actions based on query parameters. - -#### 🛠️ Usage - -```ruby -result = composio.actions.list_0( - app_names: "string_example", - use_case: "string_example", - show_enabled_only: true, - limit: 3.14, - apps: "string_example", - actions: "string_example", - tags: "string_example", - usecase_limit: 3.14, - filter_important_actions: true, - show_all: true, -) -p result -``` - -#### ⚙️ Parameters - -##### app_names: `String` -##### use_case: `String` -##### show_enabled_only: `Boolean` -##### limit: `Float` -##### apps: `String` -##### actions: `String` -##### tags: `String` -##### usecase_limit: `Float` -##### filter_important_actions: `Boolean` -##### show_all: `Boolean` -#### 🔄 Return - -[ActionsListResponseDTO](./lib/composio/models/actions_list_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v2/actions` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.apps.get_details` Get app details @@ -655,182 +442,6 @@ The framework used by the client --- -### `composio.auth.send_magic_link` - -Send magic link - -#### 🛠️ Usage - -```ruby -result = composio.auth.send_magic_link( - email: "string_example", - verify_host: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### email: `String` -The email of the user - -##### verifyHost: `String` -The frontend host of the user - -#### 🔄 Return - -[MagicLinkResDTO](./lib/composio/models/magic_link_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/client/auth/send_magic_link` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.auth.user_logout` - -Logout the user and clear the server side session - -#### 🛠️ Usage - -```ruby -result = composio.auth.user_logout -p result -``` - -#### 🔄 Return - -[LogoutResDTO](./lib/composio/models/logout_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/client/auth/logout` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.auth.verify_magic_link` - -Verify magic link - -#### 🛠️ Usage - -```ruby -result = composio.auth.verify_magic_link( - token: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### token: `String` -The magic link token - -#### 🔄 Return - -[VerifyMagicLinkResDTO](./lib/composio/models/verify_magic_link_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/client/auth/verify_magic_link` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.cli.exchange_code` - -Handle cli code exchange - -#### 🛠️ Usage - -```ruby -result = composio.cli.exchange_code -p result -``` - -#### 🔄 Return - -[GenerateCLISessionResDTO](./lib/composio/models/generate_cli_session_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/cli/generate-cli-session` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.cli.get_code` - -Get cli code - -#### 🛠️ Usage - -```ruby -result = composio.cli.get_code( - key: "key_example", - code: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### key: `String` -##### code: `String` -#### 🔄 Return - -[GetCLISessionResDTO](./lib/composio/models/get_cli_session_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/cli/get-cli-code` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.cli.verify_code` - -Handle cli code verification - -#### 🛠️ Usage - -```ruby -result = composio.cli.verify_code( - key: "key_example", - code: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### key: `String` -##### code: `String` -#### 🔄 Return - -[VerifyCLICodeResDTO](./lib/composio/models/verify_cli_code_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/cli/verify-cli-code` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.connections.delete` Delete connection @@ -1135,7 +746,7 @@ p result ### `composio.integrations.list_global_connectors` -List global connectors +List all connectors #### 🛠️ Usage @@ -1159,7 +770,7 @@ p result ### `composio.integrations.update_integration` -Patch connector +Modify connector #### 🛠️ Usage @@ -1194,43 +805,6 @@ Flag to indicate if the connector is enabled --- -### `composio.integrations.update_status` - -Patch post connector - -#### 🛠️ Usage - -```ruby -result = composio.integrations.update_status( - integration_id: "'+j>6", - auth_config: {}, - enabled: true, -) -p result -``` - -#### ⚙️ Parameters - -##### integration_id: `String` -##### authConfig: `Object` -Authentication configuration for the connector - -##### enabled: `Boolean` -Flag to indicate if the connector is enabled - -#### 🔄 Return - -[PatchConnectorResDTO](./lib/composio/models/patch_connector_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/integrations/{integrationId}/status` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.logs.list` List logs @@ -1274,124 +848,6 @@ p result --- -### `composio.metadata.get_toggle_info` - -Get toggle info - -#### 🛠️ Usage - -```ruby -result = composio.metadata.get_toggle_info -p result -``` - -#### 🔄 Return - -[TriggerToggleInfoResponseDTO](./lib/composio/models/trigger_toggle_info_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/metadata/toggle.info` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.metadata.toggle_trigger_state` - -Toggle trigger state - -#### 🛠️ Usage - -```ruby -result = composio.metadata.toggle_trigger_state( - enabled: true, -) -p result -``` - -#### ⚙️ Parameters - -##### enabled: `Boolean` -Flag to enable or disable triggers - -#### 🔄 Return - -[ToggleTriggerStateResponseDTO](./lib/composio/models/toggle_trigger_state_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/metadata/toggle/trigger` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.team.get_member_list` - -List members - -#### 🛠️ Usage - -```ruby -result = composio.team.get_member_list -p result -``` - -#### 🔄 Return - -[MemberResDTO](./lib/composio/models/member_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/team/members` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - -### `composio.team.send_invitation` - -Invite member - -#### 🛠️ Usage - -```ruby -result = composio.team.send_invitation( - email: "string_example", - name: "string_example", - verify_host: "string_example", -) -p result -``` - -#### ⚙️ Parameters - -##### email: `String` -The email of the member - -##### name: `String` -The name of the member - -##### verifyHost: `String` -The host to verify the member - -#### 🔄 Return - -[MemberResDTO](./lib/composio/models/member_res_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/team/invite` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.triggers.delete_trigger_instance` Deletes a specified trigger instance. @@ -1526,35 +982,6 @@ p result --- -### `composio.triggers.get_by_id` - -Retrieves a specific trigger by its ID. - -#### 🛠️ Usage - -```ruby -result = composio.triggers.get_by_id( - trigger_id: "'+j>6", -) -p result -``` - -#### ⚙️ Parameters - -##### trigger_id: `String` -#### 🔄 Return - -[GetTriggerResponseDTO](./lib/composio/models/get_trigger_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/triggers/get/{triggerId}` `GET` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ### `composio.triggers.get_callback_url` Retrieves the universal callback URL set for the client. @@ -1742,38 +1169,5 @@ The new enabled status of the trigger --- -### `composio.triggers.switch_post_instance_status` - -Switches the status of a trigger instance. - -#### 🛠️ Usage - -```ruby -result = composio.triggers.switch_post_instance_status( - enabled: true, - trigger_id: "'+j>6", -) -p result -``` - -#### ⚙️ Parameters - -##### enabled: `Boolean` -The new enabled status of the trigger - -##### trigger_id: `String` -#### 🔄 Return - -[TriggerResponseDTO](./lib/composio/models/trigger_response_dto.rb) - -#### 🌐 Endpoint - -`/api/v1/triggers/instance/{triggerId}/status` `POST` - -[🔙 **Back to Table of Contents**](#table-of-contents) - ---- - - ## Author This TypeScript package is automatically generated by [Konfig](https://konfigthis.com) diff --git a/ruby/lib/composio.rb b/ruby/lib/composio.rb index 8fd03c6..8dbba3b 100644 --- a/ruby/lib/composio.rb +++ b/ruby/lib/composio.rb @@ -136,12 +136,9 @@ require 'composio/api/actions_api' require 'composio/api/apps_api' require 'composio/api/auth_api' -require 'composio/api/cli_api' require 'composio/api/connections_api' require 'composio/api/integrations_api' require 'composio/api/logs_api' -require 'composio/api/metadata_api' -require 'composio/api/team_api' require 'composio/api/triggers_api' module Composio @@ -188,12 +185,9 @@ class Client attr_reader :actions attr_reader :apps attr_reader :auth - attr_reader :cli attr_reader :connections attr_reader :integrations attr_reader :logs - attr_reader :metadata - attr_reader :team attr_reader :triggers def initialize(config = Configuration.default) @@ -202,12 +196,9 @@ def initialize(config = Configuration.default) @actions = Composio::ActionsApi.new(@api_client) @apps = Composio::AppsApi.new(@api_client) @auth = Composio::AuthApi.new(@api_client) - @cli = Composio::CLIApi.new(@api_client) @connections = Composio::ConnectionsApi.new(@api_client) @integrations = Composio::IntegrationsApi.new(@api_client) @logs = Composio::LogsApi.new(@api_client) - @metadata = Composio::MetadataApi.new(@api_client) - @team = Composio::TeamApi.new(@api_client) @triggers = Composio::TriggersApi.new(@api_client) end end diff --git a/ruby/lib/composio/api/actions_api.rb b/ruby/lib/composio/api/actions_api.rb index b755d13..5e2568f 100644 --- a/ruby/lib/composio/api/actions_api.rb +++ b/ruby/lib/composio/api/actions_api.rb @@ -18,6 +18,8 @@ def initialize(api_client = ApiClient.default) # Execute action # + # Execute an action. Support both connected account and no auth auth. + # # @param action_id [String] # @param connected_account_id [String] # @param app_name [String] @@ -42,6 +44,8 @@ def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, enti # Execute action # + # Execute an action. Support both connected account and no auth auth. + # # @param action_id [String] # @param connected_account_id [String] # @param app_name [String] @@ -64,6 +68,7 @@ def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: end # Execute action + # Execute an action. Support both connected account and no auth auth. # @param action_id [String] # @param [Hash] opts the optional parameters # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO @@ -74,6 +79,7 @@ def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: end # Execute action + # Execute an action. Support both connected account and no auth auth. # @param action_id [String] # @param [Hash] opts the optional parameters # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO @@ -92,7 +98,7 @@ def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: end # resource path - local_var_path = '/api/v1/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) + local_var_path = '/api/v2/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -137,133 +143,6 @@ def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: end - # Execute action - # - # Execute an action. Support both connected account and no auth auth. - # - # @param action_id [String] - # @param connected_account_id [String] - # @param app_name [String] - # @param entity_id [String] - # @param endpoint [String] - # @param input [Object] - # @param text [String] - # @param body [ActionExecutionReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def execute_0(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {}) - _body = {} - _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL - _body[:appName] = app_name if app_name != SENTINEL - _body[:entityId] = entity_id if entity_id != SENTINEL - _body[:endpoint] = endpoint if endpoint != SENTINEL - _body[:input] = input if input != SENTINEL - _body[:text] = text if text != SENTINEL - extra[:action_execution_req_dto] = _body if !_body.empty? - api_response = execute_0_with_http_info_impl(action_id, extra) - api_response.data - end - - # Execute action - # - # Execute an action. Support both connected account and no auth auth. - # - # @param action_id [String] - # @param connected_account_id [String] - # @param app_name [String] - # @param entity_id [String] - # @param endpoint [String] - # @param input [Object] - # @param text [String] - # @param body [ActionExecutionReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def execute_0_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {}) - _body = {} - _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL - _body[:appName] = app_name if app_name != SENTINEL - _body[:entityId] = entity_id if entity_id != SENTINEL - _body[:endpoint] = endpoint if endpoint != SENTINEL - _body[:input] = input if input != SENTINEL - _body[:text] = text if text != SENTINEL - extra[:action_execution_req_dto] = _body if !_body.empty? - execute_0_with_http_info_impl(action_id, extra) - end - - # Execute action - # Execute an action. Support both connected account and no auth auth. - # @param action_id [String] - # @param [Hash] opts the optional parameters - # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO - # @return [ActionExecutionResDto] - private def execute_0_impl(action_id, opts = {}) - data, _status_code, _headers = execute_0_with_http_info(action_id, opts) - data - end - - # Execute action - # Execute an action. Support both connected account and no auth auth. - # @param action_id [String] - # @param [Hash] opts the optional parameters - # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO - # @return [APIResponse] data is ActionExecutionResDto, status code, headers and response - private def execute_0_with_http_info_impl(action_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.execute_0 ...' - end - # verify the required parameter 'action_id' is set - if @api_client.config.client_side_validation && action_id.nil? - fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.execute_0" - end - pattern = Regexp.new(/[^\/#\?]+?/) - if @api_client.config.client_side_validation && action_id !~ pattern - fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.execute_0, must conform to the pattern #{pattern}." - end - - # resource path - local_var_path = '/api/v2/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'action_execution_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'ActionExecutionResDto' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"ActionsApi.execute_0", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#execute_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - # Execute action proxy # # Execute an action with direct auth. @@ -359,140 +238,57 @@ def execute_action_proxy_with_http_info(endpoint:, connected_account_id:, extra: end - # Execute action proxy - # - # @param endpoint [String] - # @param connected_account_id [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def execute_proxy(endpoint:, connected_account_id:, extra: {}) - api_response = execute_proxy_with_http_info_impl(endpoint, connected_account_id, extra) - api_response.data - end - - # Execute action proxy - # - # @param endpoint [String] - # @param connected_account_id [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def execute_proxy_with_http_info(endpoint:, connected_account_id:, extra: {}) - execute_proxy_with_http_info_impl(endpoint, connected_account_id, extra) - end - - # Execute action proxy - # @param endpoint [String] - # @param connected_account_id [String] - # @param [Hash] opts the optional parameters - # @return [ExecuteActionResDTO] - private def execute_proxy_impl(endpoint, connected_account_id, opts = {}) - data, _status_code, _headers = execute_proxy_with_http_info(endpoint, connected_account_id, opts) - data - end - - # Execute action proxy - # @param endpoint [String] - # @param connected_account_id [String] - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is ExecuteActionResDTO, status code, headers and response - private def execute_proxy_with_http_info_impl(endpoint, connected_account_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.execute_proxy ...' - end - # verify the required parameter 'endpoint' is set - if @api_client.config.client_side_validation && endpoint.nil? - fail ArgumentError, "Missing the required parameter 'endpoint' when calling ActionsApi.execute_proxy" - end - # verify the required parameter 'connected_account_id' is set - if @api_client.config.client_side_validation && connected_account_id.nil? - fail ArgumentError, "Missing the required parameter 'connected_account_id' when calling ActionsApi.execute_proxy" - end - # resource path - local_var_path = '/api/v1/actions/proxy' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'endpoint'] = endpoint - query_params[:'connectedAccountId'] = connected_account_id - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ExecuteActionResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"ActionsApi.execute_proxy", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#execute_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - # Get action # + # Get action details + # # @param action_id [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get(action_id:, extra: {}) - api_response = get_with_http_info_impl(action_id, extra) + def get_action_by_id(action_id:, extra: {}) + api_response = get_action_by_id_with_http_info_impl(action_id, extra) api_response.data end # Get action # + # Get action details + # # @param action_id [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_with_http_info(action_id:, extra: {}) - get_with_http_info_impl(action_id, extra) + def get_action_by_id_with_http_info(action_id:, extra: {}) + get_action_by_id_with_http_info_impl(action_id, extra) end # Get action + # Get action details # @param action_id [String] # @param [Hash] opts the optional parameters # @return [ActionDetails] - private def get_impl(action_id, opts = {}) - data, _status_code, _headers = get_with_http_info(action_id, opts) + private def get_action_by_id_impl(action_id, opts = {}) + data, _status_code, _headers = get_action_by_id_with_http_info(action_id, opts) data end # Get action + # Get action details # @param action_id [String] # @param [Hash] opts the optional parameters # @return [APIResponse] data is ActionDetails, status code, headers and response - private def get_with_http_info_impl(action_id, opts = {}) + private def get_action_by_id_with_http_info_impl(action_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.get ...' + @api_client.config.logger.debug 'Calling API: ActionsApi.get_action_by_id ...' end # verify the required parameter 'action_id' is set if @api_client.config.client_side_validation && action_id.nil? - fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get" + fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get_action_by_id" end pattern = Regexp.new(/[^\/#\?]+?/) if @api_client.config.client_side_validation && action_id !~ pattern - fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get, must conform to the pattern #{pattern}." + fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get_action_by_id, must conform to the pattern #{pattern}." end # resource path - local_var_path = '/api/v1/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) + local_var_path = '/api/v2/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -515,7 +311,7 @@ def get_with_http_info(action_id:, extra: {}) auth_names = opts[:debug_auth_names] || ['api_key'] new_options = opts.merge( - :operation => :"ActionsApi.get", + :operation => :"ActionsApi.get_action_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -526,135 +322,45 @@ def get_with_http_info(action_id:, extra: {}) data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ActionsApi#get_action_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end APIResponse::new(data, status_code, headers, response) end - # Get action + # List actions minimal # - # Get action details + # Retrieve a list of all actions based on query parameters. # - # @param action_id [String] + # @param app_names [String] + # @param use_case [String] + # @param show_enabled_only [Boolean] + # @param limit [Float] + # @param apps [String] + # @param actions [String] + # @param tags [String] + # @param usecase_limit [Float] + # @param filter_important_actions [Boolean] + # @param show_all [Boolean] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_action_by_id(action_id:, extra: {}) - api_response = get_action_by_id_with_http_info_impl(action_id, extra) + def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) + extra[:app_names] = app_names if app_names != SENTINEL + extra[:use_case] = use_case if use_case != SENTINEL + extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL + extra[:limit] = limit if limit != SENTINEL + extra[:apps] = apps if apps != SENTINEL + extra[:actions] = actions if actions != SENTINEL + extra[:tags] = tags if tags != SENTINEL + extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL + extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL + extra[:show_all] = show_all if show_all != SENTINEL + api_response = get_all_actions_based_on_query_with_http_info_impl(extra) api_response.data end - # Get action + # List actions minimal # - # Get action details - # - # @param action_id [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_action_by_id_with_http_info(action_id:, extra: {}) - get_action_by_id_with_http_info_impl(action_id, extra) - end - - # Get action - # Get action details - # @param action_id [String] - # @param [Hash] opts the optional parameters - # @return [ActionDetails] - private def get_action_by_id_impl(action_id, opts = {}) - data, _status_code, _headers = get_action_by_id_with_http_info(action_id, opts) - data - end - - # Get action - # Get action details - # @param action_id [String] - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is ActionDetails, status code, headers and response - private def get_action_by_id_with_http_info_impl(action_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.get_action_by_id ...' - end - # verify the required parameter 'action_id' is set - if @api_client.config.client_side_validation && action_id.nil? - fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get_action_by_id" - end - pattern = Regexp.new(/[^\/#\?]+?/) - if @api_client.config.client_side_validation && action_id !~ pattern - fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get_action_by_id, must conform to the pattern #{pattern}." - end - - # resource path - local_var_path = '/api/v2/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ActionDetails' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"ActionsApi.get_action_by_id", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#get_action_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # List actions minimal - # - # Retrieve a list of all actions based on query parameters. - # - # @param app_names [String] - # @param use_case [String] - # @param show_enabled_only [Boolean] - # @param limit [Float] - # @param apps [String] - # @param actions [String] - # @param tags [String] - # @param usecase_limit [Float] - # @param filter_important_actions [Boolean] - # @param show_all [Boolean] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) - extra[:app_names] = app_names if app_names != SENTINEL - extra[:use_case] = use_case if use_case != SENTINEL - extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL - extra[:limit] = limit if limit != SENTINEL - extra[:apps] = apps if apps != SENTINEL - extra[:actions] = actions if actions != SENTINEL - extra[:tags] = tags if tags != SENTINEL - extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL - extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL - extra[:show_all] = show_all if show_all != SENTINEL - api_response = get_all_actions_based_on_query_with_http_info_impl(extra) - api_response.data - end - - # List actions minimal - # - # Retrieve a list of all actions based on query parameters. + # Retrieve a list of all actions based on query parameters. # # @param app_names [String] # @param use_case [String] @@ -767,294 +473,6 @@ def get_all_actions_based_on_query_with_http_info(app_names: SENTINEL, use_case: end APIResponse::new(data, status_code, headers, response) end - - - # List actions - # - # @param app_names [String] - # @param use_case [String] - # @param show_enabled_only [Boolean] - # @param limit [Float] - # @param apps [String] - # @param actions [String] - # @param tags [String] - # @param usecase_limit [Float] - # @param filter_important_actions [Boolean] - # @param show_all [Boolean] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) - extra[:app_names] = app_names if app_names != SENTINEL - extra[:use_case] = use_case if use_case != SENTINEL - extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL - extra[:limit] = limit if limit != SENTINEL - extra[:apps] = apps if apps != SENTINEL - extra[:actions] = actions if actions != SENTINEL - extra[:tags] = tags if tags != SENTINEL - extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL - extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL - extra[:show_all] = show_all if show_all != SENTINEL - api_response = list_with_http_info_impl(extra) - api_response.data - end - - # List actions - # - # @param app_names [String] - # @param use_case [String] - # @param show_enabled_only [Boolean] - # @param limit [Float] - # @param apps [String] - # @param actions [String] - # @param tags [String] - # @param usecase_limit [Float] - # @param filter_important_actions [Boolean] - # @param show_all [Boolean] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) - extra[:app_names] = app_names if app_names != SENTINEL - extra[:use_case] = use_case if use_case != SENTINEL - extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL - extra[:limit] = limit if limit != SENTINEL - extra[:apps] = apps if apps != SENTINEL - extra[:actions] = actions if actions != SENTINEL - extra[:tags] = tags if tags != SENTINEL - extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL - extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL - extra[:show_all] = show_all if show_all != SENTINEL - list_with_http_info_impl(extra) - end - - # List actions - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [ActionsListResponseDTO] - private def list_impl(opts = {}) - data, _status_code, _headers = list_with_http_info(opts) - data - end - - # List actions - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response - private def list_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.list ...' - end - # resource path - local_var_path = '/api/v1/actions' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil? - query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil? - query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'apps'] = opts[:'apps'] if !opts[:'apps'].nil? - query_params[:'actions'] = opts[:'actions'] if !opts[:'actions'].nil? - query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil? - query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil? - query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil? - query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ActionsListResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"ActionsApi.list", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # List actions - # - # Retrieve a list of all actions based on query parameters. - # - # @param app_names [String] - # @param use_case [String] - # @param show_enabled_only [Boolean] - # @param limit [Float] - # @param apps [String] - # @param actions [String] - # @param tags [String] - # @param usecase_limit [Float] - # @param filter_important_actions [Boolean] - # @param show_all [Boolean] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list_0(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) - extra[:app_names] = app_names if app_names != SENTINEL - extra[:use_case] = use_case if use_case != SENTINEL - extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL - extra[:limit] = limit if limit != SENTINEL - extra[:apps] = apps if apps != SENTINEL - extra[:actions] = actions if actions != SENTINEL - extra[:tags] = tags if tags != SENTINEL - extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL - extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL - extra[:show_all] = show_all if show_all != SENTINEL - api_response = list_0_with_http_info_impl(extra) - api_response.data - end - - # List actions - # - # Retrieve a list of all actions based on query parameters. - # - # @param app_names [String] - # @param use_case [String] - # @param show_enabled_only [Boolean] - # @param limit [Float] - # @param apps [String] - # @param actions [String] - # @param tags [String] - # @param usecase_limit [Float] - # @param filter_important_actions [Boolean] - # @param show_all [Boolean] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list_0_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {}) - extra[:app_names] = app_names if app_names != SENTINEL - extra[:use_case] = use_case if use_case != SENTINEL - extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL - extra[:limit] = limit if limit != SENTINEL - extra[:apps] = apps if apps != SENTINEL - extra[:actions] = actions if actions != SENTINEL - extra[:tags] = tags if tags != SENTINEL - extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL - extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL - extra[:show_all] = show_all if show_all != SENTINEL - list_0_with_http_info_impl(extra) - end - - # List actions - # Retrieve a list of all actions based on query parameters. - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [ActionsListResponseDTO] - private def list_0_impl(opts = {}) - data, _status_code, _headers = list_0_with_http_info(opts) - data - end - - # List actions - # Retrieve a list of all actions based on query parameters. - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response - private def list_0_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActionsApi.list_0 ...' - end - # resource path - local_var_path = '/api/v2/actions' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil? - query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil? - query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'apps'] = opts[:'apps'] if !opts[:'apps'].nil? - query_params[:'actions'] = opts[:'actions'] if !opts[:'actions'].nil? - query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil? - query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil? - query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil? - query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ActionsListResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"ActionsApi.list_0", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ActionsApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end end # top-level client access to avoid having the user to insantiate their own API instances diff --git a/ruby/lib/composio/api/auth_api.rb b/ruby/lib/composio/api/auth_api.rb index 31f4d34..fbb6cd1 100644 --- a/ruby/lib/composio/api/auth_api.rb +++ b/ruby/lib/composio/api/auth_api.rb @@ -106,263 +106,6 @@ def identify_client_operation_with_http_info(hash:, framework: SENTINEL, extra: end APIResponse::new(data, status_code, headers, response) end - - - # Send magic link - # - # @param email [String] The email of the user - # @param verify_host [String] The frontend host of the user - # @param body [MagicLinkReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def send_magic_link(email:, verify_host:, extra: {}) - _body = {} - _body[:email] = email if email != SENTINEL - _body[:verifyHost] = verify_host if verify_host != SENTINEL - extra[:magic_link_req_dto] = _body if !_body.empty? - api_response = send_magic_link_with_http_info_impl(extra) - api_response.data - end - - # Send magic link - # - # @param email [String] The email of the user - # @param verify_host [String] The frontend host of the user - # @param body [MagicLinkReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def send_magic_link_with_http_info(email:, verify_host:, extra: {}) - _body = {} - _body[:email] = email if email != SENTINEL - _body[:verifyHost] = verify_host if verify_host != SENTINEL - extra[:magic_link_req_dto] = _body if !_body.empty? - send_magic_link_with_http_info_impl(extra) - end - - # Send magic link - # @param [Hash] opts the optional parameters - # @option opts [MagicLinkReqDTO] :magic_link_req_dto MagicLinkReqDTO - # @return [MagicLinkResDTO] - private def send_magic_link_impl(opts = {}) - data, _status_code, _headers = send_magic_link_with_http_info(opts) - data - end - - # Send magic link - # @param [Hash] opts the optional parameters - # @option opts [MagicLinkReqDTO] :magic_link_req_dto MagicLinkReqDTO - # @return [APIResponse] data is MagicLinkResDTO, status code, headers and response - private def send_magic_link_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: AuthApi.send_magic_link ...' - end - # resource path - local_var_path = '/api/v1/client/auth/send_magic_link' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'magic_link_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'MagicLinkResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"AuthApi.send_magic_link", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: AuthApi#send_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Logout API - # - # Logout the user and clear the server side session - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def user_logout(extra: {}) - api_response = user_logout_with_http_info_impl(extra) - api_response.data - end - - # Logout API - # - # Logout the user and clear the server side session - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def user_logout_with_http_info(extra: {}) - user_logout_with_http_info_impl(extra) - end - - # Logout API - # Logout the user and clear the server side session - # @param [Hash] opts the optional parameters - # @return [LogoutResDTO] - private def user_logout_impl(opts = {}) - data, _status_code, _headers = user_logout_with_http_info(opts) - data - end - - # Logout API - # Logout the user and clear the server side session - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is LogoutResDTO, status code, headers and response - private def user_logout_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: AuthApi.user_logout ...' - end - # resource path - local_var_path = '/api/v1/client/auth/logout' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'LogoutResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"AuthApi.user_logout", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: AuthApi#user_logout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Verify magic link - # - # @param token [String] The magic link token - # @param body [VerifyMagicLinkReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def verify_magic_link(token:, extra: {}) - _body = {} - _body[:token] = token if token != SENTINEL - extra[:verify_magic_link_req_dto] = _body if !_body.empty? - api_response = verify_magic_link_with_http_info_impl(extra) - api_response.data - end - - # Verify magic link - # - # @param token [String] The magic link token - # @param body [VerifyMagicLinkReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def verify_magic_link_with_http_info(token:, extra: {}) - _body = {} - _body[:token] = token if token != SENTINEL - extra[:verify_magic_link_req_dto] = _body if !_body.empty? - verify_magic_link_with_http_info_impl(extra) - end - - # Verify magic link - # @param [Hash] opts the optional parameters - # @option opts [VerifyMagicLinkReqDTO] :verify_magic_link_req_dto VerifyMagicLinkReqDTO - # @return [VerifyMagicLinkResDTO] - private def verify_magic_link_impl(opts = {}) - data, _status_code, _headers = verify_magic_link_with_http_info(opts) - data - end - - # Verify magic link - # @param [Hash] opts the optional parameters - # @option opts [VerifyMagicLinkReqDTO] :verify_magic_link_req_dto VerifyMagicLinkReqDTO - # @return [APIResponse] data is VerifyMagicLinkResDTO, status code, headers and response - private def verify_magic_link_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: AuthApi.verify_magic_link ...' - end - # resource path - local_var_path = '/api/v1/client/auth/verify_magic_link' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'verify_magic_link_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'VerifyMagicLinkResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"AuthApi.verify_magic_link", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: AuthApi#verify_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end end # top-level client access to avoid having the user to insantiate their own API instances diff --git a/ruby/lib/composio/api/cli_api.rb b/ruby/lib/composio/api/cli_api.rb deleted file mode 100644 index 7d309c8..0000000 --- a/ruby/lib/composio/api/cli_api.rb +++ /dev/null @@ -1,266 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'cgi' - -module Composio - class CLIApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - - # Handle cli code exchange - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def exchange_code(extra: {}) - api_response = exchange_code_with_http_info_impl(extra) - api_response.data - end - - # Handle cli code exchange - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def exchange_code_with_http_info(extra: {}) - exchange_code_with_http_info_impl(extra) - end - - # Handle cli code exchange - # @param [Hash] opts the optional parameters - # @return [GenerateCLISessionResDTO] - private def exchange_code_impl(opts = {}) - data, _status_code, _headers = exchange_code_with_http_info(opts) - data - end - - # Handle cli code exchange - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is GenerateCLISessionResDTO, status code, headers and response - private def exchange_code_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CLIApi.exchange_code ...' - end - # resource path - local_var_path = '/api/v1/cli/generate-cli-session' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'GenerateCLISessionResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"CLIApi.exchange_code", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: CLIApi#exchange_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Get cli code - # - # @param key [String] - # @param code [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_code(key:, code: SENTINEL, extra: {}) - extra[:code] = code if code != SENTINEL - api_response = get_code_with_http_info_impl(key, extra) - api_response.data - end - - # Get cli code - # - # @param key [String] - # @param code [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_code_with_http_info(key:, code: SENTINEL, extra: {}) - extra[:code] = code if code != SENTINEL - get_code_with_http_info_impl(key, extra) - end - - # Get cli code - # @param key [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [GetCLISessionResDTO] - private def get_code_impl(key, opts = {}) - data, _status_code, _headers = get_code_with_http_info(key, opts) - data - end - - # Get cli code - # @param key [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [APIResponse] data is GetCLISessionResDTO, status code, headers and response - private def get_code_with_http_info_impl(key, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CLIApi.get_code ...' - end - # verify the required parameter 'key' is set - if @api_client.config.client_side_validation && key.nil? - fail ArgumentError, "Missing the required parameter 'key' when calling CLIApi.get_code" - end - # resource path - local_var_path = '/api/v1/cli/get-cli-code' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'key'] = key - query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'GetCLISessionResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"CLIApi.get_code", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: CLIApi#get_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Handle cli code verification - # - # @param key [String] - # @param code [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def verify_code(key:, code: SENTINEL, extra: {}) - extra[:code] = code if code != SENTINEL - api_response = verify_code_with_http_info_impl(key, extra) - api_response.data - end - - # Handle cli code verification - # - # @param key [String] - # @param code [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def verify_code_with_http_info(key:, code: SENTINEL, extra: {}) - extra[:code] = code if code != SENTINEL - verify_code_with_http_info_impl(key, extra) - end - - # Handle cli code verification - # @param key [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [VerifyCLICodeResDTO] - private def verify_code_impl(key, opts = {}) - data, _status_code, _headers = verify_code_with_http_info(key, opts) - data - end - - # Handle cli code verification - # @param key [String] - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [APIResponse] data is VerifyCLICodeResDTO, status code, headers and response - private def verify_code_with_http_info_impl(key, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CLIApi.verify_code ...' - end - # verify the required parameter 'key' is set - if @api_client.config.client_side_validation && key.nil? - fail ArgumentError, "Missing the required parameter 'key' when calling CLIApi.verify_code" - end - # resource path - local_var_path = '/api/v1/cli/verify-cli-code' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'key'] = key - query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'VerifyCLICodeResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"CLIApi.verify_code", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: CLIApi#verify_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - end - - # top-level client access to avoid having the user to insantiate their own API instances - CLI = CLIApi::new -end diff --git a/ruby/lib/composio/api/integrations_api.rb b/ruby/lib/composio/api/integrations_api.rb index b156c07..0dc5ad1 100644 --- a/ruby/lib/composio/api/integrations_api.rb +++ b/ruby/lib/composio/api/integrations_api.rb @@ -292,7 +292,7 @@ def get_connector_info_with_http_info(integration_id:, extra: {}) end - # List global connectors + # List all connectors # # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name def list_global_connectors(extra: {}) @@ -300,14 +300,14 @@ def list_global_connectors(extra: {}) api_response.data end - # List global connectors + # List all connectors # # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name def list_global_connectors_with_http_info(extra: {}) list_global_connectors_with_http_info_impl(extra) end - # List global connectors + # List all connectors # @param [Hash] opts the optional parameters # @return [GetConnectorListResDTO] private def list_global_connectors_impl(opts = {}) @@ -315,7 +315,7 @@ def list_global_connectors_with_http_info(extra: {}) data end - # List global connectors + # List all connectors # @param [Hash] opts the optional parameters # @return [APIResponse] data is GetConnectorListResDTO, status code, headers and response private def list_global_connectors_with_http_info_impl(opts = {}) @@ -363,7 +363,7 @@ def list_global_connectors_with_http_info(extra: {}) end - # Patch connector + # Modify connector # # @param integration_id [String] # @param auth_config [Object] Authentication configuration for the connector @@ -379,7 +379,7 @@ def update_integration(integration_id:, auth_config: SENTINEL, enabled: SENTINEL api_response.data end - # Patch connector + # Modify connector # # @param integration_id [String] # @param auth_config [Object] Authentication configuration for the connector @@ -394,7 +394,7 @@ def update_integration_with_http_info(integration_id:, auth_config: SENTINEL, en update_integration_with_http_info_impl(integration_id, extra) end - # Patch connector + # Modify connector # @param integration_id [String] # @param [Hash] opts the optional parameters # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO @@ -404,7 +404,7 @@ def update_integration_with_http_info(integration_id:, auth_config: SENTINEL, en data end - # Patch connector + # Modify connector # @param integration_id [String] # @param [Hash] opts the optional parameters # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO @@ -466,111 +466,6 @@ def update_integration_with_http_info(integration_id:, auth_config: SENTINEL, en end APIResponse::new(data, status_code, headers, response) end - - - # Patch post connector - # - # @param integration_id [String] - # @param auth_config [Object] Authentication configuration for the connector - # @param enabled [Boolean] Flag to indicate if the connector is enabled - # @param body [PatchConnectorReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def update_status(integration_id:, auth_config: SENTINEL, enabled: SENTINEL, extra: {}) - _body = {} - _body[:authConfig] = auth_config if auth_config != SENTINEL - _body[:enabled] = enabled if enabled != SENTINEL - extra[:patch_connector_req_dto] = _body if !_body.empty? - api_response = update_status_with_http_info_impl(integration_id, extra) - api_response.data - end - - # Patch post connector - # - # @param integration_id [String] - # @param auth_config [Object] Authentication configuration for the connector - # @param enabled [Boolean] Flag to indicate if the connector is enabled - # @param body [PatchConnectorReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def update_status_with_http_info(integration_id:, auth_config: SENTINEL, enabled: SENTINEL, extra: {}) - _body = {} - _body[:authConfig] = auth_config if auth_config != SENTINEL - _body[:enabled] = enabled if enabled != SENTINEL - extra[:patch_connector_req_dto] = _body if !_body.empty? - update_status_with_http_info_impl(integration_id, extra) - end - - # Patch post connector - # @param integration_id [String] - # @param [Hash] opts the optional parameters - # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO - # @return [PatchConnectorResDTO] - private def update_status_impl(integration_id, opts = {}) - data, _status_code, _headers = update_status_with_http_info(integration_id, opts) - data - end - - # Patch post connector - # @param integration_id [String] - # @param [Hash] opts the optional parameters - # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO - # @return [APIResponse] data is PatchConnectorResDTO, status code, headers and response - private def update_status_with_http_info_impl(integration_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IntegrationsApi.update_status ...' - end - # verify the required parameter 'integration_id' is set - if @api_client.config.client_side_validation && integration_id.nil? - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.update_status" - end - pattern = Regexp.new(/[^\/#\?]+?/) - if @api_client.config.client_side_validation && integration_id !~ pattern - fail ArgumentError, "invalid value for 'integration_id' when calling IntegrationsApi.update_status, must conform to the pattern #{pattern}." - end - - # resource path - local_var_path = '/api/v1/integrations/{integrationId}/status'.sub('{' + 'integrationId' + '}', CGI.escape(integration_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patch_connector_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'PatchConnectorResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"IntegrationsApi.update_status", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IntegrationsApi#update_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end end # top-level client access to avoid having the user to insantiate their own API instances diff --git a/ruby/lib/composio/api/metadata_api.rb b/ruby/lib/composio/api/metadata_api.rb deleted file mode 100644 index 37fb100..0000000 --- a/ruby/lib/composio/api/metadata_api.rb +++ /dev/null @@ -1,180 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'cgi' - -module Composio - class MetadataApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - - # Get toggle info - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_toggle_info(extra: {}) - api_response = get_toggle_info_with_http_info_impl(extra) - api_response.data - end - - # Get toggle info - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_toggle_info_with_http_info(extra: {}) - get_toggle_info_with_http_info_impl(extra) - end - - # Get toggle info - # @param [Hash] opts the optional parameters - # @return [TriggerToggleInfoResponseDTO] - private def get_toggle_info_impl(opts = {}) - data, _status_code, _headers = get_toggle_info_with_http_info(opts) - data - end - - # Get toggle info - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is TriggerToggleInfoResponseDTO, status code, headers and response - private def get_toggle_info_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: MetadataApi.get_toggle_info ...' - end - # resource path - local_var_path = '/api/v1/metadata/toggle.info' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'TriggerToggleInfoResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"MetadataApi.get_toggle_info", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: MetadataApi#get_toggle_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Toggle trigger state - # - # @param enabled [Boolean] Flag to enable or disable triggers - # @param body [TriggersEnabledToggleReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def toggle_trigger_state(enabled:, extra: {}) - _body = {} - _body[:enabled] = enabled if enabled != SENTINEL - extra[:triggers_enabled_toggle_req_dto] = _body if !_body.empty? - api_response = toggle_trigger_state_with_http_info_impl(extra) - api_response.data - end - - # Toggle trigger state - # - # @param enabled [Boolean] Flag to enable or disable triggers - # @param body [TriggersEnabledToggleReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def toggle_trigger_state_with_http_info(enabled:, extra: {}) - _body = {} - _body[:enabled] = enabled if enabled != SENTINEL - extra[:triggers_enabled_toggle_req_dto] = _body if !_body.empty? - toggle_trigger_state_with_http_info_impl(extra) - end - - # Toggle trigger state - # @param [Hash] opts the optional parameters - # @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO - # @return [ToggleTriggerStateResponseDTO] - private def toggle_trigger_state_impl(opts = {}) - data, _status_code, _headers = toggle_trigger_state_with_http_info(opts) - data - end - - # Toggle trigger state - # @param [Hash] opts the optional parameters - # @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO - # @return [APIResponse] data is ToggleTriggerStateResponseDTO, status code, headers and response - private def toggle_trigger_state_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: MetadataApi.toggle_trigger_state ...' - end - # resource path - local_var_path = '/api/v1/metadata/toggle/trigger' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'triggers_enabled_toggle_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'ToggleTriggerStateResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"MetadataApi.toggle_trigger_state", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: MetadataApi#toggle_trigger_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - end - - # top-level client access to avoid having the user to insantiate their own API instances - Metadata = MetadataApi::new -end diff --git a/ruby/lib/composio/api/team_api.rb b/ruby/lib/composio/api/team_api.rb deleted file mode 100644 index b27376e..0000000 --- a/ruby/lib/composio/api/team_api.rb +++ /dev/null @@ -1,188 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'cgi' - -module Composio - class TeamApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - - # List members - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_member_list(extra: {}) - api_response = get_member_list_with_http_info_impl(extra) - api_response.data - end - - # List members - # - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_member_list_with_http_info(extra: {}) - get_member_list_with_http_info_impl(extra) - end - - # List members - # @param [Hash] opts the optional parameters - # @return [Array] - private def get_member_list_impl(opts = {}) - data, _status_code, _headers = get_member_list_with_http_info(opts) - data - end - - # List members - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is Array, status code, headers and response - private def get_member_list_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TeamApi.get_member_list ...' - end - # resource path - local_var_path = '/api/v1/team/members' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'Array' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"TeamApi.get_member_list", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TeamApi#get_member_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - - # Invite member - # - # @param email [String] The email of the member - # @param name [String] The name of the member - # @param verify_host [String] The host to verify the member - # @param body [InviteMemberReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def send_invitation(email:, name:, verify_host:, extra: {}) - _body = {} - _body[:email] = email if email != SENTINEL - _body[:name] = name if name != SENTINEL - _body[:verifyHost] = verify_host if verify_host != SENTINEL - extra[:invite_member_req_dto] = _body if !_body.empty? - api_response = send_invitation_with_http_info_impl(extra) - api_response.data - end - - # Invite member - # - # @param email [String] The email of the member - # @param name [String] The name of the member - # @param verify_host [String] The host to verify the member - # @param body [InviteMemberReqDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def send_invitation_with_http_info(email:, name:, verify_host:, extra: {}) - _body = {} - _body[:email] = email if email != SENTINEL - _body[:name] = name if name != SENTINEL - _body[:verifyHost] = verify_host if verify_host != SENTINEL - extra[:invite_member_req_dto] = _body if !_body.empty? - send_invitation_with_http_info_impl(extra) - end - - # Invite member - # @param [Hash] opts the optional parameters - # @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO - # @return [MemberResDTO] - private def send_invitation_impl(opts = {}) - data, _status_code, _headers = send_invitation_with_http_info(opts) - data - end - - # Invite member - # @param [Hash] opts the optional parameters - # @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO - # @return [APIResponse] data is MemberResDTO, status code, headers and response - private def send_invitation_with_http_info_impl(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TeamApi.send_invitation ...' - end - # resource path - local_var_path = '/api/v1/team/invite' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'invite_member_req_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'MemberResDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"TeamApi.send_invitation", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TeamApi#send_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - end - - # top-level client access to avoid having the user to insantiate their own API instances - Team = TeamApi::new -end diff --git a/ruby/lib/composio/api/triggers_api.rb b/ruby/lib/composio/api/triggers_api.rb index 95426e1..399e781 100644 --- a/ruby/lib/composio/api/triggers_api.rb +++ b/ruby/lib/composio/api/triggers_api.rb @@ -442,96 +442,6 @@ def get_active_triggers_with_http_info(connected_account_ids: SENTINEL, integrat end - # Get trigger - # - # Retrieves a specific trigger by its ID. - # - # @param trigger_id [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_by_id(trigger_id:, extra: {}) - api_response = get_by_id_with_http_info_impl(trigger_id, extra) - api_response.data - end - - # Get trigger - # - # Retrieves a specific trigger by its ID. - # - # @param trigger_id [String] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def get_by_id_with_http_info(trigger_id:, extra: {}) - get_by_id_with_http_info_impl(trigger_id, extra) - end - - # Get trigger - # Retrieves a specific trigger by its ID. - # @param trigger_id [String] - # @param [Hash] opts the optional parameters - # @return [GetTriggerResponseDTO] - private def get_by_id_impl(trigger_id, opts = {}) - data, _status_code, _headers = get_by_id_with_http_info(trigger_id, opts) - data - end - - # Get trigger - # Retrieves a specific trigger by its ID. - # @param trigger_id [String] - # @param [Hash] opts the optional parameters - # @return [APIResponse] data is GetTriggerResponseDTO, status code, headers and response - private def get_by_id_with_http_info_impl(trigger_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TriggersApi.get_by_id ...' - end - # verify the required parameter 'trigger_id' is set - if @api_client.config.client_side_validation && trigger_id.nil? - fail ArgumentError, "Missing the required parameter 'trigger_id' when calling TriggersApi.get_by_id" - end - pattern = Regexp.new(/[^\/#\?]+?/) - if @api_client.config.client_side_validation && trigger_id !~ pattern - fail ArgumentError, "invalid value for 'trigger_id' when calling TriggersApi.get_by_id, must conform to the pattern #{pattern}." - end - - # resource path - local_var_path = '/api/v1/triggers/get/{triggerId}'.sub('{' + 'triggerId' + '}', CGI.escape(trigger_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'GetTriggerResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"TriggersApi.get_by_id", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TriggersApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end - - # Get webhook url # # Retrieves the universal callback URL set for the client. @@ -1108,113 +1018,6 @@ def switch_instance_status_with_http_info(enabled:, trigger_id:, extra: {}) end APIResponse::new(data, status_code, headers, response) end - - - # Switch post trigger instance status - # - # Switches the status of a trigger instance. - # - # @param enabled [Boolean] The new enabled status of the trigger - # @param trigger_id [String] - # @param body [SwitchTriggerStatusBodyDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def switch_post_instance_status(enabled:, trigger_id:, extra: {}) - _body = {} - _body[:enabled] = enabled if enabled != SENTINEL - extra[:switch_trigger_status_body_dto] = _body if !_body.empty? - api_response = switch_post_instance_status_with_http_info_impl(trigger_id, extra) - api_response.data - end - - # Switch post trigger instance status - # - # Switches the status of a trigger instance. - # - # @param enabled [Boolean] The new enabled status of the trigger - # @param trigger_id [String] - # @param body [SwitchTriggerStatusBodyDTO] - # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def switch_post_instance_status_with_http_info(enabled:, trigger_id:, extra: {}) - _body = {} - _body[:enabled] = enabled if enabled != SENTINEL - extra[:switch_trigger_status_body_dto] = _body if !_body.empty? - switch_post_instance_status_with_http_info_impl(trigger_id, extra) - end - - # Switch post trigger instance status - # Switches the status of a trigger instance. - # @param trigger_id [String] - # @param [Hash] opts the optional parameters - # @option opts [SwitchTriggerStatusBodyDTO] :switch_trigger_status_body_dto SwitchTriggerStatusBodyDTO - # @return [TriggerResponseDTO] - private def switch_post_instance_status_impl(trigger_id, opts = {}) - data, _status_code, _headers = switch_post_instance_status_with_http_info(trigger_id, opts) - data - end - - # Switch post trigger instance status - # Switches the status of a trigger instance. - # @param trigger_id [String] - # @param [Hash] opts the optional parameters - # @option opts [SwitchTriggerStatusBodyDTO] :switch_trigger_status_body_dto SwitchTriggerStatusBodyDTO - # @return [APIResponse] data is TriggerResponseDTO, status code, headers and response - private def switch_post_instance_status_with_http_info_impl(trigger_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TriggersApi.switch_post_instance_status ...' - end - # verify the required parameter 'trigger_id' is set - if @api_client.config.client_side_validation && trigger_id.nil? - fail ArgumentError, "Missing the required parameter 'trigger_id' when calling TriggersApi.switch_post_instance_status" - end - pattern = Regexp.new(/[^\/#\?]+?/) - if @api_client.config.client_side_validation && trigger_id !~ pattern - fail ArgumentError, "invalid value for 'trigger_id' when calling TriggersApi.switch_post_instance_status, must conform to the pattern #{pattern}." - end - - # resource path - local_var_path = '/api/v1/triggers/instance/{triggerId}/status'.sub('{' + 'triggerId' + '}', CGI.escape(trigger_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'switch_trigger_status_body_dto']) - - # return_type - return_type = opts[:debug_return_type] || 'TriggerResponseDTO' - - # auth_names - auth_names = opts[:debug_auth_names] || ['api_key'] - - new_options = opts.merge( - :operation => :"TriggersApi.switch_post_instance_status", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TriggersApi#switch_post_instance_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - APIResponse::new(data, status_code, headers, response) - end end # top-level client access to avoid having the user to insantiate their own API instances diff --git a/ruby/lib/composio/models/action_details.rb b/ruby/lib/composio/models/action_details.rb index cb598d2..b3678ba 100644 --- a/ruby/lib/composio/models/action_details.rb +++ b/ruby/lib/composio/models/action_details.rb @@ -33,6 +33,8 @@ class ActionDetails attr_accessor :name + attr_accessor :deprecated + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +48,8 @@ def self.attribute_map :'display_name' => :'displayName', :'enabled' => :'enabled', :'logo' => :'logo', - :'name' => :'name' + :'name' => :'name', + :'deprecated' => :'deprecated' } end @@ -68,7 +71,8 @@ def self.openapi_types :'display_name' => :'String', :'enabled' => :'Boolean', :'logo' => :'String', - :'name' => :'String' + :'name' => :'String', + :'deprecated' => :'Boolean' } end @@ -138,6 +142,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'deprecated') + self.deprecated = attributes[:'deprecated'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -184,6 +192,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "name", name cannot be nil.') end + if @deprecated.nil? + invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.') + end + invalid_properties end @@ -200,6 +212,7 @@ def valid? return false if @enabled.nil? return false if @logo.nil? return false if @name.nil? + return false if @deprecated.nil? true end @@ -218,7 +231,8 @@ def ==(o) display_name == o.display_name && enabled == o.enabled && logo == o.logo && - name == o.name + name == o.name && + deprecated == o.deprecated end # @see the `==` method @@ -230,7 +244,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [tags, description, parameters, response, app_id, app_key, app_name, display_name, enabled, logo, name].hash + [tags, description, parameters, response, app_id, app_key, app_name, display_name, enabled, logo, name, deprecated].hash end # Builds the object from hash diff --git a/ruby/lib/composio/models/action_details_minimal.rb b/ruby/lib/composio/models/action_details_minimal.rb index 7298cd5..03ec34d 100644 --- a/ruby/lib/composio/models/action_details_minimal.rb +++ b/ruby/lib/composio/models/action_details_minimal.rb @@ -29,6 +29,8 @@ class ActionDetailsMinimal attr_accessor :name + attr_accessor :deprecated + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,8 @@ def self.attribute_map :'display_name' => :'displayName', :'enabled' => :'enabled', :'logo' => :'logo', - :'name' => :'name' + :'name' => :'name', + :'deprecated' => :'deprecated' } end @@ -60,7 +63,8 @@ def self.openapi_types :'display_name' => :'String', :'enabled' => :'Boolean', :'logo' => :'String', - :'name' => :'String' + :'name' => :'String', + :'deprecated' => :'Boolean' } end @@ -122,6 +126,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'deprecated') + self.deprecated = attributes[:'deprecated'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -160,6 +168,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "name", name cannot be nil.') end + if @deprecated.nil? + invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.') + end + invalid_properties end @@ -174,6 +186,7 @@ def valid? return false if @enabled.nil? return false if @logo.nil? return false if @name.nil? + return false if @deprecated.nil? true end @@ -190,7 +203,8 @@ def ==(o) display_name == o.display_name && enabled == o.enabled && logo == o.logo && - name == o.name + name == o.name && + deprecated == o.deprecated end # @see the `==` method @@ -202,7 +216,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [tags, description, app_id, app_key, app_name, display_name, enabled, logo, name].hash + [tags, description, app_id, app_key, app_name, display_name, enabled, logo, name, deprecated].hash end # Builds the object from hash diff --git a/ruby/spec/api/actions_api_spec.rb b/ruby/spec/api/actions_api_spec.rb index ba3616d..d61ce7a 100644 --- a/ruby/spec/api/actions_api_spec.rb +++ b/ruby/spec/api/actions_api_spec.rb @@ -28,24 +28,12 @@ # unit tests for execute # Execute action - # @param action_id - # @param [Hash] opts the optional parameters - # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO - # @return [ActionExecutionResDto] - describe 'execute test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for execute_0 - # Execute action # Execute an action. Support both connected account and no auth auth. # @param action_id # @param [Hash] opts the optional parameters # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO # @return [ActionExecutionResDto] - describe 'execute_0 test' do + describe 'execute test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -64,29 +52,6 @@ end end - # unit tests for execute_proxy - # Execute action proxy - # @param endpoint - # @param connected_account_id - # @param [Hash] opts the optional parameters - # @return [ExecuteActionResDTO] - describe 'execute_proxy test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get - # Get action - # @param action_id - # @param [Hash] opts the optional parameters - # @return [ActionDetails] - describe 'get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_action_by_id # Get action # Get action details @@ -120,45 +85,4 @@ end end - # unit tests for list - # List actions - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [ActionsListResponseDTO] - describe 'list test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_0 - # List actions - # Retrieve a list of all actions based on query parameters. - # @param [Hash] opts the optional parameters - # @option opts [String] :app_names - # @option opts [String] :use_case - # @option opts [Boolean] :show_enabled_only - # @option opts [Float] :limit - # @option opts [String] :apps - # @option opts [String] :actions - # @option opts [String] :tags - # @option opts [Float] :usecase_limit - # @option opts [Boolean] :filter_important_actions - # @option opts [Boolean] :show_all - # @return [ActionsListResponseDTO] - describe 'list_0 test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/ruby/spec/api/auth_api_spec.rb b/ruby/spec/api/auth_api_spec.rb index d0f17ec..79363ad 100644 --- a/ruby/spec/api/auth_api_spec.rb +++ b/ruby/spec/api/auth_api_spec.rb @@ -37,37 +37,4 @@ end end - # unit tests for send_magic_link - # Send magic link - # @param [Hash] opts the optional parameters - # @option opts [MagicLinkReqDTO] :magic_link_req_dto MagicLinkReqDTO - # @return [MagicLinkResDTO] - describe 'send_magic_link test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for user_logout - # Logout API - # Logout the user and clear the server side session - # @param [Hash] opts the optional parameters - # @return [LogoutResDTO] - describe 'user_logout test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for verify_magic_link - # Verify magic link - # @param [Hash] opts the optional parameters - # @option opts [VerifyMagicLinkReqDTO] :verify_magic_link_req_dto VerifyMagicLinkReqDTO - # @return [VerifyMagicLinkResDTO] - describe 'verify_magic_link test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/ruby/spec/api/cli_api_spec.rb b/ruby/spec/api/cli_api_spec.rb deleted file mode 100644 index 1fa68b3..0000000 --- a/ruby/spec/api/cli_api_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'spec_helper' -require 'json' - -# Unit tests for Composio::CLIApi -describe 'CLIApi' do - before do - # run before each test - @api_instance = Composio::CLIApi.new - end - - after do - # run after each test - end - - describe 'test an instance of CLIApi' do - it 'should create an instance of CLIApi' do - expect(@api_instance).to be_instance_of(Composio::CLIApi) - end - end - - # unit tests for exchange_code - # Handle cli code exchange - # @param [Hash] opts the optional parameters - # @return [GenerateCLISessionResDTO] - describe 'exchange_code test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_code - # Get cli code - # @param key - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [GetCLISessionResDTO] - describe 'get_code test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for verify_code - # Handle cli code verification - # @param key - # @param [Hash] opts the optional parameters - # @option opts [String] :code - # @return [VerifyCLICodeResDTO] - describe 'verify_code test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/ruby/spec/api/integrations_api_spec.rb b/ruby/spec/api/integrations_api_spec.rb index cd92888..7157f9d 100644 --- a/ruby/spec/api/integrations_api_spec.rb +++ b/ruby/spec/api/integrations_api_spec.rb @@ -60,7 +60,7 @@ end # unit tests for list_global_connectors - # List global connectors + # List all connectors # @param [Hash] opts the optional parameters # @return [GetConnectorListResDTO] describe 'list_global_connectors test' do @@ -70,7 +70,7 @@ end # unit tests for update_integration - # Patch connector + # Modify connector # @param integration_id # @param [Hash] opts the optional parameters # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO @@ -81,16 +81,4 @@ end end - # unit tests for update_status - # Patch post connector - # @param integration_id - # @param [Hash] opts the optional parameters - # @option opts [PatchConnectorReqDTO] :patch_connector_req_dto PatchConnectorReqDTO - # @return [PatchConnectorResDTO] - describe 'update_status test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/ruby/spec/api/metadata_api_spec.rb b/ruby/spec/api/metadata_api_spec.rb deleted file mode 100644 index 1e51215..0000000 --- a/ruby/spec/api/metadata_api_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'spec_helper' -require 'json' - -# Unit tests for Composio::MetadataApi -describe 'MetadataApi' do - before do - # run before each test - @api_instance = Composio::MetadataApi.new - end - - after do - # run after each test - end - - describe 'test an instance of MetadataApi' do - it 'should create an instance of MetadataApi' do - expect(@api_instance).to be_instance_of(Composio::MetadataApi) - end - end - - # unit tests for get_toggle_info - # Get toggle info - # @param [Hash] opts the optional parameters - # @return [TriggerToggleInfoResponseDTO] - describe 'get_toggle_info test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for toggle_trigger_state - # Toggle trigger state - # @param [Hash] opts the optional parameters - # @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO - # @return [ToggleTriggerStateResponseDTO] - describe 'toggle_trigger_state test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/ruby/spec/api/team_api_spec.rb b/ruby/spec/api/team_api_spec.rb deleted file mode 100644 index 5bb3924..0000000 --- a/ruby/spec/api/team_api_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -=begin -#Composio OpenAPI - -#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase - -The version of the OpenAPI document: 1.0.0 -=end - -require 'spec_helper' -require 'json' - -# Unit tests for Composio::TeamApi -describe 'TeamApi' do - before do - # run before each test - @api_instance = Composio::TeamApi.new - end - - after do - # run after each test - end - - describe 'test an instance of TeamApi' do - it 'should create an instance of TeamApi' do - expect(@api_instance).to be_instance_of(Composio::TeamApi) - end - end - - # unit tests for get_member_list - # List members - # @param [Hash] opts the optional parameters - # @return [Array] - describe 'get_member_list test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for send_invitation - # Invite member - # @param [Hash] opts the optional parameters - # @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO - # @return [MemberResDTO] - describe 'send_invitation test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/ruby/spec/api/triggers_api_spec.rb b/ruby/spec/api/triggers_api_spec.rb index 0ea05ba..df0bc40 100644 --- a/ruby/spec/api/triggers_api_spec.rb +++ b/ruby/spec/api/triggers_api_spec.rb @@ -82,18 +82,6 @@ end end - # unit tests for get_by_id - # Get trigger - # Retrieves a specific trigger by its ID. - # @param trigger_id - # @param [Hash] opts the optional parameters - # @return [GetTriggerResponseDTO] - describe 'get_by_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for get_callback_url # Get webhook url # Retrieves the universal callback URL set for the client. @@ -172,17 +160,4 @@ end end - # unit tests for switch_post_instance_status - # Switch post trigger instance status - # Switches the status of a trigger instance. - # @param trigger_id - # @param [Hash] opts the optional parameters - # @option opts [SwitchTriggerStatusBodyDTO] :switch_trigger_status_body_dto SwitchTriggerStatusBodyDTO - # @return [TriggerResponseDTO] - describe 'switch_post_instance_status test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/ruby/spec/models/action_details_minimal_spec.rb b/ruby/spec/models/action_details_minimal_spec.rb index edc6dc8..c6e0f6d 100644 --- a/ruby/spec/models/action_details_minimal_spec.rb +++ b/ruby/spec/models/action_details_minimal_spec.rb @@ -73,4 +73,10 @@ end end + describe 'test attribute "deprecated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/ruby/spec/models/action_details_spec.rb b/ruby/spec/models/action_details_spec.rb index a641143..de8b9c9 100644 --- a/ruby/spec/models/action_details_spec.rb +++ b/ruby/spec/models/action_details_spec.rb @@ -85,4 +85,10 @@ end end + describe 'test attribute "deprecated"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end