diff options
Diffstat (limited to 'data/paicopilot/2025-07-31')
| -rw-r--r-- | data/paicopilot/2025-07-31/api-docs.php | 483 |
1 files changed, 298 insertions, 185 deletions
diff --git a/data/paicopilot/2025-07-31/api-docs.php b/data/paicopilot/2025-07-31/api-docs.php index 39a4c4c..09ea436 100644 --- a/data/paicopilot/2025-07-31/api-docs.php +++ b/data/paicopilot/2025-07-31/api-docs.php @@ -1,53 +1,23 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'PAICopilot', - 'version' => '2025-07-31', - ], + 'info' => ['style' => 'ROA', 'product' => 'PAICopilot', 'version' => '2025-07-31'], 'components' => [ 'schemas' => [ 'Chat' => [ 'type' => 'object', 'properties' => [ - 'ChatId' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'GmtModified' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'Question' => [ - '$ref' => '#/components/schemas/ChatDetail', - ], - 'Answer' => [ - '$ref' => '#/components/schemas/ChatDetail', - ], - 'OwnerId' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'Title' => [ - 'type' => 'string', - ], - 'SessionId' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'ExtraData' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], + 'ChatId' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'Question' => ['$ref' => '#/components/schemas/ChatDetail'], + 'Answer' => ['$ref' => '#/components/schemas/ChatDetail'], + 'OwnerId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'Title' => ['type' => 'string'], + 'SessionId' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'ExtraData' => ['type' => 'string'], + 'Message' => ['type' => 'string'], ], ], 'ChatDetail' => [ @@ -56,115 +26,307 @@ 'UserInfo' => [ 'type' => 'object', 'properties' => [ - 'Role' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], + 'Role' => ['type' => 'string'], + 'Name' => ['type' => 'string'], ], ], - 'Content' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], + 'Content' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], ], ], 'Feedback' => [ 'type' => 'object', 'properties' => [ - 'FeedbackId' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'GmtModified' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'FeedbackAction' => [ - 'type' => 'string', - ], - 'FeedbackMessage' => [ - 'type' => 'string', - ], - 'OwnerId' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'SessionId' => [ - 'type' => 'string', - ], - 'ChatId' => [ - 'type' => 'string', - ], + 'FeedbackId' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'FeedbackAction' => ['type' => 'string'], + 'FeedbackMessage' => ['type' => 'string'], + 'OwnerId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'SessionId' => ['type' => 'string'], + 'ChatId' => ['type' => 'string'], ], ], 'Label' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], 'Session' => [ 'type' => 'object', 'properties' => [ - 'SessionId' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'GmtModified' => [ - 'type' => 'string', - 'format' => 'iso8601_normal', - ], - 'OwnerId' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'SessionTitle' => [ - 'type' => 'string', - ], + 'SessionId' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], + 'OwnerId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'SessionTitle' => ['type' => 'string'], ], ], ], ], 'apis' => [ - 'SearchInfo' => [ - 'path' => '/api/v1/searches', - 'methods' => [ - 'post', + 'CreateChat' => [ + 'path' => '/api/v1/sessions/{SessionId}/chats', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => [], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Title' => ['type' => 'string', 'required' => false], + 'ExtraData' => ['type' => 'string', 'required' => false], + 'Question' => ['$ref' => '#/components/schemas/ChatDetail', 'required' => false], + 'Payload' => ['type' => 'object', 'required' => false], + ], + ], + ], + ], + ], + 'CreateSession' => [ + 'path' => '/api/v1/sessions', + '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' => [ + 'Title' => ['type' => 'string', 'required' => false], + 'Labels' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['$ref' => '#/components/schemas/Label', 'required' => false], + ], + ], + ], + ], + ], + ], + 'DeleteChat' => [ + 'path' => '/api/v1/sessions/{SessionId}/chats/{ChatId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'ChatId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'DeleteSession' => [ + 'path' => '/api/v1/sessions/{SessionId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'GetChat' => [ + 'path' => '/api/v1/sessions/{SessionId}/chats/{ChatId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'ChatId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], - 'schemes' => [ - 'https', + ], + 'GetSession' => [ + 'path' => '/api/v1/sessions/{SessionId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'ListChats' => [ + 'path' => '/api/v1/sessions/{SessionId}/chats', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SessionId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], ], + ], + 'ListSessions' => [ + 'path' => '/api/v1/sessions', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], ], - 'produces' => [ - 'application/json', + ], + 'SearchInfo' => [ + 'path' => '/api/v1/searches', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ @@ -182,24 +344,10 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'CollectionName' => [ - 'type' => 'string', - 'required' => true, - ], - 'ResultLimit' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ScoreThreshold' => [ - 'type' => 'number', - 'format' => 'double', - 'required' => false, - ], - 'Query' => [ - 'type' => 'string', - 'required' => true, - ], + 'CollectionName' => ['type' => 'string', 'required' => true], + 'ResultLimit' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ScoreThreshold' => ['type' => 'number', 'format' => 'double', 'required' => false], + 'Query' => ['type' => 'string', 'required' => true], ], ], ], @@ -210,32 +358,15 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'ResultLimit' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'ResultLimit' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'IncludeSites' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'ScoreThreshold' => [ - 'type' => 'number', - 'format' => 'double', - 'required' => false, - ], - 'Query' => [ - 'type' => 'string', - 'required' => true, - ], - 'Category' => [ - 'type' => 'string', - 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], + 'ScoreThreshold' => ['type' => 'number', 'format' => 'double', 'required' => false], + 'Query' => ['type' => 'string', 'required' => true], + 'Category' => ['type' => 'string', 'required' => false], ], ], ], @@ -246,29 +377,11 @@ ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'paicopilot.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'paicopilot.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'paicopilot.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'paicopilot.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'paicopilot.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'paicopilot.cn-hangzhou.aliyuncs.com', - ], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.ap-southeast-1.aliyuncs.com', 'endpoint' => 'paicopilot.ap-southeast-1.aliyuncs.com', 'vpc' => 'paicopilot-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-beijing.aliyuncs.com', 'endpoint' => 'paicopilot.cn-beijing.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paicopilot.cn-hangzhou.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-shanghai.aliyuncs.com', 'endpoint' => 'paicopilot.cn-shanghai.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paicopilot.cn-shenzhen.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'paicopilot.cn-wulanchabu.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-wulanchabu.aliyuncs.com'], ], ]; |
