@alicloud/appstream-center20210218 1.0.4 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +51 -112
- package/dist/client.js +143 -179
- package/dist/client.js.map +1 -1
- package/dist/models/ExpireLoginTokenRequest.d.ts +42 -0
- package/dist/models/ExpireLoginTokenRequest.js +64 -0
- package/dist/models/ExpireLoginTokenRequest.js.map +1 -0
- package/dist/models/ExpireLoginTokenResponse.d.ts +19 -0
- package/dist/models/ExpireLoginTokenResponse.js +69 -0
- package/dist/models/ExpireLoginTokenResponse.js.map +1 -0
- package/dist/models/ExpireLoginTokenResponseBody.d.ts +18 -0
- package/dist/models/ExpireLoginTokenResponseBody.js +58 -0
- package/dist/models/ExpireLoginTokenResponseBody.js.map +1 -0
- package/dist/models/GetAuthCodeRequest.d.ts +36 -0
- package/dist/models/GetAuthCodeRequest.js +66 -0
- package/dist/models/GetAuthCodeRequest.js.map +1 -0
- package/dist/models/GetAuthCodeResponse.d.ts +19 -0
- package/dist/models/GetAuthCodeResponse.js +69 -0
- package/dist/models/GetAuthCodeResponse.js.map +1 -0
- package/dist/models/GetAuthCodeResponseBody.d.ts +48 -0
- package/dist/models/GetAuthCodeResponseBody.js +88 -0
- package/dist/models/GetAuthCodeResponseBody.js.map +1 -0
- package/dist/models/GetStsTokenRequest.d.ts +28 -0
- package/dist/models/GetStsTokenRequest.js +62 -0
- package/dist/models/GetStsTokenRequest.js.map +1 -0
- package/dist/models/GetStsTokenResponse.d.ts +19 -0
- package/dist/models/GetStsTokenResponse.js +69 -0
- package/dist/models/GetStsTokenResponse.js.map +1 -0
- package/dist/models/GetStsTokenResponseBody.d.ts +51 -0
- package/dist/models/GetStsTokenResponseBody.js +88 -0
- package/dist/models/GetStsTokenResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +26 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +7 -10
- package/src/client.ts +113 -205
- package/src/models/ExpireLoginTokenRequest.ts +61 -0
- package/src/models/ExpireLoginTokenResponse.ts +40 -0
- package/src/models/ExpireLoginTokenResponseBody.ts +31 -0
- package/src/models/GetAuthCodeRequest.ts +57 -0
- package/src/models/GetAuthCodeResponse.ts +40 -0
- package/src/models/GetAuthCodeResponseBody.ts +80 -0
- package/src/models/GetStsTokenRequest.ts +45 -0
- package/src/models/GetStsTokenResponse.ts +40 -0
- package/src/models/GetStsTokenResponseBody.ts +85 -0
- package/src/models/model.ts +11 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetStsTokenRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Alex
|
|
9
|
+
*/
|
|
10
|
+
endUserId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 600
|
|
14
|
+
*/
|
|
15
|
+
expiration?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* Alex
|
|
19
|
+
*/
|
|
20
|
+
externalId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
endUserId: 'EndUserId',
|
|
24
|
+
expiration: 'Expiration',
|
|
25
|
+
externalId: 'ExternalId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
endUserId: 'string',
|
|
32
|
+
expiration: 'number',
|
|
33
|
+
externalId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetStsTokenResponseBody } from "./GetStsTokenResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetStsTokenResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetStsTokenResponseBody;
|
|
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: GetStsTokenResponseBody,
|
|
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
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetStsTokenResponseBodyStsTokenModel extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 105552640689****
|
|
9
|
+
*/
|
|
10
|
+
aliUid?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* be4be09e-cd00-4b4c-add7-11b4d8****
|
|
14
|
+
*/
|
|
15
|
+
sessionId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* sts****
|
|
19
|
+
*/
|
|
20
|
+
stsToken?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 105552640689****
|
|
24
|
+
*/
|
|
25
|
+
tenantId?: number;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
aliUid: 'AliUid',
|
|
29
|
+
sessionId: 'SessionId',
|
|
30
|
+
stsToken: 'StsToken',
|
|
31
|
+
tenantId: 'TenantId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
aliUid: 'number',
|
|
38
|
+
sessionId: 'string',
|
|
39
|
+
stsToken: 'string',
|
|
40
|
+
tenantId: 'number',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class GetStsTokenResponseBody extends $dara.Model {
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* CCF92035-6231-5ABB-930E-1E003C32****
|
|
57
|
+
*/
|
|
58
|
+
requestId?: string;
|
|
59
|
+
stsTokenModel?: GetStsTokenResponseBodyStsTokenModel;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
requestId: 'RequestId',
|
|
63
|
+
stsTokenModel: 'StsTokenModel',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
requestId: 'string',
|
|
70
|
+
stsTokenModel: GetStsTokenResponseBodyStsTokenModel,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
validate() {
|
|
75
|
+
if(this.stsTokenModel && typeof (this.stsTokenModel as any).validate === 'function') {
|
|
76
|
+
(this.stsTokenModel as any).validate();
|
|
77
|
+
}
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { GetAuthCodeResponseBodyAuthModel } from './GetAuthCodeResponseBody';
|
|
2
|
+
export { GetStsTokenResponseBodyStsTokenModel } from './GetStsTokenResponseBody';
|
|
3
|
+
export { ExpireLoginTokenRequest } from './ExpireLoginTokenRequest';
|
|
4
|
+
export { ExpireLoginTokenResponseBody } from './ExpireLoginTokenResponseBody';
|
|
5
|
+
export { ExpireLoginTokenResponse } from './ExpireLoginTokenResponse';
|
|
6
|
+
export { GetAuthCodeRequest } from './GetAuthCodeRequest';
|
|
7
|
+
export { GetAuthCodeResponseBody } from './GetAuthCodeResponseBody';
|
|
8
|
+
export { GetAuthCodeResponse } from './GetAuthCodeResponse';
|
|
9
|
+
export { GetStsTokenRequest } from './GetStsTokenRequest';
|
|
10
|
+
export { GetStsTokenResponseBody } from './GetStsTokenResponseBody';
|
|
11
|
+
export { GetStsTokenResponse } from './GetStsTokenResponse';
|