@alicloud/agentcore20260804 2.1.1 → 2.2.0

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 (107) hide show
  1. package/dist/client.d.ts +88 -22
  2. package/dist/client.js +175 -22
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateManagedAgentRequest.d.ts +95 -20
  5. package/dist/models/CreateManagedAgentRequest.js +59 -1
  6. package/dist/models/CreateManagedAgentRequest.js.map +1 -1
  7. package/dist/models/CreateManagedAgentResponseBody.d.ts +171 -25
  8. package/dist/models/CreateManagedAgentResponseBody.js +119 -1
  9. package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
  10. package/dist/models/DataResourceValue.d.ts +15 -15
  11. package/dist/models/DataResourceValue.js +4 -4
  12. package/dist/models/DataResourceValue.js.map +1 -1
  13. package/dist/models/ForcePublishSkillVersionRequest.d.ts +8 -0
  14. package/dist/models/ForcePublishSkillVersionRequest.js +2 -0
  15. package/dist/models/ForcePublishSkillVersionRequest.js.map +1 -1
  16. package/dist/models/GetAgentSpecLatestResponseBody.d.ts +28 -0
  17. package/dist/models/GetAgentSpecLatestResponseBody.js +29 -1
  18. package/dist/models/GetAgentSpecLatestResponseBody.js.map +1 -1
  19. package/dist/models/GetManagedAgentResponseBody.d.ts +176 -30
  20. package/dist/models/GetManagedAgentResponseBody.js +119 -1
  21. package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
  22. package/dist/models/GetSkillDetailResponseBody.d.ts +20 -4
  23. package/dist/models/GetSkillDetailResponseBody.js +4 -0
  24. package/dist/models/GetSkillDetailResponseBody.js.map +1 -1
  25. package/dist/models/GetSkillVersionDetailResponseBody.d.ts +1 -1
  26. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.d.ts +43 -0
  27. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.js +62 -0
  28. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.js.map +1 -0
  29. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.d.ts +19 -0
  30. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.js +69 -0
  31. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.js.map +1 -0
  32. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.d.ts +78 -0
  33. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.js +90 -0
  34. package/dist/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.js.map +1 -0
  35. package/dist/models/ListAgentSpecsRequest.d.ts +4 -4
  36. package/dist/models/ListAgentSpecsResponseBody.d.ts +49 -2
  37. package/dist/models/ListAgentSpecsResponseBody.js +29 -1
  38. package/dist/models/ListAgentSpecsResponseBody.js.map +1 -1
  39. package/dist/models/ListSkillReferencesRequest.d.ts +45 -0
  40. package/dist/models/ListSkillReferencesRequest.js +64 -0
  41. package/dist/models/ListSkillReferencesRequest.js.map +1 -0
  42. package/dist/models/ListSkillReferencesResponse.d.ts +19 -0
  43. package/dist/models/ListSkillReferencesResponse.js +69 -0
  44. package/dist/models/ListSkillReferencesResponse.js.map +1 -0
  45. package/dist/models/ListSkillReferencesResponseBody.d.ts +135 -0
  46. package/dist/models/ListSkillReferencesResponseBody.js +122 -0
  47. package/dist/models/ListSkillReferencesResponseBody.js.map +1 -0
  48. package/dist/models/ListSkillsResponseBody.d.ts +5 -0
  49. package/dist/models/ListSkillsResponseBody.js +2 -0
  50. package/dist/models/ListSkillsResponseBody.js.map +1 -1
  51. package/dist/models/PrecheckSkillUploadViaOssResponseBody.d.ts +26 -2
  52. package/dist/models/PrecheckSkillUploadViaOssResponseBody.js +6 -0
  53. package/dist/models/PrecheckSkillUploadViaOssResponseBody.js.map +1 -1
  54. package/dist/models/PublishSkillVersionRequest.d.ts +8 -0
  55. package/dist/models/PublishSkillVersionRequest.js +2 -0
  56. package/dist/models/PublishSkillVersionRequest.js.map +1 -1
  57. package/dist/models/UpdateManagedAgentRequest.d.ts +121 -29
  58. package/dist/models/UpdateManagedAgentRequest.js +59 -1
  59. package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
  60. package/dist/models/UpdateManagedAgentResponseBody.d.ts +231 -37
  61. package/dist/models/UpdateManagedAgentResponseBody.js +119 -1
  62. package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
  63. package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
  64. package/dist/models/UpdateSkillLabelsRequest.d.ts +1 -1
  65. package/dist/models/UploadSkillViaOssRequest.d.ts +1 -1
  66. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.d.ts +23 -0
  67. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.js +58 -0
  68. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.js.map +1 -0
  69. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.d.ts +19 -0
  70. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.js +69 -0
  71. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.js.map +1 -0
  72. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.d.ts +78 -0
  73. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.js +90 -0
  74. package/dist/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.js.map +1 -0
  75. package/dist/models/model.d.ts +31 -0
  76. package/dist/models/model.js +206 -143
  77. package/dist/models/model.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/client.ts +189 -22
  80. package/src/models/CreateManagedAgentRequest.ts +135 -20
  81. package/src/models/CreateManagedAgentResponseBody.ts +253 -25
  82. package/src/models/DataResourceValue.ts +17 -17
  83. package/src/models/ForcePublishSkillVersionRequest.ts +10 -0
  84. package/src/models/GetAgentSpecLatestResponseBody.ts +47 -0
  85. package/src/models/GetManagedAgentResponseBody.ts +258 -30
  86. package/src/models/GetSkillDetailResponseBody.ts +24 -4
  87. package/src/models/GetSkillVersionDetailResponseBody.ts +1 -1
  88. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlRequest.ts +60 -0
  89. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse.ts +40 -0
  90. package/src/models/GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody.ts +114 -0
  91. package/src/models/ListAgentSpecsRequest.ts +4 -4
  92. package/src/models/ListAgentSpecsResponseBody.ts +68 -2
  93. package/src/models/ListSkillReferencesRequest.ts +64 -0
  94. package/src/models/ListSkillReferencesResponse.ts +40 -0
  95. package/src/models/ListSkillReferencesResponseBody.ts +194 -0
  96. package/src/models/ListSkillsResponseBody.ts +7 -0
  97. package/src/models/PrecheckSkillUploadViaOssResponseBody.ts +32 -2
  98. package/src/models/PublishSkillVersionRequest.ts +10 -0
  99. package/src/models/UpdateManagedAgentRequest.ts +161 -29
  100. package/src/models/UpdateManagedAgentResponseBody.ts +313 -37
  101. package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
  102. package/src/models/UpdateSkillLabelsRequest.ts +1 -1
  103. package/src/models/UploadSkillViaOssRequest.ts +1 -1
  104. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationRequest.ts +36 -0
  105. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponse.ts +40 -0
  106. package/src/models/VerifyWorkspaceAgenticFsMountRamAuthorizationResponseBody.ts +114 -0
  107. package/src/models/model.ts +31 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody } from "./GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody";
