@alicloud/appstream-center20210218 1.1.3 → 1.2.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.
Files changed (57) hide show
  1. package/dist/client.d.ts +66 -6
  2. package/dist/client.js +149 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateThirdAppAccessTokenRequest.d.ts +80 -0
  5. package/dist/models/CreateThirdAppAccessTokenRequest.js +92 -0
  6. package/dist/models/CreateThirdAppAccessTokenRequest.js.map +1 -0
  7. package/dist/models/CreateThirdAppAccessTokenResponse.d.ts +19 -0
  8. package/dist/models/CreateThirdAppAccessTokenResponse.js +69 -0
  9. package/dist/models/CreateThirdAppAccessTokenResponse.js.map +1 -0
  10. package/dist/models/CreateThirdAppAccessTokenResponseBody.d.ts +37 -0
  11. package/dist/models/CreateThirdAppAccessTokenResponseBody.js +62 -0
  12. package/dist/models/CreateThirdAppAccessTokenResponseBody.js.map +1 -0
  13. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.d.ts +50 -0
  14. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js +66 -0
  15. package/dist/models/CreateThirdAppAccessTokenShrinkRequest.js.map +1 -0
  16. package/dist/models/ExpireLoginTokenRequest.d.ts +1 -1
  17. package/dist/models/ExpireLoginTokenResponseBody.d.ts +1 -1
  18. package/dist/models/GetAuthCodeRequest.d.ts +36 -8
  19. package/dist/models/GetAuthCodeRequest.js.map +1 -1
  20. package/dist/models/GetAuthCodeResponseBody.d.ts +3 -5
  21. package/dist/models/GetAuthCodeResponseBody.js +0 -2
  22. package/dist/models/GetAuthCodeResponseBody.js.map +1 -1
  23. package/dist/models/GetLatestThirdAppAccessTokenRequest.d.ts +70 -0
  24. package/dist/models/GetLatestThirdAppAccessTokenRequest.js +88 -0
  25. package/dist/models/GetLatestThirdAppAccessTokenRequest.js.map +1 -0
  26. package/dist/models/GetLatestThirdAppAccessTokenResponse.d.ts +19 -0
  27. package/dist/models/GetLatestThirdAppAccessTokenResponse.js +69 -0
  28. package/dist/models/GetLatestThirdAppAccessTokenResponse.js.map +1 -0
  29. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.d.ts +37 -0
  30. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js +62 -0
  31. package/dist/models/GetLatestThirdAppAccessTokenResponseBody.js.map +1 -0
  32. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.d.ts +42 -0
  33. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js +64 -0
  34. package/dist/models/GetLatestThirdAppAccessTokenShrinkRequest.js.map +1 -0
  35. package/dist/models/GetStsTokenRequest.d.ts +5 -4
  36. package/dist/models/GetStsTokenRequest.js.map +1 -1
  37. package/dist/models/GetStsTokenResponseBody.d.ts +4 -4
  38. package/dist/models/model.d.ts +10 -0
  39. package/dist/models/model.js +21 -1
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +3 -2
  42. package/src/client.ts +164 -10
  43. package/src/models/CreateThirdAppAccessTokenRequest.ts +116 -0
  44. package/src/models/CreateThirdAppAccessTokenResponse.ts +40 -0
  45. package/src/models/CreateThirdAppAccessTokenResponseBody.ts +54 -0
  46. package/src/models/CreateThirdAppAccessTokenShrinkRequest.ts +71 -0
  47. package/src/models/ExpireLoginTokenRequest.ts +1 -1
  48. package/src/models/ExpireLoginTokenResponseBody.ts +1 -1
  49. package/src/models/GetAuthCodeRequest.ts +36 -8
  50. package/src/models/GetAuthCodeResponseBody.ts +3 -5
  51. package/src/models/GetLatestThirdAppAccessTokenRequest.ts +104 -0
  52. package/src/models/GetLatestThirdAppAccessTokenResponse.ts +40 -0
  53. package/src/models/GetLatestThirdAppAccessTokenResponseBody.ts +54 -0
  54. package/src/models/GetLatestThirdAppAccessTokenShrinkRequest.ts +61 -0
  55. package/src/models/GetStsTokenRequest.ts +5 -4
  56. package/src/models/GetStsTokenResponseBody.ts +4 -4
  57. package/src/models/model.ts +10 -0
