From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/en_us/airegistry/2026-03-17/api-docs.php | 3120 +++++++++++++++++++++++++ 1 file changed, 3120 insertions(+) create mode 100644 data/en_us/airegistry/2026-03-17/api-docs.php (limited to 'data/en_us/airegistry/2026-03-17/api-docs.php') diff --git a/data/en_us/airegistry/2026-03-17/api-docs.php b/data/en_us/airegistry/2026-03-17/api-docs.php new file mode 100644 index 0000000..31e68ca --- /dev/null +++ b/data/en_us/airegistry/2026-03-17/api-docs.php @@ -0,0 +1,3120 @@ + '1.0', + 'info' => ['style' => 'RPC', 'product' => 'AIRegistry', 'version' => '2026-03-17'], + 'directories' => [ + 'CreateNamespace', 'CreatePrompt', 'CreatePromptVersion', 'CreateSkillDraft', 'DeleteNamespace', 'DeletePrompt', 'DeleteSkill', 'DownloadSkillVersionViaOss', 'ForcePublishSkillVersion', 'GetNamespace', 'GetPrompt', 'GetPromptVersion', 'GetSkillDetail', 'GetSkillImportFileUrl', 'GetSkillVersionDetail', 'ListNamespaces', 'ListPromptVersions', 'ListPrompts', 'ListSkills', 'OfflineSkill', + 'OnlineSkill', 'PublishSkillVersion', 'SubmitPromptVersion', 'SubmitSkillVersion', 'UpdateNamespace', 'UpdatePrompt', 'UpdatePromptVersion', 'UpdateSkillBizTags', 'UpdateSkillDraft', 'UpdateSkillLabels', 'UpdateSkillScope', 'UploadSkillViaOss', + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CreateNamespace' => [ + 'summary' => 'Creates a namespace in AI Registry and returns the corresponding namespace ID.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace name.', 'type' => 'string', 'example' => '我的Prompt空间', 'required' => false], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace description.', 'type' => 'string', 'example' => '用于管理客服场景的Prompt', 'required' => false], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The tags. Separate multiple tags with commas.', 'type' => 'string', 'example' => 'customer-service,production', 'required' => false], + ], + [ + 'name' => 'ScanPolicy', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The scan policy.'."\n" + ."\n" + .'This parameter contains two configuration items:'."\n" + .'- minBlockRiskLevel: the risk level for blocking.'."\n" + .' - high: blocks high-risk items.'."\n" + .' - medium: blocks medium-risk and high-risk items.'."\n" + .' - low: blocks all risk levels including high, medium, and low.'."\n" + .'- maxSkipRatio: the max false positive rate. If the scan skip ratio exceeds this value, the scan is considered as failed.', 'type' => 'string', 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'The namespace creation result.', + 'type' => 'object', + 'properties' => [ + 'NamespaceId' => ['description' => 'The namespace ID. The default namespace cannot be queried, modified, or deleted.', 'type' => 'string', 'example' => 'a2a9310a-9d91-4283-b4e2-844f6d45fe64', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'NamespaceQuotaLimited', 'errorMessage' => 'User has reached the maximum namespace limit .', 'description' => 'Maximum number of namespaces created by a single user'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Create an AI registry namespace', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"a2a9310a-9d91-4283-b4e2-844f6d45fe64\\"\\n }\\n}","type":"json"}]', + ], + 'CreatePrompt' => [ + 'summary' => 'Create a prompt and create the initial draft version content of that prompt', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Workspace ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Prompt unique identifier', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'], + ], + [ + 'name' => 'Template', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Template content for the initial draft version of the prompt', 'type' => 'string', 'required' => true, 'example' => '你是一个客服助手,请回答:{question}'], + ], + [ + 'name' => 'TargetVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Version number for the initial draft version of the prompt. Defaults to 0.0.1 if not specified.', 'type' => 'string', 'example' => '0.0.1', 'required' => false], + ], + [ + 'name' => 'Variables', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Variable definitions, JSON array string, supporting name, description, and defaultValue parameters', 'type' => 'string', 'example' => '[{"name":"question","defaultValue":"Hello"}]', 'required' => false], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Commit message', 'type' => 'string', 'example' => '初始版本', 'required' => false], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Prompt description', 'type' => 'string', 'example' => '客服问答 Prompt', 'required' => false], + ], + [ + 'name' => 'BizTags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Business tags, comma-separated', 'type' => 'string', 'example' => 'cs,qa,support', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'Draft version number of the created prompt', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + 409 => [ + ['errorCode' => 'PromptAlreadyExist', 'errorMessage' => 'The specified prompt already exists.', 'description' => 'Created Prompt already exists'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Create Prompt', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]', + ], + 'CreatePromptVersion' => [ + 'summary' => 'Creates a new version of a prompt. The new version defaults to draft status. An error is returned if a draft version already exists.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Unique identifier of the prompt.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'], + ], + [ + 'name' => 'Template', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Prompt template content. Either this parameter or BasedOnVersion must be specified.', 'type' => 'string', 'example' => '你是一个客服助手,请回答:{question}', 'required' => false], + ], + [ + 'name' => 'BasedOnVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Fork from this version. Either this parameter or Template must be specified.', 'type' => 'string', 'example' => '0.0.1', 'required' => false], + ], + [ + 'name' => 'TargetVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Draft version number. If not specified, the version number is automatically incremented.', 'type' => 'string', 'example' => '0.0.2', 'required' => false], + ], + [ + 'name' => 'Variables', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Variable definitions in a JSON array string.', 'type' => 'string', 'example' => '[{"name":"question","defaultValue":"Hello"}]', 'required' => false], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Commit message.', 'type' => 'string', 'example' => '初始版本', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'Version number of the created draft version.', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + 409 => [ + ['errorCode' => 'PromptVersionAlreadyExist', 'errorMessage' => 'The specified prompt version already exist.', 'description' => 'Prompt version already exists'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Create a prompt version', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]', + ], + 'CreateSkillDraft' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillCard', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false, 'example' => '{"name":"customer-service-skill","description":"customer-skill-desc","skillMd":"---\\nname: customer-service-skill\\ndescription: customer-skill-desc\\n---\\ncustomer-skill-content"}', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'BasedOnVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '0.0.1', 'title' => '', 'description' => '', 'required' => false], + ], + [ + 'name' => 'TargetVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '0.0.2', 'title' => '', 'description' => '', 'required' => false], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '初始版本', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['type' => 'string', 'description' => '', 'example' => '3aa3fb14dddd4bdb941cf4536e4e918b', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"3aa3fb14dddd4bdb941cf4536e4e918b\\"\\n}","type":"json"}]', + ], + 'DeleteNamespace' => [ + 'summary' => 'Deletes a specified namespace from the AI Governance Center. The system checks whether the namespace contains any resources in use (such as Skills or Prompts) before deletion. If such resources exist, the deletion fails.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'The namespace deletion result.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'NamespaceInUse', 'errorMessage' => 'The namespace is in use and cannot be deleted.', 'description' => 'There are still undeleted resources in use under the namespace.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Delete a specified namespace from AI governance center', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]', + ], + 'DeletePrompt' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-qa', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['type' => 'boolean', 'description' => '', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]', + ], + 'DeleteSkill' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\"\\n}","type":"json"}]', + ], + 'DownloadSkillVersionViaOss' => [ + 'summary' => 'Downloads a skill version through OSS and returns the OSS download URL.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The name of the skill.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The version number of the skill.', 'type' => 'string', 'required' => true, 'example' => '0.0.1'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'The OSS URL for downloading the skill.', 'type' => 'string', 'example' => 'https://sample-bucket.oss-region.aliyuncs.com/xxxxxx', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Download a skill through OSS', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"https://sample-bucket.oss-region.aliyuncs.com/xxxxxx\\"\\n}","type":"json"}]', + ], + 'ForcePublishSkillVersion' => [ + 'summary' => 'Force-publishes a version.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The Skill name.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The version number.', 'type' => 'string', 'required' => true, 'example' => '0.0.2'], + ], + [ + 'name' => 'UpdateLatestLabel', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Specifies whether to update the latest label.', 'type' => 'boolean', 'example' => 'true', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Force-publish a skill', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]', + ], + 'GetNamespace' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'The namespace information.', + 'type' => 'object', + 'properties' => [ + 'NamespaceId' => ['description' => 'The namespace ID.', 'type' => 'string', 'example' => 'a2a9310a-9d91-4283-b4e2-844f6d45fe64', 'title' => ''], + 'Name' => ['description' => 'The namespace name.', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01', 'title' => ''], + 'Description' => ['description' => 'The description of the namespace.', 'type' => 'string', 'example' => 'secret for bbtadmin', 'title' => ''], + 'Tags' => ['description' => 'The tags of the namespace.', 'type' => 'string', 'example' => '{}', 'title' => ''], + 'Source' => ['description' => 'The source of the namespace.', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01', 'title' => ''], + 'SourceIndex' => ['description' => 'The source ordinal number of the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'PromptCount' => ['description' => 'The number of prompts in the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'CreatedTime' => ['description' => 'The time when the namespace was created.', 'type' => 'string', 'example' => '2025-11-17T09:57:38+08:00', 'title' => ''], + 'SkillCount' => ['description' => 'The number of skills in the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'ScanPolicy' => ['description' => 'The scan policy.'."\n" + ."\n" + .'The policy contains two configuration items:'."\n" + .'- minBlockRiskLevel: the risk level for blocking.'."\n" + .' - high: blocks high-risk items.'."\n" + .' - medium: blocks medium- and high-risk items.'."\n" + .' - low: blocks all risk levels including high, medium, and low.'."\n" + .'- maxSkipRatio: the maximum skip ratio. If the scan skip ratio exceeds this value, the scan is considered as failed.', 'type' => 'string', 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}', 'title' => ''], + 'PublicAccessEnabled' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], + 'PublicDomain' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'IpWhitelist' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'NamespaceNotFound', 'errorMessage' => 'The specified namespace does not exist.', 'description' => 'The specified namespace does not exist'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Query AI governance center namespace details', + 'summary' => 'Queries the details of an AI Governance Center namespace.', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"a2a9310a-9d91-4283-b4e2-844f6d45fe64\\",\\n \\"Name\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"Description\\": \\"secret for bbtadmin\\",\\n \\"Tags\\": \\"{}\\",\\n \\"Source\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"SourceIndex\\": 0,\\n \\"PromptCount\\": 1,\\n \\"CreatedTime\\": \\"2025-11-17T09:57:38+08:00\\",\\n \\"SkillCount\\": 1,\\n \\"ScanPolicy\\": \\"{\\\\\\"minBlockRiskLevel\\\\\\":\\\\\\"medium\\\\\\",\\\\\\"maxSkipRatio\\\\\\":0.2}\\",\\n \\"PublicAccessEnabled\\": false,\\n \\"PublicDomain\\": \\"\\",\\n \\"IpWhitelist\\": \\"\\"\\n }\\n}","type":"json"}]', + ], + 'GetPrompt' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-qa', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'SchemaVersion' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => '1.0', 'title' => ''], + 'PromptKey' => ['type' => 'string', 'description' => '', 'example' => 'customer-service-qa', 'title' => ''], + 'Description' => ['type' => 'string', 'description' => '', 'example' => 'Prompt for test', 'title' => ''], + 'BizTags' => [ + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'example' => 'image-generation', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'LatestVersion' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => '2025-11-13T02:11:53Z', 'title' => ''], + 'EditingVersion' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'ReviewingVersion' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'OnlineCnt' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => '1', 'title' => ''], + 'Labels' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'string', 'example' => '{"prod":"0.0.1"}', 'description' => '', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'Versions' => [ + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'VersionDetails' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'PromptKey' => ['type' => 'string', 'description' => '', 'example' => 'customer-service-qa', 'title' => ''], + 'Version' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'Status' => ['type' => 'string', 'description' => '', 'example' => 'online', 'title' => ''], + 'CommitMsg' => ['type' => 'string', 'description' => '', 'example' => 'This is a test Version', 'title' => ''], + 'SrcUser' => ['type' => 'string', 'description' => '', 'example' => 'admin', 'title' => ''], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => '1627545952000', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => 'The Prompt for the current operation does not exist.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"SchemaVersion\\": 1,\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Description\\": \\"Prompt for test\\",\\n \\"BizTags\\": [\\n \\"image-generation\\"\\n ],\\n \\"LatestVersion\\": \\"0.0.1\\",\\n \\"GmtModified\\": 0,\\n \\"EditingVersion\\": \\"0.0.1\\",\\n \\"ReviewingVersion\\": \\"0.0.1\\",\\n \\"OnlineCnt\\": 1,\\n \\"Labels\\": {\\n \\"key\\": \\"{\\\\\\"prod\\\\\\":\\\\\\"0.0.1\\\\\\"}\\"\\n },\\n \\"Versions\\": [\\n \\"0.0.1\\"\\n ],\\n \\"VersionDetails\\": [\\n {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"online\\",\\n \\"CommitMsg\\": \\"This is a test Version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 1627545952000\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetPromptVersion' => [ + 'summary' => 'Query the detailed information of a specified version of a prompt.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Workspace ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Unique identifier of the prompt', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'], + ], + [ + 'name' => 'PromptVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Version number', 'type' => 'string', 'required' => true, 'example' => '0.0.1'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'Query result', + 'type' => 'object', + 'properties' => [ + 'PromptKey' => ['description' => 'Unique identifier of the prompt', 'type' => 'string', 'example' => 'customer-service-qa', 'title' => ''], + 'Version' => ['description' => 'Version number', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + 'Status' => ['description' => 'Version status. Draft: draft / Published: online', 'type' => 'string', 'example' => 'online', 'title' => ''], + 'Template' => ['description' => 'Template content of the prompt version', 'type' => 'string', 'example' => 'You are a {{domain}} expert.', 'title' => ''], + 'CommitMsg' => ['description' => 'Commit message of this version', 'type' => 'string', 'example' => 'This is a test version', 'title' => ''], + 'SrcUser' => ['description' => 'Creator of this version', 'type' => 'string', 'example' => 'admin', 'title' => ''], + 'GmtModified' => ['description' => 'Last modified time of the prompt', 'type' => 'integer', 'format' => 'int64', 'example' => '1605345828000', 'title' => ''], + 'Md5' => ['description' => 'MD5 hash of the prompt content for this version', 'type' => 'string', 'example' => '93EF3AC0C56DDACB5A9E528BB1C825C8', 'title' => ''], + 'Variables' => [ + 'description' => 'List of variables for this version', + 'type' => 'array', + 'items' => [ + 'description' => 'Prompt variable', + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => 'Variable name', 'type' => 'string', 'example' => 'domain', 'title' => ''], + 'DefaultValue' => ['description' => 'Default value', 'type' => 'string', 'example' => 'code', 'title' => ''], + 'Description' => ['description' => 'Variable description', 'type' => 'string', 'example' => 'domain', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => 'The specified prompt word version does not exist or is illegal'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Query Prompt Version Details', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"online\\",\\n \\"Template\\": \\"You are a {{domain}} expert.\\",\\n \\"CommitMsg\\": \\"This is a test version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 1605345828000,\\n \\"Md5\\": \\"93EF3AC0C56DDACB5A9E528BB1C825C8\\",\\n \\"Variables\\": [\\n {\\n \\"Name\\": \\"domain\\",\\n \\"DefaultValue\\": \\"code\\",\\n \\"Description\\": \\"domain\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetSkillDetail' => [ + 'summary' => 'Retrieves the metadata and version information of a skill.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The unique request ID generated by Alibaba Cloud for this request.', 'type' => 'string', 'example' => 'C5272879-3C44-5E5A-8056-CB4E8EB36DCD', 'title' => ''], + 'Data' => [ + 'description' => 'The detailed information about the skill.', + 'type' => 'object', + 'properties' => [ + 'Versions' => [ + 'title' => '', + 'description' => 'The list of all version summaries.', + 'type' => 'array', + 'items' => [ + 'description' => 'The data structure.', + 'type' => 'object', + 'properties' => [ + 'Version' => ['description' => 'The version number.', 'type' => 'string', 'example' => '2017-08-01', 'title' => ''], + 'Status' => ['description' => 'The resource status.', 'type' => 'string', 'example' => 'online', 'title' => ''], + 'Author' => ['description' => 'The author.', 'type' => 'string', 'example' => '22618', 'title' => ''], + 'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'dataphin_300067022_pre', 'title' => ''], + 'CreateTime' => ['description' => 'The timestamp when the file was created, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-12-02T02:12:01Z', 'title' => ''], + 'UpdateTime' => ['description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2021-05-06T06:37Z', 'title' => ''], + 'PublishPipelineInfo' => ['description' => 'The skill review information.', 'type' => 'string', 'example' => '{'."\n" + .' "executionId": "54408ebe-3c19-4e2e-82a3-f400cedfcd24",'."\n" + .' "status": "APPROVED",'."\n" + .' "pipeline": ['."\n" + .' {'."\n" + .' "nodeId": "fence",'."\n" + .' "executedAt": "2026-05-21T07:42:24.684194457Z",'."\n" + .' "passed": true,'."\n" + .' "messageType": "json",'."\n" + .' "message": {'."\n" + .' "resultCode": "PASS_PARTIAL_SKIP",'."\n" + .' "reports": ['."\n" + .' {'."\n" + .' "file": "SKILL.md",'."\n" + .' "taskId": "E25BDA44-6E10-51AF-B6AB-417EBB4CEF40",'."\n" + .' "riskLevel": "none"'."\n" + .' },'."\n" + .' {'."\n" + .' "file": "pdf-3/presentation.pptx",'."\n" + .' "taskId": "BEEC2D66-B9AE-5C4F-828D-BFAB6E561891",'."\n" + .' "riskLevel": "skip",'."\n" + .' "errorCode": "500",'."\n" + .' "errorMessage": "Scan failed. Please contact us through the online service."'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "checkpoints": ['."\n" + .' {'."\n" + .' "title": "promptAttack",'."\n" + .' "passed": true'."\n" + .' },'."\n" + .' {'."\n" + .' "title": "contentModeration",'."\n" + .' "passed": true'."\n" + .' }'."\n" + .' ],'."\n" + .' "durationMs": 18933'."\n" + .' }'."\n" + .' ]'."\n" + .'}', 'title' => ''], + 'DownloadCount' => ['description' => 'The number of downloads.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'CommitMsg' => ['description' => 'The version commit message.', 'type' => 'string', 'example' => '版本1说明。', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'Writeable' => ['description' => 'Indicates whether the skill can be edited.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'UpdateTime' => ['title' => '', 'description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2021-05-06T06:37Z'], + 'Enable' => ['title' => '', 'description' => 'Indicates whether the skill is enabled.', 'type' => 'boolean', 'example' => 'false'], + 'BizTags' => ['title' => '', 'description' => 'The business tags as a JSON array string.', 'type' => 'string', 'example' => 'test'], + 'From' => ['title' => '', 'description' => 'The source tag.', 'type' => 'string', 'example' => 'aqs'], + 'Scope' => ['title' => '', 'description' => 'The visibility scope.', 'type' => 'string', 'example' => 'PUBLIC'], + 'Labels' => [ + 'title' => '', + 'description' => 'The version label mapping.', + 'type' => 'object', + 'additionalProperties' => ['description' => 'Skill 版本', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + 'example' => '', + ], + 'EditingVersion' => ['title' => '', 'description' => 'The version that is being edited.', 'type' => 'string', 'example' => '0.0.3'], + 'ReviewingVersion' => ['title' => '', 'description' => 'The version that is under review.', 'type' => 'string', 'example' => '0.0.2'], + 'OnlineCnt' => ['title' => '', 'description' => 'The number of online versions.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'DownloadCount' => ['title' => '', 'description' => 'The total number of downloads.', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'NamespaceId' => ['description' => 'The namespace ID.', 'type' => 'string', 'example' => 'cn-beijing:beta', 'title' => ''], + 'Name' => ['description' => 'The skill name.', 'type' => 'string', 'example' => '0521B历史1', 'title' => ''], + 'Description' => ['description' => 'The skill description.', 'type' => 'string', 'example' => 'kms-rds-rduphoenix-val-mysql kms key', 'title' => ''], + 'Owner' => ['description' => 'The UID of the owner.', 'type' => 'string', 'example' => '199458752209xxxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Get skill details', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C5272879-3C44-5E5A-8056-CB4E8EB36DCD\\",\\n \\"Data\\": {\\n \\"Versions\\": [\\n {\\n \\"Version\\": \\"2017-08-01\\",\\n \\"Status\\": \\"online\\",\\n \\"Author\\": \\"22618\\",\\n \\"Description\\": \\"dataphin_300067022_pre\\",\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"PublishPipelineInfo\\": \\"{\\\\n \\\\\\"executionId\\\\\\": \\\\\\"54408ebe-3c19-4e2e-82a3-f400cedfcd24\\\\\\",\\\\n \\\\\\"status\\\\\\": \\\\\\"APPROVED\\\\\\",\\\\n \\\\\\"pipeline\\\\\\": [\\\\n {\\\\n \\\\\\"nodeId\\\\\\": \\\\\\"fence\\\\\\",\\\\n \\\\\\"executedAt\\\\\\": \\\\\\"2026-05-21T07:42:24.684194457Z\\\\\\",\\\\n \\\\\\"passed\\\\\\": true,\\\\n \\\\\\"messageType\\\\\\": \\\\\\"json\\\\\\",\\\\n \\\\\\"message\\\\\\": {\\\\n \\\\\\"resultCode\\\\\\": \\\\\\"PASS_PARTIAL_SKIP\\\\\\",\\\\n \\\\\\"reports\\\\\\": [\\\\n {\\\\n \\\\\\"file\\\\\\": \\\\\\"SKILL.md\\\\\\",\\\\n \\\\\\"taskId\\\\\\": \\\\\\"E25BDA44-6E10-51AF-B6AB-417EBB4CEF40\\\\\\",\\\\n \\\\\\"riskLevel\\\\\\": \\\\\\"none\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"file\\\\\\": \\\\\\"pdf-3/presentation.pptx\\\\\\",\\\\n \\\\\\"taskId\\\\\\": \\\\\\"BEEC2D66-B9AE-5C4F-828D-BFAB6E561891\\\\\\",\\\\n \\\\\\"riskLevel\\\\\\": \\\\\\"skip\\\\\\",\\\\n \\\\\\"errorCode\\\\\\": \\\\\\"500\\\\\\",\\\\n \\\\\\"errorMessage\\\\\\": \\\\\\"Scan failed. Please contact us through the online service.\\\\\\"\\\\n }\\\\n ]\\\\n },\\\\n \\\\\\"checkpoints\\\\\\": [\\\\n {\\\\n \\\\\\"title\\\\\\": \\\\\\"promptAttack\\\\\\",\\\\n \\\\\\"passed\\\\\\": true\\\\n },\\\\n {\\\\n \\\\\\"title\\\\\\": \\\\\\"contentModeration\\\\\\",\\\\n \\\\\\"passed\\\\\\": true\\\\n }\\\\n ],\\\\n \\\\\\"durationMs\\\\\\": 18933\\\\n }\\\\n ]\\\\n}\\",\\n \\"DownloadCount\\": 100,\\n \\"CommitMsg\\": \\"版本1说明。\\"\\n }\\n ],\\n \\"Writeable\\": true,\\n \\"UpdateTime\\": 0,\\n \\"Enable\\": false,\\n \\"BizTags\\": \\"test\\",\\n \\"From\\": \\"aqs\\",\\n \\"Scope\\": \\"PUBLIC\\",\\n \\"Labels\\": {\\n \\"key\\": \\"0.0.1\\"\\n },\\n \\"EditingVersion\\": \\"0.0.3\\",\\n \\"ReviewingVersion\\": \\"0.0.2\\",\\n \\"OnlineCnt\\": 1,\\n \\"DownloadCount\\": 100,\\n \\"NamespaceId\\": \\"cn-beijing:beta\\",\\n \\"Name\\": \\"0521B历史1\\",\\n \\"Description\\": \\"kms-rds-rduphoenix-val-mysql kms key\\",\\n \\"Owner\\": \\"199458752209xxxx\\"\\n }\\n}","type":"json"}]', + ], + 'GetSkillImportFileUrl' => [ + 'summary' => 'Retrieves a URL for uploading a Skill to OSS. The client uses the returned URL to upload the Skill by performing a PUT request.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'ContentType', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The Content-Type of the uploaded file. Default value: application/zip.', 'type' => 'string', 'example' => 'application/zip', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'The returned result.', + 'type' => 'object', + 'properties' => [ + 'UploadUrl' => ['description' => 'The file upload URL. The client uses this URL to upload the file.', 'type' => 'string', 'example' => 'https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/skill/import/199xxxxxxxx0842/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/2026/06/10/xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/1781082579097.zip?Expires=1781083479&OSSAccessKeyId=STS.NZXGXTD2yoDLd5PfsYxjFrvBJ&Signature=Loyyzzzzzzzz%3D&security-token=CAIStgxxxxxxx', 'title' => ''], + 'OssObjectName' => ['description' => 'The file name in the authorized OSS bucket.'."\n" + ."\n" + .'> You can use one of the following methods to pass in images: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS. Select one of these methods.', 'type' => 'string', 'example' => '1190239587066411/skill/import/5e993afe-f629-4619-9ac2-51b125300cdd/2026/06/09/35059076-5992-4a71-a706-89230e57f2a2/ui-ux-pro-max.zip', 'title' => ''], + 'ContentType' => ['description' => 'The file type.', 'type' => 'string', 'example' => 'application/zip', 'title' => ''], + 'MaxSize' => ['description' => 'The maximum size of the file that can be uploaded, in MB.', 'type' => 'string', 'example' => '10', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Retrieve the URL for uploading a skill to OSS', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"UploadUrl\\": \\"https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/skill/import/199xxxxxxxx0842/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/2026/06/10/xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/1781082579097.zip?Expires=1781083479&OSSAccessKeyId=STS.NZXGXTD2yoDLd5PfsYxjFrvBJ&Signature=Loyyzzzzzzzz%3D&security-token=CAIStgxxxxxxx\\",\\n \\"OssObjectName\\": \\"1190239587066411/skill/import/5e993afe-f629-4619-9ac2-51b125300cdd/2026/06/09/35059076-5992-4a71-a706-89230e57f2a2/ui-ux-pro-max.zip\\",\\n \\"ContentType\\": \\"application/zip\\",\\n \\"MaxSize\\": \\"10\\"\\n }\\n}","type":"json"}]', + ], + 'GetSkillVersionDetail' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '0.0.1', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '3EF4C9EC-0D5B-5AD6-8585-4D2AAA22B1E3', 'title' => ''], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'SkillMd' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => '---'."\n" + .'name: hello-world'."\n" + .'description: Say hello to users'."\n" + .'---'."\n" + ."\n" + .'Hello World Skill'], + 'Resource' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => 'sample.md'], + 'Type' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => 'script'], + 'Content' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => '这是一个示例文件'], + 'Metadata' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'any', 'description' => '', 'example' => 'version', 'title' => ''], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + 'NamespaceId' => ['type' => 'string', 'description' => '', 'example' => 'f52aea1c-774e-4cc1-9dd1-d91432484d44', 'title' => ''], + 'Name' => ['type' => 'string', 'description' => '', 'example' => '业务模式', 'title' => ''], + 'Description' => ['type' => 'string', 'description' => '', 'example' => 'secret for bbtadmin', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3EF4C9EC-0D5B-5AD6-8585-4D2AAA22B1E3\\",\\n \\"Data\\": {\\n \\"SkillMd\\": \\"---\\\\nname: hello-world\\\\ndescription: Say hello to users\\\\n---\\\\n\\\\nHello World Skill\\",\\n \\"Resource\\": {\\n \\"key\\": {\\n \\"Name\\": \\"sample.md\\",\\n \\"Type\\": \\"script\\",\\n \\"Content\\": \\"这是一个示例文件\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"version\\"\\n }\\n }\\n },\\n \\"NamespaceId\\": \\"f52aea1c-774e-4cc1-9dd1-d91432484d44\\",\\n \\"Name\\": \\"业务模式\\",\\n \\"Description\\": \\"secret for bbtadmin\\"\\n }\\n}","type":"json"}]', + ], + 'ListNamespaces' => [ + 'summary' => 'Lists the namespaces in the AI Governance Center.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Tags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Filters by tags. Separate multiple tags with commas. Results are matched by intersection.', 'type' => 'string', 'example' => 'production,customer-service', 'required' => false], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Performs a fuzzy search by name.', 'type' => 'string', 'example' => 'test-namespace', 'required' => false], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of entries per page. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'The namespace query result.', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The page size. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'Items' => [ + 'description' => 'The returned data entries.', + 'type' => 'array', + 'items' => [ + 'description' => '-', + 'type' => 'object', + 'properties' => [ + 'NamespaceId' => ['description' => 'The namespace ID.', 'type' => 'string', 'example' => '76d4b6e4-31bf-475a-8710-6217ec049c1f', 'title' => ''], + 'Name' => ['description' => 'The namespace name.', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01', 'title' => ''], + 'Description' => ['description' => 'The description of the namespace.', 'type' => 'string', 'example' => 'Default project, auto-created by EMR.', 'title' => ''], + 'Tags' => ['description' => 'The tags of the namespace.', 'type' => 'string', 'example' => 'qa,test', 'title' => ''], + 'Source' => ['description' => 'The source of the namespace.', 'type' => 'string', 'example' => 'magic:magic-cn-fpi4secsq01', 'title' => ''], + 'SourceIndex' => ['description' => 'The source index of the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'PromptCount' => ['description' => 'The number of prompts in the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'CreatedTime' => ['description' => 'The time when the namespace was created.', 'type' => 'string', 'example' => '2022-07-11T09:32:03+08:00', 'title' => ''], + 'SkillCount' => ['description' => 'The number of skills in the namespace.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PublicAccessEnabled' => ['title' => '', 'type' => 'boolean', 'description' => '', 'example' => ''], + 'PublicDomain' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''], + 'IpWhitelist' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'List namespaces in the AI governance center', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 50,\\n \\"Items\\": [\\n {\\n \\"NamespaceId\\": \\"76d4b6e4-31bf-475a-8710-6217ec049c1f\\",\\n \\"Name\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"Description\\": \\"Default project, auto-created by EMR.\\",\\n \\"Tags\\": \\"qa,test\\",\\n \\"Source\\": \\"magic:magic-cn-fpi4secsq01\\",\\n \\"SourceIndex\\": 0,\\n \\"PromptCount\\": 1,\\n \\"CreatedTime\\": \\"2022-07-11T09:32:03+08:00\\",\\n \\"SkillCount\\": 1,\\n \\"PublicAccessEnabled\\": false,\\n \\"PublicDomain\\": \\"\\",\\n \\"IpWhitelist\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'ListPromptVersions' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-qa', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => '', 'description' => '', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => '1', 'title' => ''], + 'PageNumber' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => '1'."\n", 'title' => ''], + 'PagesAvailable' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'example' => '1', 'title' => ''], + 'PageItems' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'PromptKey' => ['type' => 'string', 'description' => '', 'example' => 'customer-service-qa', 'title' => ''], + 'Version' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + 'Status' => ['type' => 'string', 'description' => '', 'example' => 'draft', 'title' => ''], + 'CommitMsg' => ['type' => 'string', 'description' => '', 'example' => 'This is a test version', 'title' => ''], + 'SrcUser' => ['type' => 'string', 'description' => '', 'example' => 'admin', 'title' => ''], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => '2026-01-04T16:09:29+08:00', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => 'The Prompt for the current operation does not exist.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 1,\\n \\"PageItems\\": [\\n {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"draft\\",\\n \\"CommitMsg\\": \\"This is a test version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'ListPrompts' => [ + 'summary' => 'Lists the prompts in a namespace.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The namespace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The identifier of the prompt to search for. This parameter is optional.', 'type' => 'string', 'example' => 'customer', 'required' => false], + ], + [ + 'name' => 'Search', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The search mode. Valid values:'."\n" + ."\n" + .'- accurate: exact match.'."\n" + .'- blur: fuzzy match.', 'type' => 'string', 'example' => 'blur', 'required' => false], + ], + [ + 'name' => 'BizTags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The business tags used to filter prompts. Separate multiple tags with commas (,).', 'type' => 'string', 'example' => 'cs,qa', 'required' => false], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of entries per page. Default value: 10. Maximum value: 50.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => [ + 'description' => 'The returned result.', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['description' => 'The total number of prompts.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PagesAvailable' => ['description' => 'The number of available pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageItems' => [ + 'description' => 'The list of prompts.', + 'type' => 'array', + 'items' => [ + 'description' => 'The prompt information.', + 'type' => 'object', + 'properties' => [ + 'SchemaVersion' => ['description' => 'The schema version of the prompt.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PromptKey' => ['description' => 'The unique identifier of the prompt.', 'type' => 'string', 'example' => 'customer', 'title' => ''], + 'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'test prompt', 'title' => ''], + 'BizTags' => [ + 'description' => 'The list of business tags.', + 'type' => 'array', + 'items' => ['description' => 'The business tag.', 'type' => 'string', 'example' => 'test', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'LatestVersion' => ['description' => 'The latest version number of the prompt.', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + 'GmtModified' => ['description' => 'The time when the prompt was last modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '2026-04-22 11:51:03', 'title' => ''], + 'EditingVersion' => ['description' => 'The version number of the draft version of the prompt. This value is empty if no draft version exists.', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + 'ReviewingVersion' => ['description' => 'The version number of the prompt version that is under review. This value is empty if no version is under review.', 'type' => 'string', 'example' => '0.0.1', 'title' => ''], + 'OnlineCnt' => ['description' => 'The number of online versions of the prompt.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Labels' => [ + 'description' => 'The mapping between prompt versions and labels.', + 'type' => 'object', + 'additionalProperties' => ['description' => '提示词版本标签的键值对', 'type' => 'string', 'example' => '{"prod":"0.0.1"}', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'List prompts in a namespace', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 5,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 1,\\n \\"PageItems\\": [\\n {\\n \\"SchemaVersion\\": 1,\\n \\"PromptKey\\": \\"customer\\",\\n \\"Description\\": \\"test prompt\\",\\n \\"BizTags\\": [\\n \\"test\\"\\n ],\\n \\"LatestVersion\\": \\"0.0.1\\",\\n \\"GmtModified\\": 0,\\n \\"EditingVersion\\": \\"0.0.1\\",\\n \\"ReviewingVersion\\": \\"0.0.1\\",\\n \\"OnlineCnt\\": 1,\\n \\"Labels\\": {\\n \\"key\\": \\"{\\\\\\"prod\\\\\\":\\\\\\"0.0.1\\\\\\"}\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'translator' => 'machine', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airegistry:ListPrompts', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt'], + ], + ], + ], + ], + ], + 'ListSkills' => [ + 'summary' => 'Lists skills.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The filter keyword.', 'type' => 'string', 'example' => 'customer', 'required' => false], + ], + [ + 'name' => 'Search', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The search mode. Valid values:'."\n" + .'- accurate: exact match'."\n" + .'- blur: fuzzy match.', 'type' => 'string', 'example' => 'blur', 'required' => false], + ], + [ + 'name' => 'OrderBy', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The field by which to sort the results. Set the value to download_count to sort by download count. Default value: gmt_modified.', 'type' => 'string', 'example' => 'download_count', 'required' => false], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Filters results by owner.', 'type' => 'string', 'example' => 'user123', 'required' => false], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Filters results by visibility. Valid values:'."\n" + .'- PUBLIC: public'."\n" + .'- PRIVATE: private.', 'type' => 'string', 'example' => 'PUBLIC', 'required' => false], + ], + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of entries per page. Default value: 10. Maximum value: 50.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE', 'title' => ''], + 'Data' => [ + 'description' => 'The list of rule information returned when the call succeeds. For more information, see **RuleInfo**.'."\n" + ."\n" + .'> The returned rule information is sorted by rule creation time in descending order.', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['description' => 'The total number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PagesAvailable' => ['description' => 'pagesAvailable.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'PageItems' => [ + 'description' => 'The MCP server information.', + 'type' => 'array', + 'items' => [ + 'description' => 'The MCP server information.', + 'type' => 'object', + 'properties' => [ + 'UpdateTime' => ['title' => '', 'description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-03-05T19:24:43.798'], + 'Enable' => ['title' => '', 'description' => 'Indicates whether the skill is enabled.', 'type' => 'boolean', 'example' => 'false'], + 'BizTags' => ['title' => '', 'description' => 'The business tags as a JSON array string.', 'type' => 'string', 'example' => 'test'], + 'From' => ['title' => '', 'description' => 'The source tag.', 'type' => 'string', 'example' => 'aqs'], + 'Scope' => ['title' => '', 'description' => 'The visibility scope.', 'type' => 'string', 'example' => 'rd-yORclL'], + 'Labels' => [ + 'title' => '', + 'description' => 'The label mapping.', + 'type' => 'object', + 'additionalProperties' => ['description' => '标签的Key。', 'type' => 'string', 'example' => 'latest', 'title' => ''], + 'example' => '', + ], + 'EditingVersion' => ['title' => '', 'description' => 'The version being edited.', 'type' => 'string', 'example' => '0.0.3'], + 'ReviewingVersion' => ['title' => '', 'description' => 'The version under review.', 'type' => 'string', 'example' => '0.0.2'], + 'OnlineCnt' => ['title' => '', 'description' => 'The number of online versions.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'DownloadCount' => ['title' => '', 'description' => 'The total number of downloads.', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'NamespaceId' => ['description' => 'The ID of the group or workspace to which the repository belongs.', 'type' => 'string', 'example' => 'cn-hangzhou:creatulize-test', 'title' => ''], + 'Name' => ['description' => 'The name.', 'type' => 'string', 'example' => 'OCR品牌', 'title' => ''], + 'Description' => ['description' => 'The description.', 'type' => 'string', 'example' => 'secret for bbtadmin', 'title' => ''], + 'Owner' => ['description' => 'The account ID of the owner.', 'type' => 'string', 'example' => 'manual', 'title' => ''], + 'Writeable' => ['description' => 'Indicates whether the skill can be edited.', 'type' => 'boolean', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'List skills', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 0,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 10,\\n \\"PageItems\\": [\\n {\\n \\"UpdateTime\\": 0,\\n \\"Enable\\": false,\\n \\"BizTags\\": \\"test\\",\\n \\"From\\": \\"aqs\\",\\n \\"Scope\\": \\"rd-yORclL\\",\\n \\"Labels\\": {\\n \\"key\\": \\"latest\\"\\n },\\n \\"EditingVersion\\": \\"0.0.3\\",\\n \\"ReviewingVersion\\": \\"0.0.2\\",\\n \\"OnlineCnt\\": 1,\\n \\"DownloadCount\\": 100,\\n \\"NamespaceId\\": \\"cn-hangzhou:creatulize-test\\",\\n \\"Name\\": \\"OCR品牌\\",\\n \\"Description\\": \\"secret for bbtadmin\\",\\n \\"Owner\\": \\"manual\\",\\n \\"Writeable\\": false\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'OfflineSkill' => [ + 'summary' => 'Offlines a Skill or a specific version of a Skill.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The Skill name.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The operation scope. Valid values:'."\n" + .'- skill: the entire Skill.'."\n" + .'- version: a specific version.', 'type' => 'string', 'example' => 'version', 'required' => false], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The version number. This parameter is required when scope is set to version.', 'type' => 'string', 'example' => '0.0.2', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Offline a skill', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]', + ], + 'OnlineSkill' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => 'version', 'title' => '', 'description' => '', 'required' => false], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '0.0.2', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]', + ], + 'PublishSkillVersion' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '0.0.2', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'UpdateLatestLabel', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'example' => 'true', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '5D26736A-7CB1-5133-9D51-7F7451BBB2C3', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D26736A-7CB1-5133-9D51-7F7451BBB2C3\\"\\n}","type":"json"}]', + ], + 'SubmitPromptVersion' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-qa', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '0.0.1', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['type' => 'string', 'description' => '', 'example' => '0.0.1', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => 'The specified prompt word version does not exist or is illegal'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]', + ], + 'SubmitSkillVersion' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillVersion', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '0.0.2', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'BE66410A-37F8-55C5-8471-589CA195760C', 'title' => ''], + 'Data' => ['type' => 'string', 'description' => '', 'example' => 'ba9b5c2466dc408c9fcd9df72bcd762a', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BE66410A-37F8-55C5-8471-589CA195760C\\",\\n \\"Data\\": \\"ba9b5c2466dc408c9fcd9df72bcd762a\\"\\n}","type":"json"}]', + ], + 'UpdateNamespace' => [ + 'summary' => 'Updates namespace information.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace name.', 'type' => 'string', 'example' => '我的Prompt空间', 'required' => false], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace description.', 'type' => 'string', 'example' => '用于管理客服场景的Prompt', 'required' => false], + ], + [ + 'name' => 'Tags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The tags, separated by commas. Pass an empty string to clear all tags.', 'type' => 'string', 'example' => 'customer-service,production', 'required' => false], + ], + [ + 'name' => 'ScanPolicy', + 'in' => 'query', + 'schema' => ['description' => 'The scan policy.'."\n" + ."\n" + .'The policy contains two configuration items:'."\n" + .'- minBlockRiskLevel: the risk level for blocking.'."\n" + .' - high: blocks high-risk items.'."\n" + .' - medium: blocks medium-risk and high-risk items.'."\n" + .' - low: blocks all risk levels including high, medium, and low.'."\n" + .'- maxSkipRatio: the max false positive rate. If the scan skip ratio exceeds this value, the scan is considered failed.', 'type' => 'string', 'required' => false, 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The unique request ID generated by Alibaba Cloud for this request.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'Indicates whether the operation is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Update namespace', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]', + ], + 'UpdatePrompt' => [ + 'summary' => 'Modifies the metadata of a prompt, such as the description and business tags.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The unique identifier of the prompt.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The description of the prompt.', 'type' => 'string', 'example' => '客服问答 Prompt', 'required' => false], + ], + [ + 'name' => 'BizTags', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '', + 'description' => 'The list of business tags. The value is a string array.', + 'type' => 'array', + 'items' => ['description' => 'The business tag.', 'type' => 'string', 'required' => false, 'example' => 'cs', 'title' => ''], + 'required' => false, + 'example' => '["cs","qa","support"]', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'style' => 'json', + 'schema' => ['description' => 'The mapping between prompt versions and labels.', 'type' => 'object', 'required' => false, 'example' => '{"latest":"0.0.1","stable":"0.0.1"}', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['description' => 'The modification result.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => 'The Prompt for the current operation does not exist.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Modify prompt metadata', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]', + ], + 'UpdatePromptVersion' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'PromptKey', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-qa', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'Template', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '你是一个客服助手,请回答:{question}', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'Variables', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '[{"name":"question","defaultValue":"Hello"}]', 'title' => '', 'description' => '', 'required' => false], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['type' => 'string', 'example' => '优化回答语气', 'title' => '', 'description' => '', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7', 'title' => ''], + 'Data' => ['type' => 'boolean', 'description' => '', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => 'The specified prompt word version does not exist or is illegal'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]', + ], + 'UpdateSkillBizTags' => [ + 'summary' => 'Updates business labels.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The Skill name.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + [ + 'name' => 'BizTags', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The business label JSON array string.', 'type' => 'string', 'required' => true, 'example' => '["cs","qa","support"]'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => 'RestResult', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Update skill business labels', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]', + ], + 'UpdateSkillDraft' => [ + 'summary' => 'Updates a draft.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The skill name.', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'], + ], + [ + 'name' => 'SkillCard', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The skill card JSON string that contains complete skill information.', 'type' => 'string', 'required' => true, 'example' => '{"name":"customer-service-skill","description":"..."}'], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The commit message.', 'type' => 'string', 'example' => '更新说明', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'RestResult', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The unique request ID generated by Alibaba Cloud for this request.', 'type' => 'string', 'example' => '6F402E85-E6D9-5A79-9EAF-8A1B6DCE7F79', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Update a skill draft', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F402E85-E6D9-5A79-9EAF-8A1B6DCE7F79\\"\\n}","type":"json"}]', + ], + 'UpdateSkillLabels' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '{"latest":"0.0.2","stable":"0.0.1"}', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\"\\n}","type":"json"}]', + ], + 'UpdateSkillScope' => [ + 'summary' => '', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'SkillName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'PUBLIC', 'title' => '', 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'F4BFD370-7466-5F56-ACE5-A2D11A26C6BB', 'title' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F4BFD370-7466-5F56-ACE5-A2D11A26C6BB\\"\\n}","type":"json"}]', + ], + 'UploadSkillViaOss' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREmseSJUUGO'], + ], + 'parameters' => [ + [ + 'name' => 'NamespaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'OssObjectName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'title' => '', 'description' => '', 'example' => ''], + ], + [ + 'name' => 'Overwrite', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'example' => 'false', 'title' => '', 'description' => ''], + ], + [ + 'name' => 'CommitMsg', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Data' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'description' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => 'parameter is missing, format is wrong, or validation fails'], + ], + 403 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ], + [ + ['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => 'The current operation\'s Skill does not exist'], + ], + 409 => [ + ['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => 'Corresponding Skill already exists'], + ], + 500 => [ + ['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => 'System error'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '', + 'summary' => '', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\",\\n \\"Data\\": \\"\\"\\n}","type":"json"}]', + ], + ], + 'endpoints' => [], + 'errorCodes' => [ + ['code' => 'AgentSpecAlreadyExist', 'message' => 'AgentSpec already exist.', 'http_code' => 409, 'description' => 'Corresponding AgentSpec already exists'], + ['code' => 'AgentSpecNotFound', 'message' => 'Corresponding agent spec not found.', 'http_code' => 404, 'description' => 'The corresponding AgentSpec does not exist.'], + ['code' => 'AlreadyExist', 'message' => 'Skill already exist.', 'http_code' => 409, 'description' => 'The corresponding Skill already exists'], + ['code' => 'InvalidParameter', 'message' => 'Parameter Error.', 'http_code' => 400, 'description' => 'parameter is missing, format is wrong, or validation fails'], + ['code' => 'NamespaceInUse', 'message' => 'The namespace is in use and cannot be deleted.', 'http_code' => 400, 'description' => 'There are still undeleted resources in use under the namespace.'], + ['code' => 'NamespaceNotFound', 'message' => 'The specified namespace does not exist.', 'http_code' => 404, 'description' => 'The specified namespace does not exist'], + ['code' => 'NamespaceQuotaLimit', 'message' => 'User has reached the maximum namespace limit .', 'http_code' => 400, 'description' => 'Maximum number of namespaces created by a single user'], + ['code' => 'NamespaceQuotaLimited', 'message' => 'User has reached the maximum namespace limit .', 'http_code' => 400, 'description' => 'Maximum number of namespaces created by a single user'], + ['code' => 'NoPermission', 'message' => 'You are not authorized to access this resource.', 'http_code' => 403, 'description' => 'The current user does not have permission to operate the corresponding resource.'], + ['code' => 'PromptAlreadyExist', 'message' => 'The specified prompt already exists.', 'http_code' => 409, 'description' => 'Created Prompt already exists'], + ['code' => 'PromptNotFound', 'message' => 'The specified prompt does not exist.', 'http_code' => 404, 'description' => 'The Prompt for the current operation does not exist.'], + ['code' => 'PromptVersionAlreadyExist', 'message' => 'The specified prompt version already exist.', 'http_code' => 409, 'description' => 'Prompt version already exists'], + ['code' => 'PromptVersionNotFound', 'message' => 'The specificed prompt version is illegal or not found.', 'http_code' => 404, 'description' => 'The specified prompt word version does not exist or is illegal'], + ['code' => 'SkillAlreadyExist', 'message' => 'Skill already exist.', 'http_code' => 409, 'description' => 'Corresponding Skill already exists'], + ['code' => 'SkillNotFound', 'message' => 'The specified skill does not exist.', 'http_code' => 404, 'description' => 'The current operation\'s Skill does not exist'], + ['code' => 'SysyemError', 'message' => 'System error.', 'http_code' => 500, 'description' => 'System error'], + ], + 'changeSet' => [], + 'ram' => [ + 'productCode' => 'AIRegistry', + 'productName' => 'Microservices Engine', + 'ramCodes' => ['airegistry'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'UpdatePromptVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdatePromptVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'ForcePublishSkillVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:ForcePublishSkillVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'PublishSkillVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:PublishSkillVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'GetSkillImportFileUrl', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airegistry:GetSkillImportFileUrl', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill'], + ], + ], + ], + [ + 'apiName' => 'GetNamespace', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:GetNamespace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdatePrompt', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdatePrompt', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'GetSkillDetail', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:GetSkillDetail', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateSkillScope', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdateSkillScope', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateSkillBizTags', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdateSkillBizTags', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'DeleteNamespace', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airegistry:DeleteNamespace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateSkillLabels', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdateSkillLabels', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'OnlineSkill', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:OnlineSkill', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'GetPromptVersion', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:GetPromptVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'UploadSkillViaOss', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airegistry:UploadSkillViaOss', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill'], + ], + ], + ], + [ + 'apiName' => 'DownloadSkillVersionViaOss', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:DownloadSkillVersionViaOss', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'CreatePromptVersion', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airegistry:CreatePromptVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'OfflineSkill', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:OfflineSkill', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'GetSkillVersionDetail', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:GetSkillVersionDetail', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'ListPrompts', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airegistry:ListPrompts', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt'], + ], + ], + ], + [ + 'apiName' => 'DeleteSkill', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airegistry:DeleteSkill', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'ListPromptVersions', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airegistry:ListPromptVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'CreatePrompt', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airegistry:CreatePrompt', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'DeletePrompt', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airegistry:DeletePrompt', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'CreateNamespace', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airegistry:CreateNamespace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/*'], + ], + ], + ], + [ + 'apiName' => 'UpdateSkillDraft', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdateSkillDraft', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'CreateSkillDraft', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airegistry:CreateSkillDraft', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill'], + ], + ], + ], + [ + 'apiName' => 'SubmitSkillVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:SubmitSkillVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ], + ], + ], + [ + 'apiName' => 'UpdateNamespace', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:UpdateNamespace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}'], + ], + ], + ], + [ + 'apiName' => 'ListNamespaces', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airegistry:ListNamespaces', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/*'], + ], + ], + ], + [ + 'apiName' => 'GetPrompt', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airegistry:GetPrompt', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'SubmitPromptVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airegistry:SubmitPromptVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ], + ], + ], + [ + 'apiName' => 'ListSkills', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airegistry:ListSkills', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRegistry', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt/{#PromptKey}'], + ['validationType' => 'always', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill/{#SkillName}'], + ['validationType' => 'always', 'resourceType' => 'Skill', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/skill'], + ['validationType' => 'always', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}'], + ['validationType' => 'always', 'resourceType' => 'Prompt', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/{#NamespaceId}/DEFAULT/prompt'], + ['validationType' => 'always', 'resourceType' => 'Namespace', 'arn' => 'acs:airegistry:{#regionId}:{#accountId}:instance/saas/*'], + ], + ], +]; -- cgit v1.2.3