From 814ec806c22e2782390af5a4a05cb6281aabd5e1 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 16:56:35 +0800 Subject: update APIs 20260712 --- data/starops/2026-04-28/api-docs.php | 1358 ++++++++++++++++++++++++++++++++++ 1 file changed, 1358 insertions(+) create mode 100644 data/starops/2026-04-28/api-docs.php (limited to 'data/starops') diff --git a/data/starops/2026-04-28/api-docs.php b/data/starops/2026-04-28/api-docs.php new file mode 100644 index 0000000..c1cc3f4 --- /dev/null +++ b/data/starops/2026-04-28/api-docs.php @@ -0,0 +1,1358 @@ + '1.0', + 'info' => ['style' => 'ROA', 'product' => 'STAROps', 'version' => '2026-04-28'], + 'components' => [ + 'schemas' => [ + 'Tag' => [ + 'type' => 'object', + 'properties' => [ + 'key' => ['type' => 'string', 'maxLength' => 128], + 'value' => ['type' => 'string', 'maxLength' => 256], + ], + ], + ], + ], + 'apis' => [ + 'CreateChat' => [ + 'path' => '/chat', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/octet-stream'], + 'produces' => ['application/octet-stream'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'digitalEmployeeName' => ['type' => 'string', 'required' => false], + 'threadId' => ['type' => 'string', 'required' => false], + 'action' => ['type' => 'string', 'required' => false], + 'variables' => ['type' => 'object', 'required' => false], + 'messages' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'messageId' => ['type' => 'string', 'required' => false], + 'role' => ['type' => 'string', 'required' => false], + 'contents' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'value' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'tools' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'object', 'required' => false], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'CreateDigitalEmployee' => [ + 'path' => '/digital-employee', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'defaultRule' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'pattern' => ''], + 'description' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'pattern' => ''], + 'displayName' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'minLength' => 0, 'maxLength' => 128, 'pattern' => ''], + 'roleArn' => ['type' => 'string', 'deprecated' => false, 'required' => true, 'pattern' => ''], + 'name' => ['type' => 'string', 'required' => true], + 'knowledges' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'bailian' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'workspaceId' => ['type' => 'string', 'required' => false], + 'indexId' => ['type' => 'string', 'required' => false], + 'region' => ['type' => 'string', 'required' => false], + 'attributes' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'sop' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'object', 'required' => false], + ], + ], + ], + 'resourceGroupId' => ['type' => 'string', 'required' => false], + 'tags' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['$ref' => '#/components/schemas/Tag', 'required' => false], + ], + 'attributes' => [ + 'type' => 'object', + 'deprecated' => false, + 'additionalProperties' => ['type' => 'string'], + ], + 'toolPolicy' => [ + 'type' => 'object', + 'properties' => [ + 'aliyun' => [ + 'type' => 'object', + 'properties' => [ + 'enable' => ['type' => 'boolean'], + 'statements' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'decision' => [ + 'type' => 'string', + 'enum' => ['deny', 'user_ack', 'allow'], + ], + 'product' => ['type' => 'string', 'required' => false], + 'apiVersion' => ['type' => 'string', 'required' => false], + 'actions' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + 'sandboxNetworkPolicy' => [ + 'type' => 'object', + 'properties' => [ + 'allowFqdns' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + 'maxItems' => 50, + ], + 'allowCidrs' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + 'maxItems' => 50, + ], + 'enableAcl' => ['type' => 'boolean'], + ], + ], + ], + ], + ], + ], + ], + 'CreateDigitalEmployeeSkill' => [ + 'path' => '/digitalEmployee/{name}/skill', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'skillName' => ['type' => 'string', 'required' => true, 'minLength' => 1], + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'enable' => ['type' => 'boolean', 'required' => false], + 'files' => [ + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'content' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'remark' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], + ], + 'CreateMcpService' => [ + 'path' => '/digitalEmployee/{name}/mcpService', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'mcpServiceName' => ['type' => 'string', 'required' => true, 'minLength' => 1], + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'enable' => ['type' => 'boolean', 'required' => true], + 'network' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'mode' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['public', 'vpc'], + ], + 'vpcId' => ['type' => 'string', 'required' => false], + 'vswId' => ['type' => 'string', 'required' => false], + 'accessIp' => ['type' => 'string', 'required' => false], + 'accessPort' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'securityGroupId' => ['type' => 'string', 'required' => false], + 'gatewayId' => ['type' => 'string', 'required' => false], + 'mcpServerId' => ['type' => 'string', 'required' => false], + 'region' => ['type' => 'string', 'required' => false], + ], + ], + 'connection' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'platform' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['AIGateway', 'Custom'], + ], + 'transport' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['http', 'sse'], + ], + 'endpoint' => ['type' => 'string', 'required' => true], + 'timeout' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'auth' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['bearer'], + ], + 'keyInfo' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + 'tools' => [ + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => true, 'minLength' => 1], + 'title' => ['type' => 'string', 'required' => false], + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'inputSchema' => [ + 'type' => 'object', + 'required' => true, + 'additionalProperties' => ['type' => 'any'], + ], + 'outputSchema' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'icons' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + ], + 'execution' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'annotations' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'enable' => ['type' => 'boolean', 'required' => false], + 'confirm' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + ], + ], + ], + ], + ], + 'CreateThread' => [ + 'path' => '/digitalEmployee/{name}/thread', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'title' => ['type' => 'string', 'required' => false], + 'variables' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'workspace' => ['type' => 'string', 'required' => false], + 'project' => ['type' => 'string', 'required' => false], + ], + ], + 'attributes' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'CreateTicket' => [ + 'path' => '/tickets', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'expirationTime', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'accessTokenExpirationTime', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + ], + ], + 'DeleteDigitalEmployee' => [ + 'path' => '/digital-employee/{name}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'DeleteDigitalEmployeeSkill' => [ + 'path' => '/digitalEmployee/{name}/skill/{skillName}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'skillName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + ], + ], + 'DeleteMcpService' => [ + 'path' => '/digitalEmployee/{name}/mcpService/{mcpServiceName}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'mcpServiceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + ], + ], + 'DeleteThread' => [ + 'path' => '/digitalEmployee/{name}/thread/{threadId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'threadId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'FetchRemoteMcpTools' => [ + 'path' => '/mcptools', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'network' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'mode' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['public', 'vpc'], + ], + 'vpcId' => ['type' => 'string', 'required' => false], + 'vswId' => ['type' => 'string', 'required' => false], + 'accessIp' => ['type' => 'string', 'required' => false], + 'accessPort' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'securityGroupId' => ['type' => 'string', 'required' => false], + 'gatewayId' => ['type' => 'string', 'required' => false], + 'mcpServerId' => ['type' => 'string', 'required' => false], + 'region' => ['type' => 'string', 'required' => false], + ], + ], + 'connection' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'platform' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['AIGateway', 'Custom'], + ], + 'transport' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['http', 'sse'], + ], + 'endpoint' => ['type' => 'string', 'required' => true], + 'timeout' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'auth' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['bearer'], + ], + 'keyInfo' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'GetArtifact' => [ + 'path' => '/digitalEmployee/{name}/artifact', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => [], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'artifactPath', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetDigitalEmployee' => [ + 'path' => '/digital-employee/{name}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetDigitalEmployeeSkill' => [ + 'path' => '/digitalEmployee/{name}/skill/{skillName}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'skillName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'version', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'GetMcpService' => [ + 'path' => '/digitalEmployee/{name}/mcpService/{mcpServiceName}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'mcpServiceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + ], + ], + 'GetThread' => [ + 'path' => '/digitalEmployee/{name}/thread/{threadId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'threadId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetThreadData' => [ + 'path' => '/digitalEmployee/{name}/thread/{threadId}/data', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'threadId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + ], + ], + 'ListArtifacts' => [ + 'path' => '/digitalEmployee/{name}/artifacts', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'artifactPath', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListDigitalEmployeeSkillVersions' => [ + 'path' => '/digitalEmployee/{name}/skill/{skillName}/versions', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'skillName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + ], + ], + 'ListDigitalEmployeeSkills' => [ + 'path' => '/digitalEmployee/{name}/skills', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100'], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'skillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListDigitalEmployees' => [ + 'path' => '/digital-employee', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '100'], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'employeeType', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['system', 'custom'], + ], + ], + [ + 'name' => 'displayName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'tags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['$ref' => '#/components/schemas/Tag', 'required' => false], + ], + ], + [ + 'name' => 'resourceGroupId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListMcpServices' => [ + 'path' => '/digitalEmployee/{name}/mcpServices', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '500'], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListThreads' => [ + 'path' => '/digitalEmployee/{name}/threads', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'threadId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'filter', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'key' => ['type' => 'string', 'required' => true], + 'value' => ['type' => 'string', 'required' => true], + ], + ], + ], + ], + [ + 'name' => 'includeMission', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + 'UpdateDigitalEmployee' => [ + 'path' => '/digital-employee/{name}', + 'methods' => ['patch'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'defaultRule' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'pattern' => ''], + 'description' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'pattern' => ''], + 'displayName' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'minLength' => 0, 'maxLength' => 128, 'pattern' => ''], + 'roleArn' => ['type' => 'string', 'deprecated' => false, 'required' => false, 'pattern' => ''], + 'knowledges' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'bailian' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'workspaceId' => ['type' => 'string', 'required' => false], + 'indexId' => ['type' => 'string', 'required' => false], + 'region' => ['type' => 'string', 'required' => false], + 'attributes' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'sop' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'object', 'required' => false], + ], + ], + ], + 'attributes' => [ + 'type' => 'object', + 'deprecated' => false, + 'additionalProperties' => ['type' => 'string'], + ], + 'toolPolicy' => [ + 'type' => 'object', + 'properties' => [ + 'aliyun' => [ + 'type' => 'object', + 'properties' => [ + 'enable' => ['type' => 'boolean'], + 'statements' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'decision' => [ + 'type' => 'string', + 'enum' => ['deny', 'user_ack', 'allow'], + ], + 'product' => ['type' => 'string', 'required' => false], + 'apiVersion' => ['type' => 'string', 'required' => false], + 'actions' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + 'sandboxNetworkPolicy' => [ + 'type' => 'object', + 'properties' => [ + 'allowFqdns' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + 'maxItems' => 50, + ], + 'allowCidrs' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + 'maxItems' => 50, + ], + 'enableAcl' => ['type' => 'boolean'], + ], + ], + ], + ], + ], + ], + ], + 'UpdateDigitalEmployeeSkill' => [ + 'path' => '/digitalEmployee/{name}/skill/{skillName}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'skillName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'enable' => ['type' => 'boolean', 'required' => true], + 'files' => [ + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'content' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'remark' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], + ], + 'UpdateMcpService' => [ + 'path' => '/digitalEmployee/{name}/mcpService/{mcpServiceName}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'mcpServiceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'enable' => ['type' => 'boolean', 'required' => true], + 'network' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'mode' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['public', 'vpc'], + ], + 'vpcId' => ['type' => 'string', 'required' => false], + 'vswId' => ['type' => 'string', 'required' => false], + 'accessIp' => ['type' => 'string', 'required' => false], + 'accessPort' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'securityGroupId' => ['type' => 'string', 'required' => false], + 'gatewayId' => ['type' => 'string', 'required' => false], + 'mcpServerId' => ['type' => 'string', 'required' => false], + 'region' => ['type' => 'string', 'required' => false], + ], + ], + 'connection' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'platform' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['AIGateway', 'Custom'], + ], + 'transport' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['http', 'sse'], + ], + 'endpoint' => ['type' => 'string', 'required' => true], + 'timeout' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'auth' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['bearer'], + ], + 'keyInfo' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + 'tools' => [ + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => true, 'minLength' => 1], + 'title' => ['type' => 'string', 'required' => false], + 'displayName' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'inputSchema' => [ + 'type' => 'object', + 'required' => true, + 'additionalProperties' => ['type' => 'any'], + ], + 'outputSchema' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'icons' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + ], + 'execution' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'annotations' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + 'enable' => ['type' => 'boolean', 'required' => false], + 'confirm' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + ], + ], + ], + ], + ], + 'UpdateThread' => [ + 'path' => '/digitalEmployee/{name}/thread/{threadId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'threadId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'title' => ['type' => 'string', 'required' => false], + 'status' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['active', 'archived', 'failed', 'suspended', 'cancelled', 'unknown'], + ], + 'attributes' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'starops.cn-beijing.aliyuncs.com', 'endpoint' => 'starops.cn-beijing.aliyuncs.com', 'vpc' => 'starops-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'starops.ap-southeast-1.aliyuncs.com', 'endpoint' => 'starops.ap-southeast-1.aliyuncs.com', 'vpc' => 'starops-vpc.ap-southeast-1.aliyuncs.com'], + ], +]; -- cgit v1.2.3