Skip to content

Commit bdbe6a5

Browse files
committed
Generated Darabonba for appflow-2023-09-04.
1 parent 3b1b0b4 commit bdbe6a5

File tree

9 files changed

+584
-0
lines changed

9 files changed

+584
-0
lines changed

appflow-20230904/Teafile

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"scope": "alibabacloud",
3+
"name": "appflow20230904",
4+
"version": "1.0.0",
5+
"main": "./main.tea",
6+
"maintainers": [
7+
{
8+
"name": "Alibaba Cloud SDK",
9+
"email": "sdk-team@alibabacloud.com"
10+
}
11+
],
12+
"java": {
13+
"package": "com.aliyun.appflow20230904",
14+
"enableMinimizeModelName": false,
15+
"packageInfo": {
16+
"description": "Alibaba Cloud appflow (20230904) SDK for Java",
17+
"url": "https://github.com/aliyun/alibabacloud-java-sdk",
18+
"licenseName": "The Apache License, Version 2.0",
19+
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.txt",
20+
"developerId": "aliyunproducts",
21+
"developerName": "Aliyun SDK",
22+
"developerEmail": "aliyunsdk@aliyun.com"
23+
}
24+
},
25+
"releases": {
26+
"java": "com.aliyun:appflow20230904:1.0.0",
27+
"go": "github.com/alibabacloud-go/appflow-20230904/client:v1.0.0",
28+
"csharp": "AlibabaCloud.SDK.Appflow20230904:1.0.0",
29+
"ts": "@alicloud/appflow20230904:1.0.0",
30+
"php": "alibabacloud/appflow-20230904:1.0.0",
31+
"python": "alibabacloud_appflow20230904:1.0.0",
32+
"python2": "alibabacloud_appflow20230904_py2:0.0.1",
33+
"swift": "alibabacloud-sdk-swift/appflow-20230904:1.0.0"
34+
},
35+
"libraries": {
36+
"OpenApi": "alibabacloud:OpenApi:*",
37+
"Util": "darabonba:Util:*",
38+
"OpenApiUtil": "alibabacloud:OpenApiUtil:*",
39+
"EndpointUtil": "alibabacloud:EndpointUtil:*",
40+
"SPI": "alibabacloud:GatewaySPI:*",
41+
"GatewayClient": "alibabacloud:GatewayPOP:*",
42+
"Paginator": "alibabacloud:Paginator:*"
43+
},
44+
"csharp": {
45+
"className": "Client",
46+
"namespace": "AlibabaCloud.SDK.Appflow20230904",
47+
"packageInfo": {
48+
"name": "appflow",
49+
"title": "alibabacloud-appflow",
50+
"description": "Alibaba Cloud appflow (20230904) SDK Library for .NET",
51+
"company": "Alibaba Cloud",
52+
"property": {
53+
"PackageTags": "Alibaba Aliyun appflow SDK",
54+
"Copyright": "©2009-present Alibaba Cloud",
55+
"PackageProjectUrl": "https://github.com/aliyun/alibabacloud-csharp-sdk",
56+
"PackageIconUrl": "https://www.alibabacloud.com/favicon.ico"
57+
}
58+
}
59+
},
60+
"php": {
61+
"package": "AlibabaCloud.SDK.Appflow.V20230904",
62+
"clientName": "Appflow",
63+
"packageInfo": {
64+
"name": "alibabacloud/appflow-20230904",
65+
"desc": "Alibaba Cloud appflow (20230904) SDK Library for PHP",
66+
"github": "https://github.com/aliyun/alibabacloud-php-sdk",
67+
"files": {
68+
"LICENSE": "../LICENSE"
69+
}
70+
}
71+
},
72+
"python": {
73+
"package": "alibabacloud_appflow20230904",
74+
"clientName": "client",
75+
"packageInfo": {
76+
"name": "alibabacloud_appflow20230904",
77+
"desc": "Alibaba Cloud appflow (20230904) SDK Library for Python",
78+
"github": "https://github.com/aliyun/alibabacloud-python-sdk",
79+
"author": "Alibaba Cloud SDK",
80+
"email": "sdk-team@alibabacloud.com"
81+
}
82+
},
83+
"python2": {
84+
"package": "alibabacloud_appflow20230904",
85+
"clientName": "client",
86+
"packageInfo": {
87+
"name": "alibabacloud_appflow20230904_py2",
88+
"desc": "Alibaba Cloud appflow (20230904) SDK Library for Python2",
89+
"github": "https://github.com/aliyun/alibabacloud-python2-sdk",
90+
"author": "Alibaba Cloud SDK",
91+
"email": "sdk-team@alibabacloud.com"
92+
}
93+
},
94+
"cpp": {
95+
"packageInfo": {
96+
"git": {
97+
"scope": "alibabacloud-sdk-cpp",
98+
"project": "appflow-20230904"
99+
}
100+
}
101+
},
102+
"swift": {
103+
"clientName": "Client",
104+
"packageInfo": {
105+
"name": "AlibabacloudAppflow20230904",
106+
"desc": "Alibaba Cloud appflow (20230904) SDK Library for Swift",
107+
"github": "https://github.com/alibabacloud-sdk-swift/appflow-20230904",
108+
"author": "Alibaba Cloud SDK",
109+
"email": "sdk-team@alibabacloud.com"
110+
}
111+
},
112+
"go": {
113+
"mapAndSliceWithoutOmitempty": false
114+
},
115+
"productId": "appflow",
116+
"apiVersions": "2023-09-04"
117+
}

