summaryrefslogtreecommitdiff
path: root/data/aligenie/oauth2_1.0
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/aligenie/oauth2_1.0
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/aligenie/oauth2_1.0')
-rw-r--r--data/aligenie/oauth2_1.0/api-docs.php328
1 files changed, 73 insertions, 255 deletions
diff --git a/data/aligenie/oauth2_1.0/api-docs.php b/data/aligenie/oauth2_1.0/api-docs.php
index aa628b6..f4065d3 100644
--- a/data/aligenie/oauth2_1.0/api-docs.php
+++ b/data/aligenie/oauth2_1.0/api-docs.php
@@ -1,198 +1,131 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'AliGenie',
- 'product' => 'AliGenie',
- 'version' => 'oauth2_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',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
'ExecuteSmartHomeScene' => [
'path' => '/v1.0/oauth2/iot/smart_home/scene/execute',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'FamilyId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'SceneId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
'GetUserBasicInfo' => [
'path' => '/v1.0/oauth2/users/basic',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
'GetUserPhone' => [
'path' => '/v1.0/oauth2/user/profile/phone',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
'GetSceneList' => [
'path' => '/v1.0/oauth2/iot/scene/list',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
'ExecuteScene' => [
'path' => '/v1.0/oauth2/iot/scene/execute',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'SceneId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'QueryDeviceList' => [
'path' => '/v1.0/oauth2/device/list',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [],
],
'PushDeviceNotification' => [
'path' => '/v1.0/oauth2/device/notification/push',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -210,44 +143,21 @@
'TargetType' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'DEVICE_UNION_ID',
- 'DEVICE_OPEN_ID',
- ],
- ],
- 'TargetIdentity' => [
- 'type' => 'string',
- 'required' => false,
+ 'enum' => ['DEVICE_UNION_ID', 'DEVICE_OPEN_ID'],
],
+ 'TargetIdentity' => ['type' => 'string', 'required' => false],
],
],
- 'MessageTemplateId' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ '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,
+ 'additionalProperties' => ['type' => 'string'],
],
+ 'EncodeType' => ['type' => 'string', 'required' => true],
+ 'EncodeKey' => ['type' => 'string', 'required' => true],
+ 'OrganizationId' => ['type' => 'string', 'required' => false],
+ 'IsDebug' => ['type' => 'boolean', 'required' => false],
],
],
],
@@ -259,10 +169,7 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'SubjectId' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SubjectId' => ['type' => 'string', 'required' => false],
],
],
],
@@ -270,23 +177,15 @@
],
'CreatePlayingList' => [
'path' => '/v1.0/oauth2/content/playing/create',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -297,18 +196,11 @@
'type' => 'object',
'required' => true,
'properties' => [
- 'PlayFrom' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'PlayFrom' => ['type' => 'string', 'required' => false],
'ContentType' => [
'type' => 'string',
'required' => true,
- 'enum' => [
- 'content',
- 'album',
- 'collect',
- ],
+ 'enum' => ['content', 'album', 'collect'],
],
'ContentList' => [
'type' => 'array',
@@ -317,43 +209,20 @@
'type' => 'object',
'required' => true,
'properties' => [
- 'RawId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Source' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'RawId' => ['type' => 'string', 'required' => true],
+ 'Source' => ['type' => 'string', 'required' => true],
],
],
],
- 'Index' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'NeedAlbumContinued' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ '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',
+ 'enum' => ['Repeat', 'Shuffle', 'RepeatOne', 'Normal'],
],
+ 'ExtendInfo' => ['type' => 'object', 'required' => false],
+ 'RequestId' => ['type' => 'string'],
],
],
],
@@ -368,30 +237,16 @@
'EncodeType' => [
'type' => 'string',
'required' => true,
- 'enum' => [
- 'UC_CLIENT_ID',
- ],
- ],
- 'EncodeKey' => [
- '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,
+ 'enum' => ['OPEN_ID', 'UNION_ID'],
],
+ 'Id' => ['type' => 'string', 'required' => true],
+ 'OrganizationId' => ['type' => 'string', 'required' => false],
],
],
],
@@ -399,103 +254,66 @@
],
'OAuth2TokenEndpoint' => [
'path' => '/v1.0/oauth2/token',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AliGenie_Auth_SPI' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'GrantType',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Code',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'RedirectUri',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'RefreshToken',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'OAuth2RevocationEndpoint' => [
'path' => '/v1.0/oauth2/revoke',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AliGenie_Auth_SPI' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Token',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'TokenTypeHint',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'openapi.aligenie.com',
- ],
+ ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'openapi.aligenie.com'],
],
];