summaryrefslogtreecommitdiff
path: root/data/aligenie/oauth2_1.0
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-14 10:08:30 +0800
committerZhineng Li <[email protected]>2026-02-14 10:08:30 +0800
commiteccd5cd5a067f5659982685afdeea209b1888efb (patch)
tree1626c903b854317be1708ce3ccd3b4f4e6e0fc97 /data/aligenie/oauth2_1.0
downloadacs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.tar.gz
acs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.zip
Diffstat (limited to 'data/aligenie/oauth2_1.0')
-rw-r--r--data/aligenie/oauth2_1.0/api-docs.php501
1 files changed, 501 insertions, 0 deletions
diff --git a/data/aligenie/oauth2_1.0/api-docs.php b/data/aligenie/oauth2_1.0/api-docs.php
new file mode 100644
index 0000000..aa628b6
--- /dev/null
+++ b/data/aligenie/oauth2_1.0/api-docs.php
@@ -0,0 +1,501 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'AliGenie',
+ 'product' => 'AliGenie',
+ 'version' => 'oauth2_1.0',
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'GetSmartHomeSceneList' => [
+ 'path' => '/v1.0/oauth2/iot/smart_home/scene/list',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'ExecuteSmartHomeScene' => [
+ 'path' => '/v1.0/oauth2/iot/smart_home/scene/execute',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'FamilyId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'SceneId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ ],
+ 'GetUserBasicInfo' => [
+ 'path' => '/v1.0/oauth2/users/basic',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'GetUserPhone' => [
+ 'path' => '/v1.0/oauth2/user/profile/phone',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'GetSceneList' => [
+ 'path' => '/v1.0/oauth2/iot/scene/list',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'ExecuteScene' => [
+ 'path' => '/v1.0/oauth2/iot/scene/execute',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'SceneId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ 'QueryDeviceList' => [
+ 'path' => '/v1.0/oauth2/device/list',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'PushDeviceNotification' => [
+ 'path' => '/v1.0/oauth2/device/notification/push',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'SendTarget' => [
+ 'type' => 'object',
+ 'required' => true,
+ 'properties' => [
+ 'TargetType' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => [
+ 'DEVICE_UNION_ID',
+ 'DEVICE_OPEN_ID',
+ ],
+ ],
+ 'TargetIdentity' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'MessageTemplateId' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'PlaceHolder' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'EncodeType' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'EncodeKey' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'OrganizationId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'IsDebug' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'TenantInfo',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'SubjectId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreatePlayingList' => [
+ 'path' => '/v1.0/oauth2/content/playing/create',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'OAuth 2.0 Bearer Token' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'OpenCreatePlayingListRequest',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => true,
+ 'properties' => [
+ 'PlayFrom' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ContentType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => [
+ 'content',
+ 'album',
+ 'collect',
+ ],
+ ],
+ 'ContentList' => [
+ 'type' => 'array',
+ 'required' => true,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => true,
+ 'properties' => [
+ 'RawId' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'Source' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ ],
+ 'Index' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ ],
+ 'NeedAlbumContinued' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'PlayMode' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => [
+ 'Repeat',
+ 'Shuffle',
+ 'RepeatOne',
+ 'Normal',
+ ],
+ ],
+ 'ExtendInfo' => [
+ 'type' => 'object',
+ 'required' => false,
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'DeviceInfo',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => true,
+ 'properties' => [
+ 'EncodeType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => [
+ 'UC_CLIENT_ID',
+ ],
+ ],
+ 'EncodeKey' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'IdType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => [
+ 'OPEN_ID',
+ 'UNION_ID',
+ ],
+ ],
+ 'Id' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'OrganizationId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'OAuth2TokenEndpoint' => [
+ 'path' => '/v1.0/oauth2/token',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AliGenie_Auth_SPI' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'GrantType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Code',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RedirectUri',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RefreshToken',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ 'OAuth2RevocationEndpoint' => [
+ 'path' => '/v1.0/oauth2/revoke',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AliGenie_Auth_SPI' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/x-www-form-urlencoded',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'Token',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'TokenTypeHint',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'openapi.aligenie.com',
+ ],
+ ],
+];