appflow-20230904/api-info.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"product": "appflow",
3+
"version": "2023-09-04",
4+
"apiDoc": {
5+
"hasDoc": [
6+
"GenerateUserSessionToken"
7+
],
8+
"noDoc": []
9+
},
10+
"deprecated": [],
11+
"endpoints": {}
12+
}

appflow-20230904/async/Darafile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"scope": "alibabacloud",
3+
"name": "appflow20230904-async",
4+
"version": "1.0.0",
5+
"main": "./main.dara",
6+
"productId": "appflow",
7+
"apiVersions": "20230904",
8+
"signVersion": "v2",
9+
"maintainers": [
10+
{
11+
"name": "Alibaba Cloud SDK",
12+
"email": "sdk-team@alibabacloud.com"
13+
}
14+
],
15+
"java": {
16+
"package": "com.aliyun.sdk.service.appflow20230904",
17+
"className": "DefaultAsyncClient",
18+
"implements": "AsyncClient",
19+
"packageInfo": {
20+
"description": "Alibaba Cloud appflow (20230904) Async SDK for Java",
21+
"url": "https://github.com/aliyun/alibabacloud-java-async-sdk",
22+
"licenseName": "The Apache License, Version 2.0",
23+
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.txt",
24+
"developerId": "aliyunproducts",
25+
"developerName": "Aliyun SDK",
26+
"developerEmail": "aliyunsdk@aliyun.com"
27+
}
28+
},
29+
"releases": {
30+
"java": "com.aliyun:alibabacloud-appflow20230904:0.0.1"
31+
},
32+
"libraries": {
33+
"TeaRequest": "alibabacloud:DarabonbaCore.TeaRequest:*",
34+
"AsyncRequestBody": "alibabacloud:DarabonbaCore.AsyncRequestBody:*",
35+
"RequestBody": "alibabacloud:DarabonbaCore.RequestBody:*",
36+
"AsyncResponseHandler": "alibabacloud:DarabonbaCore.AsyncResponseHandler:*",
37+
"ClientConfiguration": "alibabacloud:DarabonbaCore.ClientConfiguration:*",
38+
"ClientExecutionParams": "alibabacloud:DarabonbaCore.ClientExecutionParams:*",
39+
"TeaAsyncHandler": "alibabacloud:DarabonbaCore.TeaAsyncHandler:*",
40+
"BaseClientBuilder": "alibabacloud:DarabonbaCore.Pop:*"
41+
}
42+
}