package/dist/client.d.ts CHANGED
@@ -9,7 +9,34 @@ export default class Client extends OpenApi {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
11
  /**
12
- * Manually expires a logon token before its automatic expiration.
12
+ * Creates a time-limited static access token for a specified user in the current account to access a single cloud desktop.
13
+ *
14
+ * @remarks
15
+ * When you call this operation, you must provide Resource and specify both ResourceType and ResourceId. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
16
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
17
+ * Before creation, the user must belong to the current calling account and have access permissions to the target cloud desktop. This operation only creates an access token. It does not create users or add authorization relationships between users and cloud desktops. Each successful call creates a new time-limited token. To obtain an existing token, call GetLatestThirdAppAccessToken and pass the same AuthorizerId and Resource.
18
+ * The unit of Expiration is seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported. Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
19
+ *
20
+ * @param tmpReq - CreateThirdAppAccessTokenRequest
21
+ * @param runtime - runtime options for this request RuntimeOptions
22
+ * @returns CreateThirdAppAccessTokenResponse
23
+ */
24
+ createThirdAppAccessTokenWithOptions(tmpReq: $_model.CreateThirdAppAccessTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateThirdAppAccessTokenResponse>;
25
+ /**
26
+ * Creates a time-limited static access token for a specified user in the current account to access a single cloud desktop.
27
+ *
28
+ * @remarks
29
+ * When you call this operation, you must provide Resource and specify both ResourceType and ResourceId. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
30
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
31
+ * Before creation, the user must belong to the current calling account and have access permissions to the target cloud desktop. This operation only creates an access token. It does not create users or add authorization relationships between users and cloud desktops. Each successful call creates a new time-limited token. To obtain an existing token, call GetLatestThirdAppAccessToken and pass the same AuthorizerId and Resource.
32
+ * The unit of Expiration is seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported. Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
33
+ *
34
+ * @param request - CreateThirdAppAccessTokenRequest
35
+ * @returns CreateThirdAppAccessTokenResponse
36
+ */
37
+ createThirdAppAccessToken(request: $_model.CreateThirdAppAccessTokenRequest): Promise<$_model.CreateThirdAppAccessTokenResponse>;
38
+ /**
39
+ * Invalidates a Wuying Workspace logon session before it naturally expires.
13
40
  *
14
41
  * @param request - ExpireLoginTokenRequest
15
42
  * @param runtime - runtime options for this request RuntimeOptions
@@ -17,14 +44,17 @@ export default class Client extends OpenApi {
17
44
  */
18
45
  expireLoginTokenWithOptions(request: $_model.ExpireLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ExpireLoginTokenResponse>;
19
46
  /**
20
- * Manually expires a logon token before its automatic expiration.
47
+ * Invalidates a Wuying Workspace logon session before it naturally expires.
21
48
  *
22
49
  * @param request - ExpireLoginTokenRequest
23
50
  * @returns ExpireLoginTokenResponse
24
51
  */
25
52
  expireLoginToken(request: $_model.ExpireLoginTokenRequest): Promise<$_model.ExpireLoginTokenResponse>;
26
53
  /**
27
- * Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
54
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
55
+ *
56
+ * @remarks
57
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
28
58
  *
29
59
  * @param request - GetAuthCodeRequest
30
60
  * @param runtime - runtime options for this request RuntimeOptions
@@ -32,14 +62,44 @@ export default class Client extends OpenApi {
32
62
  */
33
63
  getAuthCodeWithOptions(request: $_model.GetAuthCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAuthCodeResponse>;
34
64
  /**
35
- * Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
65
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
66
+ *
67
+ * @remarks
68
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
36
69
  *
37
70
  * @param request - GetAuthCodeRequest
38
71
  * @returns GetAuthCodeResponse
39
72
  */
40
73
  getAuthCode(request: $_model.GetAuthCodeRequest): Promise<$_model.GetAuthCodeResponse>;
41
74
  /**
42
- * Gets a Security Token Service (STS) token.
75
+ * Retrieves the current valid static access token for a specified user and a single cloud desktop under the current account, keeping the original expiration time.
76
+ *
77
+ * @remarks
78
+ * You must provide Resource and specify both ResourceType and ResourceId when calling this operation. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
79
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
80
+ * The AuthorizerId and Resource in the query conditions must be consistent with those used when the token was created. This operation only returns the current valid token for the current account, user, and cloud desktop. It does not create a new token, renew the token, or restore or roll back to a historical token. If no valid token is found, the token has expired, or the corresponding cache has been cleared, AccessToken.NotFound is returned. To obtain a new token, call CreateThirdAppAccessToken.
81
+ * Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
82
+ *
83
+ * @param tmpReq - GetLatestThirdAppAccessTokenRequest
84
+ * @param runtime - runtime options for this request RuntimeOptions
85
+ * @returns GetLatestThirdAppAccessTokenResponse
86
+ */
87
+ getLatestThirdAppAccessTokenWithOptions(tmpReq: $_model.GetLatestThirdAppAccessTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLatestThirdAppAccessTokenResponse>;
88
+ /**
89
+ * Retrieves the current valid static access token for a specified user and a single cloud desktop under the current account, keeping the original expiration time.
90
+ *
91
+ * @remarks
92
+ * You must provide Resource and specify both ResourceType and ResourceId when calling this operation. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
93
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
94
+ * The AuthorizerId and Resource in the query conditions must be consistent with those used when the token was created. This operation only returns the current valid token for the current account, user, and cloud desktop. It does not create a new token, renew the token, or restore or roll back to a historical token. If no valid token is found, the token has expired, or the corresponding cache has been cleared, AccessToken.NotFound is returned. To obtain a new token, call CreateThirdAppAccessToken.
95
+ * Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
96
+ *
97
+ * @param request - GetLatestThirdAppAccessTokenRequest
98
+ * @returns GetLatestThirdAppAccessTokenResponse
99
+ */
100
+ getLatestThirdAppAccessToken(request: $_model.GetLatestThirdAppAccessTokenRequest): Promise<$_model.GetLatestThirdAppAccessTokenResponse>;
101
+ /**
102
+ * Retrieves a Wuying STS token (temporary identity credential).
43
103
  *
44
104
  * @param request - GetStsTokenRequest
45
105
  * @param runtime - runtime options for this request RuntimeOptions
@@ -47,7 +107,7 @@ export default class Client extends OpenApi {
47
107
  */
48
108
  getStsTokenWithOptions(request: $_model.GetStsTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetStsTokenResponse>;
49
109
  /**
50
- * Gets a Security Token Service (STS) token.
110
+ * Retrieves a Wuying STS token (temporary identity credential).
51
111
  *
52
112
  * @param request - GetStsTokenRequest
53
113
  * @returns GetStsTokenResponse
package/dist/client.js CHANGED
@@ -41,6 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  // This file is auto-generated, don't edit it
43
43
  const $dara = __importStar(require("@darabonba/typescript"));
44
+ const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
44
45
  const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
46
  const openapi_core_2 = require("@alicloud/openapi-core");
46
47
  const $_model = __importStar(require("./models/model"));
@@ -48,11 +49,10 @@ __exportStar(require("./models/model"), exports);
48
49
  class Client extends openapi_core_1.default {
49
50
  constructor(config) {
50
51
  super(config);
52
+ this._productId = "appstream-center";
53
+ let gatewayClient = new gateway_pop_1.default();
54
+ this._spi = gatewayClient;
51
55
  this._endpointRule = "regional";
52
- this._endpointMap = {
53
- 'cn-shanghai': "appstream-center.cn-shanghai.aliyuncs.com",
54
- 'ap-southeast-1': "appstream-center.ap-southeast-1.aliyuncs.com",
55
- };
56
56
  this.checkConfig(config);
57
57
  this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
58
58
  }
@@ -66,7 +66,75 @@ class Client extends openapi_core_1.default {
66
66
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
67
67
  }
68
68
  /**
69
- * Manually expires a logon token before its automatic expiration.
69
+ * Creates a time-limited static access token for a specified user in the current account to access a single cloud desktop.
70
+ *
71
+ * @remarks
72
+ * When you call this operation, you must provide Resource and specify both ResourceType and ResourceId. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
73
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
74
+ * Before creation, the user must belong to the current calling account and have access permissions to the target cloud desktop. This operation only creates an access token. It does not create users or add authorization relationships between users and cloud desktops. Each successful call creates a new time-limited token. To obtain an existing token, call GetLatestThirdAppAccessToken and pass the same AuthorizerId and Resource.
75
+ * The unit of Expiration is seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported. Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
76
+ *
77
+ * @param tmpReq - CreateThirdAppAccessTokenRequest
78
+ * @param runtime - runtime options for this request RuntimeOptions
79
+ * @returns CreateThirdAppAccessTokenResponse
80
+ */
81
+ async createThirdAppAccessTokenWithOptions(tmpReq, runtime) {
82
+ tmpReq.validate();
83
+ let request = new $_model.CreateThirdAppAccessTokenShrinkRequest({});
84
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
85
+ if (!$dara.isNull(tmpReq.resource)) {
86
+ request.resourceShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resource, "Resource", "json");
87
+ }
88
+ let body = {};
89
+ if (!$dara.isNull(request.authorizerId)) {
90
+ body["AuthorizerId"] = request.authorizerId;
91
+ }
92
+ if (!$dara.isNull(request.businessChannel)) {
93
+ body["BusinessChannel"] = request.businessChannel;
94
+ }
95
+ if (!$dara.isNull(request.endUserId)) {
96
+ body["EndUserId"] = request.endUserId;
97
+ }
98
+ if (!$dara.isNull(request.expiration)) {
99
+ body["Expiration"] = request.expiration;
100
+ }
101
+ if (!$dara.isNull(request.resourceShrink)) {
102
+ body["Resource"] = request.resourceShrink;
103
+ }
104
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
105
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
106
+ });
107
+ let params = new openapi_core_2.$OpenApiUtil.Params({
108
+ action: "CreateThirdAppAccessToken",
109
+ version: "2021-02-18",
110
+ protocol: "HTTPS",
111
+ pathname: "/",
112
+ method: "POST",
113
+ authType: "AK",
114
+ style: "RPC",
115
+ reqBodyType: "formData",
116
+ bodyType: "json",
117
+ });
118
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateThirdAppAccessTokenResponse({}));
119
+ }
120
+ /**
121
+ * Creates a time-limited static access token for a specified user in the current account to access a single cloud desktop.
122
+ *
123
+ * @remarks
124
+ * When you call this operation, you must provide Resource and specify both ResourceType and ResourceId. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
125
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
126
+ * Before creation, the user must belong to the current calling account and have access permissions to the target cloud desktop. This operation only creates an access token. It does not create users or add authorization relationships between users and cloud desktops. Each successful call creates a new time-limited token. To obtain an existing token, call GetLatestThirdAppAccessToken and pass the same AuthorizerId and Resource.
127
+ * The unit of Expiration is seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported. Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
128
+ *
129
+ * @param request - CreateThirdAppAccessTokenRequest
130
+ * @returns CreateThirdAppAccessTokenResponse
131
+ */
132
+ async createThirdAppAccessToken(request) {
133
+ let runtime = new $dara.RuntimeOptions({});
134
+ return await this.createThirdAppAccessTokenWithOptions(request, runtime);
135
+ }
136
+ /**
137
+ * Invalidates a Wuying Workspace logon session before it naturally expires.
70
138
  *
71
139
  * @param request - ExpireLoginTokenRequest
72
140
  * @param runtime - runtime options for this request RuntimeOptions
@@ -104,7 +172,7 @@ class Client extends openapi_core_1.default {
104
172
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ExpireLoginTokenResponse({}));
105
173
  }
106
174
  /**
107
- * Manually expires a logon token before its automatic expiration.
175
+ * Invalidates a Wuying Workspace logon session before it naturally expires.
108
176
  *
109
177
  * @param request - ExpireLoginTokenRequest
110
178
  * @returns ExpireLoginTokenResponse
@@ -114,7 +182,10 @@ class Client extends openapi_core_1.default {
114
182
  return await this.expireLoginTokenWithOptions(request, runtime);
115
183
  }
116
184
  /**
117
- * Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
185
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
186
+ *
187
+ * @remarks
188
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
118
189
  *
119
190
  * @param request - GetAuthCodeRequest
120
191
  * @param runtime - runtime options for this request RuntimeOptions
@@ -166,7 +237,10 @@ class Client extends openapi_core_1.default {
166
237
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAuthCodeResponse({}));
167
238
  }
168
239
  /**
169
- * Obtains an authorization code that contains user identity and permission information. The authorization code can be used to launch a cloud application in integration scenarios.
240
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
241
+ *
242
+ * @remarks
243
+ * Retrieves an authorization code that contains user identity and permission information, which can be used to invoke cloud applications in integration scenarios.
170
244
  *
171
245
  * @param request - GetAuthCodeRequest
172
246
  * @returns GetAuthCodeResponse
@@ -176,7 +250,72 @@ class Client extends openapi_core_1.default {
176
250
  return await this.getAuthCodeWithOptions(request, runtime);
177
251
  }
178
252
  /**
179
- * Gets a Security Token Service (STS) token.
253
+ * Retrieves the current valid static access token for a specified user and a single cloud desktop under the current account, keeping the original expiration time.
254
+ *
255
+ * @remarks
256
+ * You must provide Resource and specify both ResourceType and ResourceId when calling this operation. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
257
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
258
+ * The AuthorizerId and Resource in the query conditions must be consistent with those used when the token was created. This operation only returns the current valid token for the current account, user, and cloud desktop. It does not create a new token, renew the token, or restore or roll back to a historical token. If no valid token is found, the token has expired, or the corresponding cache has been cleared, AccessToken.NotFound is returned. To obtain a new token, call CreateThirdAppAccessToken.
259
+ * Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
260
+ *
261
+ * @param tmpReq - GetLatestThirdAppAccessTokenRequest
262
+ * @param runtime - runtime options for this request RuntimeOptions
263
+ * @returns GetLatestThirdAppAccessTokenResponse
264
+ */
265
+ async getLatestThirdAppAccessTokenWithOptions(tmpReq, runtime) {
266
+ tmpReq.validate();
267
+ let request = new $_model.GetLatestThirdAppAccessTokenShrinkRequest({});
268
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
269
+ if (!$dara.isNull(tmpReq.resource)) {
270
+ request.resourceShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resource, "Resource", "json");
271
+ }
272
+ let body = {};
273
+ if (!$dara.isNull(request.authorizerId)) {
274
+ body["AuthorizerId"] = request.authorizerId;
275
+ }
276
+ if (!$dara.isNull(request.businessChannel)) {
277
+ body["BusinessChannel"] = request.businessChannel;
278
+ }
279
+ if (!$dara.isNull(request.endUserId)) {
280
+ body["EndUserId"] = request.endUserId;
281
+ }
282
+ if (!$dara.isNull(request.resourceShrink)) {
283
+ body["Resource"] = request.resourceShrink;
284
+ }
285
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
286
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
287
+ });
288
+ let params = new openapi_core_2.$OpenApiUtil.Params({
289
+ action: "GetLatestThirdAppAccessToken",
290
+ version: "2021-02-18",
291
+ protocol: "HTTPS",
292
+ pathname: "/",
293
+ method: "POST",
294
+ authType: "AK",
295
+ style: "RPC",
296
+ reqBodyType: "formData",
297
+ bodyType: "json",
298
+ });
299
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetLatestThirdAppAccessTokenResponse({}));
300
+ }
301
+ /**
302
+ * Retrieves the current valid static access token for a specified user and a single cloud desktop under the current account, keeping the original expiration time.
303
+ *
304
+ * @remarks
305
+ * You must provide Resource and specify both ResourceType and ResourceId when calling this operation. Only a single cloud desktop is supported. You cannot omit Resource to authorize or query all cloud desktops.
306
+ * AuthorizerId is the WyId of the user and cannot be replaced by a username. BusinessChannel supports Enterprise and Business. If omitted, the default value is Enterprise.
307
+ * The AuthorizerId and Resource in the query conditions must be consistent with those used when the token was created. This operation only returns the current valid token for the current account, user, and cloud desktop. It does not create a new token, renew the token, or restore or roll back to a historical token. If no valid token is found, the token has expired, or the corresponding cache has been cleared, AccessToken.NotFound is returned. To obtain a new token, call CreateThirdAppAccessToken.
308
+ * Keep the returned AccessToken secure and avoid displaying the full token in logs or public content.
309
+ *
310
+ * @param request - GetLatestThirdAppAccessTokenRequest
311
+ * @returns GetLatestThirdAppAccessTokenResponse
312
+ */
313
+ async getLatestThirdAppAccessToken(request) {
314
+ let runtime = new $dara.RuntimeOptions({});
315
+ return await this.getLatestThirdAppAccessTokenWithOptions(request, runtime);
316
+ }
317
+ /**
318
+ * Retrieves a Wuying STS token (temporary identity credential).
180
319
  *
181
320
  * @param request - GetStsTokenRequest
182
321
  * @param runtime - runtime options for this request RuntimeOptions
@@ -211,7 +350,7 @@ class Client extends openapi_core_1.default {
211
350
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetStsTokenResponse({}));
212
351
  }
213
352
  /**
214
- * Gets a Security Token Service (STS) token.
353
+ * Retrieves a Wuying STS token (temporary identity credential).
215
354
  *
216
355
  * @param request - GetStsTokenRequest
217
356
  * @returns GetStsTokenResponse
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAEzC,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;QAChC,IAAI,CAAC,YAAY,GAAG;YAClB,aAAa,EAAE,2CAA2C;YAC1D,gBAAgB,EAAE,8CAA8C;SACjE,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5J,CAAC;IAGD,WAAW,CAAC,SAAiB,EAAE,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,WAAqC,EAAE,QAAgB;QAC7J,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5B,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WA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@ -0,0 +1,80 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ /**
3
+ */
4
+ export declare class CreateThirdAppAccessTokenRequestResource extends $dara.Model {
5
+ /**
6
+ * @remarks
7
+ * The ID of the target cloud desktop. You must provide a non-empty value when you call this operation. You cannot use an asterisk (*). The cloud desktop must be authorized to the user specified by AuthorizerId.
8
+ *
9
+ * @example
10
+ * ecd-7a8b9c0d****
11
+ */
12
+ resourceId?: string;
13
+ /**
14
+ * @remarks
15
+ * The resource type. You must provide this parameter when you call this operation. Valid value: DESKTOP, which indicates a cloud desktop. The value is case-insensitive.
16
+ *
17
+ * @example
18
+ * DESKTOP
19
+ */
20
+ resourceType?: string;
21
+ static names(): {
22
+ [key: string]: string;
23
+ };
24
+ static types(): {
25
+ [key: string]: any;
26
+ };
27
+ validate(): void;
28
+ constructor(map?: {
29
+ [key: string]: any;
30
+ });
31
+ }
32
+ export declare class CreateThirdAppAccessTokenRequest extends $dara.Model {
33
+ /**
34
+ * @remarks
35
+ * The WyId of the authorized user. The user must belong to the current calling account. This parameter is not the username.
36
+ *
37
+ * @example
38
+ * f1e2d3c4b5a6****
39
+ */
40
+ authorizerId?: string;
41
+ /**
42
+ * @remarks
43
+ * The business channel. Valid values: Enterprise and Business. The value is case-insensitive. If omitted, the default value is Enterprise. If an empty string or other values are explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
44
+ *
45
+ * @example
46
+ * Enterprise
47
+ */
48
+ businessChannel?: string;
49
+ /**
50
+ * @remarks
51
+ * The convenience username in the current tenant. Used when AuthorizerId is not provided or is empty.
52
+ *
53
+ * @example
54
+ * test
55
+ */
56
+ endUserId?: string;
57
+ /**
58
+ * @remarks
59
+ * The validity period of the token, in seconds. Valid values: 1 to 15552000. If omitted, the default value is 15552000, which equals 180 days. Permanent validity is not supported. You cannot pass 0.
60
+ *
61
+ * @example
62
+ * 900
63
+ */
64
+ expiration?: number;
65
+ /**
66
+ * @remarks
67
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when you call this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
68
+ */
69
+ resource?: CreateThirdAppAccessTokenRequestResource;
70
+ static names(): {
71
+ [key: string]: string;
72
+ };
73
+ static types(): {
74
+ [key: string]: any;
75
+ };
76
+ validate(): void;
77
+ constructor(map?: {
78
+ [key: string]: any;
79
+ });
80
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateThirdAppAccessTokenRequest = exports.CreateThirdAppAccessTokenRequestResource = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ /**
40
+ */
41
+ class CreateThirdAppAccessTokenRequestResource extends $dara.Model {
42
+ static names() {
43
+ return {
44
+ resourceId: 'ResourceId',
45
+ resourceType: 'ResourceType',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ resourceId: 'string',
51
+ resourceType: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.CreateThirdAppAccessTokenRequestResource = CreateThirdAppAccessTokenRequestResource;
62
+ class CreateThirdAppAccessTokenRequest extends $dara.Model {
63
+ static names() {
64
+ return {
65
+ authorizerId: 'AuthorizerId',
66
+ businessChannel: 'BusinessChannel',
67
+ endUserId: 'EndUserId',
68
+ expiration: 'Expiration',
69
+ resource: 'Resource',
70
+ };
71
+ }
72
+ static types() {
73
+ return {
74
+ authorizerId: 'string',
75
+ businessChannel: 'string',
76
+ endUserId: 'string',
77
+ expiration: 'number',
78
+ resource: CreateThirdAppAccessTokenRequestResource,
79
+ };
80
+ }
81
+ validate() {
82
+ if (this.resource && typeof this.resource.validate === 'function') {
83
+ this.resource.validate();
84
+ }
85
+ super.validate();
86
+ }
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ }
91
+ exports.CreateThirdAppAccessTokenRequest = CreateThirdAppAccessTokenRequest;
92
+ //# sourceMappingURL=CreateThirdAppAccessTokenRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateThirdAppAccessTokenRequest.js","sourceRoot":"","sources":["../../src/models/CreateThirdAppAccessTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,wCAAyC,SAAQ,KAAK,CAAC,KAAK;IAiBvE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,4FAsCC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAsC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,eAAe,EAAE,iBAAiB;YAClC,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,eAAe,EAAE,QAAQ;YACzB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,wCAAwC;SACnD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,IAAI,OAAQ,IAAI,CAAC,QAAgB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACzE,IAAI,CAAC,QAAgB,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,4EAoEC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { CreateThirdAppAccessTokenResponseBody } from "./CreateThirdAppAccessTokenResponseBody";
3
+ export declare class CreateThirdAppAccessTokenResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: CreateThirdAppAccessTokenResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateThirdAppAccessTokenResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const CreateThirdAppAccessTokenResponseBody_1 = require("./CreateThirdAppAccessTokenResponseBody");
40
+ class CreateThirdAppAccessTokenResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: CreateThirdAppAccessTokenResponseBody_1.CreateThirdAppAccessTokenResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.CreateThirdAppAccessTokenResponse = CreateThirdAppAccessTokenResponse;
69
+ //# sourceMappingURL=CreateThirdAppAccessTokenResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateThirdAppAccessTokenResponse.js","sourceRoot":"","sources":["../../src/models/CreateThirdAppAccessTokenResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mGAAgG;AAGhG,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAIhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,6EAAqC;SAC5C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,8EAiCC"}