@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
package/src/client.ts
CHANGED
|
@@ -1,189 +1,15 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import Util, * as $Util from '@alicloud/tea-util';
|
|
6
|
-
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
|
-
import OpenApiUtil from '@alicloud/openapi-util';
|
|
8
|
-
import EndpointUtil from '@alicloud/endpoint-util';
|
|
9
|
-
import * as $tea from '@alicloud/tea-typescript';
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import OpenApi from '@alicloud/openapi-core';
|
|
4
|
+
import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
|
|
10
5
|
|
|
11
|
-
export class ExpireLoginTokenRequest extends $tea.Model {
|
|
12
|
-
endUserId?: string;
|
|
13
|
-
loginToken?: string;
|
|
14
|
-
officeSiteId?: string;
|
|
15
|
-
sessionId?: string;
|
|
16
|
-
static names(): { [key: string]: string } {
|
|
17
|
-
return {
|
|
18
|
-
endUserId: 'EndUserId',
|
|
19
|
-
loginToken: 'LoginToken',
|
|
20
|
-
officeSiteId: 'OfficeSiteId',
|
|
21
|
-
sessionId: 'SessionId',
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static types(): { [key: string]: any } {
|
|
26
|
-
return {
|
|
27
|
-
endUserId: 'string',
|
|
28
|
-
loginToken: 'string',
|
|
29
|
-
officeSiteId: 'string',
|
|
30
|
-
sessionId: 'string',
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
constructor(map?: { [key: string]: any }) {
|
|
35
|
-
super(map);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export class ExpireLoginTokenResponseBody extends $tea.Model {
|
|
40
|
-
requestId?: string;
|
|
41
|
-
static names(): { [key: string]: string } {
|
|
42
|
-
return {
|
|
43
|
-
requestId: 'RequestId',
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
static types(): { [key: string]: any } {
|
|
48
|
-
return {
|
|
49
|
-
requestId: 'string',
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
constructor(map?: { [key: string]: any }) {
|
|
54
|
-
super(map);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class ExpireLoginTokenResponse extends $tea.Model {
|
|
59
|
-
headers: { [key: string]: string };
|
|
60
|
-
statusCode: number;
|
|
61
|
-
body: ExpireLoginTokenResponseBody;
|
|
62
|
-
static names(): { [key: string]: string } {
|
|
63
|
-
return {
|
|
64
|
-
headers: 'headers',
|
|
65
|
-
statusCode: 'statusCode',
|
|
66
|
-
body: 'body',
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
static types(): { [key: string]: any } {
|
|
71
|
-
return {
|
|
72
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
73
|
-
statusCode: 'number',
|
|
74
|
-
body: ExpireLoginTokenResponseBody,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
constructor(map?: { [key: string]: any }) {
|
|
79
|
-
super(map);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export class GetAuthCodeRequest extends $tea.Model {
|
|
84
|
-
autoCreateUser?: boolean;
|
|
85
|
-
endUserId?: string;
|
|
86
|
-
externalUserId?: string;
|
|
87
|
-
policy?: string;
|
|
88
|
-
static names(): { [key: string]: string } {
|
|
89
|
-
return {
|
|
90
|
-
autoCreateUser: 'AutoCreateUser',
|
|
91
|
-
endUserId: 'EndUserId',
|
|
92
|
-
externalUserId: 'ExternalUserId',
|
|
93
|
-
policy: 'Policy',
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
static types(): { [key: string]: any } {
|
|
98
|
-
return {
|
|
99
|
-
autoCreateUser: 'boolean',
|
|
100
|
-
endUserId: 'string',
|
|
101
|
-
externalUserId: 'string',
|
|
102
|
-
policy: 'string',
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
constructor(map?: { [key: string]: any }) {
|
|
107
|
-
super(map);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export class GetAuthCodeResponseBody extends $tea.Model {
|
|
112
|
-
authModel?: GetAuthCodeResponseBodyAuthModel;
|
|
113
|
-
requestId?: string;
|
|
114
|
-
static names(): { [key: string]: string } {
|
|
115
|
-
return {
|
|
116
|
-
authModel: 'AuthModel',
|
|
117
|
-
requestId: 'RequestId',
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
static types(): { [key: string]: any } {
|
|
122
|
-
return {
|
|
123
|
-
authModel: GetAuthCodeResponseBodyAuthModel,
|
|
124
|
-
requestId: 'string',
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
constructor(map?: { [key: string]: any }) {
|
|
129
|
-
super(map);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export class GetAuthCodeResponse extends $tea.Model {
|
|
134
|
-
headers: { [key: string]: string };
|
|
135
|
-
statusCode: number;
|
|
136
|
-
body: GetAuthCodeResponseBody;
|
|
137
|
-
static names(): { [key: string]: string } {
|
|
138
|
-
return {
|
|
139
|
-
headers: 'headers',
|
|
140
|
-
statusCode: 'statusCode',
|
|
141
|
-
body: 'body',
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
static types(): { [key: string]: any } {
|
|
146
|
-
return {
|
|
147
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
148
|
-
statusCode: 'number',
|
|
149
|
-
body: GetAuthCodeResponseBody,
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
constructor(map?: { [key: string]: any }) {
|
|
154
|
-
super(map);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export class GetAuthCodeResponseBodyAuthModel extends $tea.Model {
|
|
159
|
-
authCode?: string;
|
|
160
|
-
endUserId?: string;
|
|
161
|
-
expireTime?: string;
|
|
162
|
-
static names(): { [key: string]: string } {
|
|
163
|
-
return {
|
|
164
|
-
authCode: 'AuthCode',
|
|
165
|
-
endUserId: 'EndUserId',
|
|
166
|
-
expireTime: 'ExpireTime',
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
static types(): { [key: string]: any } {
|
|
171
|
-
return {
|
|
172
|
-
authCode: 'string',
|
|
173
|
-
endUserId: 'string',
|
|
174
|
-
expireTime: 'string',
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
constructor(map?: { [key: string]: any }) {
|
|
179
|
-
super(map);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
6
|
|
|
7
|
+
import * as $_model from './models/model';
|
|
8
|
+
export * from './models/model';
|
|
183
9
|
|
|
184
10
|
export default class Client extends OpenApi {
|
|
185
11
|
|
|
186
|
-
constructor(config: $
|
|
12
|
+
constructor(config: $OpenApiUtil.Config) {
|
|
187
13
|
super(config);
|
|
188
14
|
this._endpointRule = "";
|
|
189
15
|
this.checkConfig(config);
|
|
@@ -192,40 +18,47 @@ export default class Client extends OpenApi {
|
|
|
192
18
|
|
|
193
19
|
|
|
194
20
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
195
|
-
if (
|
|
21
|
+
if (!$dara.isNull(endpoint)) {
|
|
196
22
|
return endpoint;
|
|
197
23
|
}
|
|
198
24
|
|
|
199
|
-
if (
|
|
25
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
200
26
|
return endpointMap[regionId];
|
|
201
27
|
}
|
|
202
28
|
|
|
203
|
-
return
|
|
29
|
+
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
204
30
|
}
|
|
205
31
|
|
|
206
|
-
|
|
207
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Manually invalidates a logon token.
|
|
34
|
+
*
|
|
35
|
+
* @param request - ExpireLoginTokenRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns ExpireLoginTokenResponse
|
|
38
|
+
*/
|
|
39
|
+
async expireLoginTokenWithOptions(request: $_model.ExpireLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ExpireLoginTokenResponse> {
|
|
40
|
+
request.validate();
|
|
208
41
|
let body : {[key: string ]: any} = { };
|
|
209
|
-
if (
|
|
42
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
210
43
|
body["EndUserId"] = request.endUserId;
|
|
211
44
|
}
|
|
212
45
|
|
|
213
|
-
if (
|
|
46
|
+
if (!$dara.isNull(request.loginToken)) {
|
|
214
47
|
body["LoginToken"] = request.loginToken;
|
|
215
48
|
}
|
|
216
49
|
|
|
217
|
-
if (
|
|
50
|
+
if (!$dara.isNull(request.officeSiteId)) {
|
|
218
51
|
body["OfficeSiteId"] = request.officeSiteId;
|
|
219
52
|
}
|
|
220
53
|
|
|
221
|
-
if (
|
|
54
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
222
55
|
body["SessionId"] = request.sessionId;
|
|
223
56
|
}
|
|
224
57
|
|
|
225
|
-
let req = new $
|
|
58
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
226
59
|
body: OpenApiUtil.parseToMap(body),
|
|
227
60
|
});
|
|
228
|
-
let params = new $
|
|
61
|
+
let params = new $OpenApiUtil.Params({
|
|
229
62
|
action: "ExpireLoginToken",
|
|
230
63
|
version: "2021-02-18",
|
|
231
64
|
protocol: "HTTPS",
|
|
@@ -236,37 +69,56 @@ export default class Client extends OpenApi {
|
|
|
236
69
|
reqBodyType: "formData",
|
|
237
70
|
bodyType: "json",
|
|
238
71
|
});
|
|
239
|
-
return $
|
|
72
|
+
return $dara.cast<$_model.ExpireLoginTokenResponse>(await this.callApi(params, req, runtime), new $_model.ExpireLoginTokenResponse({}));
|
|
240
73
|
}
|
|
241
74
|
|
|
242
|
-
|
|
243
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Manually invalidates a logon token.
|
|
77
|
+
*
|
|
78
|
+
* @param request - ExpireLoginTokenRequest
|
|
79
|
+
* @returns ExpireLoginTokenResponse
|
|
80
|
+
*/
|
|
81
|
+
async expireLoginToken(request: $_model.ExpireLoginTokenRequest): Promise<$_model.ExpireLoginTokenResponse> {
|
|
82
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
244
83
|
return await this.expireLoginTokenWithOptions(request, runtime);
|
|
245
84
|
}
|
|
246
85
|
|
|
247
|
-
|
|
248
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Obtains an authorization code that includes the identity and permission information of a user. You can use the code to launch cloud apps in integration scenarios.
|
|
88
|
+
*
|
|
89
|
+
* @param request - GetAuthCodeRequest
|
|
90
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
91
|
+
* @returns GetAuthCodeResponse
|
|
92
|
+
*/
|
|
93
|
+
async getAuthCodeWithOptions(request: $_model.GetAuthCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuthCodeResponse> {
|
|
94
|
+
request.validate();
|
|
95
|
+
let query = { };
|
|
96
|
+
if (!$dara.isNull(request.tokenType)) {
|
|
97
|
+
query["TokenType"] = request.tokenType;
|
|
98
|
+
}
|
|
99
|
+
|
|
249
100
|
let body : {[key: string ]: any} = { };
|
|
250
|
-
if (
|
|
101
|
+
if (!$dara.isNull(request.autoCreateUser)) {
|
|
251
102
|
body["AutoCreateUser"] = request.autoCreateUser;
|
|
252
103
|
}
|
|
253
104
|
|
|
254
|
-
if (
|
|
105
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
255
106
|
body["EndUserId"] = request.endUserId;
|
|
256
107
|
}
|
|
257
108
|
|
|
258
|
-
if (
|
|
109
|
+
if (!$dara.isNull(request.externalUserId)) {
|
|
259
110
|
body["ExternalUserId"] = request.externalUserId;
|
|
260
111
|
}
|
|
261
112
|
|
|
262
|
-
if (
|
|
113
|
+
if (!$dara.isNull(request.policy)) {
|
|
263
114
|
body["Policy"] = request.policy;
|
|
264
115
|
}
|
|
265
116
|
|
|
266
|
-
let req = new $
|
|
117
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
118
|
+
query: OpenApiUtil.query(query),
|
|
267
119
|
body: OpenApiUtil.parseToMap(body),
|
|
268
120
|
});
|
|
269
|
-
let params = new $
|
|
121
|
+
let params = new $OpenApiUtil.Params({
|
|
270
122
|
action: "GetAuthCode",
|
|
271
123
|
version: "2021-02-18",
|
|
272
124
|
protocol: "HTTPS",
|
|
@@ -277,12 +129,68 @@ export default class Client extends OpenApi {
|
|
|
277
129
|
reqBodyType: "formData",
|
|
278
130
|
bodyType: "json",
|
|
279
131
|
});
|
|
280
|
-
return $
|
|
132
|
+
return $dara.cast<$_model.GetAuthCodeResponse>(await this.callApi(params, req, runtime), new $_model.GetAuthCodeResponse({}));
|
|
281
133
|
}
|
|
282
134
|
|
|
283
|
-
|
|
284
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Obtains an authorization code that includes the identity and permission information of a user. You can use the code to launch cloud apps in integration scenarios.
|
|
137
|
+
*
|
|
138
|
+
* @param request - GetAuthCodeRequest
|
|
139
|
+
* @returns GetAuthCodeResponse
|
|
140
|
+
*/
|
|
141
|
+
async getAuthCode(request: $_model.GetAuthCodeRequest): Promise<$_model.GetAuthCodeResponse> {
|
|
142
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
285
143
|
return await this.getAuthCodeWithOptions(request, runtime);
|
|
286
144
|
}
|
|
287
145
|
|
|
146
|
+
/**
|
|
147
|
+
* 获取stsToken
|
|
148
|
+
*
|
|
149
|
+
* @param request - GetStsTokenRequest
|
|
150
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
151
|
+
* @returns GetStsTokenResponse
|
|
152
|
+
*/
|
|
153
|
+
async getStsTokenWithOptions(request: $_model.GetStsTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetStsTokenResponse> {
|
|
154
|
+
request.validate();
|
|
155
|
+
let body : {[key: string ]: any} = { };
|
|
156
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
157
|
+
body["EndUserId"] = request.endUserId;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (!$dara.isNull(request.expiration)) {
|
|
161
|
+
body["Expiration"] = request.expiration;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!$dara.isNull(request.externalId)) {
|
|
165
|
+
body["ExternalId"] = request.externalId;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
169
|
+
body: OpenApiUtil.parseToMap(body),
|
|
170
|
+
});
|
|
171
|
+
let params = new $OpenApiUtil.Params({
|
|
172
|
+
action: "GetStsToken",
|
|
173
|
+
version: "2021-02-18",
|
|
174
|
+
protocol: "HTTPS",
|
|
175
|
+
pathname: "/",
|
|
176
|
+
method: "POST",
|
|
177
|
+
authType: "AK",
|
|
178
|
+
style: "RPC",
|
|
179
|
+
reqBodyType: "formData",
|
|
180
|
+
bodyType: "json",
|
|
181
|
+
});
|
|
182
|
+
return $dara.cast<$_model.GetStsTokenResponse>(await this.callApi(params, req, runtime), new $_model.GetStsTokenResponse({}));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* 获取stsToken
|
|
187
|
+
*
|
|
188
|
+
* @param request - GetStsTokenRequest
|
|
189
|
+
* @returns GetStsTokenResponse
|
|
190
|
+
*/
|
|
191
|
+
async getStsToken(request: $_model.GetStsTokenRequest): Promise<$_model.GetStsTokenResponse> {
|
|
192
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
193
|
+
return await this.getStsTokenWithOptions(request, runtime);
|
|
194
|
+
}
|
|
195
|
+
|
|
288
196
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ExpireLoginTokenRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* testuser
|
|
12
|
+
*/
|
|
13
|
+
endUserId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* v185fdd7f6d39fa7861981639366085772e150a390a5bb7b43c4e62440d94fc392b945770e1596cebe90085ce0af4d****
|
|
20
|
+
*/
|
|
21
|
+
loginToken?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* cn-beijing+dir-172301****
|
|
25
|
+
*/
|
|
26
|
+
officeSiteId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* a863f4c3-2f1d-4971-8cf7-e2b92ae9****
|
|
33
|
+
*/
|
|
34
|
+
sessionId?: string;
|
|
35
|
+
static names(): { [key: string]: string } {
|
|
36
|
+
return {
|
|
37
|
+
endUserId: 'EndUserId',
|
|
38
|
+
loginToken: 'LoginToken',
|
|
39
|
+
officeSiteId: 'OfficeSiteId',
|
|
40
|
+
sessionId: 'SessionId',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
endUserId: 'string',
|
|
47
|
+
loginToken: 'string',
|
|
48
|
+
officeSiteId: 'string',
|
|
49
|
+
sessionId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
validate() {
|
|
54
|
+
super.validate();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
constructor(map?: { [key: string]: any }) {
|
|
58
|
+
super(map);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ExpireLoginTokenResponseBody } from "./ExpireLoginTokenResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ExpireLoginTokenResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ExpireLoginTokenResponseBody;
|
|
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: ExpireLoginTokenResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ExpireLoginTokenResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'RequestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetAuthCodeRequest extends $dara.Model {
|
|
6
|
+
autoCreateUser?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* alice
|
|
10
|
+
*/
|
|
11
|
+
endUserId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* alice
|
|
15
|
+
*/
|
|
16
|
+
externalUserId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* {
|
|
20
|
+
* "Version": "1",
|
|
21
|
+
* "Resource": {
|
|
22
|
+
* "Type": "AppInstanceGroup",
|
|
23
|
+
* "Id": "aig-9ciijz60n4xsv****"
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
*/
|
|
27
|
+
policy?: string;
|
|
28
|
+
tokenType?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
autoCreateUser: 'AutoCreateUser',
|
|
32
|
+
endUserId: 'EndUserId',
|
|
33
|
+
externalUserId: 'ExternalUserId',
|
|
34
|
+
policy: 'Policy',
|
|
35
|
+
tokenType: 'TokenType',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static types(): { [key: string]: any } {
|
|
40
|
+
return {
|
|
41
|
+
autoCreateUser: 'boolean',
|
|
42
|
+
endUserId: 'string',
|
|
43
|
+
externalUserId: 'string',
|
|
44
|
+
policy: 'string',
|
|
45
|
+
tokenType: 'string',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
validate() {
|
|
50
|
+
super.validate();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(map?: { [key: string]: any }) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetAuthCodeResponseBody } from "./GetAuthCodeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetAuthCodeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetAuthCodeResponseBody;
|
|
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: GetAuthCodeResponseBody,
|
|
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,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
export class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
|
|
11
|
+
*/
|
|
12
|
+
authCode?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* alice
|
|
16
|
+
*/
|
|
17
|
+
endUserId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* 2015-01-23T12:33:18Z
|
|
21
|
+
*/
|
|
22
|
+
expireTime?: string;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
authCode: 'AuthCode',
|
|
26
|
+
endUserId: 'EndUserId',
|
|
27
|
+
expireTime: 'ExpireTime',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
authCode: 'string',
|
|
34
|
+
endUserId: 'string',
|
|
35
|
+
expireTime: 'string',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
validate() {
|
|
40
|
+
super.validate();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
constructor(map?: { [key: string]: any }) {
|
|
44
|
+
super(map);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class GetAuthCodeResponseBody extends $dara.Model {
|
|
49
|
+
authModel?: GetAuthCodeResponseBodyAuthModel;
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
|
|
53
|
+
*/
|
|
54
|
+
requestId?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
authModel: 'AuthModel',
|
|
58
|
+
requestId: 'RequestId',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static types(): { [key: string]: any } {
|
|
63
|
+
return {
|
|
64
|
+
authModel: GetAuthCodeResponseBodyAuthModel,
|
|
65
|
+
requestId: 'string',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
validate() {
|
|
70
|
+
if(this.authModel && typeof (this.authModel as any).validate === 'function') {
|
|
71
|
+
(this.authModel as any).validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|