appflow-20230904/async/api-info.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"product": "appflow",
3+
"version": "2023-09-04",
4+
"apiDoc": {
5+
"hasDoc": [
6+
"GenerateUserSessionToken"
7+
],
8+
"noDoc": []
9+
},
10+
"deprecated": [],
11+
"endpoints": {}
12+
}

appflow-20230904/async/main.dara

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
*
3+
*/
4+
import BaseClientBuilder;
5+
import TeaAsyncHandler;
6+
import TeaRequest;
7+
import AsyncRequestBody;
8+
import RequestBody;
9+
import AsyncResponseHandler;
10+
import ClientConfiguration;
11+
import ClientExecutionParams;
12+
extends BaseClientBuilder;
13+
type @product = string
14+
type @version = string
15+
type @endpointRule = string
16+
type @endpointMap = map[string]string
17+
type @REQUEST = TeaRequest
18+
type @handler = TeaAsyncHandler
19+
20+
init(configuration: ClientConfiguration){
21+
@handler = new TeaAsyncHandler(configuration);
22+
@product = 'appflow';
23+
@version = '2023-09-04';
24+
@endpointRule = '';
25+
@endpointMap = {
26+
};
27+
}
28+
29+
function close(): void {
30+
@handler.close();
31+
}
32+
33+
model GenerateUserSessionTokenRequest {
34+
chatbotId?: string(name='ChatbotId', description='AI Assistant ID', example='cb-069d508f9ab341b1****', position='Query'),
35+
expireSecond?: long(name='ExpireSecond', description='Expiration Time, in seconds, default 24 hours', example='6000', position='Query'),
36+
integrateId?: string(name='IntegrateId', description='Integration ID', example='cit-960f499au184m7****', position='Query'),
37+
userAvatar?: string(name='UserAvatar', description='User Avatar (URL)', example='https://xxxx.com/xxx', position='Query'),
38+
userId: string(name='UserId', description='User ID
39+
40+
This parameter is required.', example='929293312213****', position='Query'),
41+
userName?: string(name='UserName', description='User Nickname', example='testxxx', position='Query'),
42+
}
43+
44+
model GenerateUserSessionTokenResponseBody = {
45+
requestId?: string(name='RequestId', description='Request ID.', example='34C2713A-2270-5EEC-825E-115F9AD3BAC9'),
46+
userSessionToken?: string(name='UserSessionToken', description='Token.', example='960f499au184m7****'),
47+
}
48+
49+
model GenerateUserSessionTokenResponse = {
50+
headers?: map[string]string(name='headers'),
51+
statusCode?: int32(name='statusCode'),
52+
body?: GenerateUserSessionTokenResponseBody(name='body'),
53+
}
54+
55+
/**
56+
* @param request the request parameters of GenerateUserSessionToken GenerateUserSessionTokenRequest
57+
* @return GenerateUserSessionTokenResponse
58+
*/
59+
async function generateUserSessionToken(request: GenerateUserSessionTokenRequest): GenerateUserSessionTokenResponse {
60+
@handler.validateRequestModel(request);
61+
return @handler.do('RPC', 'GenerateUserSessionToken', 'POST', '/', 'json', false, 'json', request);
62+
}
63+

appflow-20230904/main.tea

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/**
2+
*
3+
*/
4+
import Util;
5+
import OpenApi;
6+
import OpenApiUtil;
7+
import EndpointUtil;
8+
9+
extends OpenApi;
10+
11+
12+
init(config: OpenApi.Config){
13+
super(config);
14+
@endpointRule = '';
15+
16+
checkConfig(config);
17+
@endpoint = getEndpoint('appflow', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
18+
}
19+
20+
function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{
21+
if (!Util.empty(endpoint)) {
22+
return endpoint;
23+
}
24+
25+
if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
26+
return endpointMap[regionId];
27+
}
28+
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
29+
}
30+
31+
model GenerateUserSessionTokenRequest {
32+
chatbotId?: string(name='ChatbotId', description='AI Assistant ID', example='cb-069d508f9ab341b1****'),
33+
expireSecond?: long(name='ExpireSecond', description='Expiration Time, in seconds, default 24 hours', example='6000'),
34+
integrateId?: string(name='IntegrateId', description='Integration ID', example='cit-960f499au184m7****'),
35+
userAvatar?: string(name='UserAvatar', description='User Avatar (URL)', example='https://xxxx.com/xxx'),
36+
userId?: string(name='UserId', description='User ID
37+
38+
This parameter is required.', example='929293312213****'),
39+
userName?: string(name='UserName', description='User Nickname', example='testxxx'),
40+
}
41+
42+
model GenerateUserSessionTokenResponseBody = {
43+
requestId?: string(name='RequestId', description='Request ID.', example='34C2713A-2270-5EEC-825E-115F9AD3BAC9'),
44+
userSessionToken?: string(name='UserSessionToken', description='Token.', example='960f499au184m7****'),
45+
}
46+
47+
model GenerateUserSessionTokenResponse = {
48+
headers?: map[string]string(name='headers'),
49+
statusCode?: int32(name='statusCode'),
50+
body?: GenerateUserSessionTokenResponseBody(name='body'),
51+
}
52+
53+
/**
54+
* @summary Generate Login Session Token
55+
*
56+
* @param request GenerateUserSessionTokenRequest
57+
* @param runtime runtime options for this request RuntimeOptions
58+
* @return GenerateUserSessionTokenResponse
59+
*/
60+
async function generateUserSessionTokenWithOptions(request: GenerateUserSessionTokenRequest, runtime: Util.RuntimeOptions): GenerateUserSessionTokenResponse {
61+
Util.validateModel(request);
62+
var query = {};
63+
if (!Util.isUnset(request.chatbotId)) {
64+
query['ChatbotId'] = request.chatbotId;
65+
}
66+
if (!Util.isUnset(request.expireSecond)) {
67+
query['ExpireSecond'] = request.expireSecond;
68+
}
69+
if (!Util.isUnset(request.integrateId)) {
70+
query['IntegrateId'] = request.integrateId;
71+
}
72+
if (!Util.isUnset(request.userAvatar)) {
73+
query['UserAvatar'] = request.userAvatar;
74+
}
75+
if (!Util.isUnset(request.userId)) {
76+
query['UserId'] = request.userId;
77+
}
78+
if (!Util.isUnset(request.userName)) {
79+
query['UserName'] = request.userName;
80+
}
81+
var req = new OpenApi.OpenApiRequest{
82+
query = OpenApiUtil.query(query),
83+
};
84+
var params = new OpenApi.Params{
85+
action = 'GenerateUserSessionToken',
86+
version = '2023-09-04',
87+
protocol = 'HTTPS',
88+
pathname = '/',
89+
method = 'POST',
90+
authType = 'AK',
91+
style = 'RPC',
92+
reqBodyType = 'formData',
93+
bodyType = 'json',
94+
};
95+
return callApi(params, req, runtime);
96+
}
97+
98+
/**
99+
* @summary Generate Login Session Token
100+
*
101+
* @param request GenerateUserSessionTokenRequest
102+
* @return GenerateUserSessionTokenResponse
103+
*/
104+
async function generateUserSessionToken(request: GenerateUserSessionTokenRequest): GenerateUserSessionTokenResponse {
105+
var runtime = new Util.RuntimeOptions{};
106+
return generateUserSessionTokenWithOptions(request, runtime);
107+
}
108+

0 commit comments

Comments
 (0)