4
+
5
+
6
+ export class GetWorkspaceAgenticFsMountRamAuthorizeUrlResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody;
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: GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody,
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,114 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The RAM authorization URL. After opening this URL and completing the authorization, call the verification operation.
9
+ *
10
+ * @example
11
+ * https://ram.console.aliyun.com/authorize?request=%7B%22referrer%22%3A%22AgentCore%22%2C%22payloads%22%3A%5B%7B%22missionId%22%3A%22AgentCore.CustomRoleForOSSObjectRestore%22%2C%22roleName%22%3A%22AgentCoreWorkspaceRoleExample%22%2C%22rolePolicies%22%3A%5B%7B%22policyName%22%3A%22AgentCoreNasMountExample%22%2C%22policyType%22%3A%22Custom%22%2C%22templateId%22%3A%22NasFileSystemClientMount%22%2C%22templateValue%22%3A%7B%22nasFileSystem%22%3A%22acs%3Anas%3Acn-hangzhou%3A1234567890123456%3Afilesystem%2F0123456789%22%2C%22nasAccessPoint%22%3A%22acs%3Anas%3Acn-hangzhou%3A1234567890123456%3Aaccesspoint%2Fap-0123456789abcdef0%22%7D%7D%5D%7D%5D%7D
12
+ */
13
+ authorizeUrl?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ authorizeUrl: 'authorizeUrl',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ authorizeUrl: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The business status code.
39
+ *
40
+ * @example
41
+ * SUCCESS
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The response data.
47
+ */
48
+ data?: GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The HTTP status code.
52
+ *
53
+ * @example
54
+ * 200
55
+ */
56
+ httpStatusCode?: number;
57
+ /**
58
+ * @remarks
59
+ * The response message.
60
+ *
61
+ * @example
62
+ * success
63
+ */
64
+ message?: string;
65
+ /**
66
+ * @remarks
67
+ * The request ID.
68
+ *
69
+ * @example
70
+ * 550e8400-e29b-41d4-a716-446655440000
71
+ */
72
+ requestId?: string;
73
+ /**
74
+ * @remarks
75
+ * Indicates whether the request was successful.
76
+ *
77
+ * @example
78
+ * true
79
+ */
80
+ success?: boolean;
81
+ static names(): { [key: string]: string } {
82
+ return {
83
+ code: 'code',
84
+ data: 'data',
85
+ httpStatusCode: 'httpStatusCode',
86
+ message: 'message',
87
+ requestId: 'requestId',
88
+ success: 'success',
89
+ };
90
+ }
91
+
92
+ static types(): { [key: string]: any } {
93
+ return {
94
+ code: 'string',
95
+ data: GetWorkspaceAgenticFsMountRamAuthorizeUrlResponseBodyData,
96
+ httpStatusCode: 'number',
97
+ message: 'string',
98
+ requestId: 'string',
99
+ success: 'boolean',
100
+ };
101
+ }
102
+
103
+ validate() {
104
+ if(this.data && typeof (this.data as any).validate === 'function') {
105
+ (this.data as any).validate();
106
+ }
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListAgentSpecsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The AgentSpec name used as a search keyword. Use this parameter together with the search parameter.
8
+ * The AgentSpec name used as a search keyword. This parameter is used together with the search parameter.
9
9
  *
10
10
  * @example
11
11
  * my-worker
@@ -21,7 +21,7 @@ export class ListAgentSpecsRequest extends $dara.Model {
21
21
  bizTag?: string;
22
22
  /**
23
23
  * @remarks
24
- * The field by which to sort results. Set this parameter to download_count to sort by download count. By default, results are sorted by update time.
24
+ * The field by which to sort the results. Set the value to download_count to sort by download count. By default, results are sorted by update time.
25
25
  *
26
26
  * @example
27
27
  * download_count
@@ -29,7 +29,7 @@ export class ListAgentSpecsRequest extends $dara.Model {
29
29
  orderBy?: string;
30
30
  /**
31
31
  * @remarks
32
- * The owner used to filter results.
32
+ * The owner used to filter the results.
33
33
  *
34
34
  * @example
35
35
  * user1
@@ -53,7 +53,7 @@ export class ListAgentSpecsRequest extends $dara.Model {
53
53
  pageSize?: number;
54
54
  /**
55
55
  * @remarks
56
- * The visibility scope used to filter results. Valid values:
56
+ * The visibility scope used to filter the results. Valid values:
57
57
  *
58
58
  * - PUBLIC
59
59
  * - PRIVATE
@@ -32,6 +32,49 @@ export class ListAgentSpecsResponseBodyDataPageItemsMcpServers extends $dara.Mod
32
32
  }
33
33
  }
34
34
 
35
+ export class ListAgentSpecsResponseBodyDataPageItemsSkillsVersionSelector extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The version selector type. Valid values:
39
+ *
40
+ * - LABEL: selects by label.
41
+ * - VERSION: selects by specific version.
42
+ *
43
+ * @example
44
+ * LABEL
45
+ */
46
+ type?: string;
47
+ /**
48
+ * @remarks
49
+ * The selector value. If the type is LABEL, this value is a label name such as latest. If the type is VERSION, this value is a specific version number.
50
+ *
51
+ * @example
52
+ * latest
53
+ */
54
+ value?: string;
55
+ static names(): { [key: string]: string } {
56
+ return {
57
+ type: 'type',
58
+ value: 'value',
59
+ };
60
+ }
61
+
62
+ static types(): { [key: string]: any } {
63
+ return {
64
+ type: 'string',
65
+ value: 'string',
66
+ };
67
+ }
68
+
69
+ validate() {
70
+ super.validate();
71
+ }
72
+
73
+ constructor(map?: { [key: string]: any }) {
74
+ super(map);
75
+ }
76
+ }
77
+
35
78
  export class ListAgentSpecsResponseBodyDataPageItemsSkills extends $dara.Model {
36
79
  /**
37
80
  * @remarks
@@ -41,19 +84,42 @@ export class ListAgentSpecsResponseBodyDataPageItemsSkills extends $dara.Model {
41
84
  * agentspec-example
42
85
  */
43
86
  name?: string;
87
+ /**
88
+ * @remarks
89
+ * The Skill source type. Valid values:
90
+ *
91
+ * - REFERENCE: references the AI Registry.
92
+ * - STATIC: statically bundled with the package.
93
+ *
94
+ * @example
95
+ * REFERENCE
96
+ */
97
+ sourceType?: string;
98
+ /**
99
+ * @remarks
100
+ * The referenced version selector. If omitted, the default value is LABEL/latest.
101
+ */
102
+ versionSelector?: ListAgentSpecsResponseBodyDataPageItemsSkillsVersionSelector;
44
103
  static names(): { [key: string]: string } {
45
104
  return {
46
105
  name: 'name',
106
+ sourceType: 'sourceType',
107
+ versionSelector: 'versionSelector',
47
108
  };
48
109
  }
49
110
 
50
111
  static types(): { [key: string]: any } {
51
112
  return {
52
113
  name: 'string',
114
+ sourceType: 'string',
115
+ versionSelector: ListAgentSpecsResponseBodyDataPageItemsSkillsVersionSelector,
53
116
  };
54
117
  }
55
118
 
56
119
  validate() {
120
+ if(this.versionSelector && typeof (this.versionSelector as any).validate === 'function') {
121
+ (this.versionSelector as any).validate();
122
+ }
57
123
  super.validate();
58
124
  }
59
125
 
@@ -89,7 +155,7 @@ export class ListAgentSpecsResponseBodyDataPageItems extends $dara.Model {
89
155
  downloadCount?: number;
90
156
  /**
91
157
  * @remarks
92
- * The version currently being edited.
158
+ * The version that is currently being edited.
93
159
  *
94
160
  * @example
95
161
  * 1.0.0
@@ -136,7 +202,7 @@ export class ListAgentSpecsResponseBodyDataPageItems extends $dara.Model {
136
202
  onlineCnt?: number;
137
203
  /**
138
204
  * @remarks
139
- * The version currently under review.
205
+ * The version that is currently under review.
140
206
  *
141
207
  * @example
142
208
  * 1.0.0
@@ -0,0 +1,64 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListSkillReferencesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The page number, starting from 1. Default value: 1.
9
+ *
10
+ * @example
11
+ * 1
12
+ */
13
+ pageNo?: number;
14
+ /**
15
+ * @remarks
16
+ * The number of entries per page. If this parameter is not specified, the server-side default value is used.
17
+ *
18
+ * @example
19
+ * 20
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * @remarks
24
+ * Filters results by reference selector type. Valid values: LABEL and VERSION.
25
+ *
26
+ * @example
27
+ * LABEL
28
+ */
29
+ selectorType?: string;
30
+ /**
31
+ * @remarks
32
+ * Filters results by reference selector value, such as latest, a named label, HEAD, or a specific version.
33
+ *
34
+ * @example
35
+ * HEAD
36
+ */
37
+ selectorValue?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ pageNo: 'pageNo',
41
+ pageSize: 'pageSize',
42
+ selectorType: 'selectorType',
43
+ selectorValue: 'selectorValue',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ pageNo: 'number',
50
+ pageSize: 'number',
51
+ selectorType: 'string',
52
+ selectorValue: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListSkillReferencesResponseBody } from "./ListSkillReferencesResponseBody";
4
+
5
+
6
+ export class ListSkillReferencesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListSkillReferencesResponseBody;
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: ListSkillReferencesResponseBody,
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,194 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListSkillReferencesResponseBodyDataPageItems extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the referencing entity (the identifier of the Agent or AgentSpec).
9
+ *
10
+ * @example
11
+ * agent-1234567890abcdef
12
+ */
13
+ ownerId?: string;
14
+ /**
15
+ * @remarks
16
+ * The type of the referencing entity. Valid values: AGENT and AGENTSPEC.
17
+ *
18
+ * @example
19
+ * AGENT
20
+ */
21
+ ownerType?: string;
22
+ /**
23
+ * @remarks
24
+ * The version of the referencing entity.
25
+ *
26
+ * @example
27
+ * 1.0.0
28
+ */
29
+ ownerVersion?: string;
30
+ /**
31
+ * @remarks
32
+ * The reference selector type. Valid values: LABEL and VERSION.
33
+ *
34
+ * @example
35
+ * LABEL
36
+ */
37
+ selectorType?: string;
38
+ /**
39
+ * @remarks
40
+ * The reference selector value, such as latest, a named label, HEAD, or a specific version.
41
+ *
42
+ * @example
43
+ * HEAD
44
+ */
45
+ selectorValue?: string;
46
+ /**
47
+ * @remarks
48
+ * The name of the referenced skill.
49
+ *
50
+ * @example
51
+ * web-search
52
+ */
53
+ skillName?: string;
54
+ /**
55
+ * @remarks
56
+ * The workspace ID to which the reference belongs.
57
+ *
58
+ * @example
59
+ * ws-1234567890abcdef
60
+ */
61
+ workspaceId?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ ownerId: 'ownerId',
65
+ ownerType: 'ownerType',
66
+ ownerVersion: 'ownerVersion',
67
+ selectorType: 'selectorType',
68
+ selectorValue: 'selectorValue',
69
+ skillName: 'skillName',
70
+ workspaceId: 'workspaceId',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ ownerId: 'string',
77
+ ownerType: 'string',
78
+ ownerVersion: 'string',
79
+ selectorType: 'string',
80
+ selectorValue: 'string',
81
+ skillName: 'string',
82
+ workspaceId: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class ListSkillReferencesResponseBodyData extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * The list of skill reference relationships on the current page.
99
+ */
100
+ pageItems?: ListSkillReferencesResponseBodyDataPageItems[];
101
+ /**
102
+ * @remarks
103
+ * The current page number, starting from 1.
104
+ *
105
+ * @example
106
+ * 1
107
+ */
108
+ pageNumber?: number;
109
+ /**
110
+ * @remarks
111
+ * The total number of available pages.
112
+ *
113
+ * @example
114
+ * 5
115
+ */
116
+ pagesAvailable?: number;
117
+ /**
118
+ * @remarks
119
+ * The total number of reference relationships that match the filter conditions.
120
+ *
121
+ * @example
122
+ * 100
123
+ */
124
+ totalCount?: number;
125
+ static names(): { [key: string]: string } {
126
+ return {
127
+ pageItems: 'pageItems',
128
+ pageNumber: 'pageNumber',
129
+ pagesAvailable: 'pagesAvailable',
130
+ totalCount: 'totalCount',
131
+ };
132
+ }
133
+
134
+ static types(): { [key: string]: any } {
135
+ return {
136
+ pageItems: { 'type': 'array', 'itemType': ListSkillReferencesResponseBodyDataPageItems },
137
+ pageNumber: 'number',
138
+ pagesAvailable: 'number',
139
+ totalCount: 'number',
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(Array.isArray(this.pageItems)) {
145
+ $dara.Model.validateArray(this.pageItems);
146
+ }
147
+ super.validate();
148
+ }
149
+
150
+ constructor(map?: { [key: string]: any }) {
151
+ super(map);
152
+ }
153
+ }
154
+
155
+ export class ListSkillReferencesResponseBody extends $dara.Model {
156
+ /**
157
+ * @remarks
158
+ * The skill reference relationship data returned by the paged query. The data is returned with paging.
159
+ */
160
+ data?: ListSkillReferencesResponseBodyData;
161
+ /**
162
+ * @remarks
163
+ * The request ID, which is used for troubleshooting.
164
+ *
165
+ * @example
166
+ * 5C6D9E10-1234-5678-9ABC-DEF012345678
167
+ */
168
+ requestId?: string;
169
+ static names(): { [key: string]: string } {
170
+ return {
171
+ data: 'data',
172
+ requestId: 'requestId',
173
+ };
174
+ }
175
+
176
+ static types(): { [key: string]: any } {
177
+ return {
178
+ data: ListSkillReferencesResponseBodyData,
179
+ requestId: 'string',
180
+ };
181
+ }
182
+
183
+ validate() {
184
+ if(this.data && typeof (this.data as any).validate === 'function') {
185
+ (this.data as any).validate();
186
+ }
187
+ super.validate();
188
+ }
189
+
190
+ constructor(map?: { [key: string]: any }) {
191
+ super(map);
192
+ }
193
+ }
194
+
@@ -27,6 +27,11 @@ export class ListSkillsResponseBodyDataPageItems extends $dara.Model {
27
27
  * 10
28
28
  */
29
29
  downloadCount?: number;
30
+ /**
31
+ * @example
32
+ * HEAD
33
+ */
34
+ draftMode?: string;
30
35
  /**
31
36
  * @remarks
32
37
  * The version that is being edited.
@@ -119,6 +124,7 @@ export class ListSkillsResponseBodyDataPageItems extends $dara.Model {
119
124
  bizTags: 'bizTags',
120
125
  description: 'description',
121
126
  downloadCount: 'downloadCount',
127
+ draftMode: 'draftMode',
122
128
  editingVersion: 'editingVersion',
123
129
  enable: 'enable',
124
130
  from: 'from',
@@ -139,6 +145,7 @@ export class ListSkillsResponseBodyDataPageItems extends $dara.Model {
139
145
  bizTags: 'string',
140
146
  description: 'string',
141
147
  downloadCount: 'number',
148
+ draftMode: 'string',
142
149
  editingVersion: 'string',
143
150
  enable: 'boolean',
144
151
  from: 'string',
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The draft mode: HEAD or VERSIONED, determined by the server.
9
+ *
10
+ * @example
11
+ * HEAD
12
+ */
13
+ draftMode?: string;
6
14
  /**
7
15
  * @remarks
8
16
  * The version currently being edited.
@@ -24,6 +32,22 @@ export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
24
32
  * Indicates whether the Skill already exists.
25
33
  */
26
34
  exists?: boolean;
35
+ /**
36
+ * @remarks
37
+ * The content revision identifier of the persistent draft, used to determine whether the local cache has expired. Returned only in HEAD draft mode.
38
+ *
39
+ * @example
40
+ * rev-1a2b3c4d
41
+ */
42
+ headRevision?: string;
43
+ /**
44
+ * @remarks
45
+ * The status of the persistent draft: draft, reviewing, or reviewed. Returned only in HEAD draft mode.
46
+ *
47
+ * @example
48
+ * draft
49
+ */
50
+ headStatus?: string;
27
51
  /**
28
52
  * @remarks
29
53
  * The highest published version.
@@ -50,7 +74,7 @@ export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
50
74
  parsedVersion?: string;
51
75
  /**
52
76
  * @remarks
53
- * The pre-check result code.
77
+ * The dry run result code.
54
78
  *
55
79
  * @example
56
80
  * VALIDATION_FAILED
@@ -98,9 +122,12 @@ export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
98
122
  workspaceId?: string;
99
123
  static names(): { [key: string]: string } {
100
124
  return {
125
+ draftMode: 'draftMode',
101
126
  editingVersion: 'editingVersion',
102
127
  entryPath: 'entryPath',
103
128
  exists: 'exists',
129
+ headRevision: 'headRevision',
130
+ headStatus: 'headStatus',
104
131
  maxPublishedVersion: 'maxPublishedVersion',
105
132
  owner: 'owner',
106
133
  parsedVersion: 'parsedVersion',
@@ -115,9 +142,12 @@ export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
115
142
 
116
143
  static types(): { [key: string]: any } {
117
144
  return {
145
+ draftMode: 'string',
118
146
  editingVersion: 'string',
119
147
  entryPath: 'string',
120
148
  exists: 'boolean',
149
+ headRevision: 'string',
150
+ headStatus: 'string',
121
151
  maxPublishedVersion: 'string',
122
152
  owner: 'string',
123
153
  parsedVersion: 'string',
@@ -142,7 +172,7 @@ export class PrecheckSkillUploadViaOssResponseBodyData extends $dara.Model {
142
172
  export class PrecheckSkillUploadViaOssResponseBody extends $dara.Model {
143
173
  /**
144
174
  * @remarks
145
- * The returned data.
175
+ * The response data.
146
176
  */
147
177
  data?: PrecheckSkillUploadViaOssResponseBodyData[];
148
178
  /**