@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
@@ -0,0 +1,37 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class CreateThirdAppAccessTokenResponseBody extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The time-limited static access token created for the specified user and single cloud desktop. This is a sensitive credential. Do not log or disclose the full value.
6
+ *
7
+ * @example
8
+ * taatv1.v2****
9
+ */
10
+ accessToken?: string;
11
+ /**
12
+ * @remarks
13
+ * The absolute expiration time of the token, in UNIX milliseconds. This parameter is not empty when the call is successful. GetLatestThirdAppAccessToken returns the original expiration time and does not extend it.
14
+ *
15
+ * @example
16
+ * 1795450500000
17
+ */
18
+ expiresAt?: number;
19
+ /**
20
+ * @remarks
21
+ * The unique identifier of the request. You can use it to locate and troubleshoot issues.
22
+ *
23
+ * @example
24
+ * 6DAB2D15-7345-4C33-9D77-48A1A756B9E1
25
+ */
26
+ requestId?: string;
27
+ static names(): {
28
+ [key: string]: string;
29
+ };
30
+ static types(): {
31
+ [key: string]: any;
32
+ };
33
+ validate(): void;
34
+ constructor(map?: {
35
+ [key: string]: any;
36
+ });
37
+ }
@@ -0,0 +1,62 @@
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.CreateThirdAppAccessTokenResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateThirdAppAccessTokenResponseBody extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ accessToken: 'AccessToken',
43
+ expiresAt: 'ExpiresAt',
44
+ requestId: 'RequestId',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ accessToken: 'string',
50
+ expiresAt: 'number',
51
+ requestId: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.CreateThirdAppAccessTokenResponseBody = CreateThirdAppAccessTokenResponseBody;
62
+ //# sourceMappingURL=CreateThirdAppAccessTokenResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateThirdAppAccessTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateThirdAppAccessTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAyBpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;SACpB,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;AAhDD,sFAgDC"}
@@ -0,0 +1,50 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class CreateThirdAppAccessTokenShrinkRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The WyId of the authorized user. The user must belong to the current calling account. This parameter is not the username.
6
+ *
7
+ * @example
8
+ * f1e2d3c4b5a6****
9
+ */
10
+ authorizerId?: string;
11
+ /**
12
+ * @remarks
13
+ * 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.
14
+ *
15
+ * @example
16
+ * Enterprise
17
+ */
18
+ businessChannel?: string;
19
+ /**
20
+ * @remarks
21
+ * The convenience username in the current tenant. Used when AuthorizerId is not provided or is empty.
22
+ *
23
+ * @example
24
+ * test
25
+ */
26
+ endUserId?: string;
27
+ /**
28
+ * @remarks
29
+ * 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.
30
+ *
31
+ * @example
32
+ * 900
33
+ */
34
+ expiration?: number;
35
+ /**
36
+ * @remarks
37
+ * 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.
38
+ */
39
+ resourceShrink?: string;
40
+ static names(): {
41
+ [key: string]: string;
42
+ };
43
+ static types(): {
44
+ [key: string]: any;
45
+ };
46
+ validate(): void;
47
+ constructor(map?: {
48
+ [key: string]: any;
49
+ });
50
+ }
@@ -0,0 +1,66 @@
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.CreateThirdAppAccessTokenShrinkRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateThirdAppAccessTokenShrinkRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ authorizerId: 'AuthorizerId',
43
+ businessChannel: 'BusinessChannel',
44
+ endUserId: 'EndUserId',
45
+ expiration: 'Expiration',
46
+ resourceShrink: 'Resource',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ authorizerId: 'string',
52
+ businessChannel: 'string',
53
+ endUserId: 'string',
54
+ expiration: 'number',
55
+ resourceShrink: 'string',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.CreateThirdAppAccessTokenShrinkRequest = CreateThirdAppAccessTokenShrinkRequest;
66
+ //# sourceMappingURL=CreateThirdAppAccessTokenShrinkRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateThirdAppAccessTokenShrinkRequest.js","sourceRoot":"","sources":["../../src/models/CreateThirdAppAccessTokenShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAsCrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,eAAe,EAAE,iBAAiB;YAClC,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,UAAU;SAC3B,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,cAAc,EAAE,QAAQ;SACzB,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;AAjED,wFAiEC"}
@@ -22,7 +22,7 @@ export declare class ExpireLoginTokenRequest extends $dara.Model {
22
22
  loginToken?: string;
23
23
  /**
24
24
  * @remarks
25
- * The ID of the workspace. This parameter is required if you log on using a workspace ID. You can leave this parameter empty if you log on using an organization ID.
25
+ * The ID of the workspace. This parameter is required if you log on through a workspace, and can be left empty if you log on through an organization ID.
26
26
  *
27
27
  * @example
28
28
  * cn-beijing+dir-172301****
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ExpireLoginTokenResponseBody extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The ID of the request.
5
+ * The request ID.
6
6
  *
7
7
  * @example
8
8
  * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
@@ -1,11 +1,32 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class GetAuthCodeRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The account type. Valid values: ad (enterprise AD account) and simple (convenience account).
6
+ *
7
+ * @example
8
+ * simple
9
+ */
3
10
  accountType?: string;
11
+ /**
12
+ * @remarks
13
+ * The Active Directory domain name. This parameter is required when the account type is ad.
14
+ *
15
+ * @example
16
+ * ad.example.com
17
+ */
4
18
  adDomain?: string;
19
+ /**
20
+ * @remarks
21
+ * The password of the enterprise AD account.
22
+ *
23
+ * @example
24
+ * Qa****7!Z9
25
+ */
5
26
  adPassword?: string;
6
27
  /**
7
28
  * @remarks
8
- * Specifies whether to synchronously create an EndUserId based on ExternalUserId. This parameter takes effect only when EndUserId is empty.
29
+ * Specifies whether to synchronously create an EndUserId based on ExternalUserId. This parameter takes effect only when EndUserId is left empty.
9
30
  *
10
31
  * @example
11
32
  * false
@@ -13,7 +34,7 @@ export declare class GetAuthCodeRequest extends $dara.Model {
13
34
  autoCreateUser?: boolean;
14
35
  /**
15
36
  * @remarks
16
- * The username of the China Desktop Service (China Desktop Service) convenience account. The username must be unique within an Alibaba Cloud account. This parameter and ExternalUserId cannot both be empty.
37
+ * The username of the Wuying convenience account. The username must be unique within an Alibaba Cloud account. This parameter and ExternalUserId cannot be left empty at the same time.
17
38
  *
18
39
  * @example
19
40
  * alice
@@ -21,7 +42,7 @@ export declare class GetAuthCodeRequest extends $dara.Model {
21
42
  endUserId?: string;
22
43
  /**
23
44
  * @remarks
24
- * The external user ID. This ID is defined by the caller and must be unique within an Alibaba Cloud account. This parameter and EndUserId cannot both be empty.
45
+ * The external user ID. This ID is customized by the caller and must be unique within an Alibaba Cloud account. This parameter and ExternalUserId cannot be left empty at the same time.
25
46
  *
26
47
  * @example
27
48
  * alice
@@ -37,16 +58,16 @@ export declare class GetAuthCodeRequest extends $dara.Model {
37
58
  * {
38
59
  * "Version": "1",
39
60
  * "Resource": {
40
- * "Type": "<Resource type>",
41
- * "Id": "<Resource ID>"
61
+ * "Type": "<resource type>",
62
+ * "Id": "<resource ID>"
42
63
  * }
43
64
  * }
44
65
  * ```
45
66
  *
46
- * Valid values of <Resource type>:
67
+ * Valid values for <resource type>:
47
68
  *
48
- * - AppInstanceGroup: delivery group. You can call the ListAppInstanceGroup operation to obtain the ID.
49
- * - AppInstance: application instance (dedicated field).
69
+ * - AppInstanceGroup: app instance group. You can call the ListAppInstanceGroup operation to obtain the ID.
70
+ * - AppInstance: app instance. This is a dedicated field.
50
71
  * - App: application. You can call the ListAppInstanceGroup operation to obtain the ID.
51
72
  *
52
73
  * @example
@@ -59,6 +80,13 @@ export declare class GetAuthCodeRequest extends $dara.Model {
59
80
  * }
60
81
  */
61
82
  policy?: string;
83
+ /**
84
+ * @remarks
85
+ * The token type. Valid values: LoginToken (logon token) and StsToken (temporary identity credential).
86
+ *
87
+ * @example
88
+ * StsToken
89
+ */
62
90
  tokenType?: string;
63
91
  static names(): {
64
92
  [key: string]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"GetAuthCodeRequest.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kBAAmB,SAAQ,KAAK,CAAC,KAAK;IA6DjD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,gBAAgB;YAChC,MAAM,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EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1HD,gDA0HC"}
@@ -1,10 +1,8 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
- /**
3
- */
4
2
  export declare class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
5
3
  /**
6
4
  * @remarks
7
- * The authorization code. The authorization code is valid for 3 minutes and can be used only once regardless of whether the verification succeeds or fails. If multiple authorization codes are generated for a user, only the last generated authorization code is valid.
5
+ * The authorization code. The authorization code is valid for 3 minutes and can be used only once regardless of whether the verification succeeds or fails. If multiple authorization codes are generated for a user, only the last generated one is valid.
8
6
  *
9
7
  * @example
10
8
  * acv2ZEq2TNSqOlX+DvyetHGRT08iPhbWg/os1W4HojpBxkMQZkAnbKSfz/wNvS0E149IQZ5TogvBUE8ghCSVV+QBnv48Y+sn4z9fY5ywZA1peI5s4TplQI0TADBhPZXEIzMOdmbNsDGGlGcKOAq8ixd1Epzdu9XfvRzdLOO6o3zQwTZxXsjOgGBW8JTcgCP9W9iYiIjHIdZ2VCAnmMzuyVkyED8gymEevH10QoclyH/O3s8Yq6VF34gMXihDQeiI8PyiAZrW0JWXSWpdy3n4yGtAqMAgv46FzTA+XJ6C********
@@ -12,7 +10,7 @@ export declare class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
12
10
  authCode?: string;
13
11
  /**
14
12
  * @remarks
15
- * The username of the China Desktop Service convenience account.
13
+ * The username of the Wuying convenience account.
16
14
  *
17
15
  * @example
18
16
  * alice
@@ -20,7 +18,7 @@ export declare class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
20
18
  endUserId?: string;
21
19
  /**
22
20
  * @remarks
23
- * The expiration time of the authorization code in UTC, following the ISO 8601 standard.
21
+ * The expiration time of the authorization code. The time is displayed in UTC and follows the ISO 8601 standard.
24
22
  *
25
23
  * @example
26
24
  * 2015-01-23T12:33:18Z
@@ -36,8 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.GetAuthCodeResponseBody = exports.GetAuthCodeResponseBodyAuthModel = void 0;
37
37
  // This file is auto-generated, don't edit it
38
38
  const $dara = __importStar(require("@darabonba/typescript"));
39
- /**
40
- */
41
39
  class GetAuthCodeResponseBodyAuthModel extends $dara.Model {
42
40
  static names() {
43
41
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"GetAuthCodeResponseBody.js","sourceRoot":"","sources":["../../src/models/GetAuthCodeResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAyB/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;SACrB,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;AAhDD,4EAgDC;AAED,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IActD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,gCAAgC;YAC3C,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,C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QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,0DAsCC"}
@@ -0,0 +1,70 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class GetLatestThirdAppAccessTokenRequestResource extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The ID of the cloud desktop specified when the token was created. You must provide a non-empty value when calling this operation, and it must be consistent with the value used during creation. Asterisks (*) are not allowed.
6
+ *
7
+ * @example
8
+ * ecd-7a8b9c0d****
9
+ */
10
+ resourceId?: string;
11
+ /**
12
+ * @remarks
13
+ * The resource type. This parameter is required when calling this operation. Set the value to DESKTOP, which indicates a cloud desktop. The value is case-insensitive.
14
+ *
15
+ * @example
16
+ * DESKTOP
17
+ */
18
+ resourceType?: string;
19
+ static names(): {
20
+ [key: string]: string;
21
+ };
22
+ static types(): {
23
+ [key: string]: any;
24
+ };
25
+ validate(): void;
26
+ constructor(map?: {
27
+ [key: string]: any;
28
+ });
29
+ }
30
+ export declare class GetLatestThirdAppAccessTokenRequest extends $dara.Model {
31
+ /**
32
+ * @remarks
33
+ * The WyId of the user used when the token was created. It must correspond to the current account and the target cloud desktop, and cannot be replaced by a username.
34
+ *
35
+ * @example
36
+ * f1e2d3c4b5a6****
37
+ */
38
+ authorizerId?: string;
39
+ /**
40
+ * @remarks
41
+ * 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 any other value is explicitly passed, a parameter error is returned. This parameter does not replace user identity verification.
42
+ *
43
+ * @example
44
+ * Enterprise
45
+ */
46
+ businessChannel?: string;
47
+ /**
48
+ * @remarks
49
+ * The convenience username under the current tenant. Used when AuthorizerId is not provided or is empty.
50
+ *
51
+ * @example
52
+ * test
53
+ */
54
+ endUserId?: string;
55
+ /**
56
+ * @remarks
57
+ * The target single cloud desktop resource. You must provide this object along with ResourceType and ResourceId when calling this operation. Pass it as a JSON object to specify only one cloud desktop. Wildcards or authorization for all cloud desktops are not supported.
58
+ */
59
+ resource?: GetLatestThirdAppAccessTokenRequestResource;
60
+ static names(): {
61
+ [key: string]: string;
62
+ };
63
+ static types(): {
64
+ [key: string]: any;
65
+ };
66
+ validate(): void;
67
+ constructor(map?: {
68
+ [key: string]: any;
69
+ });
70
+ }
@@ -0,0 +1,88 @@
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.GetLatestThirdAppAccessTokenRequest = exports.GetLatestThirdAppAccessTokenRequestResource = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class GetLatestThirdAppAccessTokenRequestResource extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ resourceId: 'ResourceId',
43
+ resourceType: 'ResourceType',
44
+ };
45
+ }
46
+ static types() {
47
+ return {
48
+ resourceId: 'string',
49
+ resourceType: 'string',
50
+ };
51
+ }
52
+ validate() {
53
+ super.validate();
54
+ }
55
+ constructor(map) {
56
+ super(map);
57
+ }
58
+ }
59
+ exports.GetLatestThirdAppAccessTokenRequestResource = GetLatestThirdAppAccessTokenRequestResource;
60
+ class GetLatestThirdAppAccessTokenRequest extends $dara.Model {
61
+ static names() {
62
+ return {
63
+ authorizerId: 'AuthorizerId',
64
+ businessChannel: 'BusinessChannel',
65
+ endUserId: 'EndUserId',
66
+ resource: 'Resource',
67
+ };
68
+ }
69
+ static types() {
70
+ return {
71
+ authorizerId: 'string',
72
+ businessChannel: 'string',
73
+ endUserId: 'string',
74
+ resource: GetLatestThirdAppAccessTokenRequestResource,
75
+ };
76
+ }
77
+ validate() {
78
+ if (this.resource && typeof this.resource.validate === 'function') {
79
+ this.resource.validate();
80
+ }
81
+ super.validate();
82
+ }
83
+ constructor(map) {
84
+ super(map);
85
+ }
86
+ }
87
+ exports.GetLatestThirdAppAccessTokenRequest = GetLatestThirdAppAccessTokenRequest;
88
+ //# sourceMappingURL=GetLatestThirdAppAccessTokenRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetLatestThirdAppAccessTokenRequest.js","sourceRoot":"","sources":["../../src/models/GetLatestThirdAppAccessTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAiB1E,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,kGAsCC;AAED,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IA8BlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,eAAe,EAAE,iBAAiB;YAClC,SAAS,EAAE,WAAW;YACtB,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,QAAQ,EAAE,2CAA2C;SACtD,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;AA1DD,kFA0DC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { GetLatestThirdAppAccessTokenResponseBody } from "./GetLatestThirdAppAccessTokenResponseBody";
3
+ export declare class GetLatestThirdAppAccessTokenResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: GetLatestThirdAppAccessTokenResponseBody;
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.GetLatestThirdAppAccessTokenResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const GetLatestThirdAppAccessTokenResponseBody_1 = require("./GetLatestThirdAppAccessTokenResponseBody");
40
+ class GetLatestThirdAppAccessTokenResponse 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: GetLatestThirdAppAccessTokenResponseBody_1.GetLatestThirdAppAccessTokenResponseBody,
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.GetLatestThirdAppAccessTokenResponse = GetLatestThirdAppAccessTokenResponse;
69
+ //# sourceMappingURL=GetLatestThirdAppAccessTokenResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetLatestThirdAppAccessTokenResponse.js","sourceRoot":"","sources":["../../src/models/GetLatestThirdAppAccessTokenResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,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,mFAAwC;SAC/C,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,oFAiCC"}