Skip to content

Commit db4ca7a

Browse files
committed
Support API KeepaliveIntl.
1 parent 6b6120d commit db4ca7a

File tree

6 files changed

+159
-1
lines changed

6 files changed

+159
-1
lines changed

cloudauth-intl-20220809/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/cloudauth-intl20220809",
3-
"version": "3.7.2",
3+
"version": "3.8.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

cloudauth-intl-20220809/src/client.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,38 @@ export default class Client extends OpenApi {
15031503
return await this.initializeWithOptions(request, runtime);
15041504
}
15051505

1506+
/**
1507+
* 客户端连接保持
1508+
*
1509+
* @param request - KeepaliveIntlRequest
1510+
* @param runtime - runtime options for this request RuntimeOptions
1511+
* @returns KeepaliveIntlResponse
1512+
*/
1513+
async keepaliveIntlWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.KeepaliveIntlResponse> {
1514+
let req = new $OpenApiUtil.OpenApiRequest({ });
1515+
let params = new $OpenApiUtil.Params({
1516+
action: "KeepaliveIntl",
1517+
version: "2022-08-09",
1518+
protocol: "HTTPS",
1519+
pathname: "/",
1520+
method: "POST",
1521+
authType: "AK",
1522+
style: "RPC",
1523+
reqBodyType: "formData",
1524+
bodyType: "json",
1525+
});
1526+
return $dara.cast<$_model.KeepaliveIntlResponse>(await this.callApi(params, req, runtime), new $_model.KeepaliveIntlResponse({}));
1527+
}
1528+
1529+
/**
1530+
* 客户端连接保持
1531+
* @returns KeepaliveIntlResponse
1532+
*/
1533+
async keepaliveIntl(): Promise<$_model.KeepaliveIntlResponse> {
1534+
let runtime = new $dara.RuntimeOptions({ });
1535+
return await this.keepaliveIntlWithOptions(runtime);
1536+
}
1537+
15061538
/**
15071539
* 手机号三要素国际版接口
15081540
*
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { KeepaliveIntlResponseBody } from "./KeepaliveIntlResponseBody";
4+
5+
6+
export class KeepaliveIntlResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: KeepaliveIntlResponseBody;
10+
static names(): { [key: string]: string } {
11+
return {
12+
headers: 'headers',
13+
statusCode: 'statusCode',
14+
body: 'body',
15+
};
16+
}
17+
18+
static types(): { [key: string]: any } {
19+
return {
20+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21+
statusCode: 'number',
22+
body: KeepaliveIntlResponseBody,
23+
};
24+
}
25+
26+
validate() {
27+
if(this.headers) {
28+
$dara.Model.validateMap(this.headers);
29+
}
30+
if(this.body && typeof (this.body as any).validate === 'function') {
31+
(this.body as any).validate();
32+
}
33+
super.validate();
34+
}
35+
36+
constructor(map?: { [key: string]: any }) {
37+
super(map);
38+
}
39+
}
40+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { KeepaliveIntlResponseBodyResult } from "./KeepaliveIntlResponseBodyResult";
4+
5+
6+
export class KeepaliveIntlResponseBody extends $dara.Model {
7+
/**
8+
* @example
9+
* Success
10+
*/
11+
code?: string;
12+
/**
13+
* @example
14+
* success
15+
*/
16+
message?: string;
17+
/**
18+
* @example
19+
* 4EB35****87EBA1
20+
*/
21+
requestId?: string;
22+
result?: KeepaliveIntlResponseBodyResult;
23+
static names(): { [key: string]: string } {
24+
return {
25+
code: 'Code',
26+
message: 'Message',
27+
requestId: 'RequestId',
28+
result: 'Result',
29+
};
30+
}
31+
32+
static types(): { [key: string]: any } {
33+
return {
34+
code: 'string',
35+
message: 'string',
36+
requestId: 'string',
37+
result: KeepaliveIntlResponseBodyResult,
38+
};
39+
}
40+
41+
validate() {
42+
if(this.result && typeof (this.result as any).validate === 'function') {
43+
(this.result as any).validate();
44+
}
45+
super.validate();
46+
}
47+
48+
constructor(map?: { [key: string]: any }) {
49+
super(map);
50+
}
51+
}
52+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class KeepaliveIntlResponseBodyResult extends $dara.Model {
6+
/**
7+
* @example
8+
* SUCCESS
9+
*/
10+
result?: string;
11+
static names(): { [key: string]: string } {
12+
return {
13+
result: 'Result',
14+
};
15+
}
16+
17+
static types(): { [key: string]: any } {
18+
return {
19+
result: 'string',
20+
};
21+
}
22+
23+
validate() {
24+
super.validate();
25+
}
26+
27+
constructor(map?: { [key: string]: any }) {
28+
super(map);
29+
}
30+
}
31+

cloudauth-intl-20220809/src/models/model.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export { FaceLivenessResponseBodyResult } from './FaceLivenessResponseBodyResult
1616
export { Id2MetaPeriodVerifyIntlResponseBodyResult } from './Id2metaPeriodVerifyIntlResponseBodyResult';
1717
export { Id2MetaVerifyIntlResponseBodyResult } from './Id2metaVerifyIntlResponseBodyResult';
1818
export { InitializeResponseBodyResult } from './InitializeResponseBodyResult';
19+
export { KeepaliveIntlResponseBodyResult } from './KeepaliveIntlResponseBodyResult';
1920
export { Mobile3MetaVerifyIntlResponseBodyResult } from './Mobile3metaVerifyIntlResponseBodyResult';
2021
export { AddressVerifyIntlRequest } from './AddressVerifyIntlRequest';
2122
export { AddressVerifyIntlResponseBody } from './AddressVerifyIntlResponseBody';
@@ -73,6 +74,8 @@ export { InitializeRequest } from './InitializeRequest';
7374
export { InitializeShrinkRequest } from './InitializeShrinkRequest';
7475
export { InitializeResponseBody } from './InitializeResponseBody';
7576
export { InitializeResponse } from './InitializeResponse';
77+
export { KeepaliveIntlResponseBody } from './KeepaliveIntlResponseBody';
78+
export { KeepaliveIntlResponse } from './KeepaliveIntlResponse';
7679
export { Mobile3MetaVerifyIntlRequest } from './Mobile3metaVerifyIntlRequest';
7780
export { Mobile3MetaVerifyIntlResponseBody } from './Mobile3metaVerifyIntlResponseBody';
7881
export { Mobile3MetaVerifyIntlResponse } from './Mobile3metaVerifyIntlResponse';

0 commit comments

Comments
 (0)